Skip to content

Instantly share code, notes, and snippets.

@lrob
lrob / opencv_capture_v4l2.py
Last active September 3, 2018 08:23 — forked from royshil/opencv_capture_v4l2.py
A way to set V4L2 camera params for OpenCV, when cv2.VideoCapture doesn't work. This requires the python-v42lcapture module (https://github.com/gebart/python-v4l2capture)
#!/usr/bin/env python
import numpy as np
import cv2
import os
import v4l2capture
import select
if __name__ == '__main__':
#cap = cv2.VideoCapture(0)