Pre-release
This release is a pre-release and may not be stable for production use.
A simple, libv4l2-based frames capture library.
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 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!
Metadata
Release files for PyV4L2Camera 0.1a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyV4L2Camera-0.1a2.tar.gz | 63.4 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyV4L2Camera-0.1a2.linux-x86_64.tar.gz | Details | |||
| PyV4L2Camera-0.1a2-py3.5-linux-x86_64.egg | Legacy Egg format | - | - | Details |
Total release size: 440.1 kB
Release files / PyV4L2Camera-0.1a2.tar.gz
| Download URL | PyV4L2Camera-0.1a2.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dff80cf3391f9c38ba0803895e9b84e83ba5e53ffe8174b124353f9cf256a65
|
|
BLAKE2b-256 checksum How to use checksums |
1817ada64d9db6ab32ed1271773c1ec9b7b69c41922fea0127daf846169e71c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / PyV4L2Camera-0.1a2.linux-x86_64.tar.gz
| Download URL | PyV4L2Camera-0.1a2.linux-x86_64.tar.gz |
|---|---|
| Size | 186.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d23f3acbcdd4d155a904dff78f07b1c4f589561c112de16281702a8a4ac799d
|
|
BLAKE2b-256 checksum How to use checksums |
a78a1cd994b4d9f8319881f32d8385f53d524e4941bcf4f6a2c942cddc7a2521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / PyV4L2Camera-0.1a2-py3.5-linux-x86_64.egg
| Download URL | PyV4L2Camera-0.1a2-py3.5-linux-x86_64.egg |
|---|---|
| Size | 190.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
703704a9d47fe03d502a71e0f37111e3d9383c3e3a60ac4972dfb1aab26ef713
|
|
BLAKE2b-256 checksum How to use checksums |
b0685974db2f8b038fe59fe2e09f76a3f589d9e2360202b62bf1ad36eee709f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |