You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using the image recognition API then you should be able to pass the path to the image prop, potentially stripping off the file:// part at the beginning as described by @maxkuzmin.
If you are using the "Direct Api" it is quite a bit more complex. To load a file in this case you will want to use a library like react-native-fs, load the file as base64 and then convert it to the required format. This has several drawbacks as described here: https://github.com/reneweb/react-native-tensorflow/blob/master/README.md#known-issues (there is currently not a really good way to use the direct api unfortunately)
How to load image from local file ?
The text was updated successfully, but these errors were encountered: