Skip to content

Commit

Permalink
deleted some comments of face_recognition_node
Browse files Browse the repository at this point in the history
  • Loading branch information
iasonth95 committed Feb 19, 2024
1 parent 8545074 commit 4a21701
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions image_recognition_openface/scripts/face_recognition_node
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class OpenfaceROS:

# Openface ROS
self._face_recognizer = Facenet_recognition()
print('ououou')
#self._face_recognizer = FaceRecognizer(align_path, net_path)
print('ououou')
self._save_images_folder = save_images_folder
self._topic_save_images = topic_save_images
self._service_save_images = service_save_images
Expand Down Expand Up @@ -141,12 +139,10 @@ class OpenfaceROS:
face_recognition[2]:face_recognition[3],
face_recognition[0]:face_recognition[1]]
image_writer.write_annotated(self._save_images_folder, roi_image, label, False)
rospy.loginfo('bbbb')
images.append(roi_image)
labels.append(label)
label = face_labelling[i]
disti = dist[i]
print(dist, disti, 'DISSSSS')
recognitions.append(Recognition(
categorical_distribution=CategoricalDistribution(
unknown_probability=0.0, # TODO: When is it unknown?
Expand All @@ -161,7 +157,7 @@ class OpenfaceROS:
)
))
i = i+1
print(face_recognition)
# print(face_recognition)


annotated_original_image = image_writer.get_annotated_cv_image(bgr_image, recognitions)
Expand Down

0 comments on commit 4a21701

Please sign in to comment.