mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-06 01:17:03 +02:00
Removing some extra prints
This commit is contained in:
parent
62afebf54f
commit
b1f2e299ee
@ -349,7 +349,6 @@ class HailoDetector(DetectionApi):
|
|||||||
|
|
||||||
# If no valid detections were found, return a zero array.
|
# If no valid detections were found, return a zero array.
|
||||||
if len(all_detections) == 0:
|
if len(all_detections) == 0:
|
||||||
logging.warning("[DETECT_RAW] No valid detections found.")
|
|
||||||
return np.zeros((20, 6), dtype=np.float32)
|
return np.zeros((20, 6), dtype=np.float32)
|
||||||
|
|
||||||
detections_array = np.array(all_detections, dtype=np.float32)
|
detections_array = np.array(all_detections, dtype=np.float32)
|
||||||
@ -378,14 +377,6 @@ class HailoDetector(DetectionApi):
|
|||||||
logging.error(f"Failed to close Hailo device: {e}")
|
logging.error(f"Failed to close Hailo device: {e}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# Asynchronous detection wrapper
|
|
||||||
def async_detect(self, tensor_input, callback):
|
|
||||||
def detection_thread():
|
|
||||||
result = self.detect_raw(tensor_input)
|
|
||||||
callback(result)
|
|
||||||
thread = threading.Thread(target=detection_thread)
|
|
||||||
thread.start()
|
|
||||||
|
|
||||||
# ----------------- Configuration Class ----------------- #
|
# ----------------- Configuration Class ----------------- #
|
||||||
class HailoDetectorConfig(BaseDetectorConfig):
|
class HailoDetectorConfig(BaseDetectorConfig):
|
||||||
type: Literal[DETECTOR_KEY]
|
type: Literal[DETECTOR_KEY]
|
||||||
|
Loading…
Reference in New Issue
Block a user