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.1.tar.gz (17.9 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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (639.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (639.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (640.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (640.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (641.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: event_camera_drivers-0.1.1.tar.gz
  • Upload date:
  • Size: 17.9 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.1.tar.gz
Algorithm Hash digest
SHA256 4983227a2088cc63ad65018be61ff41cc828f997c4a28f621ca6ab5780fd2474
MD5 38dec325db6e08aa24322e61ee8382ec
BLAKE2b-256 6a065b6367f5cc218bced0345217705b09bd57a026b9dd46f97bcac5bb768e55

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1.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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7fc272363d0077f02af4be6f76fdc591e07439573a7b01f5bb3cbf357388174
MD5 186e788560144cec3e888fda279357b0
BLAKE2b-256 4604aae2b2599603486f46837dca57f01a63d9799b5a3f0cbbedf33b1dd34b37

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1-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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d4bc1aac229c1ed759e8b6d94ab87807f4d65f1cd050c6f3d4a9fd176ddf0fc
MD5 7e57491d6242763149603ba9154b58fe
BLAKE2b-256 a94851e91ca7d435c4bdd258897ddecbca4c5a07fb800c50dcd79ef54643baa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1-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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b120e7b1439541872743ca3278df2339310180d77c00d5b2715aa8f247fa5dc
MD5 a856a687d68c9fa6ccbbb50ba65a81bb
BLAKE2b-256 a42abd9ac29f5ff1349c44d3a0dd94a66af17fcdf7aa27aff1bdceaaf1f29b48

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1-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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da2c50efc1420bd270a06b68ccd08de85e8c26d084394eff50f6af528bd498de
MD5 4dd741882f9496d036f79c4c7ee14293
BLAKE2b-256 0ed86d84285f92d7b8dce1e37c81f1e1cbae38801b92fb68993d7913e292bd97

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1-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.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_camera_drivers-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8d5b7a8e8f8093247014cd36a7201f5e4ac243061df6dce74980742f5537f756
MD5 8a42e9bff76e31c7594a4bd24c90509a
BLAKE2b-256 2a961545364527af8d55b0fc56b20ccc2182d2a2ac48810bfbca281c8ebe9b04

See more details on using hashes here.

Provenance

The following attestation bundles were made for event_camera_drivers-0.1.1-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