Guides

How Hand Gesture Recognition Works in Your Browser

By Skycally Team

Hold up a peace sign in front of your webcam and the page names it a moment later. It feels like magic, but it is a straightforward idea that is easy to explain, and understanding it also tells you how to get better results. The Skycally Hand Gesture Recognition tool runs in your browser, uses your camera, and does not upload your video. This guide explains how it works in two steps, what the on-screen numbers mean, how to hold your hand so it is recognised, and what stays on your device.

Step one: finding the hand

The heavy lifting is done by MediaPipe Hands, an open-source hand-tracking system from Google. Google’s research team describes it as two machine-learning models working together. The first, a palm detector, scans the camera image and returns a box around each hand. The second, a hand landmark model, looks only at that cropped region and predicts 21 three-dimensional points on the hand: the wrist, the knuckles and the joints and tips of all five fingers. The result is a kind of digital skeleton that follows your hand from frame to frame. You can see that skeleton drawn over your camera image, in a different colour for each hand. The tool tracks up to two hands at once.

Step two: turning the skeleton into a gesture

MediaPipe gives you points, not words. Something else has to decide that a particular arrangement of points means “thumbs up.” Google’s own description of this stage is a simple rule-based recogniser that works out whether each finger is bent or straight and then maps those finger states to a list of predefined gestures, such as thumb up, closed fist, OK and rock. Skycally follows the same approach with its own rules:

  • A finger counts as up when its tip is higher in the image than the middle joint of the same finger.
  • The thumb is judged by sideways position, and the tool takes into account whether it is a left or right hand.
  • The tool then compares the pattern of raised and lowered fingers with its list. Index and middle finger up with the others down is Peace. Only the index finger up is Pointing. Index and little finger up is Rock On. All fingers down is a Fist. All four fingers up is an Open Hand. A thumb up with every other finger down is Thumbs Up.
  • If a hand is detected but no rule fits, the tool shows “Hand Detected.”

The gestures you can expect it to recognise are Open Hand, Fist, Thumbs Up, Thumbs Down, Pointing, Peace, Rock On, Call Me, OK, Three fingers and Pinky. The OK gesture is recognised when the index finger is curled and the other three fingers are up. It does not check whether your thumb and index finger actually touch.

What the numbers on screen mean

Next to each gesture you will see a percentage, labelled as a preset score. It is worth understanding what it is. It is a fixed value that belongs to the rule that matched, and it is not a measurement of how certain the model is about your particular hand. Think of it as a label on the gesture rather than a probability. The tool also keeps a short history of your last eight different gestures, so you can see the order in which they were recognised.

There is one real detection threshold behind the scenes: the tool only reports a hand when MediaPipe is at least 75 percent confident that a hand is present. If your hand flickers in and out, that is why. Better light or a clearer view usually helps.

How to hold your hand for better results

  1. Keep your fingers pointing up. Because the rules compare heights in the picture, a hand that is turned sideways or upside down can be misread.
  2. Face your palm toward the camera for most gestures, and show the back of your fist for Thumbs Up and Thumbs Down in the way that feels natural.
  3. Use even light. A window or lamp in front of you is better than one behind you, which turns your hand into a silhouette.
  4. Choose a plain background where you can. Busy backgrounds with skin-coloured objects make detection harder.
  5. Keep the whole hand in the frame and at a comfortable distance, roughly an arm’s length or a little closer.
  6. Use one hand for gestures. Two hands can be tracked, but the gesture name is based on the first hand the system detects.
  7. Hold the pose for a second. Move between gestures deliberately so that each one is clearly formed.

Using the tool

  1. Open the page and wait for the hand-tracking model to finish loading.
  2. Allow camera access when your browser asks. On a phone, the tool asks for the front camera.
  3. Hold a hand in view and watch the skeleton and the gesture name.
  4. Use the mirror button to switch between a mirrored view, which feels natural like a mirror, and the normal camera view.
  5. Save a screenshot of a gesture, or clear the history to start again.

What stays on your device

Your camera image is processed inside your browser, and the tool does not send your video to our servers. The hand-tracking code and model files are downloaded from a public code library when the page loads, so you need an internet connection to start it, but nothing about your video travels with that request. Your browser decides who may use the camera, and you can switch that permission off at any time in the site settings of your browser. When you close the page, the camera stops.

What this tool is not

  • It is not a sign-language translator. Real sign languages use movement, facial expression and many hand shapes that this simple rule set does not model.
  • It does not identify who you are. It tracks hand shapes, not faces or identities.
  • It is a demonstration, not a control system. It names gestures and does not trigger actions on your computer.
  • It is not perfectly accurate. Lighting, angle and the shape of your hand all affect the result, and some people form familiar gestures differently.

Things to try

  • Make each gesture slowly and watch how the skeleton changes. Notice which fingers the tool treats as up.
  • Turn your hand sideways while showing Peace and see when it stops being recognised.
  • Try left and right hands and compare the results.
  • If you are curious about how a machine recognises objects rather than hands, try our Object Detection tool.

Tell us what is missing

If a gesture you expected is not recognised, or you have an idea for one we should add, please send us a message.

Sources and last verified: November 2026

The facts, figures and studies mentioned in this article come from the sources below. Figures and rules can change, so check the original if a decision depends on an exact number. Gesture names come from simple rules applied to hand landmarks. The tool is a demonstration and is not a sign-language translator or a control system.

You might also like

Other tools you might find useful.