Skip to content

Commit

Permalink
Add normalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeroo committed Sep 3, 2024
1 parent b7b0d5c commit a15c9f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions depthai_nodes/ml/parsers/mediapipe_palm_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def run(self):
bboxes = np.array(bboxes)[indices]
scores = np.array(scores)[indices]

bboxes = bboxes.astype(np.float32) / self.scale

detections_msg = create_detection_message(bboxes, scores, labels=None)
detections_msg.setTimestamp(output.getTimestamp())
self.out.send(detections_msg)

0 comments on commit a15c9f6

Please sign in to comment.