Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a tensor input to pass to model.run #98

Open
bilal1031 opened this issue Oct 19, 2024 · 1 comment
Open

Unable to create a tensor input to pass to model.run #98

bilal1031 opened this issue Oct 19, 2024 · 1 comment

Comments

@bilal1031
Copy link

Hi, I am facing an issue when trying to create a tesnor input. I am using expo and in the app I am taking a picture from the camera and getting the url. Is there a way to convert this url to a tensor input of my desired shape that I can pass to model.run without using vision-camera-resize-plugin because it seems to be not compatible with expo

Copy link

Guten Tag, Hans here! 🍺

It looks like you're having some trouble creating a tensor input from a URL in your Expo app. I recommend using a library like react-native-fetch-blob or react-native-fs to fetch and convert the image to a format that can be transformed into a tensor.

However, I noticed you didn't provide any logs or specific errors you’re encountering. If you're facing a runtime issue, please share the relevant logs from your environment (like Xcode or adb logcat), so mrousavy can better assist you.

And if you find this project helpful, consider sponsoring mrousavy to support further development! Support here.

Note: If you think I made a mistake, please ping @mrousavy to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant