Algoritm to detect hands in a moving picture file