Skip to content

Commit

Permalink
fix: add timestamps to outgoing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbmrz committed Aug 16, 2024
1 parent ec9ad5a commit 5d7da5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions depthai_nodes/ml/parsers/age_gender.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ def run(self):
prob = output.getTensor("prob", dequantize=True).flatten().tolist()

age_gender_message = create_age_gender_message(age=age, gender_prob=prob)
age_gender_message.setTimestamp(output.getTimestamp())

self.out.send(age_gender_message)
5 changes: 3 additions & 2 deletions depthai_nodes/ml/parsers/hrnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ def run(self):
[map_w, map_h]
) # normalize keypoints to [0, 1]

keypoints_msg = create_keypoints_message(
keypoints_message = create_keypoints_message(
keypoints=keypoints,
scores=scores,
confidence_threshold=self.score_threshold,
)
keypoints_message.setTimestamp(output.getTimestamp())

self.out.send(keypoints_msg)
self.out.send(keypoints_message)

0 comments on commit 5d7da5b

Please sign in to comment.