Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devinikhiya/react-native-tesseractocr

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devinikhiya/react-native-tesseractocr

@devinikhiya/react-native-tesseractocr is a react native module that allows you to use the Tesseract OCR library on Android and iOS.

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@devinikhiya/react-native-tesseractocr

🧠 This package leverages the power of OCR (Optical Character Recognition) technology, making it a breeze to extract text from images in your React Native apps.

it Uses - Tesseract4Android for android. Tesseract-OCR-iOS for ios (not implemented yet !)

📋 Key Features: You can
💫 recognize text from remote image(url) 🕸️
💫 recognize text with Camera 📷
💫 recognize text from gallery 📱

also support multi-language recognization.

video

For multi-language Just Use '@' between two languages Examples - for Hindi and english - 'hin@eng'

Installation

npm install @devinikhiya/react-native-tesseractocr

Usage

import TesseractOcr, { useEventListener } from '@devinikhiya/react-native-tesseractocr';

// ...

  try {
      const recognizedText = await TesseractOcr.recognize(
        path,
        'eng',
        {},
      );
      console.log('text is', recognizedText);
    } catch (error) {
      console.log('error is', error);
    }
  //progess listener for tesseractocr JOB
  useEventListener('onProgressChange', (p) => {
    setprogress(p.percent / 100);
  });

TessData

Strict requirement on language files existing in a referenced "tessdata" folder. For Android

Save TessData Files into - android/app/src/main/assets/tessdata

exaample - for the language english - android/app/src/main/assets/tessdata/eng.traineddata

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Keywords

FAQs

Package last updated on 19 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc