mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-22 06:51:53 +03:00
Fix autotracking calibration crash when zooming is disabled
This commit is contained in:
parent
4347402fcc
commit
5ccce7a693
@ -369,12 +369,13 @@ class PtzAutoTracker:
|
|||||||
logger.info(f"Camera calibration for {camera} in progress")
|
logger.info(f"Camera calibration for {camera} in progress")
|
||||||
|
|
||||||
# zoom levels test
|
# zoom levels test
|
||||||
|
self.zoom_time[camera] = 0
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self.config.cameras[camera].onvif.autotracking.zooming
|
self.config.cameras[camera].onvif.autotracking.zooming
|
||||||
!= ZoomingModeEnum.disabled
|
!= ZoomingModeEnum.disabled
|
||||||
):
|
):
|
||||||
logger.info(f"Calibration for {camera} in progress: 0% complete")
|
logger.info(f"Calibration for {camera} in progress: 0% complete")
|
||||||
self.zoom_time[camera] = 0
|
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
# absolute move to 0 - fully zoomed out
|
# absolute move to 0 - fully zoomed out
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user