0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

no changes, comment

This commit is contained in:
dmig 2018-12-12 16:43:27 +07:00
parent 443c5e7063
commit a8d68d945b
No known key found for this signature in database
GPG key ID: A4A245B3AD37C4FC

View file

@ -109,7 +109,7 @@ video_capture = cv2.VideoCapture(config.get("video", "device_path"))
# Force MJPEG decoding if true
if config.getboolean("video", "force_mjpeg", fallback=False):
# Set a magic number, will enable MJPEG but is badly documented
video_capture.set(cv2.CAP_PROP_FOURCC, 1196444237) # 1196444237 is 'MJPEG' in ASCII
video_capture.set(cv2.CAP_PROP_FOURCC, 1196444237) # 1196444237 is 'GPJM' in ASCII
# Set the frame width and height if requested
fw = config.getint("video", "frame_width", fallback=-1)