added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -33,5 +33,5 @@ if __name__ == '__main__':
|
||||
cv2.polylines(vis, hulls, 1, (0, 255, 0))
|
||||
|
||||
cv2.imshow('img', vis)
|
||||
if cv2.waitKey(5) == 27:
|
||||
break
|
||||
if 0xFF & cv2.waitKey(5) == 27:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user