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.2.0.tar.gz (18.8 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.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (636.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (636.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

event_camera_drivers-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (636.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: event_camera_drivers-0.2.0.tar.gz
  • Upload date:
  • Size: 18.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 55e0883605d9ba7eb12f4aa52f106a5c6ffeee5aed29de0abaaeac57b596675f
MD5 29b4fa697e775133f29dad9ee639d917
BLAKE2b-256 585f33447592148cb27d693472eb4603926f8f2d6ea8803e1e1f34f969e96491

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 171c833f9be985c52ea4b010e0257604bfcd36d039a0705d4b4b54434375e557
MD5 2b026de192405ae95dc5b83cff0bd8ad
BLAKE2b-256 a9e8e445b3af35e059a78b9241bdd0fe14a7761bf8883647815d832d48b0024b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b3db6fc441a7d3144db143fec466fba64a7f9041d58a53a3aeb9e9914f2db879
MD5 562b6b062697d24f5e519aae99f17ada
BLAKE2b-256 7424063bd61f29033c23b711fda9fb3c83f0c7c16a2ed66d15c166fd19f86fd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f4f45dc2629ecf8dbd470c59a581f0989515e559b39e322381167daf6748099
MD5 db4479dc4d13be724270b0139b1aabe9
BLAKE2b-256 01eac8896ca120e17fab6105e846b4e18c92f8d10043353fb28649ca2f7f8c04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af8b57a50ace991698491f3d80aaa4fd1fb1d64532b1615bb5669bcd0868443c
MD5 5774b496da15415e9ee82bcc93bfe0ea
BLAKE2b-256 249eae22b3e55e31c463c5b328b4bdb36606953ee798eb07a5c9fa18ff328cfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5ce3f09ff259d70d9b790cb40210d236346d237b7dde95e65e26a54fba3ffde
MD5 106235865e9764ad199393e545db85c5
BLAKE2b-256 52d53e2da020085358eb96cc4caf12d7185ff5130ab6445d0a6958cdbe4c32db

See more details on using hashes here.

Provenance

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