UNPKG

react-native-vision-camera-text-detector

Version:

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

17 lines (14 loc) 406 B
"use strict"; import { VisionCameraProxy } from 'react-native-vision-camera'; const plugin = VisionCameraProxy.initFrameProcessorPlugin('detectText', { model: 'fast' }); /** * Scans texts. */ export function detectText(frame) { 'worklet'; if (plugin == null) throw new Error('Failed to load Frame Processor Plugin "detectText"!'); return plugin.call(frame); } //# sourceMappingURL=index.js.map