@dccarmo/react-native-ocr
v1.0.3
Published
A simple React Native OCR library that allows you to extract text from images.
Downloads
17
Readme
React Native OCR
A simple React Native OCR library that allows you to extract text from images. Implemented using Nitro Modules, using Vision framework on iOS and MLKit on Android.
This library was built as an exercise for me to better understand how Nitro Modules work and also to provide functionality for a future project.
Installation
npm install @dccarmo/react-native-ocrUsage
import { OCR } from "react-native-ocr";
const imagePath = ...;
const result = await OCR.recognizeText(imagePath);
console.log(result);See example for more details.
Future work
- Support for specific options on iOS and Android (such as different languages)
- Support to return more data from processing results (such as bounding boxes, confidence scores, etc.)
