def rect2lines(bbox):
	"""
	Given a bounding box, convert it into a path of points
	
	Parameters
	----------
	bbox : list or numpy array [x1 y1 x2 y2]
	Bounding box defined as top left and bottom right points
	of the box

	Returns
	-------
	point_list : list
	List of five points defining a path to draw the bounding
	box as a rectangle
	"""
	point_list = [
		bbox[0], bbox[1],
		bbox[2], bbox[1],
		bbox[2], bbox[3],
		bbox[0], bbox[3],
		bbox[0], bbox[1]
	]
	return point_list