 Adaptive algorithms have been developed to provide accurate counting for both outdoor and indoor locations.Multi-layer background subtraction, based on color and texture, is considered the most robust algorithm available for varying shadows and lighting conditions.With the advances in image processing, video counting can achieve 98% accuracy in some lighting environments.