Skip to content

Commit

Permalink
solved "can not work by 'p' and 'esc' key bikz05#4"
Browse files Browse the repository at this point in the history
  • Loading branch information
virajmavani authored Apr 17, 2018
1 parent c3f6ba3 commit 4965d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def callback(event, x, y, flags, param):
# Display the cropped images
cv2.namedWindow(window_name_2, cv2.WINDOW_NORMAL)
cv2.imshow(window_name_2, im_disp)
key = cv2.waitKey(30)
key = (0xFF & cv2.waitKey(30))
if key == ord('p'):
# Press key `s` to return the selected points
cv2.destroyAllWindows()
Expand Down

0 comments on commit 4965d70

Please sign in to comment.