Skip to content

Instantly share code, notes, and snippets.

@RicoJia
Created August 22, 2021 02:03
Show Gist options
  • Select an option

  • Save RicoJia/2faf8fe485c2195edf22c8feab047345 to your computer and use it in GitHub Desktop.

Select an option

Save RicoJia/2faf8fe485c2195edf22c8feab047345 to your computer and use it in GitHub Desktop.
ROI Initialization
corner_points = []
SET_ROI = False
def mouse_drawing(event, x_temp, y_temp, flags, params):
if event == cv2.EVENT_LBUTTONDOWN:
global corner_points
corner_points.append((x_temp, y_temp))
cv2.setMouseCallback("face_tracker", mouse_drawing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment