The document describes two methods for real-time finger detection from video captured by a laptop camera. The first method uses background subtraction and HSV segmentation to create a mask of the hand region. The second method then finds the largest contour within the mask, representing the hand shape. It calculates the hand's convex hull and convexity defects, which likely indicate spaces between fingers, to manually count the number of fingers. Alternatively, a convolutional neural network can be trained to determine the finger count directly from the masked input.
Related topics: