mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Don't run lpr if no text has been found
This commit is contained in:
parent
23ad9aefe0
commit
ec9544842b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user