Smartphone-based crosswalk detection and localization for visually impaired pedestrians