I built an AI-powered Fitness Tracker that combines computer vision with personalized AI recommendations. It uses webcam feeds for real-time pose estimation (counting reps for curls/squats) and generates custom diet and exercise routines based on a user's specific biometrics and goals.

By (@spiderboyis) · · Websites

I built an AI-powered Fitness Tracker that combines computer vision with personalized AI recommendations. It uses webcam feeds for real-time pose estimation (counting reps for curls/squats) and generates custom diet and exercise routines based on a user's specific biometrics and goals. - image 1

I wanted to build a fitness app that actually watches your form rather than just logging numbers. The system is split into a Next.js frontend and a Python/Flask backend.

The heavy lifting happens on the backend: I integrated MediaPipe and OpenCV to handle real-time video streaming and calculate smoothed joint angles to accurately track repetitions for left and right arms. Alongside the computer vision, I built AI API endpoints that take in JSON data like age, weight, and goals, and return fully tailored nutrition and workout schedules.

Note: The backend isn't deployed to production just yet, but the core idea, the computer vision architecture, and the local implementation are where this project really stands out right now!

Tech stack

  • ChatGPT
  • Perplexity
  • Claude

Prompt

I am building an AI fitness tracker with a Next.js frontend and a Python Flask backend. Write a Flask route that uses OpenCV and MediaPipe to process a webcam feed, detect human poses, calculate joint angles, and count repetitions for bicep curls. Also, create a separate JSON endpoint that accepts user biometrics and outputs a customized meal plan.

Comments (4)

  1. Jack Herzlich · · 2 likes

    Wow this looks really cool. I can’t wait to try it later!

    1. Harshit Mathur · · 1 like

      Actually it is in public repo of ours and its and old project but i wanted to share it anyways if you want i can share you github link

  2. Vision · · 2 likes

    That's really cool, you have great job man

  3. Prymyx · · 2 likes

    you killed it, will check this out and give my honest review

  4. Shreya · · 2 likes

    everyone should find this useful, no need of a fitness trainer when theres this

    1. Harshit Mathur · · 1 like

      True just need some improvements

13 likes · 8 comments · 4 views

Explore more on Prompted