gev2002 / react-native-vision-camera-text-recognition

https://www.npmjs.com/package/react-native-vision-camera-text-recognition
MIT License
49 stars 9 forks source link

path for PhotoRecognizer #21

Open al4iii opened 1 day ago

al4iii commented 1 day ago

Hi. Tell me how to correctly specify the path to the file for iOS for the PhotoRecognizer function. The path of the format file:///data/user/0/com.project24/cache/mrousavy726420415185328566.jpg works for Android, but does not work for iOS.

  const resultPhoto = async (photo) => {
    const result = await PhotoRecognizer({
      uri: photo,
      orientation: "portrait"
    })
    console.log(result, 'result')
    setResult(result)
  }