small platform compatability fix for ESC key
This commit is contained in:
parent
2be805ce29
commit
1740218ee0
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Tracking of rotating point.
|
Tracking of rotating point.
|
||||||
Rotation speed is constant.
|
Rotation speed is constant.
|
||||||
@ -90,7 +90,7 @@ if __name__ == "__main__":
|
|||||||
if code != -1:
|
if code != -1:
|
||||||
break
|
break
|
||||||
|
|
||||||
if code in [27, ord('q'), ord('Q')]:
|
if (code % 0x100) in [27, ord('q'), ord('Q')]:
|
||||||
break
|
break
|
||||||
|
|
||||||
cv2.destroyWindow("Kalman")
|
cv2.destroyWindow("Kalman")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user