Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-vision-camera-text-detector

haodev70MIT1.0.5TypeScript support: included

A React Native Vision Camera plugin for real-time text detection. This package enables seamless integration of on-device OCR by using Google ML Kit on Android and Apple’s Vision Framework on iOS. It provides fast, efficient, and cross-platform text recogn

react-native, ios, android, react-native-vision-camera, vision-camera, text-recognition, text-detection

readme

react-native-vision-camera-text-detector

A React Native Vision Camera plugin for real-time text detection.
This package enables seamless integration of on-device OCR by using:

  • Google ML Kit on Android
  • Vision Framework on iOS

It provides fast, efficient, and cross-platform text detector capabilities directly within Vision Camera.


✨ Features

  • Real-time text detector
  • On-device processing (no network required)
  • Cross-platform support (Android & iOS)
  • High performance with native APIs
  • Easy integration with react-native-vision-camera

📦 Installation

1. Install the plugin

yarn add react-native-vision-camera-text-detector

Usage

1. Importing

import { detectText } from 'react-native-vision-camera-text-detector';

2. Used for frame processor

const frameProcessor = useFrameProcessor((frame) => {
  'worklet';
  const data = detectText(frame);
  const { text } = data || {};
  console.log(text);
}, []);

💖 Support This Project

If you find this library useful and would like to support ongoing development, please consider sponsoring me on GitHub:

👉 Become a Sponsor

Your support helps me maintain and improve this project. Thank you! 🙏