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

https://github.com/pchalupa/expo-text-extractor

Expo Text Extractor is a library that enables text recognition (OCR) using Google ML Kit on Android and Apple Vision on iOS.
https://github.com/pchalupa/expo-text-extractor

react-native

Last synced: 4 months ago
JSON representation

Expo Text Extractor is a library that enables text recognition (OCR) using Google ML Kit on Android and Apple Vision on iOS.

Awesome Lists containing this project

README

          

# Expo Text Extractor

Expo Text Extractor is a library that enables text recognition (OCR) using Google ML Kit on Android and Apple Vision on iOS.

### Platform Compatibility

| Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
| -------------- | ---------------- | ---------- | ------------- | --- |
| ✅ | ✅ | ✅ | ✅ | ❌ |

### Demo


demo

## Installation

To get started, install the library using Expo CLI:

```sh
npx expo install expo-text-extractor
```

> Ensure your project is running Expo SDK 52+.

### API Documentation

Check the [example app](https://github.com/pchalupa/expo-text-extractor/blob/main/example/App.tsx) for more details.

#### Supports Text Extraction

A boolean value indicating whether the current device supports text extraction.

```ts
const isSupported: boolean;
```

#### Extract Text From Image

Extracts text from an image and returns the recognized text as an array.

```ts
async function extractTextFromImage(uri: string): Promise;
```