Smart-AI-Gym-Trainer-With-RealTime-Exercise-Tracking-and-Nutrition-Assistant
AI Gym Trainer is an all-in-one smart fitness platform that combines computer vision and artificial intelligence to deliver real-time exercise tracking, posture correction, and dietary analysis. Using OpenCV, MediaPipe, and a custom pose estimation model, the system detects seven exercises including squats, push-ups, and dumbbell curls, providing instant feedback on form with messages such as Good Posture or Fix Your Form. A built-in YOLOv5 based food recognition module estimates nutritional content from camera-captured images, enabling smart diet tracking. The application calculates key health metrics like BMI and BMR, stores user data in a MySQL database, and generates personalized workout routines and meal plans tailored to individual body profiles and goals such as weight loss, muscle gain, or maintenance. The platform features a web interface built with HTML, CSS, and PHP alongside a Python backend using Flask or Streamlit and a Tkinter desktop option. It also includes badges, achievement tracking, macro