Use tflite-react-native plugin to run model on images.
-
Download the folder
modelsand 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
examplein the left panel, click Add Files to "example"..., select themodelsfolder. -
Copy
modelsfolder 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
