mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-25 08:07:41 +03:00
continue to use paddleocr v3 text detection model for large
v5 was not finding text on multi-line plates at all in testing
This commit is contained in:
parent
26178444f3
commit
e6ccd40dbb
@ -32,7 +32,7 @@ class PaddleOCRDetection(BaseEmbedding):
|
|||||||
device: str = "AUTO",
|
device: str = "AUTO",
|
||||||
):
|
):
|
||||||
model_file = (
|
model_file = (
|
||||||
"detection_v5-large.onnx"
|
"detection_v3-large.onnx"
|
||||||
if model_size == "large"
|
if model_size == "large"
|
||||||
else "detection_v5-small.onnx"
|
else "detection_v5-small.onnx"
|
||||||
)
|
)
|
||||||
@ -40,7 +40,7 @@ class PaddleOCRDetection(BaseEmbedding):
|
|||||||
model_name="paddleocr-onnx",
|
model_name="paddleocr-onnx",
|
||||||
model_file=model_file,
|
model_file=model_file,
|
||||||
download_urls={
|
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
|
self.requestor = requestor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user