Note

This Python sample may be slow depending on the event rate of the file. We provide it to allow quick prototyping. For better performance, look at the corresponding C++ sample.

CSV Viewer Sample using Python

The sample metavision_csv_viewer.py shows how to use Metavision SDK pipeline utility to read and display events from a CSV formatted event-based file (e.g. CSV file produced by metavision_raw_to_csv sample).

The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/python_samples/metavision_adaptive_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 events read from a CSV file:

Expected Output from Metavision CSV Viewer sample

How to start

To start the sample based on recorded data, provide the full path to a CSV file (for example, a RAW file from our Sample Recordings converted to CSV format using the metavision_raw_to_csv sample):

Linux

python3 metavision_csv_viewer.py -i FILE_NAME.csv

Windows

python metavision_csv_viewer.py -i FILE_NAME.csv

To check for additional options:

Linux

python3 metavision_csv_viewer.py -h

Windows

python metavision_csv_viewer.py -h