You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

event-camera-drivers

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event-camera-drivers

Python event camera drivers for Inivation and AEStream

0.2.0
pipPyPI
Maintainers
1

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

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
  • Clone the repository:
git clone https://github.com/aestream/event-camera-drivers
cd event-camera-drivers
  • Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  • Install development dependencies:
pip install scikit-build-core pytest build nanobind
  • 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

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

  • Enter development environment:

nix develop

Building Wheels

pip install build
python -m build

Contributing

  • Fork the repository
  • Create a feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts