Open stanleyugwu opened 2 years ago
I actually think that the import is incorrect in the readme example. It's referencing an import from vision-camera-image-labeler
instead of this library.
import { labelImage } from "vision-camera-image-labeler";
// ...
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const scannedOcr = scanOCR(frame);
}, []);
should be:
import { scanOCR } from 'vision-camera-ocr';
// ...
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const scannedOcr = scanOCR(frame);
}, []);
The global
__scanOCR
method specified inbabel.config.js
does not match the method called in the examplescanOCR
. It throws error sayingCan't find variable: scanOCR