Skip to main content

No project description provided

Project description

OmniCamera

A library for querying and capturing from cameras, based on nokhwa crate.

Examples

Query available cameras:

print(*omni_camera.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 omni_camera
import time
cam = omni_camera.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

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

omni_camera-0.6.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distributions

omni_camera-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl (509.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

omni_camera-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl (491.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

omni_camera-0.6.1-cp39-none-win_amd64.whl (297.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

omni_camera-0.6.1-cp39-cp39-macosx_10_12_x86_64.whl (477.4 kB view details)

Uploaded CPython 3.9 macOS 10.12+ x86-64

File details

Details for the file omni_camera-0.6.1.tar.gz.

File metadata

  • Download URL: omni_camera-0.6.1.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for omni_camera-0.6.1.tar.gz
Algorithm Hash digest
SHA256 a80f20f7c56751774b5ce2949692cdf1c6140c2d97df53b2ce24fa29c786e365
MD5 116c7372aa9a2cab86edff2228eed108
BLAKE2b-256 5bb1e64ad8e6246b8fab28eb390dc7dcd981d92c048dd7c20047adce7421b799

See more details on using hashes here.

File details

Details for the file omni_camera-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for omni_camera-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3a8cb1b84f94cb3a4654cfefab4b9857d6e5f60ea1dc043357c8961ec0c2f89d
MD5 ee760f3fc06ab4be0b4af562f422c4bc
BLAKE2b-256 dfb8876536957b60fabe395e228ab27ea151a01a497cda4f945367d7ec9cb163

See more details on using hashes here.

File details

Details for the file omni_camera-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for omni_camera-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8f4967a73d533712e62a96278fd6c9af2ad2a93f3c0845b5d58724eb0a49a228
MD5 593d89baf046f03f6b9af610e7c3a637
BLAKE2b-256 2f532874115cdd4be2648a61732f06db28df3d5ebf637123ec4a22ce900fd0e0

See more details on using hashes here.

File details

Details for the file omni_camera-0.6.1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for omni_camera-0.6.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 c7a0281d2aecd5b982ae47857a959d41dd979d5dcea0fa2b98a7cdca24b1838a
MD5 48a7a140aff4a1fb86f265f1330c9788
BLAKE2b-256 d91523d555b662bab0878ee91041a644f7094deb99fbeffabd2703eb40b78ab5

See more details on using hashes here.

File details

Details for the file omni_camera-0.6.1-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for omni_camera-0.6.1-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 053fa41fef89714959df21d879f96a37e4711b4b8bf1c6ae0a978eabfe5c1e78
MD5 b6a2c79332a51907b81901b18479ca66
BLAKE2b-256 c14cf892391187adfa5c54472050329e113878477e32edb2e6d5eb79c7f0e05f

See more details on using hashes here.

Supported by

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