Skip to content

Add TSVText method - #18

Open
mb0 wants to merge 2 commits into
GeertJohan:masterfrom
mb0:master
Open

mb0 wants to merge 2 commits into
GeertJohan:masterfrom
mb0:master

Conversation

@mb0

@mb0 mb0 commented Jan 21, 2021

Copy link
Copy Markdown

that returns a tsv string the contains word confidence

there is currently no other api exposed in go.tesseract that exports the
word recognition confidence value.

I do not expect it to be merged with other 4 year old PRs open. I just drop it as pull request in case anyone else needs it too.

thanks for the project Geert. have fun!

mb0 added 2 commits January 21, 2021 18:07
…ence

There is currently no other api exposed in go.tesseract that exports the
word recognition confidence value.
…flag

Tesseract uses the source image dpi info if available and otherwise falls
back to 70dpi and prints a warning to stderr. Tesseract works find with
70dpi and only uses that info for recognising font size. However, when
manually preparing and cutting many text blocks using opencv, which does
not encode the dpi in images for recognition the warning messages sure are
annoying and eat performance.
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