Skip to main content

Pure-Rust GenICam stack for Python: discover, control, and stream GigE Vision / USB3 Vision cameras

Project description

viva-genicam (Python)

Pure-Rust GenICam stack with Python bindings. Discover, control, and stream GigE Vision and USB3 Vision cameras from Python — no aravis, no C toolchain, just a wheel.

pip install viva-genicam
import viva_genicam as vg

cams = vg.discover(timeout_ms=500)
cam = vg.connect_gige(cams[0])

print(cam.get("DeviceModelName"))
cam.set_exposure_time_us(10_000.0)

with cam.stream() as frames:
    for frame in frames:
        arr = frame.to_numpy()          # NumPy (H, W) or (H, W, 3) uint8
        print(frame.width, frame.height, frame.pixel_format)
        break

See the documentation for the full API.

Build from source

uv venv .venv
uv pip install --python .venv/bin/python maturin numpy pytest
uv run --python .venv/bin/python maturin develop -m crates/viva-pygenicam/Cargo.toml

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

viva_genicam-0.2.4.tar.gz (205.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viva_genicam-0.2.4-cp39-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file viva_genicam-0.2.4.tar.gz.

File metadata

  • Download URL: viva_genicam-0.2.4.tar.gz
  • Upload date:
  • Size: 205.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for viva_genicam-0.2.4.tar.gz
Algorithm Hash digest
SHA256 681c1bfa32a9557435da236861a92e52fd655dabde44a1026e17a7bd7ba08d32
MD5 e48f92bd9778c9d4bf7397254818fe9d
BLAKE2b-256 4fdb52cd8ea7cfe62aa60e163e45e8593fed64adf8a66860d8f58ba1a611d992

See more details on using hashes here.

File details

Details for the file viva_genicam-0.2.4-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for viva_genicam-0.2.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85e35a1fd8ffec274495e6fbb7fdd98176663831a30bf255be65824713ec9e8f
MD5 e311ad78c45ff3768fafe5d32f8a1d26
BLAKE2b-256 966a9ebbc76b3a4d9bd42717da6c93f40671357f4b8eedd8f4297e0af580d9ee

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