This application counts pushups and gives form feedback in real-time using your webcam. It utilizes OpenCV for video capture, MediaPipe for pose detection, and Streamlit for the web interface.
- Real-time pushup counting
- Form feedback to ensure correct posture
- Visual progress bar indicating pushup motion
-
Clone the repository:
git clone https://github.com/yourusername/pushup-counter.git cd pushup-counter
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Ensure your webcam is connected and functioning.
-
Run the Streamlit application:
streamlit run app.py
-
A new tab will open in your default web browser displaying the application.
app.py
: Main application code.PoseModule.py
: Custom module for pose detection using MediaPipe.requirements.txt
: List of required Python packages.