Google on-device MLKit text recognition for React Native
npm install react-native-mlkit-ocr
Run
cd ios && pod install
import MlkitOcr from 'react-native-mlkit-ocr';
// ...
const resultFromUri = await MlkitOcr.detectFromUri(uri);
const resultFromFile = await MlkitOcr.detectFromFile(path);
To get started with the project, run yarn bootstrap
in the root directory to install the required dependencies for each package:
yarn bootstrap
To start the packager:
yarn example start
To run the example app on Android:
yarn example android
To run the example app on iOS:
yarn example ios
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT