This code goes with blog post Detecting Bad Posture With Machine Learning - An Introduction to Real-Time Ergonomic Feedback Using Computer Vision and Machine Learning
with anaconda:
conda create -n ergonomy python=3.7
conda activate ergonomy
python -m pip install mediapipe
python main.py