NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Cleanup bird classification (#17146)
Nicolas Mowenfbd22c8124d4
diff --git a/frigate/api/media.py b/frigate/api/media.pyindex 3c7fc09da4..83307a15cf 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -781,14 +781,14 @@ def event_snapshot(height=params.height,quality=params.quality,)- except Exception as e:+ except Exception:return JSONResponse(- content={"success": False, "message": f"Ongoing event not found: {e}"},+ content={"success": False, "message": "Ongoing event not found"},status_code=404,)- except Exception as e:+ except Exception:return JSONResponse(- content={"success": False, "message": f"Unknown error occurred: {e}"},+ content={"success": False, "message": "Unknown error occurred"},status_code=404,)diff --git a/frigate/data_processing/real_time/bird.py b/frigate/data_processing/real_time/bird.pyindex d942edf6fb..ba6d4f08c0 100644--- a/frigate/data_processing/real_time/bird.py+++ b/frigate/data_processing/real_time/bird.py@@ -115,10 +115,10 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):x:x2,]- cv2.imwrite("/media/frigate/test_class.png", input)+ if input.shape != (224, 224):+ input = cv2.resize(input, (224, 224))input = np.expand_dims(input, axis=0)-self.interpreter.set_tensor(self.tensor_input_details[0]["index"], input)self.interpreter.invoke()res: np.ndarray = self.interpreter.get_tensor(