Camerata
A library for querying and capturing from cameras, based on nokhwa crate.
Examples
Query available cameras:
print(*camerata.query(), sep='\n')
Example output:
CameraInfo(index=2, name='UVC Camera (046d:0809)', description='Video4Linux Device @ /dev/video2', misc='')
CameraInfo(index=0, name='USB2.0 VGA UVC WebCam: USB2.0 V', description='Video4Linux Device @ /dev/video0', misc='')
Save an image (note: requires pillow to be installed):
import camerata
import time
cam = camerata.Camera(camerata.query()[0]) # Open a camera
while cam.poll_frame_pil() is None: # Note that .poll_frame_* functions never blocks
time.sleep(0.1) # Wait until we get at least one frame from the camera
#time.sleep(1) # You might want to wait a bit longer while camera is calibrating
img = cam.poll_frame_pil()
img.save("img.png")
See examples/ for more
Metadata
Release files for camerata 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| camerata-0.5.0.tar.gz | 18.8 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| camerata-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
| camerata-0.5.0-cp39-none-win_amd64.whl | CPython 3.9 | none | Windows x86-64 | Details |
| camerata-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl | CPython 3.9 | CPython 3.9 | macOS 10.7+ x86-64 | Details |
Total release size: 11.8 MB
Release files / camerata-0.5.0.tar.gz
| Download URL | camerata-0.5.0.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac7dcffa4a2cc69d8e68aa37c64c3960c60115a110b3808c4e65dcb7a0b5b441
|
|
BLAKE2b-256 checksum How to use checksums |
6f1e4d0805725f960b795679d7a05861e2727cfd5207f049f8f37e1590ce4861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / camerata-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | camerata-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
d2aab4baac203e4219e2d50f52b6e98530c0ac87266b7117ae2db4e218f1e5e3
|
|
BLAKE2b-256 checksum How to use checksums |
d66071969a0e94e732f9e8d2a100e08e0ea1a350bf540a294fa3c80849467261
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / camerata-0.5.0-cp39-none-win_amd64.whl
| Download URL | camerata-0.5.0-cp39-none-win_amd64.whl |
|---|---|
| Size | 300.4 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
092b22c0a621a502d3e28c86467f7caef56fcf57b1d4410869ab012179b46bec
|
|
BLAKE2b-256 checksum How to use checksums |
cf6a768195932b89f12ad0dd8d35432e022000516efad0e3a6daa321622fe436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / camerata-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl
| Download URL | camerata-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl |
|---|---|
| Size | 530.8 kB |
| Tags | CPython 3.9 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
c2597d7d5192dc0e19bc18dfe6f02dfdee78ff7ce714a6e7c0dd0a9b05d60862
|
|
BLAKE2b-256 checksum How to use checksums |
e114590b1148c92adcbca503f29b785b4520b45adb1ec7d88e13dc0959abc63e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Security for camerata 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.