Video to Event Simulator
This Python script allows you to transform frame-based image or video into event-based counterpart.
The source code of this script can be found in <install-prefix>/share/metavision/sdk/core_ml/python_samples/viz_video_to_event_simulator
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
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
orjpg
format) or video (inmp4
oravi
format).
How to start
An example to run the script on an MP4 video:
python viz_video_to_event_simulator.py /path/to/video.mp4
To find the full list of options, run:
python viz_video_to_event_simulator.py -h