NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Don't generate region boxes from motion when autotracking (#8306)
Josh Hawkinsb9649de32700
diff --git a/frigate/video.py b/frigate/video.pyindex 7dab59bb3c..b479fd7254 100755--- a/frigate/video.py+++ b/frigate/video.py@@ -22,6 +22,7 @@ from frigate.log import LogPipefrom frigate.motion import MotionDetectorfrom frigate.motion.improved_motion import ImprovedMotionDetectorfrom frigate.object_detection import RemoteObjectDetector+from frigate.ptz.autotrack import ptz_moving_at_frame_timefrom frigate.track import ObjectTrackerfrom frigate.track.norfair_tracker import NorfairTrackerfrom frigate.types import PTZMetricsTypes@@ -626,8 +627,13 @@ def process_frames()]- # only add in the motion boxes when not calibrating- if not motion_detector.is_calibrating():+ # only add in the motion boxes when not calibrating and a ptz is not moving via autotracking+ # ptz_moving_at_frame_time() always returns False for non-autotracking cameras+ if not motion_detector.is_calibrating() and not ptz_moving_at_frame_time(+ frame_time,+ ptz_metrics["ptz_start_time"].value,+ ptz_metrics["ptz_stop_time"].value,+ ):# find motion boxes that are not inside tracked object regionsstandalone_motion_boxes = [b for b in motion_boxes if not inside_any(b, regions)