import sys import time import cv2 import utils def opencv(): cap = cv2.VideoCapture(0) cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640) cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) while cap.isOpened(): success, image = cap.read() if not success : sys.exit('ERROR: Unable to read from webcam') #image = cv2.flip(image,1) if cv2.waitKey(1) == 27: #ESD break cv2.imshow('simple', image) cap.release() cv2.destroyAll..