expo-text-extractor
v2.0.0
Published
A React Native library for efficient text recognition (OCR) using MLKit and Vision, enabling seamless text extraction from images.
Maintainers
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:
npx expo install expo-text-extractorEnsure your project is running Expo SDK 52+.
API Documentation
Check the example app for more details.
Supports Text Extraction
A boolean value indicating whether the current device supports text extraction.
const isSupported: boolean;Extract Text From Image
Extracts text from an image and returns the recognized text as an array.
async function extractTextFromImage(uri: string): Promise<string[]>;