From 9472fa691ea95855ef03fa631ae2736242a18203 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 23 May 2023 03:55:35 +0200 Subject: [PATCH] deepstack: pass api key in request The POST data was prepared, but not passed into the request call. --- frigate/detectors/plugins/deepstack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/detectors/plugins/deepstack.py b/frigate/detectors/plugins/deepstack.py index bc72421844..aeda48ca7e 100644 --- a/frigate/detectors/plugins/deepstack.py +++ b/frigate/detectors/plugins/deepstack.py @@ -50,7 +50,10 @@ def detect_raw(self, tensor_input): image_bytes = output.getvalue() data = {"api_key": self.api_key} response = requests.post( - self.api_url, files={"image": image_bytes}, timeout=self.api_timeout + self.api_url, + data=data, + files={"image": image_bytes}, + timeout=self.api_timeout, ) response_json = response.json() detections = np.zeros((20, 6), np.float32)