mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 05:55:27 +03:00
Cleanup comment
This commit is contained in:
parent
6a277620ca
commit
e75f60f00e
@ -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]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user