mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
ruff format
This commit is contained in:
parent
4570808030
commit
14f7d27274
@ -372,10 +372,7 @@ class MemryXDetector(DetectionApi):
|
||||
return None
|
||||
try:
|
||||
# Wait for a frame from the queue with timeout to check stop_event periodically
|
||||
frame = self.capture_queue.get(
|
||||
block=True,
|
||||
timeout=0.5
|
||||
)
|
||||
frame = self.capture_queue.get(block=True, timeout=0.5)
|
||||
|
||||
return frame
|
||||
|
||||
@ -390,11 +387,8 @@ class MemryXDetector(DetectionApi):
|
||||
"""Retrieve processed results from MemryX output queue + a copy of the original frame"""
|
||||
try:
|
||||
# Get connection ID with timeout
|
||||
connection_id = (
|
||||
self.capture_id_queue.get(
|
||||
block=True,
|
||||
timeout=1.0
|
||||
)
|
||||
connection_id = self.capture_id_queue.get(
|
||||
block=True, timeout=1.0
|
||||
) # Get the corresponding connection ID
|
||||
detections = self.output_queue.get() # Get detections from MemryX
|
||||
|
||||
@ -410,7 +404,6 @@ class MemryXDetector(DetectionApi):
|
||||
|
||||
return None, None
|
||||
|
||||
|
||||
def post_process_yolonas(self, output):
|
||||
predictions = output[0]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user