Skip to content

NVR with realtime local object detection for IP cameras

Provide model type in header for ZMQ detector (#20000)

Nicolas Mowen15729e0f1948
diff --git a/frigate/detectors/plugins/zmq_ipc.py b/frigate/detectors/plugins/zmq_ipc.py
index 112176c1a4..aa7113c724 100644
--- a/frigate/detectors/plugins/zmq_ipc.py
+++ b/frigate/detectors/plugins/zmq_ipc.py
@@ -82,6 +82,7 @@ class ZmqIpcDetector(DetectionApi):
header: dict[str, Any] = {
"shape": list(tensor_input.shape),
"dtype": str(tensor_input.dtype.name),
+ "model_type": str(self.detector_config.model.model_type.name),
}
return json.dumps(header).encode("utf-8")