mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
deepstack: pass api key in request (#6579)
The POST data was prepared, but not passed into the request call.
This commit is contained in:
parent
f66ccb04f6
commit
1e17dbaa91
@ -50,7 +50,10 @@ class DeepStack(DetectionApi):
|
|||||||
image_bytes = output.getvalue()
|
image_bytes = output.getvalue()
|
||||||
data = {"api_key": self.api_key}
|
data = {"api_key": self.api_key}
|
||||||
response = requests.post(
|
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()
|
response_json = response.json()
|
||||||
detections = np.zeros((20, 6), np.float32)
|
detections = np.zeros((20, 6), np.float32)
|
||||||
|
Loading…
Reference in New Issue
Block a user