Skip to content

Commit

Permalink
fix unknown face message error
Browse files Browse the repository at this point in the history
  • Loading branch information
isaric committed Dec 15, 2023
1 parent 81c3c83 commit 3531995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion face_recog/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _save_embeddings(self, embeddings):

def _send_unknown_message(self, boxes, image):
message = f"{len(boxes)} unknown faces detected"
for (top, right, bottom, left) in zip(boxes):
for (top, right, bottom, left) in boxes:
cv2.rectangle(image, (left, top), (right, bottom),
(0, 255, 225), 2)
self.slack_client.send_image(self.channel_id, message, image)
Expand Down

0 comments on commit 3531995

Please sign in to comment.