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

Improve OCR preprocess procedure. Improve performance. #12

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

hv0905
Copy link
Owner

@hv0905 hv0905 commented Jan 4, 2024

No description provided.

@hv0905 hv0905 added the enhancement New feature or request label Jan 4, 2024
@hv0905 hv0905 requested a review from pk5ls20 January 4, 2024 19:10
Copy link
Collaborator

@pk5ls20 pk5ls20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the preprocessing in the base OCRService class should remain the same as before (scaling + RGB conversion), and then the RGB-only preprocessing should be overridden in the EasyPaddleOCR class.
(because the scaling preprocessing is necessary if the user doesn't use EasyPaddleOCR, e.g. with easyocr)

@pk5ls20 pk5ls20 self-requested a review January 4, 2024 19:56
@hv0905 hv0905 merged commit 14bb34d into master Jan 5, 2024
4 checks passed
@hv0905 hv0905 deleted the better-preprocess branch January 5, 2024 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants