The invention discloses a night preceding
vehicle detection method for heavy-duty trucks. The night preceding
vehicle detection method comprises the steps of acquiring a classifier and realizing
vehicle detection. Specifically, the classifier acquisition comprises the steps of: removing interference in a gray scale image of a driving environment in front of a heavy-duty
truck by adopting a threshold value
processing method; intercepting a vehicle-lamp-pair region as a
positive sample, and intercepting non-vehicle-lamp-pair regions as negative samples; and training the
positive sample and the negative samples by adopting an
adaboost algorithm based on haar-like features to obtain the classifier. The vehicle detection realization comprises the steps of reading a current frame gray scale image of video in real time and executing the operations as following: removing the interference in the current frame gray scale image by adopting the threshold value
processing method to obtain a detected and processed current frame gray scale image; loading the classifier; detecting a vehicle-lamp-pair region in the detected and processed current frame gray scale image; and marking the vehicle-lamp-pair region in a copy of the current frame gray scale image. The night preceding vehicle detection method for heavy-duty trucks removes
tail lamp interference, preserves shape of the vehicle lamp pair perfectly, reduces interference, simplifies the number of samples, improves the
detection rate of the classifier, marks the detection result in the original image, and verifies the practicability of the device.