Skip to content

Conversation

tsdko
Copy link
Contributor

@tsdko tsdko commented Aug 11, 2016

This PR makes passing an empty datapath to NewTess() actually pass NULL to TessBaseAPIInit3(). It's needed because passing NULL is the only way to make Tesseract use the compiled in TESSDATA_PREFIX constant as the datapath (and Go won't allow passing nil when the argument type is string).


Code used to determine the datapath in Tesseract can be found in ccutil/mainblk.cpp.

tsdko added 2 commits August 11, 2016 12:13
Passing NULL is the only way to make Tesseract use the compiled in
TESSDATA_PREFIX constant.
@tsdko tsdko force-pushed the newtess-empty-datapath branch 2 times, most recently from 897d6b7 to c796170 Compare August 11, 2016 10:24
@tsdko
Copy link
Contributor Author

tsdko commented Nov 4, 2016

No feedback?

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