added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -50,6 +50,6 @@ if __name__ == '__main__':
|
||||
draw_detections(img, found_filtered, 3)
|
||||
print '%d (%d) found' % (len(found_filtered), len(found))
|
||||
cv2.imshow('img', img)
|
||||
ch = cv2.waitKey()
|
||||
ch = 0xFF & cv2.waitKey()
|
||||
if ch == 27:
|
||||
break
|
||||
|
Reference in New Issue
Block a user