Skip to main content

Simple, libv4l2-based frame grabber

Project description

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

PyV4L2Camera

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

$ pip install PyV4L2Camera

PyV4L2Camera is only compatible with Python 3.

Usage

from PyV4L2Camera.camera 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

Contributions are always welcome!

Authors

Dominik Pieczyński and contributors.

Project details


Download files

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

Source Distribution

PyV4L2Camera-0.1a1.tar.gz (28.0 kB view details)

Uploaded Source

File details

Details for the file PyV4L2Camera-0.1a1.tar.gz.

File metadata

  • Download URL: PyV4L2Camera-0.1a1.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyV4L2Camera-0.1a1.tar.gz
Algorithm Hash digest
SHA256 57428e2bf96296edf4c661f44c0f249946b8f40c8574519b07c7df285a5d39bc
MD5 ac07f190cded37c11893a16d43db510e
BLAKE2b-256 3f2f105f3cdc5d8744723416431eb4dca0e7ab2221b18a006df4bd5fa2091fc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page