CNN-based Density Estimation and Crowd Counting