Thanks to visit codestin.com
Credit goes to github.com

Skip to content

quincy-u/Sit-up

 
 

Repository files navigation

Sit-up!

The personalized AI posture practitioner for everyone

Run the App on your browser

make sure you installed ionic

cd SitUpFrontEnd 
npm i
ionic serve

AI module

Use tf-pose-estimation

Step1(For Mac Users):

For download of dependencies, refer to https://medium.com/@gsethi2409/pose-estimation-with-tensorflow-2-0-a51162c095ba;

Step1(For Windows Users):

For download of dependencies, refer to https://github.com/satyaborg/pose-estimation-detection;

Step2:

Add sit-up.py and sit_analysis.py to the folder "tf-pose-estimation"(For mac users)/"pose-estimation-detection"(for windows users) which should be downloaded after step 1;

Step3:

Simple test! run with webcamera: (for mac users): python sit-up.py --os=macos --direction=front or

(for windows users): python sit-up.py --os=windows --direction=front

For the argument direction, you can choose front, side45 or side90.

Note when specifying side45, for the purpose of accuracy, please make sure camera is at 45 angle of your front.

Flask

requirement

Python version > 3.3

start

$ python3 -m venv flaskApi
(linux or mac)
$ ./flaskApi/bin/activate 
(windows)
$ flaskApi\Scripts\activate
$ pip install -r requirements.txt

$ cd app
(linux or mac)
$ export FLASK_APP=main.py
(windows)
$ set FLASK_APP=main.py
$ flask run


About

The personalized AI posture practitioner for everyone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 40.0%
  • CSS 23.5%
  • Python 22.3%
  • HTML 11.5%
  • JavaScript 2.7%