jonathanpalma / react-native-tesseract-ocr

Tesseract OCR wrapper for React Native
MIT License
561 stars 172 forks source link

Can add other language to library? #112

Closed AnanPani closed 3 years ago

AnanPani commented 3 years ago

i try to add other language with out in library react-native-tesseract-ocr (react-native-tesseract-ocr/index.js) such as

export const LANG_THAI = 'tha';

and add my project package.json

"dependencies": { .... "react-native-tesseract-ocr": "file:../react-native-tesseract-ocr" },

but when i'm use LANG_THAI in my project like below

//Import import TesseractOcr, { LANG_THAI, useEventListener, } from 'react-native-tesseract-ocr';

// Usage const tesseractOptions = {}; const recognizedText = await TesseractOcr.recognize( path, LANG_THAI, tesseractOptions, );

When select image Application it's crash every time.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.