Advanced People Tracking

Hi
Trying to achieve some level of accuracy counting people in moving crowds.

For an idea of what I am trying to achieve see

Have played with the OpenCV for Unity asset however not much luck in achieving something like the above links.
Is anyone aware of a solution?

maybe this can help, Unity Extension for Sensing People in Spaces - Community Showcases - Unity Discussions

Is this available for ios?