Generation of Hand Trajectory
•For each frame:
–Apply skin detection to detect hand pixels.
–Apply connected component algorithm to get hand region.
–Compute the centroid of hand region.
•Connect centroid in consecutive frames to generate hand trajectory.
To get the hand trajectory.