Note
This Python sample has a corresponding C++ sample.
Time Surface Sample using Python
The sample metavision_time_surface.cpp
shows how to use the algorithm MostRecentTimestampBuffer
which is a Python binding of Metavision Core SDK to compute the Time Surface of the CD events
and to display it using our SDK UI module.
The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/python_samples/metavision_time_surface
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
How to start
To start the sample based on the live stream from your camera, run:
Linux
python3 metavision_time_surface.py
Windows
python metavision_time_surface.py
To start the sample based on recorded data, provide the full path to an event file (here, we use the file spinner.raw
from our Sample Recordings):
Linux
python3 metavision_time_surface.py -i spinner.raw
Windows
python metavision_time_surface.py -i spinner.raw