go.tesseract
go.tesseract copied to clipboard
Fix calling NewTess() with an empty datapath argument
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.
No feedback?