feat: migrate from face detection to HOG person detection
This commit is contained in:
@@ -10,7 +10,7 @@ from collections import defaultdict
|
||||
|
||||
class ZoneTracker:
|
||||
def __init__(self, frame_width, entry_zone_percent=0.4, exit_zone_percent=0.4,
|
||||
cooldown_seconds=2.0, center_buffer_percent=0.1):
|
||||
cooldown_seconds=4.0, center_buffer_percent=0.1):
|
||||
"""
|
||||
Initialize the zone tracker.
|
||||
|
||||
@@ -97,8 +97,8 @@ class ZoneTracker:
|
||||
Returns:
|
||||
face_id if matched, None if new face
|
||||
"""
|
||||
max_distance = 100 # Maximum pixel distance to consider it the same face
|
||||
max_size_diff = 50 # Maximum size difference to consider it the same face
|
||||
max_distance = 150 # Maximum pixel distance to consider it the same face
|
||||
max_size_diff = 100 # Maximum size difference to consider it the same face
|
||||
|
||||
for face_id, face_data in self.tracked_faces.items():
|
||||
# Skip if face hasn't been seen recently (within last 2 seconds)
|
||||
|
||||
Reference in New Issue
Block a user