Simple Recorder using Python
The sample metavision_simple_recorder.py
shows how to use the Python API of Metavision Core SDK to record events
from a live Camera in a RAW file.
The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/python_samples/metavision_simple_recorder
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
Expected Output
The sample record CD events streamed from an event-based device in a RAW file and displays them in a window:
How to start
To start the sample, plug your camera and run:
python metavision_simple_recorder.py
When you quit the program (by pressing Q or ESC key), a RAW file is saved in your local folder
or in the folder you specified with the option -o
. You can then visualize this file using any
of our viewer, for example the metavision_simple_viewer.py.
Note
If you use this sample to record data, you should perform some checks and configuration to optimize the quality of the data you will collect. Please refer to the section Recording from live camera from Metavision Studio page where we mention camera installation, lighting conditions, focus adjustment and multiple camera settings (biases, ROI, Anti-Flicker etc.).