1.0.0 • Published 3 years ago
react-native-text-recognition v1.0.0
React-Native-Text-Recognition
Very basic text recognition utilizing Firebase ML for both iOS and Android
Installation
yarn add react-native-text-recognition@vision
or with NPM:
npm install react-native-text-recognition@vision
iOS:
If you get an error about "Could not find or use auto-linked library 'xxxxx'" then add the following to your project's Build Settings under LIBRARY_SEARCH_PATHS:
"$(SDKROOT)/usr/lib/swift"
This error is most common on XCode 12+
Usage
import TextRecognition from 'react-native-text-recognition';
// pass the image's path to recognize
const result = await TextRecognition.recognize('/var/mobile/...');
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT