add tracker ids to tracker boxes
This commit is contained in:
@@ -135,6 +135,9 @@ class CornerTracker:
|
||||
tracker_rect = to_rect(bbox_round(self.tracking_bb))
|
||||
cv2.rectangle(_image_anno, tracker_rect[0], tracker_rect[1], self.color, 1)
|
||||
|
||||
cv2.putText(_image_anno, f"{self.id}", (self.tracking_bb[0], self.tracking_bb[1] - 4),
|
||||
cv2.FONT_HERSHEY_SIMPLEX, 0.8, self.color, 2)
|
||||
|
||||
@staticmethod
|
||||
def mask_init(_image: np.array):
|
||||
# Create mask
|
||||
|
||||
Reference in New Issue
Block a user