Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this:

import cv2

image = cv2.imread('./captured_images/frame20.jpg')
cv2.imshow('First frame', image)

while True:
    key = cv2.waitKey(0)
    if key in [27, ord('q'), ord('Q')]:
        cv2.destroyAllWindows()