LANG_ENG

37 views
Skip to first unread message

Sina Azm

unread,
Nov 2, 2020, 7:07:55 AM11/2/20
to tesseract-ocr
hello guys,  i'm in  hurry plz help if you can
So i installed the react-native-tesseract-ocr and trying to recognize some text with it but i got error causing by LANG-ENGLISH , if i remove that error is gone but the result is non sense.
OCR Error:  Error: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
    at Object.promiseMethodWrapper [as recognize] (D:\Uni\React-Native\tesseract\TextRecognition\node_modules\react-  native\Libraries\BatchedBridge\NativeModules.js:103) 

and thats my code :
import RNTesseractOcr , { LANG_ENGLISH , LEVEL_WORD }  from 'react-native-tesseract-ocr';
RNTesseractOcr.recognize(path,  LANG_ENGLISH   , tessOptions)
Reply all
Reply to author
Forward
0 new messages