zsajjad / react-native-text-detector

Text Detector from image for react native using firebase MLKit on android and Tesseract on iOS
MIT License
221 stars 62 forks source link

detectFromUri works fine in android but it returns false in iOS #28

Closed haison8x closed 4 years ago

haison8x commented 4 years ago

I used https://github.com/jeanpan/react-native-camera-roll-picker#readme to get the image from photo library, it returned uri: ph://11A68DD6-A651-462D-BDAB-68FB853ED141/L0/001

Unfortunately, detectFromUri always returns false and show the following error in console: NSURLConnection finished with error - code -1002

However, the Image Control can show the image with that uri .

Here is my source code : https://github.com/haison8x/react-native-test-ocr

haison8x commented 4 years ago

I have posted the solution here

https://stackoverflow.com/questions/59726747/react-native-text-detector-worked-fine-in-android-but-why-it-always-returned-fal

uranashel95 commented 4 years ago

No. This library works. Your is not work. 👎 You can double check.