Classification

This page documents an earlier firmware release. Read this page for the latest release

Classification is the third step of object tracking. It adds a class to every detected and tracked object, in one of two modes:

  1. Size-based classification, the default: objects are sorted by the size of their bounding box.

  2. Model-based classification: a machine learning model assigns the class.

For the API, see Classification.

Security zones raise alarms only for the classes switched on in them, for example only for medium and large objects in an object-based security zone.

Animated plan view of a security zone in which a small animal is ignored and a person raises an alarm
Figure 1. Only objects of the selected sizes raise an alarm

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: small_min_size.

Medium

0.16 m²

0 to 0.5 m²

Lower limit for medium objects. In the API: medium_min_size.

Large

1.6 m²

0.02 to 5 m²

Lower limit for large objects. In the API: large_min_size.

Limitations
  • 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.

Limitations
  • 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.