mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
chore: use new server model
This commit is contained in:
2
docs/examples/rapidocr_with_custom_models.py
vendored
2
docs/examples/rapidocr_with_custom_models.py
vendored
@@ -21,7 +21,7 @@ def main():
|
|||||||
|
|
||||||
# Setup RapidOcrOptions for english detection
|
# Setup RapidOcrOptions for english detection
|
||||||
det_model_path = os.path.join(
|
det_model_path = os.path.join(
|
||||||
download_path, "onnx", "PP-OCRv4", "det", "en_PP-OCRv3_det_infer.onnx"
|
download_path, "onnx", "PP-OCRv5", "det", "ch_PP-OCRv5_server_det.onnx"
|
||||||
)
|
)
|
||||||
rec_model_path = os.path.join(
|
rec_model_path = os.path.join(
|
||||||
download_path, "onnx", "PP-OCRv5", "rec", "ch_PP-OCRv5_rec_server_infer.onnx"
|
download_path, "onnx", "PP-OCRv5", "rec", "ch_PP-OCRv5_rec_server_infer.onnx"
|
||||||
|
|||||||
Reference in New Issue
Block a user