Note

This Python sample may be slow depending on the event rate of the scene and the configuration of the algorithm. We provide it to allow quick prototyping. For better performance, look at the corresponding C++ application.

Data Rate Viewer using Python

The sample metavision_data_rate.py displays event rate from a live camera or DAT/RAW input file. It also allows you to filter noises via keyboard keys, including:

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

Expected Output

The sample visualizes CD event rate from an event-based device or a RAW/DAT file after filtering:

Expected Output from Metavision Event-Rate Viewer

How to start

To start the sample based on a live stream from your camera, run:

Linux

python3 metavision_data_rate.py

Windows

python metavision_data_rate.py

To start the sample based on recorded data, provide the full path to a RAW or DAT file (Here, we use the file spinner.dat from our Sample Recordings):

Linux

python3 metavision_data_rate.py -i spinner.dat

Windows

python metavision_data_rate.py -i spinner.dat