Exemple #1
0
def main():
    frame = cv2.imread('0.jpg')
    copy_frame = frame.copy()

    test = draw_custom_roi.define_roi(frame, copy_frame)
    print("selected coordinates: ")
    print(test)
Exemple #2
0
def select_roi(frame):
	"""
	select roi in order 
	top-left, top-right, bottom-right, bottom-left
	"""
	copy_frame = frame.copy()
	pts = draw_custom_roi.define_roi(frame, copy_frame)
	print("selected coordinates: ", pts)
	return np.array(pts, dtype=np.float32)