Note

This Python sample is available only with our Professional plan.

Frame to Event

This Python script allows you to transform frame-based image or video into event-based counterpart.

Expected Output

When launched on a video with default options, the script shows two windows with:

  • the original video

  • the corresponding event-based video produced by the simulator

When used with the -o option, a DAT file containing the simulated events is generated.

Setup & requirements

To run the script, you need:

  • a full path to the image file (in png or jpg format) or video (in mp4 or avi format).

How to start

An example to run the script on an MP4 video:

Linux

python3 viz_event_simulator.py /path/to/video.mp4

Windows

python viz_event_simulator.py /path/to/video.mp4

To find the full list of options, run:

Linux

python3 viz_event_simulator.py -h

Windows

python viz_event_simulator.py -h