How to use the react-native-tesseract-ocr.recognize function in react-native-tesseract-ocr

To help you get started, we’ve selected a few react-native-tesseract-ocr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonathanpalma / react-native-tesseract-ocr / examples / RNTesseractOcrExample / src / components / ImagePickerScreen.js View on Github external
extractTextFromImage(imagePath) {
    RNTesseractOcr.recognize(imagePath, 'LANG_ENGLISH', tessOptions)
      .then((result) => {
        this.setState({ isLoading: false, extractedText: result });
      })
      .catch((err) => {
        this.setState({ hasErrored: true, errorMessage: err.message });
      });
  }

react-native-tesseract-ocr

Tesseract OCR wrapper for React Native

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis