https://github.com/admataz/react-native-image-classifier
Experimental machine learning image classification for mobile with Tensorflow
https://github.com/admataz/react-native-image-classifier
Last synced: over 1 year ago
JSON representation
Experimental machine learning image classification for mobile with Tensorflow
- Host: GitHub
- URL: https://github.com/admataz/react-native-image-classifier
- Owner: admataz
- Created: 2020-06-12T21:41:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T21:42:31.000Z (over 3 years ago)
- Last Synced: 2025-01-21T17:34:20.790Z (over 1 year ago)
- Language: JavaScript
- Size: 5.31 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tensorflow React Native Camera Image classifier
This is an exeriment with the `Camera` capabilities of [@tensorflow/tfjs-react-native](https://www.npmjs.com/package/@tensorflow/tfjs-react-native) and using my phone's camera to capture and classify images on the fly. It uses the _mobilenet_ model from Tensorflow.
Also experimented with capturing predictions from [handpose](https://blog.tensorflow.org/2020/03/face-and-hand-tracking-in-browser-with-mediapipe-and-tensorflowjs.html) (see the commented out code)
## To develop/run locally
Make sure you have [Expo](https://expo.io/learn) installed on your development environment
You will need an ios or android device with the Expo client
- Check out the code from this repository.
- In your terminal, `cd` to the project directory.
- Run `npm install`
- Run `expo r -c`
The expo tools should launch from where you can build and run the example on your phone.
 
### Further reading and links
- [TensorFlow.js for React Native is here! — The TensorFlow Blog](https://blog.tensorflow.org/2020/02/tensorflowjs-for-react-native-is-here.html?m=1)
- [@tensorflow/tfjs-react-native - npm](https://www.npmjs.com/package/@tensorflow/tfjs-react-native)
- [TensorFlow.js React Native API](https://js.tensorflow.org/api_react_native/0.2.3/)