NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix mjpeg api (#14138)
Nicolas Mowen0f2cff507852
diff --git a/frigate/api/media.py b/frigate/api/media.pyindex 8cf04763c6..5915875ab9 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -14,7 +14,7 @@ import numpy as npimport pytzfrom fastapi import APIRouter, Path, Query, Request, Responsefrom fastapi.params import Depends-from fastapi.responses import FileResponse, JSONResponse+from fastapi.responses import FileResponse, JSONResponse, StreamingResponsefrom pathvalidate import sanitize_filenamefrom peewee import DoesNotExist, fnfrom tzlocal import get_localzone_name@@ -44,7 +44,7 @@ logger = logging.getLogger(__name__)router = APIRouter(tags=[Tags.media])[email protected]("{camera_name}")[email protected]("/{camera_name}")def mjpeg_feed(request: Request,camera_name: str,@@ -60,7 +60,7 @@ def mjpeg_feed(}if camera_name in request.app.frigate_config.cameras:# return a multipart response- return Response(+ return StreamingResponse(imagestream(request.app.detected_frames_processor,camera_name,