small platform compatability fix for ESC key

This commit is contained in:
Anatoly Orlov 2016-03-29 20:02:35 +03:00
parent 2be805ce29
commit 1740218ee0

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
"""
Tracking of rotating point.
Rotation speed is constant.
@ -90,7 +90,7 @@ if __name__ == "__main__":
if code != -1:
break
if code in [27, ord('q'), ord('Q')]:
if (code % 0x100) in [27, ord('q'), ord('Q')]:
break
cv2.destroyWindow("Kalman")