From e75f60f00e9a00c91b6912260ce754ce99dce29e Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 5 May 2026 17:55:23 -0600 Subject: [PATCH] Cleanup comment --- frigate/data_processing/real_time/face.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/data_processing/real_time/face.py b/frigate/data_processing/real_time/face.py index 1084cc935..c5c4ec56f 100644 --- a/frigate/data_processing/real_time/face.py +++ b/frigate/data_processing/real_time/face.py @@ -229,10 +229,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi): logger.debug(f"No person box available for {id}") return - # YuNet (cv2.FaceDetectorYN) is trained on BGR; feeding RGB - # 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. + # YuNet (cv2.FaceDetectorYN) is trained on BGR bgr = cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_I420) left, top, right, bottom = person_box person = bgr[top:bottom, left:right]