Webcam Image Classification using TensorFlow.js

On-Device Image Classification in the Browser.

Posted on March 19, 2019

Hello Everyone !!

Thanks for continuing with this post.

In the last tutorial, we saw how to make use of existing pre-trained machine learning models like mobilenet and use them for doing image classification. In this tutorial, we'll go ahead and see how to do the same on live video in the browser using your webcam or phone's camera. So, let's get started.

First, let me begin by showing you a simple demo of what we'll be building in this tutorial. Go ahead and click on the button that says "Click Me". Also provide the camera access when the browser prompts you to do so for this demo.


Model Predictions with Probability appear here.

Now that we know how to use pre-trained model to make prediction on images in the browser, now it's time to see how we can use the same model to make predictions on live video using our webcam in the browser.

Great work on completing this tutorial. Next, we'll see how to use a pre-trained model using TensorFlow.js in the browser and make predictions on live stream video. Image Classification on Live Video using TensorFlow.js

For more projects and code, follow me on Github

Please feel free to leave any comments, suggestions, corrections if any, below.

comments powered by Disqus