Using haarcascade_frontalface_alt to implement “passenger flow statistics”.
The detail flow chart of the major implementation

Sample test program:https://oddmeta.net/p/easyiv/passenger_flow_statistics.7z
Sample video: https://oddmeta.net/p/easyiv/passenger_flow_statistics.avi
BTW: This video file is temporary unavailable due to the my blog’s space limitation, I’m looking for a hosting with larger hard disk space and fair price.