Major fixes to work on 1280x800
This commit is contained in:
parent
217bf14ea3
commit
0de8e62300
1 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ logger = logging.getLogger(__name__)
|
||||||
# Read Image
|
# Read Image
|
||||||
#c = cv2.VideoCapture(args.camera)
|
#c = cv2.VideoCapture(args.camera)
|
||||||
c = cv2.VideoCapture(args.camera)
|
c = cv2.VideoCapture(args.camera)
|
||||||
|
# set camera resoltion
|
||||||
c.set(3, 1280)
|
c.set(3, 1280)
|
||||||
c.set(4, 720)
|
c.set(4, 720)
|
||||||
#c.set(3, 480)
|
#c.set(3, 480)
|
||||||
|
@ -250,7 +251,7 @@ while True:
|
||||||
if args.hide_preview:
|
if args.hide_preview:
|
||||||
# if preview is hidden, we can always re-raise the image window
|
# if preview is hidden, we can always re-raise the image window
|
||||||
imageWindowRoot.lift()
|
imageWindowRoot.lift()
|
||||||
|
|
||||||
t1 = time.time()
|
t1 = time.time()
|
||||||
_, im = c.read()
|
_, im = c.read()
|
||||||
size = im.shape
|
size = im.shape
|
||||||
|
|
Loading…
Reference in a new issue