TensorFlow.js - Cricket Shot classification using Pose Detection

In this article, we will look at how to use Pose Detection in TensorFlow.js to classify cricket shots. In the game of cricket, there are many different shots played, such as cover drive, square cut, flick, sweep, straight drive, etc. In this example, we will attempt to classify three cricket shots - cover drive, flick and square cut. We will utilize BlazePose TensorFlow.js model to obtain the poses from images of players playing the above shots. We will then feed these poses data to a KNN classifier to classify between these three shots. ...

November 13, 2021 · 6 min

Pose Detection using BlazePose in TensorFlow.js

Human Pose Detection is fascinating as there are endless use cases and opens up the possibility for various kinds of applications which were earlier either difficult to build or required specialized hardware and software. Photo by Alex Shaw on Unsplash In this article, I will walk you through the steps required to build a simple JavaScript app that detects human poses using Pose Detection API in TensorFlow.js utilizing the Mediapipe BlazePose model. 1. Overview Pose Detection API in TensorFlow.js provides a common interface to work with three different models - MoveNet, BlazePose and PoseNet. We will be looking at how to utilize the Mediapipe BlazePose model and build an app that detects human poses in a video in real time. ...

October 11, 2021 · 7 min

Image Categorization using Object Detection in TensorFlow.js

I have often wondered if I can build a tool that can accept custom queries to filter photos and images based on the items present in the image. There are some popular apps such as Google Photos, OneDrive, etc. which provide this sort of functionality to various degrees but they don’t necessarily let the user enter custom queries to filter images. In this article, we will look at utilizing TensorFlow.js pre-trained COCO-SSD object detection model to categorize and filter images. ...

October 6, 2021 · 6 min

Change background for videos using TensorFlow.js

As most of us are working from home now, it has become a normal thing to set a custom background for our video calls through popular apps such as Zoom or Microsoft Teams. In this article, we will look at how to change the background for live webcam videos using TensorFlow.js. Person Segmentation in action We will be making use of the BodyPix model which is a pre-trained TensorFlow.js model. This model performs image segmentation - specifically person and human body parts segmentation. ...

October 4, 2021 · 6 min

Understanding the Real Time Person Removal project - TensorFlow.js

Most of us interested in TensorFlow.js would be familiar with the popular demo of disappearing people in real time by Jason Mayes. This is a fantastic example of what is possible using TensorFlow.js in the browser. Jason is gracious to share the code of this application for others to learn and implement their own versions of such applications. In this article, I will attempt to document and walkthrough this code, so that it helps anyone who is trying to understand the code for this app. ...

October 2, 2021 · 9 min

Object Detection using TensorFlow.js

In this article, we will be building a simple app to detect objects on an image using TensorFlow.js library. To do this we will make use of the TensorFlow.js pre-trained “coco-ssd” model. In this example, user will browse and select an image file to identify objects present in that image. This selected image file is only handled on the client side within the browser and not uploaded to any server. ...

October 1, 2021 · 3 min