Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple, libv4l2 based frame grabber

Project Description

A simple, libv4l2-based frames capture library.



Libv4l2 is packaged by various distributions:

Debian and Ubuntu

# apt-get install libv4l-dev


# dnf install libv4l-devel

Arch Linux

# pacman -S v4l-utils


To install PyV4L2Camera make sure you have Cython installed and type:

$ pip install PyV4L2Camera

PyV4L2Camera is only compatible with Python 3.


from import Camera

camera = Camera('/dev/video0')
frame = camera.get_frame()

The returned frame is of bytes type and contains pixels packed using RGB24 format. To learn more see V4L2_PIX_FMT_RGB24 description.

Example of frames to numpy arrays conversion can be found in the examples directory.


Contributions are always welcome!

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyV4L2Camera-0.1a2.linux-x86_64.tar.gz (186.4 kB) Copy SHA256 Checksum SHA256 3.5 Dumb Binary Jun 12, 2016
PyV4L2Camera-0.1a2-py3.5-linux-x86_64.egg (190.3 kB) Copy SHA256 Checksum SHA256 3.5 Egg Jun 12, 2016
PyV4L2Camera-0.1a2.tar.gz (63.4 kB) Copy SHA256 Checksum SHA256 Source Jun 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting