added 0xFF & in front of every waitKey so that it works on linux
This commit is contained in:
@@ -34,6 +34,6 @@ if __name__ == '__main__':
|
||||
squares = find_squares(img)
|
||||
cv2.drawContours( img, squares, -1, (0, 255, 0), 3 )
|
||||
cv2.imshow('squares', img)
|
||||
ch = cv2.waitKey()
|
||||
ch = 0xFF & cv2.waitKey()
|
||||
if ch == 27:
|
||||
break
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user