Milan Todorovic

Detect Hand Pose with Vision

What if your app could track 21 distinct hand joints in real time? Learn to build powerful gesture-based controls using Apple's Vision framework.

Detect Hand Pose with Vision
#1about 2 minutes

Understanding the capabilities of Apple's Vision framework

The Vision framework provides out-of-the-box machine learning tools for image analysis, including object detection, image classification, and tracking faces.

#2about 3 minutes

Recognizing 21 distinct hand landmarks with Vision

Vision processes hand poses by identifying 21 specific landmarks, including the wrist, palm, and four points on each finger and thumb.

#3about 1 minute

Common issues and limitations in hand pose detection

Hand pose recognition can fail due to common real-world issues like partial occlusion, hands near screen edges, wearing gloves, or confusing hands with feet.

#4about 4 minutes

Exploring the structure of the hand tracking Xcode project

The sample application is built around three main components: a CameraView for display, a ViewController for control logic, and a HandGestureProcessor for analyzing gestures.

#5about 2 minutes

Live demo of a drawing app using pinch gestures

A live demonstration shows how to use the tips of the thumb and index finger to create a pinch gesture that draws lines on the iPhone screen.

#6about 4 minutes

Key classes and properties for implementing hand tracking

The implementation relies on key classes like CameraViewController, VNdetectHumanHandPoseRequest for analysis, and UIBezierPath for drawing the visual feedback.

#7about 5 minutes

Processing hand pose observations from the Vision framework

The VNImageRequestHandler processes the camera buffer and returns observations, from which you can extract the coordinates of specific finger joints like the thumb tip.

#8about 2 minutes

Implementing gesture state logic for pinch detection

A custom processor manages gesture states like 'pinched' or 'apart' by calculating the distance between finger landmarks and using a counter for stability.

#9about 1 minute

Applying similar techniques for human body pose detection

The same principles used for hand pose can be applied to full-body pose detection, which tracks major body joints like shoulders, eyes, and ears.

#10about 3 minutes

Exploring potential applications for pose detection

Pose detection technology can be used to build applications that understand sign language, analyze human interaction in images, or create new forms of user input.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025
BR
Benjamin Ruschin
Lessons for Vibe Coders and Developers
In late July 2025, the women-only dating-advice app Tea went viral for all the wrong reasons. Marketed as a safe, private space to anonymously flag men for “red-flag” behavior, hackers attacked the app, accessing over 70,000 user-submitted images in...
Lessons for Vibe Coders and Developers
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.