Skip to content

Commit

Permalink
Merge pull request #319 from ajnart/master
Browse files Browse the repository at this point in the history
Fixing bug #318
  • Loading branch information
boltgolt authored Jun 4, 2020
2 parents 68f431e + 9d35ccf commit d001f0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
video_capture = pyv4l2_reader(config.get("video", "device_path"), config.get("video", "device_format"))
else:
# Start video capture on the IR camera through OpenCV
video_capture = cv2.VideoCapture(config.get("video", "device_path"))
video_capture = cv2.VideoCapture(config.get("video", "device_path"), cv2.CAP_V4L)

# Force MJPEG decoding if true
if config.getboolean("video", "force_mjpeg", fallback=False):
Expand Down
2 changes: 1 addition & 1 deletion src/cli/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
sys.exit(12)

# Start capturing from the configured webcam
video_capture = cv2.VideoCapture(config.get("video", "device_path"))
video_capture = cv2.VideoCapture(config.get("video", "device_path"), cv2.CAP_V4L)

# Force MJPEG decoding if true
if config.getboolean("video", "force_mjpeg", fallback=False):
Expand Down
2 changes: 1 addition & 1 deletion src/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def stop(status):
video_capture = pyv4l2_reader(config.get("video", "device_path"), config.get("video", "device_format"))
else:
# Start video capture on the IR camera through OpenCV
video_capture = cv2.VideoCapture(config.get("video", "device_path"))
video_capture = cv2.VideoCapture(config.get("video", "device_path"), cv2.CAP_V4L)

# Force MJPEG decoding if true
if config.getboolean("video", "force_mjpeg", fallback=False):
Expand Down

0 comments on commit d001f0f

Please sign in to comment.