Viewer SDK HAL Sample

The sample in <install-prefix>/share/metavision/sdk/core/samples/metavision_viewer_sdk_hal/metavision_viewer_sdk_hal.cpp shows how to use Metavision HAL to stream events from an event-based device or a RAW file.

Expected Output

The sample visualizes CD events from an event-based device or a RAW file:

Expected Output from Metavision Viewer HAL sample

How to start

First, compile the sample as described in this tutorial.

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

Linux

./metavision_viewer_sdk_hal

Windows

metavision_viewer_sdk_hal.exe

To start the sample based on recorded data, provide the full path to a RAW file (here, we use the file from Metavision Dataset):

Linux

./metavision_viewer_sdk_hal -i spinner.raw

Windows

metavision_viewer_sdk_hal.exe -i spinner.raw

To check for additional options:

Linux

./metavision_viewer_sdk_hal -h

Windows

metavision_viewer_sdk_hal.exe -h