Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix ocr scanning method name mismatch #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stanleyugwu
Copy link

The global __scanOCR method specified in babel.config.js does not match the method called in the example scanOCR.
It throws error saying Can't find variable: scanOCR

The global `__scanOCR` method specified in `babel.config.js` does not match the method called in the example `scanOCR`.
It throws error saying `Can't find variable: scanOCR`
@markrickert
Copy link

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);
}, []);

markrickert added a commit to markrickert/vision-camera-ocr that referenced this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants