PyAER - Low-level Python APIs for Accessing Neuromorphic Devices

Yuhuang Hu

GitHub release PyPI - Python Version Build Status Build status license

Ubuntu macOS Raspbian Windows


  1. Install bleeding-edge libcaer dependency (RECOMMEND)

     $ sudo apt-get install build-essential cmake pkg-config libusb-1.0-0-dev
     # for macOS: $ brew install cmake pkg-config libusb
     $ git clone
     $ cd libcaer
     $ git checkout 88a8f54684ca0626ed4caa50a1f20414597bab18
     $ cmake -DCMAKE_INSTALL_PREFIX=/usr .  # for Linux
     # for macOS: cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
     $ make
     $ make install

    NOTE: To build libcaer on Windows, please follow this description.

    NOTE: For more information, see libcaer repo.

    NOTE: From 0.1.0a18, we support eDVS, you will need to install libserialport so that the package can work properly, follow the building instructions from here. Currently, this support is not built into the release since we are not clear how useful is this feature. If you are interested, you can build the project from scratch.

  2. Directly install from pypi (RECOMMEND)

     $ pip install pyaer -U
  3. Install from source

     $ git clone
     $ make install

Got a Linux?

libcaer relies on libusb based driver, you won’t be able to access the camera unless fixing the udev rules. Refer to details at here.

$ bash <(curl -s

Running Examples

The scripts folder provides some examples for you to play with:

  1. dvs128-test: you need OpenCV to run this example, note that if you are on Mac, OpenCV’s waitKey() function may cause delay of displaying frames.

  2. dvs128-glumpy: you need glumpy package to run this example. glumpy is a fast visualization library based on OpenGL. We found it’s very fast to render images. In our case, we use GLFW backend. If glumpy couldn’t find your installed GLFW on your system, make sure you set the GLFW_LIBRARY variable to /your/glfw/library/path/

  3. dvs240-test: you need OpenCV to run this example.

  4. dvs346-test: you need OpenCV to run this example.

More examples are coming…

Read more at project readme


Yuhuang Hu