Ask Your Question

Revision history [back]

click to hide/show revision 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)

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)