mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Fix hailo detection (#17819)
This commit is contained in:
parent
484ea10037
commit
43a9641ae8
@ -28,12 +28,12 @@ class RequestStore:
|
|||||||
|
|
||||||
def put(self, tensor_input: ndarray) -> int:
|
def put(self, tensor_input: ndarray) -> int:
|
||||||
request_id = self.__get_request_id()
|
request_id = self.__get_request_id()
|
||||||
self.input_queue.get((request_id, tensor_input))
|
self.input_queue.put((request_id, tensor_input))
|
||||||
return request_id
|
return request_id
|
||||||
|
|
||||||
def get(self) -> tuple[int, ndarray] | None:
|
def get(self) -> tuple[int, ndarray] | None:
|
||||||
try:
|
try:
|
||||||
return self.input_queue.get_nowait()
|
return self.input_queue.get()
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user