A classified moving object on the current frame. More...
#include <SimdMotion.hpp>
Data Fields | |
| Id | id |
| Classification ID. Event::objectId of ObjectIn/ObjectOut uses the same value. Typical usage is ToString(id). | |
| Rect | rect |
| Bounding box in input-frame pixels. Typical usage is DrawRectangle. | |
| Positions | trajectory |
| Smoothed history of centers. Typical usage draws DrawLine between consecutive points. | |
Detailed Description
A classified moving object on the current frame.
Detector puts an Object into Metadata::objects after the motion region has lived at least Options::ClassificationTimeMin seconds and moved at least Options::ClassificationShiftMin of the screen diagonal. Static (not yet classified) tracks are not reported.
Typical usage draws Object::rect, ToString(Object::id) above the box, and a polyline along Object::trajectory. The example paints the object red when some Event::objectId equals Object::id in the same frame.