aarongrider / vision-camera-ocr

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

Doesn't work in iOS #6

Open sumi-svmx opened 2 years ago

sumi-svmx commented 2 years ago

I tried the project in example folder, while it works in android, it always returns empty data in iOS, and shows this error in logs.

VisionCamera.captureOutput(_:didOutput:from:): The Frame Processor took so long to execute that a frame was dropped.

luismiguelmena commented 2 years ago

I have the same problem, works good on Android but not on iOS. Any solution?

smisaacs commented 2 years ago

runs perfectly for me on iOS. iPhone XS, using Expo SDK45.

sumi-svmx commented 2 years ago

@smisaacs Which version of iOS did you run it on? For me the text always return empty with iOS v14.1. I have heard it works fine in v15.4.1 Have you set any format/ preset different from the one given in /example?

smisaacs commented 2 years ago

yes. 15.4.1. Only played with framerates and targeting lines vs blocks. Works in all configurations though.

aarongrider commented 2 years ago

Interesting, this may be a limitation of your hardware and / or Vision Camera. Can you file a bug with vision camera?

dinhthi1610 commented 2 years ago

hello @aarongrider please help to check on ios 14, i tried but it not work Thanks

MSchmidt commented 1 year ago

Seeing the same. There is an issue with iOS 14 only. Maybe 13 and older as well? There are still people with iOS 14 out there. I played with the orientation but doesn't change anything. Result still empty.