Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Dec 15, 2024
1 parent 7e709b9 commit 9f9f707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 462_Gaze-LLE/demo/demo_yolov9_onnx_gazelle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ def calculate_centroid(heatmap: np.ndarray) -> Tuple[int, int, float]:
y, x = np.unravel_index(max_index, heatmap.shape)
return int(x), int(y), heatmap[y, x]

# Drawing of the point of gaze
for head_box, heatmap in zip(head_boxes, heatmaps):
cx, cy, score = calculate_centroid(heatmap)
if score >= 0.50:
Expand Down

0 comments on commit 9f9f707

Please sign in to comment.