A simple application to demonstrate tensorflowjs using mobilenet model.
Note: This demo uses the pretrained MobileNet_25_224 model from Keras. It is not trained to recognize human faces. For best performance, show the images of objects like piano, coffee mugs, bottles, etc
yarn or npm install
npm run start
npm run build
This project was bootstrapped with Create React App
Libraries I used
- Tensorflow js library.
- Used a tensorflow model called mobilenet to predict.
- Used media stream API with canvas to capture and give it to mobilenet model.
Problems I faced
- Got minification error in TensorJS from webpack uglify plugin.
- Safari browser in iOS device, the media stream API wont work unless you add
facingMode = "environment";in constraints object passed to
getUserMediaAPI + with this hack.
- After adding to homescreen, media stream API is not working in safari browser in iOS devcie.