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

Feature plugginability #6

Merged
merged 11 commits into from
Sep 17, 2023
Merged

Feature plugginability #6

merged 11 commits into from
Sep 17, 2023

Conversation

Crivella
Copy link
Owner

Restructured the code to make it pluginable.
No change should be noticeable from a user experience point of view, but now it should be much easier to contribute to the code (new functionalities can be introduced by writing a plugin without having to modify this codebase).

  • The models entries in the database now requires an entrypoint field to identify which model should be used to load it.
  • The functionality related to easyocr, tesseract and hugginface models have been moved to the ocr_translate/plugins folder, and are now plugins (kept in the main codebase to leave an example on how a plugin can work).

@Crivella Crivella merged commit b28a143 into master Sep 17, 2023
3 checks passed
@Crivella Crivella deleted the feature-plugginability branch September 17, 2023 05:26
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