Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to refine OCR result and choose custom model? #806

Open
geoHeil opened this issue Jan 24, 2025 · 0 comments
Open

how to refine OCR result and choose custom model? #806

geoHeil opened this issue Jan 24, 2025 · 0 comments
Labels
question Further information is requested

Comments

@geoHeil
Copy link

geoHeil commented Jan 24, 2025

Question

  • I observe the best result is obtained by using rapid ocr
  • rapid ocr is also not perfect
  • how can I choose a different model in rapidocr
  • I am trying to set
ocr_model = "en_PP-OCRv4_rec"
pipeline_options.ocr_options = RapidOcrOptions(
    det_model_path=ocr_model,
    cls_model_path=ocr_model,
    rec_model_path=ocr_model
)

and observe that:
The model is not downloaded from huggingface - the normal (default model) is downloaded.

This leads me to the 2nd question: I can this default behaviour be kept to still download the model and in addition refine the OCR result?

@geoHeil geoHeil added the question Further information is requested label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant