go.tesseract icon indicating copy to clipboard operation
go.tesseract copied to clipboard

Fix calling NewTess() with an empty datapath argument

Open tsudoko opened this issue 8 years ago • 1 comments

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.

tsudoko avatar Aug 11 '16 10:08 tsudoko

No feedback?

tsudoko avatar Nov 04 '16 17:11 tsudoko