NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
use ceil instead of round for recording snapshot (#17444)
Josh Hawkinsbda7fcc7842d
diff --git a/frigate/api/media.py b/frigate/api/media.pyindex e9290e2377..7dab6ae608 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -2,6 +2,7 @@import globimport logging+import mathimport osimport subprocess as spimport time@@ -262,7 +263,7 @@ def get_snapshot_from_recording(except DoesNotExist:# try again with a rounded frame time as it may be between# the rounded segment start time- frame_time = round(frame_time)+ frame_time = math.ceil(frame_time)try:recording = (Recordings.select(