0.3.3 • Published 6 months ago

react-native-mlkit-chinese-ocr v0.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

react-native-mlkit-chinese-ocr

npm version

Google on-device MLKit text recognition for React Native

此依赖基于 https://github.com/agoldis/react-native-mlkit-ocr 0.3.0 调整

安装

npm install react-native-mlkit-chinese-ocr

Post-install

iOS

Run

cd ios && pod install

使用

import MlkitOcr from 'react-native-mlkit-chinese-ocr';

// ...

const resultFromUri = await MlkitOcr.detectFromUri({
    uri: '',
    quality: 1, // 0 - 1,可选
});
const resultFromFile = await MlkitOcr.detectFromFile({
    uri: '',
    quality: 1, // 0 - 1,可选
});
const res = await MlkitOcr.checkAuth(); // iOS Only
const res = await MlkitOcr.requestAuth(); // iOS Only

License

MIT

0.3.3

6 months ago

0.3.2

6 months ago

0.3.1

6 months ago