Day and night pedestrian detection using cascade AdaBoost system