Major fixes to work on 1280x800

This commit is contained in:
Ruben van de Ven 2019-02-05 19:48:19 +01:00
parent 217bf14ea3
commit 0de8e62300
1 changed files with 2 additions and 1 deletions

View File

@ -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