NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
best thumbnail endpoint should pass correct extension param (#19930)
Josh Hawkinsd7f7cd7be16b
diff --git a/frigate/api/media.py b/frigate/api/media.pyindex 971475cbab..e3de57cd31 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -1598,7 +1598,7 @@ def label_thumbnail(request: Request, camera_name: str, label: str):try:event_id = event_query.scalar()- return event_thumbnail(request, event_id, 60)+ return event_thumbnail(request, event_id, Extension.jpg, 60)except DoesNotExist:frame = np.zeros((175, 175, 3), np.uint8)ret, jpg = cv2.imencode(".jpg", frame, [int(cv2.IMWRITE_JPEG_QUALITY), 70])