By Tim King · Updated
Hand Gesture Recognition Online
Thumbs Up, Peace Sign, Fist and Open Palm With Live 21-Point Hand Tracking
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the Hand Gesture Recogniser works
This hand gesture recognition online demo reads your hand from the webcam. Press Start camera, allow access, and hold a hand up to the camera. A 21-point skeleton is drawn over it and the readout names the gesture: thumbs up, thumbs down, victory, pointing up, open palm, closed fist, or the "I love you" sign. The emoji for each floats above your hand. Choose 2 under Hands to track to recognise both at once — the tracker needs to reload for that, so press Start again. Snap saves a PNG of the frame.
Hand gesture recognition online: what it does and why
Hand tracking used to need a depth camera or a glove. The model on this page, MediaPipe's hand landmarker with a gesture classifier on top, does it from an ordinary webcam frame in a few milliseconds and runs entirely in your browser. It works in two stages: a palm detector finds the hand and crops it, then a landmark model places 21 points — four on each finger and one at the wrist — inside that crop. The skeleton you see connects those points in the order of the bones they sit on.
How the gesture is decided. The 21 points are turned into a small set of angles and distances that do not change with hand size or position — is the index finger extended, is the thumb above the wrist, are the other fingers curled — and a second tiny classifier maps that description onto seven named gestures. The percentage after the name is the classifier's confidence. "No gesture" means the hand is tracked but its shape does not match any of the seven well enough, which is most of what a hand does in normal life.
Left or right. The readout says which hand it thinks it is seeing. The model decides this from the arrangement of the thumb and fingers, on the assumption that it is looking at a mirror image of you, which is how the preview is shown by default. If you untick Mirror, the tool swaps the label so it still names your actual hand.
Why it sometimes loses your hand. The palm detector wants the whole hand in frame, roughly larger than a twentieth of the picture, and reasonably lit. A hand edge-on to the camera, half out of shot, or overlapping the other hand is the hard case; once the detector loses the hand the skeleton disappears until it is found again. Holding your hand a little away from your body, palm towards the camera, is the most reliable pose.
What this is for. It is a demonstration of a capability that is now cheap to build on: the same tracker drives the air-draw tool and the fingerspelling practice tool on this site, and the underlying library is open source, so it is a fair way to judge whether gesture control would work for a kiosk, a presentation clicker, or an accessibility project before writing any code. It is also simply fun to see.
Privacy. The model runs in WebAssembly inside the page. The camera stream, the landmark points and the gesture labels never leave your browser; the only network traffic is the one-time download of the model and runtime, around 12 MB, which is then cached.
FAQ
Which gestures does it recognise?
Seven: thumbs up, thumbs down, victory (two fingers), pointing up (one finger), open palm, closed fist, and the "I love you" sign from American Sign Language, which is thumb, index and little finger extended. Anything else reads as "No gesture", though the skeleton still tracks it.
Can I add my own gestures?
Not on this page — the classifier is a fixed model. Google publishes a tool called Model Maker that trains a custom gesture classifier from a few dozen photos, which is the route if you need your own set.
Why is "Left" shown for my right hand?
The label assumes the preview is mirrored, as it is by default, so it should be correct. If you have unticked Mirror the tool swaps the label to compensate. If it is still wrong, the hand is probably at an angle where the thumb position is ambiguous, and it will settle when you face your palm to the camera.
Does anything get uploaded?
No. Detection, landmark fitting and gesture classification all run locally in the page, and the frame you snap is generated and downloaded by your browser. There is no server involved beyond serving the page and the model files once.
Does it work on a phone?
Yes, using the front camera in Chrome or Safari. Tracking two hands is noticeably slower on older phones; one hand runs at full frame rate on anything recent.
See also: all Video & Screen tools, Images, Audio, PDF, SVG, Simulations & Screensavers, Generative Art, Chart Makers, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.
Related tools
Air Draw
Draw in mid-air with your fingertip using webcam hand tracking. Nothing uploaded.
Fingerspelling Practice
Practise ASL fingerspelling with webcam hand tracking that reads your letters. Nothing uploaded.
Face Mesh Filter
Live face mesh, glasses, moustache and mask overlays on your webcam. Nothing uploaded.
Posture Checker
Webcam posture checker with slouch warning and live pose tracking. Nothing uploaded.
Photo Booth
Eighty live webcam effects. Snap a PNG or record a WebM, locally.