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.0.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.0-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.0-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.0-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.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: event_camera_drivers-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 40677adcef64877ffd494072a5058b1c00c7c92f057ef784c89149ec2b4c5fd1
MD5 fb143fd58085a1071e9708dcf237a188
BLAKE2b-256 5638864913663429a02907e7db56e768a2fe4e98e97b0e41dd0ed128bc6c16db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 928d76fa3e4533518567d00e7c2d71b57eeabf0cd3cb10931bb135f71befc8bd
MD5 764a8f001a25d2ef76e1782861ace458
BLAKE2b-256 30414a010bbb6be91f23a01adadf4cb1ba13dbd3ae9555a6cce0cee17b295a3c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60dcc55fdbfdc1e11ee7846577345ea78229a092965a2fffd0092b5aa70710e8
MD5 793900dd08a2d6482e9686d046c88ebd
BLAKE2b-256 1bd0b62e329f8a7375b4f5c87f7d0e8ff7252662da1a777d39aaea15ceb2cd75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23b822faea01f907591edb4870e8aa50f5d91127b6ab4a233d93619fb218a454
MD5 8126fd5f5510bad40cbe4d46f48a3b2e
BLAKE2b-256 7302d4c893f7eb6076f54872536daf2098b3dd28759e7d8252acc562f6613b94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 290da3b19fe579df2a270339fca30f37a265d8857f5fa527c593e251f612e747
MD5 a194174bc51cd96745a72119f589bf0c
BLAKE2b-256 c453537b6e0845068e8b8bdc1ab9e2ce2465863d858baafe6ad3f745c11ea983

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for event_camera_drivers-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c357ae0c4819512553b77bf7cfb3fc92d9641d9beb9b0348971c63cbd1f19e21
MD5 bd6efa8a51fe160ba8c80771ae4c9296
BLAKE2b-256 b9e378f2bb603a0ee4f9b0a607af3e705a37664ad0430a1675545bda1ea659a8

See more details on using hashes here.

Provenance

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