Turning Traffic Monitoring Cameras into Intelligent Sensors for Traffic Density Estimation