Many applications in computer vision require detection and tracking objects or people moving in a scene. Several methods have been developed in this context and the results obtained with this method depend on the field of application. The main goal of our work is to design a system for automatic analysis of simple and complex scenes through the proposal new algorithm for automatically analyzing people in motion.