Skip to content

Error processing image from PhotoRecognizer function #30

@wizpzy

Description

@wizpzy

Hi, I have some problem using PhotoRecognizer function
this is how I called the function, but I got an error says "Error processing image" as I attached (The image uri is above). Please let me know if I'm missing something or doing it wrong. I'd really grateful for the help.

FYI, I'm using RN@0.76.8,
react-native-vision-camera@4.6.4,
react-native-vision-camera-text-recognition@3.1.1,
react-native-worklets-core@1.5.0

const pickImage = async () => {
  try {
    const img = await launchImageLibrary({mediaType: 'photo'})
    const img_uri = img.assets[0].uri
    console.log(img_uri)
    const result = await PhotoRecognizer({
      uri: img_uri
    })
    console.log("Result: ",result)
  } catch (error) {
    console.error(error)
  }
}

Image

and this is the image I selected to process

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions