Spatio-temporal crowd density model in a human detection and tracking framework