Event Frame Viewer Sample using Python

The sample event_frame_viewer.py shows how to display Histo3D and Diff3D event frames RAW files using EventFrameIterator.

The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/python_samples/metavision_event_frame_viewer when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Expected Output

The sample visualizes histo/diff event frames. Here is an example using a Stream Data RAW file converted to Histo3D format using metavision_event_frame_generation C++ sample:

Expected Output from Metavision Event Frame Viewer sample

How to start

To start the sample on an Event Frame file named recording_histo.raw, run:

python metavision_event_frame_viewer.py recording_histo.raw

To export a video from an Event Frame file, run:

python metavision_event_frame_viewer.py recording_histo.raw --output-video-path recording_histo.avi