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 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:





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):


python3 -i spinner.dat


python -i spinner.dat