vpi.KLTFeatureTracker.default_update

static KLTFeatureTracker.default_update(in_boxes: vpi.Array, in_preds: vpi.Array, out_boxes: vpi.Array, out_estim: vpi.Array) None

Get the default update function.

The default update reads the output bounding boxes (bboxes) and estimations, and does:

  1. Writes LOST in the input bboxes if its corresponding output bbox is LOST;

  2. Writes the output bbox over the corresponding input bbox and set input predictions to identity if UPDATE_NEEDED in the output bbox;

  3. If UPDATE_NOT_NEEDED in the output bbox, set UPDATE_NOT_NEEDED in the corresponding input bbox and writes the output estimation over the corresponding input prediction.

Parameters
  • in_boxes (vpi.Array) – Input bounding boxes.

  • in_preds (vpi.Array) – Input predictions.

  • out_boxes (vpi.Array) – Output bounding boxes.

  • out_estim (vpi.Array) – Output estimations.