added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -54,6 +54,6 @@ if __name__ == '__main__':
|
||||
draw_str(vis, (20, 20), 'time: %.1f ms' % (dt*1000))
|
||||
cv2.imshow('facedetect', vis)
|
||||
|
||||
if cv2.waitKey(5) == 27:
|
||||
if 0xFF & cv2.waitKey(5) == 27:
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user