近距離において顔検出ROIが上部に行き過ぎてしまう問題を修正v2
This commit is contained in:
1 parent
9a4631a9f3
commit
31120e4c33
1 file changed
+1
-1
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user