Image processing system for traffic measurement