diff --git a/head_pose.py b/head_pose.py index d4459ae..63406e0 100644 --- a/head_pose.py +++ b/head_pose.py @@ -78,6 +78,7 @@ logger = logging.getLogger(__name__) # Read Image #c = cv2.VideoCapture(args.camera) c = cv2.VideoCapture(args.camera) +# set camera resoltion c.set(3, 1280) c.set(4, 720) #c.set(3, 480) @@ -250,7 +251,7 @@ while True: if args.hide_preview: # if preview is hidden, we can always re-raise the image window imageWindowRoot.lift() - + t1 = time.time() _, im = c.read() size = im.shape