GitHunt
DI

dineshkumar12004/posture-corrector-extra

Posture Corrector with Pose Estimation Example App

This app uses pose estimation to help users correct their posture by alerting them with a custom audio file when they
are slouching, leaning, or tilting their head down. As an extra bonus, this branch includes some image markup, to show
the offending posture, as well as a custom wav file for a personalized reminder to sit up straight.
A scale variable is used to adjust the keypoints measurements for different individuals, accounting for greater or
smaller natural distances between keypoints used to detect poor posture.
image

Currently, there are three branches in this repository.

  • For a basic posture corrector app that works across platforms (Mac, Windows, Linux), pull the master branch.

  • If you'd like to see how to markup streamer output and use custom audio file reminders, pull the extras branch (Note: you can replace the code that uses the audio file with the use of the 'print("\a")' used in master if you're not on a Mac, or use a different library to play the audio clip).

  • If you'd like to run the application on a Jetson Nano (tested on a B01), pull the nano branch.

Requirements

Configuration

Add any configuration settings to config.json. On the 'extras' branch you will find that config.json holds an audio file in addition to scale, but you can add any configurations you'd like to this file. The scale variable is one means of adjusting the sensitivity of the posture correction: increase this number for more relaxed requirements, and vice versa. You could customize the posture correction further with additional variables here.

Running

Please visit this link for details on running applications with alwaysAI.

Output

You should see output similar to that below.
image

If you run the extras branch, you will see additional markup on the image.
image

Troubleshooting

If you are having trouble connecting to your edge device, use the CLI configure command to reset the device.
Please see the following page for more details: https://alwaysai.co/docs/reference/cli_commands.html

Support

Docs: https://dashboard.alwaysai.co/docs/getting_started/introduction.html

Community Discord: https://discord.gg/rjDdRPT

Email: support@alwaysai.co

Languages

Python99.7%Dockerfile0.3%

Contributors

Created February 19, 2022
Updated March 8, 2023