Viewer Application
This application allows you to stream events from an event-based device or a file (RAW or HDF5) and visualize them on a screen. It demonstrates how to use Metavision SDK Driver API for visualizing events stream.
The source code of this application can be found in <install-prefix>/share/metavision/sdk/driver/apps/metavision_viewer
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
Note
The related C++ code shows how to use Metavision SDK classes to record a RAW file as well as set and save bias parameters. To achieve the same operations with Python, you can refer to this link .
Expected Output
The application visualizes events acquired from an event-based camera or a RAW file:

How to start
You can directly execute pre-compiled binary installed with Metavision SDK or compile the source code as described in this tutorial.
To start the viewer based on the live stream from your camera, run:
Linux
metavision_viewer
Windows
metavision_viewer.exe
To start the viewer based on recorded data, provide the full path to a RAW file (here, we use a file from our Sample Recordings):
Linux
metavision_viewer -i traffic_monitoring.hdf5
Windows
metavision_viewer.exe -i traffic_monitoring.hdf5
To use the application to record the live stream from your camera, use the -o
option and provide the full path
to an output RAW file:
Linux
metavision_viewer -o /path/to/my_record.raw
Windows
metavision_viewer.exe -o /path/to/my_record.raw
To check for additional options:
Linux
metavision_viewer -h
Windows
metavision_viewer.exe -h