Fingertip Detection and Tracking for Recognition of Air-Writing in Videos

Sohom Mukherjee, Arif Ahmed, Debi Prosad Dogra, Samarjit Kar, Partha Pratim Roy · DOI

Here is a concise, engaging summary of the paper "Fingertip Detection and Tracking for Recognition of Air-Writing in Videos."

TL;DR

This paper introduces a real-time, hardware-free air-writing system that recognizes characters written in mid-air using a standard webcam. By combining a Faster R-CNN hand detector with a novel geometric signature called "distance-weighted curvature entropy," the system accurately tracks tiny fingertips and uses velocity changes as a natural pen-up/pen-down mechanism. The framework achieves an impressive 96.11% character recognition accuracy while maintaining real-time performance at 18.5 frames per second.

What Problem Does This Paper Address?

Air-writing allows users to write text in free space using finger movements. While highly intuitive for virtual reality (VR), augmented reality (AR), and smart home interfaces, doing this without specialized hardware (like data gloves, depth sensors, or colored markers) is incredibly difficult.

The authors tackle the challenge of using a standard, low-cost RGB webcam. This setup introduces three major hurdles:

  1. Fingertip Scale: Fingertips occupy a tiny fraction of a video frame, making them notoriously difficult for standard object detectors to track robustly.
  2. Visual Clutter: Unlike egocentric (first-person) views, a standard webcam captures the user's face, which shares a similar skin tone and motion profile with the hand, leading to frequent false positives.
  3. No Delimiters: In traditional writing, lowering or lifting a pen signals the start and end of a stroke. Mid-air writing lacks these natural "pen-up" and "pen-down" events, making initialization and termination hard to detect automatically.

Methods

The authors propose a complete four-stage pipeline to manage the air-writing workflow: initialization, detection, tracking, and recognition.

Figure 1: Flowchart for the proposed air-writing recognition system. The three main contributions in the
  • Writing Hand Pose Detection (Initialization): To start the system, the user raises a single index finger. The system detects the hand using a Faster R-CNN framework (with an Inception-v2 backbone), segments it using a combination of YCbCr skin color filtering and Gaussian Mixture Model (GMM) background subtraction, and counts the raised fingers using geometric properties.
  • Fingertip Detection via Distance-Weighted Curvature Entropy: Instead of running a heavy deep learning model on every frame to find the fingertip, the authors introduce a novel 1D mathematical signature function: $$\Psi(s) = u(\kappa(s)) \cdot \delta(s)^\gamma$$ This function elegantly combines scale-invariant curvature entropy ($u(\kappa(s))$)—leveraging the fact that fingertips are sharp, high-curvature points—with the distance from the hand's centroid ($\delta(s)$), since fingertips sit far from the palm center. The peak of this function reliably identifies the fingertip.

  • Hybrid Tracking: To maintain real-time speeds, the system tracks the broader hand region using a fast Kernelized Correlation Filter (KCF), which is re-initialized by the Faster R-CNN detector every 50 frames to prevent drift. Fingertip detection is then performed locally within this tracked bounding box.

  • Velocity-Based Termination: The system calculates the fingertip's frame-to-frame velocity. When the velocity drops below a tuned threshold ($\tau = 40$), it assumes the user has finished writing.
  • Smoothing & Recognition: The raw trajectory is smoothed iteratively using a curvature entropy algorithm and fed into an AlexNet architecture pre-trained on the EMNIST dataset for final character classification.

Datasets

  • Hand Detection Training: The Faster R-CNN model was trained on 15,000 annotated images combined from the public EgoFinger and EgoHands datasets.
  • Air-Writing Evaluation Dataset: Because no standard benchmark exists for webcam-based air-writing, the authors collected a new dataset. It contains 1,800 video sequences from 5 subjects writing digits (0-9) and English letters (a-z). Crucially, these videos include the subjects' faces and varying background complexities, making it more challenging than existing egocentric datasets.

Key Insights and Ideas

  • Geometric Prior over Deep Learning: Running deep object detectors frame-by-frame for tiny objects like fingertips is too computationally expensive for real-time applications. Combining a fast bounding-box tracker (KCF) with a lightweight geometric signature ($\Psi(s)$) yields both speed and precision.
  • The Power of Curvature + Distance: Curvature alone can get confused by the knuckles or irregularities in hand segmentation. Weighting curvature by the distance from the palm center effectively silences these false positives.
  • Velocity as a Natural Delimiter: Human kinematics naturally cause a brief pause or deceleration at the end of a deliberate gesture, making velocity a highly effective proxy for a physical "pen-up" action.

Key Results

  • Fingertip Tracking Precision: The proposed tracking-by-detection method achieved a mean precision of 73.1% at a strict 15-pixel distance threshold, significantly outperforming standard trackers like TLD (66.7%) and KCF alone (55.4%).
  • System Speed: The pipeline runs at 18.5 fps, satisfying the real-time requirements crucial for smooth user experience.
  • Character Recognition: The system achieved a mean accuracy of 96.11% on the webcam dataset, proving highly competitive with traditional touch-based handwritten character recognition systems.

Limitations and Future Work

Despite the strong results, the system struggles with partial hand occlusions or when the hand moves partially out of the camera frame, as this distorts the geometric features used to calculate the centroid and curvature. Additionally, the character recognition model occasionally confuses visually similar characters (e.g., '1' vs '7', '3' vs '8', and 'o' vs '0').

For future work, the authors plan to incorporate spatio-temporal and motion features directly into the recognition phase and expand the framework to support full word recognition and touchless signature verification.

Summary updated

BibTeX
@article{mukherjee2019fingertip,
  author = {Sohom Mukherjee and Arif Ahmed and Debi Prosad Dogra and Samarjit Kar and Partha Pratim Roy},
  title = {{Fingertip Detection and Tracking for Recognition of Air-Writing in Videos}},
  journal = {Expert Systems with Applications},
  year = {2019},
  doi = {10.1016/j.eswa.2019.06.034},
}
Figure