def rectangle_to_cv_bbox(rectangle_points):
	"""
	Convert the CVAT rectangle points (serverside) to a OpenCV rectangle.
	:param tuple rectangle_points: Tuple of form (x1,y1,x2,y2)
	:return: Form (x1, y1, width, height)
	"""
	# Dimensions must be ints, otherwise tracking throws a exception
	return (int(rectangle_points[0]), int(rectangle_points[1]),
			int(rectangle_points[2] - rectangle_points[0]),
			int(rectangle_points[3] - rectangle_points[1]))