NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
run autotracking setup method in asyncio coroutine (#19614)
Josh Hawkinsd27e8c1bbf53
diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.pyindex f38bf1f5f8..662ce63d36 100644--- a/frigate/ptz/autotrack.py+++ b/frigate/ptz/autotrack.py@@ -1329,7 +1329,11 @@ class PtzAutoTracker:if camera_config.onvif.autotracking.enabled:if not self.autotracker_init[camera]:- self._autotracker_setup(camera_config, camera)+ future = asyncio.run_coroutine_threadsafe(+ self._autotracker_setup(camera_config, camera), self.onvif.loop+ )+ # Wait for the coroutine to complete+ future.result()if self.calibrating[camera]:logger.debug(f"{camera}: Calibrating camera")