Files
frigate/frigate
Josh HawkinsandGitHub 8a88cefc9a Autotracking tweaks (#24935)
* fix autotracking movement time prediction and recorded move times

Movement time prediction multiplied the fitted intercept by the saved zero-step calibration time instead of 1, so predictions didn't match the regression. In absolute zoom mode, a pan/tilt followed by a zoom recorded the zoom's timestamps against the pan/tilt distance, because _zoom_absolute resets the PTZ start and stop times. The pan/tilt times are now captured before the zoom runs.

* predict velocity and zoom size for objects approaching the autotracked camera

The velocity check required both box corners to move in the same direction, but the corners of an approaching object diverge, so its velocity was rejected and zeroed and the camera aimed where the object had been. That check is removed, and the existing magnitude, delta, and variance checks still reject noise. The zoom size prediction fit area against epoch time with no intercept, which returned roughly the mean area instead of a forecast. It now scales the target box by the growth the corner velocities predict over the movement time.

* keep predicted target box positive and add regression tests

A shrinking object's predicted size could reach zero, so the relative zoom ratio divided by zero and sent a NaN zoom to the camera. The predicted size is now floored at 1 px. Tests also cover the movement time intercept and the pan/tilt timestamps that absolute zoom overwrites.
2026-11-11 08:38:21 -07:00
..
2026-10-16 13:49:16 -06:00
2026-09-19 08:10:36 -06:00
2026-10-18 04:50:25 -10:00
2026-10-29 09:04:16 -05:00
2026-11-11 08:38:21 -07:00
2026-11-02 08:11:27 -06:00
2026-10-29 09:04:16 -05:00
2026-11-11 08:38:21 -07:00
2026-10-29 09:04:16 -05:00
2021-01-26 21:40:33 -06:00
2026-11-06 07:43:38 -07:00
2026-11-06 07:43:38 -07:00
2026-10-10 15:01:33 -05:00
2026-11-06 07:43:38 -07:00
2026-03-26 12:54:12 -06:00