Adjust threshold and contour_area with mqtt

This commit is contained in:
Josh Hawkins
2022-04-27 09:52:45 -05:00
committed by Blake Blackshear
parent afe88d6e3a
commit 7845995dfd
6 changed files with 109 additions and 7 deletions

View File

@@ -363,13 +363,19 @@ def track_camera(
detection_enabled = process_info["detection_enabled"]
motion_enabled = process_info["motion_enabled"]
improve_contrast_enabled = process_info["improve_contrast_enabled"]
motion_threshold = process_info["motion_threshold"]
motion_contour_area = process_info["motion_contour_area"]
frame_shape = config.frame_shape
objects_to_track = config.objects.track
object_filters = config.objects.filters
motion_detector = MotionDetector(
frame_shape, config.motion, improve_contrast_enabled
frame_shape,
config.motion,
improve_contrast_enabled,
motion_threshold,
motion_contour_area,
)
object_detector = RemoteObjectDetector(
name, labelmap, detection_queue, result_connection, model_shape