This Python sample has a corresponding C++ sample.
Filtering using Python
metavision_filtering.py shows how to use the Python bindings of Metavision Core SDK to filter and display events.
It also shows how to capture the keys pressed in a display window and use them to modify the behavior of the stages
while the pipeline is running.
The following filters can be applied via keyboard keys:
metavision_sdk_core.PolarityFilterAlgorithmused to show only events of positive polarity
metavision_sdk_core.PolarityFilterAlgorithmused to show only events of negative polarity
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 events from an event-based device or a RAW file after filtering:
How to start
To start the sample based on the live stream from your camera, run:
To start the sample based on recorded data, provide the full path to a RAW file (here, we use the file
from our Sample Recordings):
python3 metavision_filtering.py -i spinner.raw
python metavision_filtering.py -i spinner.raw