Metavision Designer Tracking Sample¶
The Analytics API provides two algorithms for object tracking:
metavision_designer_analytics.TrackingFilterwhich is a generic algorithm that tracks any moving object by default and can be tuned to more specific use cases
metavision_designer_analytics.SpatterTrackerFilterwhich is a lighter implementation allowing to track simple non colliding moving objects
Each algorithm has a corresponding sample showing how to use it:
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:
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):
python3 /usr/share/metavision/designer/analytics/samples/metavision_generic_tracking.py -i traffic_monitoring.raw
python "C:\Program Files\Prophesee\share\metavision\designer\analytics\samples\metavision_generic_tracking.py" -i traffic_monitoring.raw
To check for additional options:
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