From 1e17dbaa91d1987bbfb8bf28e7fade90b7e6b68e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 24 May 2023 00:32:08 +0200 Subject: [PATCH] deepstack: pass api key in request (#6579) 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 2a9024a49..639cd396c 100644 --- a/frigate/detectors/plugins/deepstack.py +++ b/frigate/detectors/plugins/deepstack.py @@ -50,7 +50,10 @@ class DeepStack(DetectionApi): 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)