The invention discloses a vehicle real-time detection method based on a micro-
convolution neural network, which comprises the following steps: (1) preprocessing an input image, converting the input image into a gray-scale image, and normalizing the gray-scale value of the gray-scale image to be between [0, 1] or [1, 1] and reassembled to a
uniform size; (2) inputting the image data obtained in thestep (1) into a 7-layer micro-
convolution neural network, training the micro-
convolution neural network, and generating prediction boxes of different scales for
class prediction and regression targetposition; (3) training records the error on the
training set and the test error on the
verification set of each iteration; 4) judging whether that los on the successive 5 iterative
verification setsis reduced, if so, returning to the step 2) if the loss is not reduced, terminating the training, saving the parameters of the 7-layer microconvolution neural network, and checking the
feature extraction effect. The invention uses 7-layer convolution neural
network structure instead of complex VGG (Deep
Convolution Neural Network for Large Scale Image Recognition), which can be trained and testedon ordinary machines, does not need high
performance computing equipment such as GPU (
Graphics Processor) with super performance, nor does it need pre-trained network, it can be trained and tested from scratch.