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

new funcionality idea for Tesseract OCR #2

Open
TeleSmsng opened this issue Apr 7, 2024 · 2 comments
Open

new funcionality idea for Tesseract OCR #2

TeleSmsng opened this issue Apr 7, 2024 · 2 comments

Comments

@TeleSmsng
Copy link

Hi, great tool.

  1. Would it be possible to add to the Tesseract OCR fixed font size? To set all the OCRed texts with the same font size?
  2. I see that it sets by default white background for the bubbles. But what if there is different background (e.g. black) - could this color picker be somehow extended?
    Thanks.
@TeleSmsng
Copy link
Author

As for the second one - I just noticed that second color is taken - then there is no issue with that

@TeleSmsng
Copy link
Author

As for the first one - I found the solution by fixing variables in script. If someone is interested:
dan200-tesseract-ocr.py
fixed font size:
fontSize = 30
# fontSize = int( round( lineHeight * firstLineFontMetrics["lineHeightToFontSize"] ) )

fixed font name:
(PF_FONT, "fontName", "Output font", "different font name"),

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

No branches or pull requests

1 participant