Skip to content

AIROST Internship 2022 Posture Detection System (Made by Team Rocket)

License

Notifications You must be signed in to change notification settings

LaiFooZheng/AIROST_Posture_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posture Detection System

AIROST Internship 2022 (Made by Team Rocket)

Application Icon

Posture Detection System is an Android-based mobile application which can be run on an Android mobile platform. It can detect incorrect sitting or standing postures and display messages on the app screen, namely sitting or standing hunched over and sitting crossleg.

Our project refers to an Android application demonstration by TensorFlow Lite as a foundation to build on. Our AI that detects postures is trained using Tensorflow's estimation model, MoveNet while the classification is done using a notebook provided by Tensorflow Lite. The model that we used in our application is MoveNet Thunder.

Document Structure

├───android
│   ├───app
│   │   └───src
│   └───gradle
├───document_images
├───training
│   └───posture_data
│       ├───forwardhead
│       ├───crossleg
│       └───standard

android/ contains all files relating to the application

document_images/ contains screenshots and images for README.md

training/ contains AI training sample data, screenshots and files of the training process using Google Colab pose_classification.ipynb.

Installation

To install our application on your Android device, just download and install the APK package under Releases. If you want to do some testing with our code, it is recommended to do it in Android Studio as our project is build on said platform.

Using Android Studio

Prerequisites

  • If you don't have it already, install Android Studio 4.2 or above, following the instructions on the website.

  • Android device and Android development environment with minimum API 23.

Building

  • Fork and git clone the repository in the directory you desire on your machine.

  • Open Android Studio, and from the Welcome screen, select Open an existing Android Studio project.

  • From the Open File or Project window that appears, navigate to and select the /android directory from wherever you cloned the our GitHub repo. Click OK.

  • If it asks you to do a Gradle Sync, click OK.

  • If it asks you to use Instant Run, click Proceed Without Instant Run.

  • Also, you need to have an Android device plugged in with developer options enabled at this point. See here for more details on setting up developer devices.

Execution Demonstration

After installing the Application on your Android device, there will be a prompt asking permission for camera access when opening the app.

The application itself uses the device's camera to detect if there is a target or in this case, a person, to be found. If there is, it will start counting frames per second, when it detects all 30 frames of said person is in either Hunchback or Crossleg, it will display a warning comment above the screen, if the person persist for another 30 frames, it will display a red comment.

Basically the comment on the screen will update every 30 frames based on the detected posture.

Credits

AIROST Internship 2022

Team Rocket

  • LAI FOO ZHENG
  • MUHAMMAD ADAM BIN YAACOB
  • TAN CHUN MING

About

AIROST Internship 2022 Posture Detection System (Made by Team Rocket)

Resources

License

Stars

Watchers

Forks

Packages

No packages published