From 2137de37b982ca231e62d9f29b48cea3b1e539f9 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 19 Oct 2024 13:11:49 -0600 Subject: [PATCH] Fix snapshot call (#14448) --- frigate/api/media.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/api/media.py b/frigate/api/media.py index d89774a6d..d0561bb2c 100644 --- a/frigate/api/media.py +++ b/frigate/api/media.py @@ -1528,11 +1528,11 @@ def label_snapshot(request: Request, camera_name: str, label: str): ) try: - event = event_query.get() - return event_snapshot(request, event.id) + event: Event = event_query.get() + return event_snapshot(request, event.id, MediaEventsSnapshotQueryParams()) except DoesNotExist: frame = np.zeros((720, 1280, 3), np.uint8) - ret, jpg = cv2.imencode(".jpg", frame, [int(cv2.IMWRITE_JPEG_QUALITY), 70]) + _, jpg = cv2.imencode(".jpg", frame, [int(cv2.IMWRITE_JPEG_QUALITY), 70]) return Response( jpg.tobytes,