Cleanup comment

This commit is contained in:
Nicolas Mowen 2026-05-05 17:55:23 -06:00 committed by GitHub
parent 6a277620ca
commit e75f60f00e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,10 +229,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
logger.debug(f"No person box available for {id}") logger.debug(f"No person box available for {id}")
return return
# YuNet (cv2.FaceDetectorYN) is trained on BGR; feeding RGB # YuNet (cv2.FaceDetectorYN) is trained on BGR
# silently degrades detection confidence by ~10x on typical
# person crops, causing face_recognition to fail with no log
# signal. The else-branch below already does YUV2BGR correctly.
bgr = cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_I420) bgr = cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_I420)
left, top, right, bottom = person_box left, top, right, bottom = person_box
person = bgr[top:bottom, left:right] person = bgr[top:bottom, left:right]