Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/agoldis/react-native-mlkit-ocr

Google on-device MLKit Text Recognition for React Native
https://github.com/agoldis/react-native-mlkit-ocr

mlkit ocr react-native text-recognition

Last synced: about 3 hours ago
JSON representation

Google on-device MLKit Text Recognition for React Native

Awesome Lists containing this project

README

        

# 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