Skip to main content

read and write files from neuromorphic cameras

Project description

Loris

Travis

With loris you can read and write different file formats from neuromorphic cameras such as .aedat4, .dat, .es or .csv. Loris is also an amazing animal

Supported formats

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

Install

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/my-file.es", ordering)
Write structured events (with dtypes) to an .es file
loris.write_events_to_file(structured_event_array, "/path/to/my-file.es")

loris

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

loris-0.5.1.tar.gz (8.9 MB view details)

Uploaded Source

File details

Details for the file loris-0.5.1.tar.gz.

File metadata

  • Download URL: loris-0.5.1.tar.gz
  • Upload date:
  • Size: 8.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for loris-0.5.1.tar.gz
Algorithm Hash digest
SHA256 fedff91268cb18f99dc8a3ecd26bf072c749d17c8e61695930c278d0f9b7e173
MD5 4b4f7de05414e63b7910b3146a73dd3c
BLAKE2b-256 0f8f3b4e763e118ba549fe39e5fe8a3545e8539c1ad04032bdc35eba270b7bbe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page