Metavision Designer Optical Flow Sample

The Python bindings of Metavision Computer Vision API can be used to compute the optical flow of objects moving in front of the camera. The optical flow is computed in a sparse way in the sense that it is computed for clusters of events.

The sample shows how to estimate and display a sparse optical flow.

Expected Output

Metavision Optical Flow sample visualizes events and the output optical flow with arrows indicating direction and magnitude of motion:

Expected Output from Metavision Flow Sample

How to start

To start the sample based on the live stream from your camera, run:


python3 /usr/share/metavision/designer/cv/samples/python/


python "C:\Program Files\Prophesee\share\metavision\designer\cv\samples\"

To start the sample based on recorded data, provide the full path to a RAW file (here, we use the file pedestrians.raw from our Sample Recordings):


python3 /usr/share/metavision/designer/cv/samples/python/ -i pedestrians.raw


python "C:\Program Files\Prophesee\share\metavision\designer\cv\samples\python\" -i pedestrians.raw

To check for additional options:


python3 /usr/share/metavision/designer/cv/samples/python/ -h


python "C:\Program Files\Prophesee\share\metavision\designer\cv\samples\python\" -h