All projects

Computer vision · Temporal classification

Hand Gesture Recognition

A temporal computer-vision study that turns two-hand landmark sequences into six gesture labels. Its evidence is numerical rather than photographic: 180 sequences, a 30×126 frame representation and a three-layer LSTM.

  • MediaPipe
  • LSTM
A six-stage pipeline from camera frames through landmark extraction and a sequence buffer to an LSTM and a gesture label.

What it is

Hand Gesture Recognition classifies movement across time rather than treating each camera frame as an independent image. MediaPipe extracts numerical hand landmarks, and the model reads a 30-frame window before producing one of six labels: one, two, three, four, five or ok.

The retained dataset contains landmark arrays only, not raw training images or video.

How it works

Each detected hand contributes 21 x/y/z landmarks. Two fixed 63-value hand slots create 126 features per frame, and 30 frames form one sequence. The dataset contains 30 sequences for each of six classes: 180 sequences in total.

The model shape is (30,126) → LSTM 64 → LSTM 128 → LSTM 64 → Dense 64 → Dense 32 → Softmax 6, with 203,558 trainable parameters. Training used Adam and categorical cross-entropy on an unseeded, unstratified 171/9 split.

The final recorded nine-sequence holdout classified 9/9 sequences correctly. The small holdout and split design keep that sentence deliberately qualified.

A focused supporting study

The project widens the portfolio into computer vision and temporal neural networks while staying honest about scale and evaluation. Its strongest lesson is the representation choice: a gesture is a sequence of changing landmarks, not one still frame.