Skip to content

Instantly share code, notes, and snippets.

@RicoJia
Created August 22, 2021 02:04
Show Gist options
  • Save RicoJia/b03ae7d56ba9dfe1730bf0eda803ed7d to your computer and use it in GitHub Desktop.
Save RicoJia/b03ae7d56ba9dfe1730bf0eda803ed7d to your computer and use it in GitHub Desktop.
corner_points = []
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