Vision-based traffic analyzer