Skip to content

Commit

Permalink
Fix jumping to line (#230)
Browse files Browse the repository at this point in the history
* Fix jumping to line

* Update face_recognizer.py

---------

Co-authored-by: Matthijs van der Burgh <[email protected]>
  • Loading branch information
GustavoDCC and MatthijsBurgh authored May 8, 2024
1 parent 90920b7 commit 8543f23
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def threhold_check(self, dist: List[float], labelling: List[str], labels: List[s
rospy.loginfo(f"distances are {dist} and labels are {labelling}")
if dis > threshold:
labelling[idx] = labels[idx] # you can always condider the last label or something similar
rospy.loginfo(f"Distance is >1 so assign new label: {self._trained_faces[-1].get_label()},
Representations: {len(self._trained_faces[-1].get_representations())}")
rospy.loginfo(
f"Distance is >1 so assign new label: {self._trained_faces[-1].get_label()}, \
Representations: {len(self._trained_faces[-1].get_representations())}"
)
else:
rospy.loginfo(f"Distance is <1 so no new label is needed")

Expand Down

0 comments on commit 8543f23

Please sign in to comment.