Categorization-based two-stage pedestrian detection system for naturalistic driving data