Skip to content

duanhongyi/pyv4l2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyv4l2

A simple, libv4l2-based frames capture library. The pyv4l2 module based PyV4L2Camera development, I removed the v4lconvert_convert part of the code, the most original data to return the device. PyV4L2Camera module in https://gitlab.com/radish/PyV4L2Camera ,Thank you Dominik Pieczyński.

Installation

Libv4l2

Libv4l2 is packaged by various distributions:

Debian and Ubuntu

# apt-get install libv4l-dev

Fedora

# dnf install libv4l-devel

Arch Linux

# pacman -S v4l-utils

pyv4l2

To install pyv4l2:

$ pip install pyv4l2

pyv4l2 is only compatible with Python 3.

Usage

from pyv4l2.frame import Frame
from pyv4l2.control import Control

frame = Frame('/dev/video0')
frame_data = frame.get_frame()
control = Control("/dev/video0")
control.get_controls()
control.get_control_value(9963776)
control.set_control_value(9963776, 8)

About

simple v4l2 lib for python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages