mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-03-04 00:17:22 +01: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 len(all_detections) == 0:
|
||||
logging.warning("[DETECT_RAW] No valid detections found.")
|
||||
return np.zeros((20, 6), 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}")
|
||||
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 ----------------- #
|
||||
class HailoDetectorConfig(BaseDetectorConfig):
|
||||
type: Literal[DETECTOR_KEY]
|
||||
|
Loading…
Reference in New Issue
Block a user