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
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:
E - remove all filters
The source code of this sample can be found in
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
The sample visualizes CD event rate from an event-based device or a RAW/DAT file after filtering:
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 metavision_data_rate.py -i spinner.dat
python metavision_data_rate.py -i spinner.dat