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 an event file (RAW, DAT or HDF5)
It also allows you to filter noises via keyboard keys, including:
C - apply
metavision_sdk_cv.AntiFlickerAlgorithm
andmetavision_sdk_cv.SpatioTemporalContrastAlgorithm
consecutivelyE - remove all filters
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:
How to start
To start the sample based on a live stream from your camera, run:
python metavision_data_rate.py
To start the sample based on recorded data, provide the full path to an event file
(Here, we use the DAT file spinner.dat
from our Sample Recordings):
python metavision_data_rate.py -i spinner.dat