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

Load external OCR model #46

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Load external OCR model #46

merged 2 commits into from
Oct 15, 2024

Conversation

royshil
Copy link
Contributor

@royshil royshil commented Oct 15, 2024

… external OCR model

  • Updated the MainWindow class in mainwindow.py to set the default box display style for the OCR model combo box.
  • Added the ability to load a custom OCR model file in the ocrModelChanged method of MainWindow.
  • Updated the setOcrModel method in TextDetector class of tesseract.py to handle loading external OCR models.

… external OCR model

- Updated the `MainWindow` class in `mainwindow.py` to set the default box display style for the OCR model combo box.
- Added the ability to load a custom OCR model file in the `ocrModelChanged` method of `MainWindow`.
- Updated the `setOcrModel` method in `TextDetector` class of `tesseract.py` to handle loading external OCR models.
The setOcrModel method in the TextDetector class has been modified to accept not only OcrModelIndex and str data types, but also int. This change allows for more flexibility when specifying the OCR model to be used. Additionally, the method now logs the selected OCR model and the corresponding model folder.
@royshil royshil merged commit 5067785 into main Oct 15, 2024
5 checks passed
@royshil royshil deleted the roy.external_ocr_model_loading branch October 15, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant