In this series of articles, we discuss how you can build your own exercise rep counting apps using human pose estimation. Pose Estimation is a computer vision technique that uses image data and estimates the body’s landmarks using Artificial Intelligence (AI). This technology is at the forefront of the intersection between fitness and AI, and opens up new opportunities for computer-human interactions. How to build an AI lunge counter?

QuickPose makes it easy for developers to use the advanced machine learning abilities of MediaPipe and BlazePose. It offers ready-to-use code that can be easily added to your app. This makes it much faster to include features like pose estimation and skeleton tracking in mobile applications.

Click here to register with QuickPose and start building with Pose Estimation

How to count lunges using AI

As part of the QuickPose iOS SDK, you are able to add the features: Left Leg Lunges and Right Leg Lunges. This AI exercise rep counter can tell the difference between the two sides of a user, enabling fitness apps and health apps to ensure body balance in the UX of their apps.

Counting Exercise Reps Using MediaPipe in iOS with Swift

QuickPose is the quickest and easiest way to integrate MediaPipe with iOS, with the added features of pre-built classifiers, production-ready code, and customisable feedback for each exercise.

You can view the full documentation here.

  • SDK Installation: Begin by downloading and setting up the QuickPose SDK in your chosen development environment.
  • Sign Up for a No-Cost SDK Key: Navigate to the QuickPose website and sign up to obtain a free SDK Key. This key will enable you to incorporate QuickPose’s functionality into your application.

Image shows Create SDK Key button, as part of instructions to create an AI lunge counter app using quickpose.

  • Locate Your Bundle ID: Find your iOS application’s Bundle ID. This unique identifier is essential for the SDK configuration process.
  • Incorporate into SwiftUI: Proceed to integrate QuickPose with your SwiftUI views. This step includes the setup of camera permissions and linking the QuickPose SDK to your SwiftUI views.
  • Select Desired Features: QuickPose provides a variety of features, from detecting specific body parts to counting exercise reps. Select the features that align with your fitness app’s needs. For example, if you’re creating a lunge tracker, you might choose the “Left Leg Lunge Counter” and “Right Leg Lunge Counter” features.
  • Develop Customised Feedback: Lastly, enhance the user experience by developing custom feedback prompts. This can be accomplished by extending the PoseFeedback to create custom strings for messages, thereby boosting user engagement and interaction.

Click Here to register with QuickPose and Get Started

Counting Exercise Reps using MediaPipe with Flutter

While QuickPose is currently focused on supporting iOS development with Swift, the team is always on the lookout for ways to expand and improve their offerings. As such, the integration of QuickPose with Flutter for building cross-platform applications is a potential avenue for future development. This would open up the exciting possibility of using MediaPipe and QuickPose’s powerful pose detection capabilities to count exercise reps within a Flutter app. However, this would largely depend on the demand and need within the developer community. If you’re a Flutter developer interested in this feature, make sure to let the QuickPose team know to help shape their future roadmap.

Counting Exercise Reps using MediaPipe with React Native

The prospect of extending support to React Native is not off the table. Should there be substantial demand from the community, QuickPose could potentially offer integration with React Native, providing its powerful pose detection and rep counting capabilities to a wider array of applications. Community feedback is vital in shaping QuickPose’s development roadmap, so if you’re a React Native developer with interest in this feature, your voice can make a difference.

Why count lunges in your fitness app?

Leg lunges, like all lunge variations, are a fantastic compound exercise that targets several muscles and joints in your lower body. When you perform a lunge with your right leg, the primary muscles worked are:

Quadriceps (front of the thigh): Your quadriceps, especially the rectus femoris muscle, are majorly involved in the upward movement of the lunge when you push your body up using your right leg.

Glutes (buttocks): The gluteus maximus, the largest muscle in your buttocks, is significantly engaged during the lunge. It helps extend the hip and drive your body up and forward.

Hamstrings (back of the thigh): Although not as heavily engaged as the quadriceps and glutes, your hamstrings provide stability and support during the lunge.

Calves (back of the lower leg): Your gastrocnemius and soleus muscles provide balance and stability during the lunge.

Hip Flexors: Muscles like the iliopsoas and rectus femoris are stretched when you perform a lunge, promoting flexibility and mobility in the hip region.

Core Muscles (abdominal and lower back muscles): Your core muscles are activated during lunges to maintain balance, stability, and proper posture, making lunges an excellent exercise for overall core strength.

In addition to these muscles, right leg lunges also enhance your balance, coordination, and unilateral (single-side) strength and stability. It’s a highly functional exercise that can translate to improved performance in sports, daily activities, and overall physical health. Always remember to perform lunges with proper form to maximise their benefits and reduce the risk of injury.

Click Here to Get Started with building your AI Lunge Counter app with QuickPose

  1.  Visit to register with QuickPose

Any questions? Reach out to us – and let us know what you’re building.



Would you like to share your thoughts?

Your email address will not be published. Required fields are marked *