Method for top view pedestrian flow detection based on small target tracking