-
-
Save RicoJia/2faf8fe485c2195edf22c8feab047345 to your computer and use it in GitHub Desktop.
ROI Initialization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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