# rntpc_react-native-mlkit-ocr **Repository Path**: openharmony-sig/rntpc_react-native-mlkit-ocr ## Basic Information - **Project Name**: rntpc_react-native-mlkit-ocr - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/openharmony-sig/rntpc_react-native-mlkit-ocr - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-14 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [rntpc_react-native-mlkit-ocr](https://gitcode.com/openharmony-sig/rntpc_react-native-mlkit-ocr)。| ⚠️ This repository has been archived. For the new address, please visit [rntpc_react-native-mlkit-ocr](https://gitcode.com/openharmony-sig/rntpc_react-native-mlkit-ocr).** > --- > # react-native-mlkit-ocr

Google on-device MLKit text recognition for React Native

## Installation ```sh npm install react-native-mlkit-ocr ``` ## Post-install Steps ### iOS Run ```js cd ios && pod install ``` ## Usage ```js import MlkitOcr from 'react-native-mlkit-ocr'; // ... const resultFromUri = await MlkitOcr.detectFromUri(uri); const resultFromFile = await MlkitOcr.detectFromFile(path); ``` ## Example To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package: ```sh yarn bootstrap ``` To start the packager: ```sh yarn example start ``` To run the example app on Android: ```sh yarn example android ``` To run the example app on iOS: ```sh yarn example ios ``` ## Contributing See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT