mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
check more often after moving
This commit is contained in:
parent
b0f6b2222a
commit
e1224dcf28
@ -207,7 +207,10 @@ class PtzAutoTracker:
|
|||||||
self.onvif._move_relative(camera, pan, tilt, 1)
|
self.onvif._move_relative(camera, pan, tilt, 1)
|
||||||
|
|
||||||
# Wait until the camera finishes moving
|
# Wait until the camera finishes moving
|
||||||
self.camera_metrics[camera]["ptz_stopped"].wait()
|
while not self.camera_metrics[camera]["ptz_stopped"].is_set():
|
||||||
|
# check if ptz is moving
|
||||||
|
self.onvif.get_camera_status(camera)
|
||||||
|
time.sleep(1 / (self.config.cameras[camera].detect.fps / 2))
|
||||||
|
|
||||||
except queue.Empty:
|
except queue.Empty:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user