Objective: The objective of this study is to develop a novel algorithm on a mobile system that can warn drivers about the possibility of a collision with a pedestrian. The constraints of the algorithm are near-real-time detection speed and a good detection rate. Method: Histogram of gradients (HOG)-based detection is widely used in pedestrian safety applications; however, it has low detection speed for real-time systems. Hence, it has no direct usage for mobile systems. In order to achieve near-real-time detection speed, partial Haar transform predetections are applied to an image before HOG detection. The partial and HOG detections are merged and a score-based confidence level is defined for the final detection phase. In this way, the outcome is prioritized and different warning levels can be issued to warn the driver before a possible pedestrian collision. Results: The proposed algorithm provides an increase in detection speed (from 46 to 76 fps) and detection rate (from 80 to 91%) with respect to HOG-based pedestrian detection. It also improves confidence of the results by multidetection merging and score assignment to detections. Conclusions: Performance improvement of the algorithm is compared with respect to state-of-the-art detectors/algorithms. Based on the detection rate and detection speed performance, it can be concluded that the proposed algorithm is suitable to be used for mobile systems to warn drivers about the possibility of collision with a pedestrian.