Skeleton based visual pattern recognition: applications to tabletop interaction