aestream

AEStream library for streaming address-event representations.

Please refer to https://github.com/aestream/aestream for usage

class aestream.Backend(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
GeNN = 0
Jax = 1
Numpy = 2
Torch = 3
class aestream.Camera(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Inivation = 0
Prophesee = 1
class aestream.Event(*args, **kwargs)
property polarity

(self) -> bool

property timestamp

(self) -> int

property x

(self) -> int

property y

(self) -> int

class aestream.FileInput(*args, **kwargs)

Reads events from a file.

Parameters:
  • filename (str) – Path to file.

  • shape (tuple) – Shape of the camera surface in pixels (X, Y).

  • device (str) – Device name. Defaults to “cpu”

  • ignore_time (bool) – Whether to ignore the timestamps for the events when streaming. If set to True, the events will be streamed as fast as possible. Defaults to False.

load()
read(backend: Backend = Backend.Numpy)
class aestream.UDPInput(*args, **kwargs)

Reads events from a UDP socket.

Parameters:
  • shape (tuple) – Shape of the camera surface in pixels (X, Y).

  • device (str) – Device name. Defaults to “cpu”

  • port (int) – Port to listen on. Defaults to 3333.

read(backend: Backend = Backend.Numpy)