Multi-scale crowd feature detection using vision sensing and statistical mechanics principles