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.
- Host: GitHub
- URL: https://github.com/pchalupa/expo-text-extractor
- Owner: pchalupa
- Created: 2025-01-20T14:07:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-21T11:01:48.000Z (4 months ago)
- Last Synced: 2026-02-21T16:59:51.841Z (4 months ago)
- Topics: react-native
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/expo-text-extractor
- Size: 720 KB
- Stars: 53
- Watchers: 1
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: .github/CODEOWNERS
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
## 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;
```