Skip to content

Repository files navigation

Body-detection-Android-app

Introduction

This Android app has been developed as thesis project for the bachelor's degree in computer engineering at the University of Modena and Reggio Emilia. It utilizes Google's ML Kit to recognize a pair of movements made by the human body. It was created using this app as a reference.

How it works

On the main screen of the app all the recognizable movements are displayed. Once a movement is selected, the app activates the camera. If a human body is detected, ML Kit is used to track the user's pose, composed of 33 points in a three-dimensional space.

image

For each movement there are 2 poses: a starting pose and an ending pose. Every pose has hundreds of sample images that have been analyzed and the results have been saved in a CSV file named fitness_pose_samples.csv. Once the camera is launched and a human body is detected for every frame the pose is analyzed and a coefficient is calculated using the k-nearest neighbors algorithm (k-NN) to determine how closely the analyzed pose matches those in the CSV file corresponding to the selected pose. When the probability of the final pose class passes a given threshold for the first time the final pose is marked as entered. When the probability drops below the threshold, the algorithm marks that the final pose class has been exited and the movement is considered finished.

Video

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages