Deep Fundamental Diagram Network for Real-Time Pedestrian Dynamics Analysis