Use tflite-react-native plugin to run model on images.
-
Download the folder
models
and its contents from https://github.com/shaqian/tflite-react-native/tree/master/example/models. Place the folder at the root of ./example. -
Open ./example/ios/example.xcworkspace in XCode. Right click on the
example
in the left panel, click Add Files to "example"..., select themodels
folder. -
Copy
models
folder and paste it in ./example/android/app/src/main/assets.
- For iOS, TensorFlow Lite is installed using POD:
cd ios
pod install
- Install other dependencies:
cd ..
npm install
react-native run-ios
react-native run-android