mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
negate zoom out condition when needed
This commit is contained in:
parent
f81f869068
commit
2a121d3267
@ -844,9 +844,10 @@ class PtzAutoTracker:
|
||||
)
|
||||
- 1
|
||||
)
|
||||
logger.debug(f"{camera}: Zoom calculation: {zoom}")
|
||||
if not result:
|
||||
# zoom out
|
||||
zoom = -(1 - zoom) if zoom != 0 else 0
|
||||
zoom = -(1 - abs(zoom)) if zoom > 0 else zoom
|
||||
|
||||
logger.debug(f"{camera}: Zooming: {result} Zoom amount: {zoom}")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user