Skip to content

Instantly share code, notes, and snippets.

@royshil
royshil / opencv_capture_v4l2.py
Created March 4, 2016 18:59
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)
module test
go 1.17
require (
github.com/cbeuw/connutil v0.0.0-20200411215123-966bfaa51ee3 // indirect
golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 // indirect
)