Skip to main content

Python event camera drivers for Inivation and AEStream

Project description

C++/Python event camera drivers

C++ drivers wrapped in a Python library for interfacing with event-based cameras, supporting both Prophesee and iniVation devices.

Features

  • Support for iniVation DVS cameras via libcaer

  • Python bindings using nanobind

  • Cross-platform support (Linux, macOS, Windows)

  • Planned support for Prophesee event-based cameras via OpenEB (see issue #1)

Installation

From PyPI

pip install event-camera-drivers

From Source

Using Nix (recommended)

If you have Nix installed with flakes enabled:

# Enter development environment
nix develop

# Install in development mode
pip install -e .

Manual Installation

Prerequisites:

  • CMake (3.16 or higher)
  • C++ compiler with C++17 support
  • Python 3.9 or higher
  • OpenEB 5.0.0
  • libcaer
  1. Clone the repository:
git clone https://github.com/aestream/event-camera-drivers
cd event-camera-drivers
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install development dependencies:
pip install scikit-build-core pytest build nanobind
  1. Install in development mode:
pip install -e .

Usage

import event_camera_drivers as evd

camera = evd.InivationCamera()
for packet in camera:
    print(packet)

Or, in conjuction with Faery (read more in the Faery documentation):

import faery

faery.events_stream_from_inivation_camera()
  ...

Development

Setup Development Environment

  1. Install Nix package manager (recommended):
curl -L https://nixos.org/nix/install | sh
  1. Enable Nix flakes (if not already enabled).

  2. Enter development environment:

nix develop

Building Wheels

pip install build
python -m build

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under LGPLv3 - see the LICENSE file for details.

Acknowledgments

  • OpenEB - Prophesee's Open Event-Based Vision SDK
  • libcaer - Minimal C library to access neuromorphic sensors

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

event_camera_drivers-0.1.2.tar.gz (18.0 kB view details)

Uploaded Source

Built Distributions

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

event_camera_drivers-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (632.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (632.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (633.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file event_camera_drivers-0.1.2.tar.gz.

File metadata

  • Download URL: event_camera_drivers-0.1.2.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for event_camera_drivers-0.1.2.tar.gz
Algorithm Hash digest
SHA256 be7823fa89e388ba37387693b105396ad6e8376c54fd74d4a3f630a016ea1c56
MD5 af0625ce4398fb6d3c84f632c32ee9ec
BLAKE2b-256 4f066bed42ff48faf712c75f9337f6b2694069361583e344d053982802a63c3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2.tar.gz:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file event_camera_drivers-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b11e2aeb638c908ad1c84d3e813d9aa93d2afa9237e7bf7f254a91e3e8697ee
MD5 2632f3bd6dd4ddd90c02b9d4694aeb94
BLAKE2b-256 4d1a9159d1c7230338cd6caa13fd85325d2adbb7057f5a27943656f836f5f8dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file event_camera_drivers-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0b813e52d68fc8b8f97408319410cf1b77b2d9d93c2d6eab5127ea6ac5af73b
MD5 1f543767ec3db82441e0ed05d8dd7218
BLAKE2b-256 998a470460d32a4af04fa226314d1a989df08755b2582e2aa459553eba40ad97

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file event_camera_drivers-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 718b7be1eccb0d14c725f8b72547f8a623bb6f565236d5adc264b21aeda003d1
MD5 61b8e063f233ce473ca8dc0764290e6d
BLAKE2b-256 05612152836b2cbe0b6fe2f4b236d7db1c1e4e8e17458ade77c427ed564006aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file event_camera_drivers-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5945f91a3d105506fad4237f70094188256e1b9816d6bfa3c18b565c7830680
MD5 48cd1dfbd468e7baff3e8561bc924beb
BLAKE2b-256 b8142a92bbe612e90b4908c1347acb7d81d2926132a6db34ad3ac34f5efac7a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file event_camera_drivers-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 afb83b35bc2af6faa6bde6513aae366c65e1d989eba31d08181b5358a4a7b2ef
MD5 ee84d2e093060c016c5674cc8b4a03d5
BLAKE2b-256 72fca2f39bc3d7be0ec03983d1e5b462f8f911adfc6a60a1a8da20a1586e0cb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on aestream/event-camera-drivers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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