Classification
Classification is the third step of object tracking. It adds a class to every detected and tracked object, in one of two modes:
-
Size-based classification, the default: objects are sorted by the size of their bounding box.
-
Model-based classification: a machine learning model assigns the class.
For the API, see Classification.
Traffic lanes classify vehicles with a model, not by surface area: the default traffic model of the sensor, or a model configured through the API that replaces it. The Minimum object surface area in the detection settings does not affect them. See Vehicles in traffic lanes.
Size-based classification
Without a classification model, each object is assigned a size category from the surface area of its bounding box. The area used is the larger of the two vertical sides of the bounding box.
The limits are set under Minimum object surface area in the Detection settings: the bounding box surface area, in m², from which an object counts as Small, Medium or Large. Each limit must be larger than the one before; the WebGUI raises a limit that is not.
| Setting | Default | Range | What it does |
|---|---|---|---|
Small |
0.01 m² |
0 to 0.05 m² |
Lower limit for small objects. Smaller objects are discarded. In the API: |
Medium |
0.16 m² |
0 to 0.5 m² |
Lower limit for medium objects. In the API: |
Large |
1.6 m² |
0.02 to 5 m² |
Lower limit for large objects. In the API: |
-
Only the larger vertical side of the bounding box counts. The shape and the orientation of the object are ignored.
-
Fixed limits may not suit every sensor setup or environment.
Model-based classification
When a classification model is configured, it replaces the size-based classification.
-
The model is a pre-trained support vector machine (SVM).
-
For each tracked object, a feature vector is computed from properties such as the dimensions of the object and the distribution of its points.
-
The feature vector is passed to the model.
-
The result is stored in the detected object.
-
Requires a pre-trained model. Models cannot be trained on the device.
-
The quality of the classification depends strongly on the features and the training data.
-
Only the predefined object classes are supported.
Vehicles in traffic lanes
Traffic lanes do not use this classification. Each lane classifies its vehicles with a model of its own: the default traffic model installed with the firmware assigns one of the vehicle classes, and a model configured through the API replaces it, see traffic lane classification.