The personalized AI posture practitioner for everyone
make sure you installed ionic
cd SitUpFrontEnd
npm i
ionic serveUse tf-pose-estimation
For download of dependencies, refer to https://medium.com/@gsethi2409/pose-estimation-with-tensorflow-2-0-a51162c095ba;
For download of dependencies, refer to https://github.com/satyaborg/pose-estimation-detection;
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;
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.
Python version > 3.3
$ 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