ismaelsousa / vision-camera-ocr

VisionCamera Frame Processor Plugin to detect text in real time using MLKit Text Detector (OCR)
MIT License
27 stars 32 forks source link

[QUESTION] Is the example working? #12

Open frabanca opened 6 months ago

frabanca commented 6 months ago

Given example once runned does not show an overlay over the text as it's supposed to do (like in the gif image)

ismaelsousa commented 6 months ago

yeah, are you using the latest version?

frabanca commented 6 months ago

Hi! Thanks for your super fast reply! That's the version:

"@ismaelmoreiraa/vision-camera-ocr": "^3.0.1",

ismaelsousa commented 6 months ago

That's it, this version needs the vision library in version 4 or higher. In this version, vision has a different preview that cannot match with the screen preview above.

I didn't find a way of make it simple, but in the vision v4 you draw directly in the frame itself. :)

https://react-native-vision-camera.com/docs/guides/skia-frame-processors