tessdata supports both legacy engine and lstm engine. Tessdata_fast and tessdata_best only support lstm engine.
To use tessdata_fast , use oem engine code 1. On command line it is --oem 1.please look up the corresponding syntax. On Sat, Dec 7, 2019, 14:06 NY C <nyc0...@gm.nkhs.tp.edu.tw> wrote: > Hi, I am using tess-two for OCR. > > > The version I use is : https://github.com/alexcohn/tess-two > > > Code: > > TessBaseAPI baseApi = new TessBaseAPI(); > baseApi.setDebug(true); > baseApi.init(pathfiles, language); > baseApi.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST, "0123456789"); > baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_AUTO); > baseApi.setImage(bmp); > result= baseApi.getUTF8Text(); > baseApi.end(); > > > The code run perfectly when I use this tessdata : > https://github.com/tesseract-ocr/tessdata > > > But when I use tessdata_fast ( > https://github.com/tesseract-ocr/tessdata_fast), The code crashes on > baseApi.init. > > > There is no error message since the init method calls native C++. As far > as I can trace, the init method crashes on this line: > > > boolean success = nativeInitOem(mNativeData, datapath, language, > ocrEngineMode); > > > Is it possible to use tessdata_fast in tess-two? > > Or did I miss something? > > > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tesseract-ocr+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/390136fc-ded4-47c6-8717-c69fbb4e67f7%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/390136fc-ded4-47c6-8717-c69fbb4e67f7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduVG_Lx7ASCagQfLu-Ndapqx%2BUGcGj37N%3DKA9vb%2BZCXt1A%40mail.gmail.com.