mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
prevent the camera process from hanging
This commit is contained in:
parent
9ecc80b443
commit
c960914ec3
@ -177,7 +177,11 @@ class RemoteObjectDetector():
|
|||||||
self.np_shm[:] = tensor_input[:]
|
self.np_shm[:] = tensor_input[:]
|
||||||
self.event.clear()
|
self.event.clear()
|
||||||
self.detection_queue.put(self.name)
|
self.detection_queue.put(self.name)
|
||||||
self.event.wait()
|
result = self.event.wait(timeout=10.0)
|
||||||
|
|
||||||
|
# if it timed out
|
||||||
|
if result is None:
|
||||||
|
return detections
|
||||||
|
|
||||||
for d in self.out_np_shm:
|
for d in self.out_np_shm:
|
||||||
if d[1] < threshold:
|
if d[1] < threshold:
|
||||||
|
Loading…
Reference in New Issue
Block a user