# Metavision Designer Tracking Sample¶

The Analytics API provides two algorithms for object tracking:

• metavision_designer_analytics.TrackingFilter which is a generic algorithm that tracks any moving object by default and can be tuned to more specific use cases

• metavision_designer_analytics.SpatterTrackerFilter which is a lighter implementation allowing to track simple non colliding moving objects

Each algorithm has a corresponding sample showing how to use it:

• <install-prefix>/share/metavision/designer/analytics/samples/metavision_generic_tracking.py

• <install-prefix>/share/metavision/designer/analytics/samples/metavision_spatter_tracking.py

## Expected Output¶

Metavision Tracking sample visualizes events and tracking results, such as bounding boxes around the tracked objects with an ID of the tracked object shown next to the bounding box:

## Setup & requirements¶

By default, Metavision Tracking has some constraints on the object size as it looks for objects of at least 10x10 pixels size.

None of samples has constraints on the direction of object motion.

## How to start¶

Here, we take Metavision Tracking sample as an example, however, Metavision Spatter Tracker runs in a similar way.

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

Linux

python3 /usr/share/metavision/designer/analytics/samples/metavision_generic_tracking.py


Windows

python "C:\Program Files\Prophesee\share\metavision\designer\analytics\samples\metavision_generic_tracking.py"


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

python3 /usr/share/metavision/designer/analytics/samples/metavision_generic_tracking.py -i traffic_monitoring.raw


Windows

python "C:\Program Files\Prophesee\share\metavision\designer\analytics\samples\metavision_generic_tracking.py" -i traffic_monitoring.raw


python3 /usr/share/metavision/designer/analytics/samples/metavision_generic_tracking.py -h

python "C:\Program Files\Prophesee\share\metavision\designer\analytics\samples\metavision_generic_tracking.py" -h