From ec9544842b809076522be6e748bcff51af599390 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:51:12 -0500 Subject: [PATCH] Don't run lpr if no text has been found --- frigate/embeddings/maintainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.py index ba6aa8d61..46767a9c9 100644 --- a/frigate/embeddings/maintainer.py +++ b/frigate/embeddings/maintainer.py @@ -584,7 +584,7 @@ class EmbeddingMaintainer(threading.Thread): logger.debug(f"Confidences: {confidences}") logger.debug(f"Areas: {areas}") - if license_plates: + if len(license_plates) > 0: for plate, confidence, text_area in zip(license_plates, confidences, areas): avg_confidence = ( (sum(confidence) / len(confidence)) if confidence else 0