Draw white center dot with blue outline on counted objects
This commit is contained in:
1 parent
c803c0760b
commit
c78d89bc44
1 file changed
+5
@@ -1717,6 +1717,11 @@ def run():
|
||||
cls_label = class_names_map.get(cls_id, "OBJ")
|
||||
x1, y1, x2, y2 = int(bbox[0]), int(bbox[1]), int(bbox[2]), int(bbox[3])
|
||||
flash = counted_cross_flash.get(tid, 0)
|
||||
# mark counted center point: white dot with thin blue outline
|
||||
cx_i = int((x1 + x2) / 2)
|
||||
cy_i = int((y1 + y2) / 2)
|
||||
cv2.circle(frame, (cx_i, cy_i), 4, (255, 255, 255), -1, cv2.LINE_AA)
|
||||
cv2.circle(frame, (cx_i, cy_i), 4, (255, 140, 40) if cls_id == 1 else (0, 165, 255), 1, cv2.LINE_AA)
|
||||
base_color = (255, 140, 40) if cls_id == 1 else C_COUNTED_BOX
|
||||
color = C_GREEN if flash > 0 else base_color
|
||||
obb = counted_obb_list[di] if di < len(counted_obb_list) else None
|
||||
|
||||
Reference in new issue
Block a user