From e6ccd40dbb9a760684d7c72b892360367067b74d Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 17 Sep 2025 14:43:08 -0500 Subject: [PATCH] continue to use paddleocr v3 text detection model for large v5 was not finding text on multi-line plates at all in testing --- frigate/embeddings/onnx/lpr_embedding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/embeddings/onnx/lpr_embedding.py b/frigate/embeddings/onnx/lpr_embedding.py index 30b8d372c..812fc4e82 100644 --- a/frigate/embeddings/onnx/lpr_embedding.py +++ b/frigate/embeddings/onnx/lpr_embedding.py @@ -32,7 +32,7 @@ class PaddleOCRDetection(BaseEmbedding): device: str = "AUTO", ): model_file = ( - "detection_v5-large.onnx" + "detection_v3-large.onnx" if model_size == "large" else "detection_v5-small.onnx" ) @@ -40,7 +40,7 @@ class PaddleOCRDetection(BaseEmbedding): model_name="paddleocr-onnx", model_file=model_file, download_urls={ - model_file: f"https://github.com/hawkeye217/paddleocr-onnx/raw/refs/heads/master/models/v5/{model_file}" + model_file: f"https://github.com/hawkeye217/paddleocr-onnx/raw/refs/heads/master/models/{'v3' if model_size == 'large' else 'v5'}/{model_file}" }, ) self.requestor = requestor