Skip to main content

read and write files from neuromorphic cameras

Project description



read and write different file formats from neuromorphic cameras such as .dat, .es or .csv and also amazing animal

If you're planning to read .aedat files, take a look at dv-python

Supported formats

version read write
.dat 1/2
.es 2.x
.csv -
.aedat4 4


pip install loris

How to loris

Read a file, for example a .dat file and loop over all events
import loris
my_file = loris.read_file("/path/to/my-file.dat")
events = my_file['events']

for event in events:
    print("ts:", event.t, "x:", event.x, "y:", event.y, "p:", event.p)
Write events from an array to an .es file
ordering = "xytp"  # corresponds to the order in your array
loris.write_events_to_file(event_array, "/path/to/", ordering)
Write structured events (with dtypes) to an .es file
loris.write_events_to_file(structured_event_array, "/path/to/")


Project details

Download files

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

Files for loris, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size loris-0.5.0.tar.gz (8.9 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page