tryolabs / norfair

Lightweight Python library for adding real-time multi-object tracking to any detector.
https://tryolabs.github.io/norfair/
BSD 3-Clause "New" or "Revised" License
2.41k stars 247 forks source link

Absolute paths drawing with centroids #185

Closed DiegoFernandezC closed 2 years ago

DiegoFernandezC commented 2 years ago

We only allow drawing the absolute paths of bounding boxes.

To draw an absolute path with centroids points I need to do a trick simulating a bounding box duplicating the centroid coordinate.

Example:

centroid = np.array(
                [
                    [detection_as_xywh[0].item(), detection_as_xywh[1].item()],
                    [detection_as_xywh[0].item(), detection_as_xywh[1].item()],
                ]
            )