A Cooperative Approach to Vision-based Vehicle Detection