Note
This C++ tool has a corresponding Python sample.
Data Rate Viewer using C++
The tool metavision_data_rate
filters noise and displays event rate from a live camera or an event file (RAW or HDF5).
The noise is filtered using the following algorithms:
By default, the Activity noise filter is already activated. You can activate other filters and adjust their thresholds via command-line options.
The source code of this tool can be found in <install-prefix>/share/metavision/sdk/cv/cpp_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 tool visualizes CD event rate from an event-based device or a event file (RAW or HDF5) after filtering:
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 tool based on recorded data, provide the full path to a file
(Here, we use the file spinner.hdf5
from our Sample Recordings):
Linux
metavision_data_rate -i spinner.hdf5
Windows
metavision_data_rate.exe -i spinner.hdf5
To start the tool based on a live stream from your camera, run:
Linux
metavision_data_rate
Windows
metavision_data_rate.exe
To start the sample on live stream with some camera settings (like the biases mentioned above, or ROI, Anti-Flicker, STC etc.)
loaded from a JSON file, you can use
the command line option --input-camera-config
(or -j
):
Linux
./metavision_data_rate -j path/to/my_settings.json
Windows
metavision_data_rate.exe -j path\to\my_settings.json
To check for additional options:
Linux
./metavision_data_rate -h
Windows
metavision_data_rate.exe -h