1 | initial version |
In my example: c = cv2.waitKey(0) % 256
if c == ord('a'):
print "pressed a"
else:
print 'you press %s' % chr(c)
2 | No.2 Revision |
In my example:
c = cv2.waitKey(0) % 256
c = cv2.waitKey(0) % 256
if c == ord('a'):
print "pressed a"
else:
print 'you press %s' % chr(c)