Statistics for Moving object detection, tracking and classification for smart video surveillance