Skip to main content

High-performance EVT 3.0 decoder for Prophesee event cameras

Project description

EVT3 Python Bindings

High-performance EVT 3.0 decoder for Prophesee event cameras with zero-copy numpy support.

Installation

# From source (requires Rust toolchain)
cd evt3-python
pip install maturin
maturin develop

# Or build a wheel
maturin build --release
pip install target/wheels/evt3-*.whl

Usage

import evt3
import numpy as np

# Decode a raw file
events = evt3.decode_file("recording.raw")

# Access metadata
print(f"Decoded {len(events)} events")
print(f"Sensor: {events.sensor_width}x{events.sensor_height}")

# Access as numpy arrays
x = events.x  # np.ndarray[np.uint16]
y = events.y  # np.ndarray[np.uint16]
p = events.polarity  # np.ndarray[np.uint8] (0=OFF, 1=ON)
t = events.timestamp  # np.ndarray[np.uint64] (microseconds)

# Short aliases also work
p = events.p
t = events.t

# Get as dictionary (useful for pandas)
import pandas as pd
df = pd.DataFrame(events.to_dict())

# Decode with trigger events
events, triggers = evt3.decode_file_with_triggers("recording.raw")
trigger_times = triggers.timestamp
trigger_values = triggers.value

# Decode raw bytes (for streaming)
with open("recording.raw", "rb") as f:
    raw_bytes = f.read()
events = evt3.decode_bytes(raw_bytes, sensor_width=1280, sensor_height=720)

Performance

The decoder is implemented in Rust with careful attention to performance:

  • Streaming buffer decoding to handle large files
  • Columnar data layout for cache-efficient numpy access
  • Minimal memory allocations during decoding

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

evt3-0.1.0-cp311-cp311-win_amd64.whl (147.5 kB view details)

Uploaded CPython 3.11Windows x86-64

evt3-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (249.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

evt3-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (216.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file evt3-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: evt3-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 147.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for evt3-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 65381b0115315ffb0fa3ab388bb7478d73422c6d8d7d8f968a438199dd0455a3
MD5 ab68916c47927bfcaf8a8b57c56d1bca
BLAKE2b-256 630227c05f6e5e52c68d6d1897af12256ac55e0ff76de8117c060d8e04e7d144

See more details on using hashes here.

Provenance

The following attestation bundles were made for evt3-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on muthmann/evt3

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

File details

Details for the file evt3-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for evt3-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 787f68b522b3e4d3ad4b2a1cfa2174bc8dafcc7f7b29b5dbf2290b0df9f158c2
MD5 f80f9c5af6bb29782aae934bc907ddc8
BLAKE2b-256 49d795ec8643b75968f32421b1b7a747e3ce3b7f771912128d6a10ad1aa83429

See more details on using hashes here.

Provenance

The following attestation bundles were made for evt3-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: release.yml on muthmann/evt3

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

File details

Details for the file evt3-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for evt3-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4930b20474bb912716ebfd47c55ee512e137d9dae7a5afe37ea451fcf51fefb5
MD5 684ab50f1260a48db54c4e0fff759d4c
BLAKE2b-256 6146971e92e73c3ad158c0ccf8404088fd219fe41d3073639fa4672371ec6220

See more details on using hashes here.

Provenance

The following attestation bundles were made for evt3-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on muthmann/evt3

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