Skip to main content

Simple v4l2 for pyv4l2

Project description

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)

Project details


Release history Release notifications

This version
History Node

1.0.2

History Node

1.0.1

History Node

0.1.5

History Node

0.1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyv4l2-1.0.2-py3.5-linux-x86_64.egg (151.5 kB) Copy SHA256 hash SHA256 Egg 3.5 Aug 29, 2016
pyv4l2-1.0.2.tar.gz (54.2 kB) Copy SHA256 hash SHA256 Source None Aug 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page