近距離において顔検出ROIが上部に行き過ぎてしまう問題を修正v2

This commit is contained in:
agomizi1cm committed 2026-10-01 13:10:22 +09:00
1 parent 9a4631a9f3
commit 31120e4c33
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@
from .config_loader import FaceSettings
from .models import FaceROI, TrackedPerson
TRUNCATED_WIDTH_RATIO = 0.8
TRUNCATED_WIDTH_RATIO = 0.45
def create_face_roi(person: TrackedPerson, frame_width: int, frame_height: int, config: FaceSettings) -> FaceROI | None:
"""Create a clipped upper-body ROI or return None when the track is ineligible."""