Vehicle information identification method, system, memory and processor

Through the vehicle information identification method based on the yolov3 network, vehicle information is directly parsed into structured information, which solves the problem of long vehicle information identification and detection in the existing technology and achieves fast and efficient identification efficiency.

CN111291779BActive Publication Date: 2024-09-13SHENZHEN KUANG CHI SPACE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201811500432.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-07
Publication Date
2024-09-13
Estimated Expiration
2038-12-07

AI Technical Summary

Technical Problem

Existing video surveillance vehicle information systems have room for improvement in terms of fine-grained classification and real-time accuracy. Traditional methods require multiple analyzes and fusion of information, and the process is cumbersome and time-consuming.

Method used

Based on the yolov3 network, establish a vehicle information data set, set network parameters, train a multi-attribute network model, realize end-to-end input and output, directly parse vehicle information into structured information, reduce the time-consuming identification and detection process, and improve identification efficiency.

Benefits of technology

The vehicle information recognition and detection process is fast and efficient. The network output is structured information of the vehicle, which is generally applicable to the field of vehicle detection. The recognition efficiency is high and suitable for the field of vehicle detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111291779B
    Figure CN111291779B
Patent Text Reader

Abstract

The present invention provides a vehicle information recognition method, system, memory and processor. The vehicle information recognition method includes establishing a vehicle information data set; training the vehicle information data set based on a yolov3 network to obtain a multi-attribute network model that can recognize the vehicle information; and using the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of an image to be recognized, so as to recognize the vehicle structured information in the image to be recognized. On the basis of yolov3, the network parameters that affect the performance of the network model are set to make the convergence speed faster and the effect of the network model better, and directly parse the information of the vehicle itself into each independent class to achieve end-to-end input and output, so that the network output is the structured information of each vehicle, so that the vehicle information recognition and detection process is less time-consuming and has high recognition efficiency, and is generally applicable to the field of vehicle detection.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of information identification technology, and in particular to a vehicle information identification method, system, memory and processor. [Background technology]

[0002] At present, as an important part of smart security and smart transportation in the Internet of Things applications for comprehensive urban public safety management, the video surveillance vehicle information system faces huge challenges in deep application. The main application bottleneck is how to quickly and efficiently extract the vehicle structured information in the video.

[0003] The traditional video surveillance vehicle information system uses the convolutional neural network method, which can extract different input features, including shallow features, deep features, local features, etc., and classify them according to the feature information. At present, it has achieved good results in image classification, but there is still room for improvement in the real-time and accuracy of fine-grained classification. It cannot uniformly extract vehicle information and requires multiple analyses and fusion of information. The process is cumbersome and time-consuming. [Summary of the invention]

[0004] The technical problem to be solved by the present invention is to provide a vehicle information recognition method, system, memory and processor, which can directly parse the vehicle information itself into each independent class based on yolov3, realize end-to-end input and output, and make the network output the structured information of the vehicle, so that the vehicle information recognition and detection process is less time-consuming and has high recognition efficiency.

[0005] To solve the above technical problems, on the one hand, an embodiment of the present invention provides a vehicle information identification method, including: establishing a vehicle information data set; setting parameters based on the yolov3 network; training the vehicle information data set based on the yolov3 network to obtain a multi-attribute network model that can identify the vehicle information; using the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0006] Preferably, the establishing of the vehicle information data set includes: preprocessing the vehicle information data set; and performing data enhancement processing on the vehicle information data set.

[0007] Preferably, the setting of the yolov3 network parameters includes: setting the class parameters based on the yolov3 network to the number of categories defined by the vehicle information data set; setting the filter parameters based on the yolov3 network to 3×(class parameters+5).

[0008] Preferably, the vehicle information data set is trained based on the yolov3 network to obtain a multi-attribute network model that can identify the vehicle information, including: using a labeling tool to classify the vehicle information data set and generate a calibration file in .xml format; converting the calibration file in .xml format into a .txt file, and generating a .txt file that stores the path of each image in the vehicle information data set; and changing the network hyperparameters according to the category settings in the vehicle information data set.

[0009] Preferably, the use of the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified includes: inputting video resources or static images containing vehicle information into the trained network model, and outputting the structured information of the vehicle information at one time.

[0010] Preferably, the preprocessing of the vehicle information data set includes: counting the vehicle information data set and storing them in different folders according to different categories.

[0011] Preferably, the data enhancement processing of the vehicle information data set includes: flipping the image of the vehicle information data set, and renaming the corresponding flipped image and saving it in the same folder as the image of the vehicle information data set.

[0012] Preferably, the data enhancement processing of the vehicle information data set includes: mirroring the image of the vehicle information data set, and renaming the corresponding mirror image and saving it in the same folder as the image of the vehicle information data set.

[0013] Preferably, the flipping angle is -15° to 15°.

[0014] Preferably, converting the calibration file in .xml format into a corresponding .txt format file and generating a .txt file storing the path of each image in the vehicle information data set includes: reading the calibration file in .xml format to obtain the width and height of the image containing the vehicle data set, the width and height and category of the vehicle contained in the image of the vehicle data set; normalizing the width and height of the vehicle contained in the image of the vehicle data set; calculating the coordinates of the center point of the vehicle contained in the image of the vehicle data set; saving the category serial number, center point coordinates and width and height information of the vehicle contained in the image of the vehicle data set as a .txt text file; generating a .txt text file storing the path of the vehicle information data set sample.

[0015] Preferably, the .txt text file is saved in a tag folder.

[0016] Preferably, the normalizing the width and height of the vehicles contained in the images of the vehicle data set refers to: converting the aspect ratio of the vehicles contained in the images of the vehicle data set into a value between 0 and 1.

[0017] On the other hand, an embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored program, wherein the above-mentioned vehicle information identification method is executed when the program is run.

[0018] On the other hand, an embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the above-mentioned vehicle information identification method when running.

[0019] On the other hand, an embodiment of the present invention provides a vehicle information identification system, comprising: a vehicle information data set setting module, a yolov3 network parameter setting module, a yolov3 network training module, and a yolov3 network prediction module electrically connected; the vehicle information data set setting module is used to establish a vehicle information data set; the yolov3 network parameter setting module is used to set yolov3 network parameters; the yolov3 network training module is used to train the vehicle information data set to obtain a multi-attribute network model that can identify the vehicle information; the yolov3 network prediction module is used to use the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0020] Preferably, the vehicle information data set setting module also includes a data preprocessing module and a data enhancement processing module, the data preprocessing module is used to preprocess the vehicle information data set; the data enhancement processing module is used to perform data enhancement processing on the vehicle information data set.

[0021] Preferably, the YOLOv3 network parameter setting module sets the number of categories defined for the vehicle information data set based on the class parameters in the YOLOv3 network; and sets the filter parameters in the YOLOv3 network parameters to 3×(class parameters+5).

[0022] Preferably, the data preprocessing module counts the vehicle information data set and stores it in different folders according to different categories.

[0023] Preferably, the data enhancement processing module performs a flipping process on the image of the vehicle information data set, and saves the corresponding flipped image in the same folder as the image of the vehicle information data set with a different name.

[0024] Preferably, the data enhancement processing module performs mirror processing on the image of the vehicle information data set, and saves the corresponding mirror image under a different name in the same folder as the image of the vehicle information data set.

[0025] Compared with the prior art, the above technical solution has the following advantages: on the basis of yolov3, the network parameters that affect the performance of the network model are set, so that the convergence speed is faster and the effect of the network model is better, and the information of the vehicle itself is directly parsed into each independent class to achieve end-to-end input and output, so that the network output is the structured information of the vehicle, so that the vehicle information recognition and detection process is less time-consuming and has high recognition efficiency, and is generally applicable to the field of vehicle detection.

Brief Description of the Drawings

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 It is a flow chart of the vehicle information identification method of the present invention.

[0028] Figure 2 It is a flow chart of a preferred embodiment of the vehicle information identification method of the present invention.

[0029] Figure 3 It is a structural diagram of the vehicle information identification system of the present invention. [Specific implementation method]

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] Yolov3 mainly explains from three aspects: network input, structure and output.

[0032] (1) Network input: The size of network input is generally 320*320, 416*416, 608*608. This size must be an integer multiple of 32. Yolov3 has 5 downsamplings, and each sampling step is 2, so the maximum stride of the network (the stride refers to the input size of the layer divided by the output) is 2^5=32.

[0033] (2) Network structure: Generally, a darknet-53 is trained first. The training is mainly for two purposes: a. This network structure can have good classification results in ImageNet, which shows that the network can learn good features (design a new network structure, which is equivalent to adjusting parameters), and b. Initialize the subsequent detection model. Compared with ResNet-152 and ResNet-101, darknet-53 is not only similar in classification accuracy, but also has a much faster computing speed than ResNet-152 and ResNet-101, and has fewer network layers than them.

[0034] Darknet-53 uses the skip-layer connection method of ResNet, and its performance is much better than that of ResNet-152 and ResNet-101, two deep networks. The reasons are: the difference in the basic units of the network; the fewer network layers, the fewer parameters, and the less calculation required.

[0035] The yolov3 network uses the first 52 layers of darknet-53 (without fully connected layers). The yolov3 network is a fully convolutional network that uses a large number of residual skip-layer connections. In previous work, sampling was generally downsampled using max-pooling or average-pooling with a size of 2*2 and a stride of 2. However, in this network structure, convolution with a stride of 2 is used for downsampling. At the same time, upsampling and routing operations are used in the network, and 3 tests are performed in one network structure.

[0036] The benefits of using residual structures: A key point of deep models is whether they can converge normally. The residual structure can ensure that the network structure can still converge even when it is very deep, and the model can be trained. The deeper the network, the better the features expressed, and the better the classification + detection effects. The 1*1 convolution in the residual uses the idea of ​​network in network, which greatly reduces the channel of each convolution, reducing the number of parameters on the one hand (the larger the number of parameters, the larger the saved model), and reducing the amount of calculation to a certain extent on the other hand.

[0037] (3) Network output:

[0038] a. First, determine the size of the network output feature layer. For example, when the input is 320*320, the output is 320 / 32=10, so the output is a 10*10 feature layer (feature map), with 10*10=100 cells; similarly, when the input is 416*416, the output feature layer is a 13*13 feature layer, with 13*13=169 cells; when the input is 608*608, the output feature map size is 19*19, with 19*19=361 cells. Each time up-sampling is performed, the output feature layer doubles.

[0039] b. Determination of Anchorbox. This prior box is different from the manual setting of Faster-Rcnn and SSD. In both yolov2 and yolov3, k-means clustering is used for objects in the image.

[0040] c. Each cell in the feature map predicts three bounding boxes, and each bounding box predicts three things: (1) the location of each box (4 values, center coordinates tx and ty, box height bh and width bw), (2) an objectness prediction, and (3) N categories, 80 categories in the coco dataset and 20 categories in voc. Therefore, for the coco dataset, when the network input is 416*416, the network output size is 13*13(3*(4+1+80))=43095

[0041] YOLO3 uses the sigmoid function for center coordinate prediction. This makes the output value between 0 and 1. Normally, YOLO does not predict the exact coordinates of the center of the bounding box. It predicts: the offset relative to the upper left corner of the grid cell of the predicted target; and it is normalized using the cell size in the feature map.

[0042] When the input image is 416*416, if the center prediction is (0.4,0.7), the relative coordinates of the second cell on the 13x 13 feature map are (1.4,1.7). The specific x-coordinate of the position also requires 1.4 multiplied by the width of the cell, and the y-coordinate is 1.7 multiplied by the height of the cell.

[0043] Bounding box width bw and height bh

[0044] The predicted bw and bh obtained by yolov3 are normalized using the height and width of the image. The predicted bx and by of the box are (0.3, 0.8), so the actual width and height of the 13x 13 feature map are (13x 0.3, 13x 0.8).

[0045] d. Three times of detection, each corresponding to a different feeling, 32 times downsampling has the largest feeling, suitable for detecting large targets, so when the input is 416*416, the three anchor boxes of each cell are (116,90); (156,198); (373,326). 16 times is suitable for objects of average size, the anchor boxes are (30,61); (62,45); (59,119). 8 times has the smallest feeling, suitable for detecting small targets, so the anchor boxes are (10,13); (16,30); (33,23). So when the input is 416*416, there are actually a total of (52*52+26*26+13*13)*3=10647 proposal boxes.

[0046] Embodiment 1

[0047] Figure 1 FIG. 1 is a flow chart of the vehicle information identification method of the present invention. Figure 1 As shown, a vehicle information identification method comprises the steps of:

[0048] S11, establishing a vehicle information data set;

[0049] S12, set the network parameters based on yolov3;

[0050] S13, training the vehicle information data set based on the yolov3 network to obtain a multi-attribute network model that can identify vehicle information;

[0051] S14. Use the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0052] Collect a certain number of vehicle information samples, establish a vehicle information data set, set the network parameters based on yolov3, and train the collected vehicle information samples. The training results produce a multi-attribute network model that can identify vehicle attributes. For the structured information of the vehicle information of the image to be identified, such as the model, year, body color and other attributes, one-time recognition is performed.

[0053] By adopting the vehicle information recognition method of the present invention, through network training, in an end-to-end manner, a large amount of vehicle information can be recognized at one time to obtain the structured information of each vehicle, with fast recognition speed and high efficiency.

[0054] Embodiment 2

[0055] Figure 2 FIG. 1 is a flow chart of a preferred embodiment of the vehicle information identification method of the present invention. Figure 2 As shown, in specific implementation, step S11 of establishing a vehicle information data set includes: preprocessing the vehicle information data set; performing data enhancement processing on the vehicle information data set. The vehicle information data set can be a video from different vehicles, or a static image set containing different vehicles. Since the number of vehicle samples used for training is usually small and unevenly distributed, it is necessary to perform data enhancement processing on the vehicle information data set, so as to increase the amount of vehicle sample data used for training and make the training results more reliable.

[0056] Preprocess the vehicle information dataset, such as counting the vehicle information dataset and storing it in different folders according to different categories. Perform data enhancement processing on the vehicle information dataset, such as flipping some images of the vehicle information dataset in sequence, and saving the corresponding flipped images in the same folder as some images of the vehicle information dataset. In order to ensure the rationality of image flipping, the flipping angle can be set to -15°~15°. Some images of the vehicle information dataset can also be mirrored, and the corresponding mirrored images can be saved in the same folder as some images of the vehicle information dataset. Samples with a small number of images have relatively more diverse angle transformations, thereby achieving the effect of sample balance and sample diversification. Generally, flipping or mirroring is performed according to the number of test samples and the specific size of the vehicle information dataset images.

[0057] Input process of network training:

[0058] Since this method is based on supervised learning, it is necessary to make corresponding labels for the samples.

[0059] Step 1: Use the calibration tool labelImg to calibrate all samples in the folder vehicle information dataset image. Among them, all categories of vehicle structured information such as model, year, and body color are independently classified into one category, and the categories are independent of each other. After the samples are calibrated, the corresponding .xml format calibration file is generated.

[0060] Step 2: Convert the generated .xml calibration files into .txt files one by one. By reading the information in the .xml calibration file, such as the width and height of the image of the vehicle data set, the width and height of the vehicles contained in the image of the vehicle data set, and the category of the vehicles contained in the image of the vehicle data set, the width and height of the vehicles contained in the image of the vehicle data set are normalized, such as setting the width and height ratio of the vehicles contained in the image of the vehicle data set to between 0 and 1, and calculating the coordinates of the center point, and saving them as .txt files in the form of the category number, center point coordinates, and width and height of the vehicles contained in the image of the vehicle data set. Converting .xml format files to .txt format files is achieved through software code.

[0061] Step 3: Generate a .txt text file containing the paths of all samples as input for network training.

[0062] Network parameter settings:

[0063] The parameters of the detection layer in the yolov3 network model need to be defined according to the number of categories of the network input. If the number of categories changes, the number of filters in the corresponding network detection layer will also change accordingly. In addition, the learning rate has a profound impact on the performance of the network model.

[0064] Step 1: The category parameter in the network is equal to the number of categories defined by all samples.

[0065] Step 2: The filters in the network parameters are calculated according to the formula filters = 3 × (class parameters + 5). This setting method is based on the method recommended by the yolov3 network.

[0066] Step 3: According to the experimental summary, the learning rate directly affects the performance of the network model. After multiple experiments, the hyperparameter learning rate is adjusted. For example, the learning rate value can be 0.001, 0.0001, 0.00001, etc. Finally, the appropriate value needs to be selected according to the training needs so that the network training can converge quickly and the network model performance is better.

[0067] Attribute prediction:

[0068] The obtained multi-attribute network model is used to perform multi-attribute prediction on the vehicle information of the image to be identified. Any vehicle video is input into the multi-attribute network model, and the output is the structured information such as the model, year, body color, etc. of the vehicle to be predicted.

[0069] By adopting the vehicle information identification method of the present invention, the information of the vehicle itself is directly parsed into each independent class on the basis of yolov3, and end-to-end input and output are realized, so that the network output is the structured information of the vehicle, so that the vehicle information identification and detection process is less time-consuming and has high recognition efficiency.

[0070] Embodiment 3

[0071] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the above-mentioned vehicle information identification method process is executed when the above-mentioned program is run.

[0072] Optionally, in this embodiment, the storage medium may be configured to store a program code for executing the following vehicle information identification method process:

[0073] S11, establishing a vehicle information data set;

[0074] S12, set the network parameters based on yolov3;

[0075] S13, training the vehicle information data set based on the yolov3 network to obtain a multi-attribute network model that can identify vehicle information;

[0076] S14. Use the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0077] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0078] It can be seen that by adopting the storage medium of the present invention, the program of the built-in vehicle information identification method process runs faster, thereby quickly and efficiently completing the identification of all vehicle information.

[0079] Embodiment 4

[0080] An embodiment of the present invention further provides a processor, which is used to run a program, wherein the program executes the steps in the above-mentioned vehicle information identification method when running.

[0081] Optionally, in this embodiment, the above program is used to perform the following steps:

[0082] S11, establishing a vehicle information data set;

[0083] S12, set the network parameters based on yolov3;

[0084] S13, training the vehicle information data set based on the yolov3 network to obtain a multi-attribute network model that can identify vehicle information;

[0085] S14. Use the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0086] Optionally, the specific examples in this embodiment may refer to the above embodiments and the examples described in the specific implementation, and this embodiment will not be described in detail here.

[0087] It can be seen that by adopting the processor of the present invention, the program of the built-in vehicle information identification method process runs faster, thereby quickly and efficiently completing the identification of all vehicle information.

[0088] Embodiment 5

[0089] Figure 3 FIG. 1 is a structural diagram of the vehicle information recognition system of the present invention. Figure 3 As shown, a vehicle information recognition system includes: a vehicle information data set setting module electrically connected, a YOLOv3 network parameter setting module, a YOLOv3 network training module, and a YOLOv3 network prediction module;

[0090] The vehicle information data set setting module is used to establish a vehicle information data set;

[0091] The yolov3 network parameter setting module is used to set the yolov3 network parameters;

[0092] Based on the yolov3 network training module, the vehicle information data set is trained to obtain a multi-attribute network model that can identify vehicle information;

[0093] The yolov3 network prediction module is used to apply the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

[0094] In specific implementation, the vehicle information data set setting module also includes a data preprocessing module and a data enhancement processing module. The data preprocessing module is used to preprocess the vehicle information data set, for example, storing it in different folders according to different categories. The data enhancement processing module is used to perform data enhancement processing on the vehicle information data set, for example, flipping the image of the vehicle information data set, and renaming the corresponding flipped image and saving it in the same folder as the image of the vehicle information data set. Considering the effectiveness of the data enhancement processing, the flipping angle can be set to -15° to 15° as needed. The data enhancement processing module can also mirror the image of the vehicle information data set, and rename the corresponding mirrored image and save it in the same folder as the image of the vehicle information data set. If the number of vehicle information data sets is n (n>1), half of the data needs to be flipped and the other half needs to be mirrored, then the number of vehicle data sets formed in the end is 2n, which can increase the number of samples for training, making the subsequent network training more accurate.

[0095] Based on the yolov3 network parameter setting module, the number of categories defined for all samples based on the class parameters in the yolov3 network is set; the filter parameters based on the yolov3 network parameters are set to 3×(class parameters+5); according to multiple experimental results, the learning rate parameters based on the yolov3 network parameters are set.

[0096] In the process of training the vehicle information data set based on the yolov3 network training module, the vehicle information data set is calibrated by a marking tool to generate a calibration file in .xml format; the calibration file in .xml format is converted into a corresponding txt file, and a .txt text file storing the path of each image in the vehicle information data set is generated; the network hyperparameters are changed according to the category settings in the vehicle information data set. The conversion of the calibration file in .xml format to a corresponding txt file and the generation of a .txt text file storing the path of each image in the vehicle information data set includes: reading the calibration file in .xml format to obtain the width and height of the image containing the vehicle data set, the width and height and category of the vehicle contained in the image of the vehicle data set; normalizing the width and height of the vehicle contained in the image of the vehicle data set; calculating the coordinates of the center point of the vehicle contained in the image of the vehicle data set; saving the width and height information of the vehicle contained in the image of the vehicle data set as a .txt text file according to the category number, the coordinates of the center point of the vehicle and the width and height information of the vehicle contained in the image of the vehicle data set as a .txt text file; generating a .txt text file storing the path of all samples. The .txt text file is saved in the label folder. Normalizing the width and height of the vehicles contained in the images of the vehicle data set refers to: converting the width and height ratio of the vehicles contained in the images of the vehicle data set into a value between 0 and 1.

[0097] In the prediction based on the yolov3 network prediction module, a large number of video resources or static images containing vehicle information are input into the trained network model, and the structured information of the vehicle information is output at one time, such as model, year, body color, etc. For example, a large number of video resources or static images containing vehicle information are input into the trained network model, and one of the images outputs the structured information of the vehicle information at one time: Chery, B, A, then the structured information of the vehicle represented by the image is: the model is domestic Chery, the year B means that the vehicle was produced in 2011, and the body color A means that the vehicle body color is white.

[0098] In the existing design, for the identification of vehicle information, vehicle information such as model, year, body color, etc., there are methods based on deep learning, but they are basically processed separately, which is time-consuming and requires a larger amount of data for network training. The vehicle information identification method, system, memory and processor of the present invention are used to process the input vehicle video information at one time without any fusion process in the middle, and then output various attribute value sets of vehicle information at one time, such as model identification, year identification, body color identification, etc. Based on the yolov3 network model, vehicle information such as model, year, body color, etc. are divided into different categories, and the network model is trained end-to-end. Through the trained network model, the structured information of the vehicle such as model, year, body color, etc. is predicted and output at one time. Compared with the two, the present invention takes less time, has high recognition efficiency, and can better meet the application needs of actual scenarios.

[0099] The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A vehicle information recognition method, characterized in that: include: Establish vehicle information dataset; The establishing of the vehicle information data set comprises: preprocessing the vehicle information data set; performing data enhancement processing on the vehicle information data set; the data enhancement processing on the vehicle information data set comprises: flipping the image of the vehicle information data set by -15° to 15°, or mirroring the image of the vehicle information data set; and saving the processed image in the same folder as the image of the vehicle information data set with another name; Setting the parameters based on the yolov3 network; the setting based on the yolov3 network parameters includes: setting the class parameters based on the yolov3 network to the number of categories defined by the vehicle information data set; setting the filter parameters based on the yolov3 network to 3×(class parameter+5); The vehicle information data set is trained based on the yolov3 network to obtain a multi-attribute network model that can identify the vehicle information; The obtained multi-attribute network model is used to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

2. The vehicle information recognition method according to claim 1, characterized in that: The vehicle information data set is trained based on the yolov3 network to obtain a multi-attribute network model that can identify the vehicle information, including: Using a marking tool to classify the vehicle information data set, and generate a calibration file in .xml format; Convert the calibration file in .xml format into a .txt file, and generate a .txt file storing the path of each image in the vehicle information dataset; The network hyperparameters are changed according to the category settings in the vehicle information dataset.

3. The vehicle information recognition method according to claim 1, characterized in that: The use of the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified includes: inputting the video resource or static image containing the vehicle information into the trained network model, and outputting the structured information of the vehicle information at one time.

4. The vehicle information recognition method according to claim 1, characterized in that: The preprocessing of the vehicle information data set includes: The vehicle information data set is counted and stored in different folders according to different categories.

5. The vehicle information recognition method according to claim 2, characterized in that: The step of converting the calibration file in .xml format into a .txt file and generating a .txt file storing the path of each image in the vehicle information data set includes: Reading a calibration file in .xml format, obtaining the width and height of an image containing the vehicle information data set, and the width, height and category of the vehicle contained in the image of the vehicle information data set; Normalizing the width and height of the vehicle contained in the image of the vehicle information data set; Calculating the coordinates of the center point of the vehicle contained in the image of the vehicle information data set; The vehicle category number, center point coordinates, width and height contained in the image of the vehicle information data set are saved as a .txt text file; Generate a .txt text file containing the path of the vehicle information dataset sample.

6. The vehicle information recognition method according to claim 5, characterized in that: The .txt text file is saved in the label folder.

7. The vehicle information recognition method according to claim 5, characterized in that: The normalizing the width and height of the vehicle contained in the image of the vehicle information data set refers to: The aspect ratio of the vehicle contained in the image of the vehicle information data set is converted into a numerical value between 0 and 1.

8. A storage medium, characterized in that: The storage medium includes a stored program, wherein the vehicle information recognition method according to any one of claims 1 to 7 is executed when the program is executed.

9. A processor, characterized in that: The processor is used to run a program, wherein the vehicle information identification method according to any one of claims 1 to 7 is executed when the program is run.

10. A vehicle information recognition system, characterized in that: include: Through the electrically connected vehicle information data set setting module, the yolov3 network parameter setting module, the yolov3 network training module, and the yolov3 network prediction module; The vehicle information data set setting module is used to establish a vehicle information data set; the vehicle information data set setting module also includes a data preprocessing module and a data enhancement processing module, the data preprocessing module is used to preprocess the vehicle information data set; the data enhancement processing module is used to perform data enhancement processing on the vehicle information data set; The data enhancement processing module performs flipping or mirroring processing on the image of the vehicle information data set, and saves the processed image in the same folder as the image of the vehicle information data set with a different name; The yolov3 network parameter setting module is used to set the yolov3 network parameters; the yolov3 network parameter setting module sets the class parameters in the yolov3 network to the number of categories defined by the vehicle information data set; the filter parameters in the yolov3 network parameters are set to 3×(class parameters+5); The yolov3-based network training module is used to train the vehicle information data set to obtain a multi-attribute network model that can identify the vehicle information; The yolov3 network-based prediction module is used to use the obtained multi-attribute network model to perform multi-attribute prediction on the vehicle information of the image to be identified, so as to identify the vehicle structured information in the image to be identified.

11. The vehicle information recognition system according to claim 10, characterized in that: The data preprocessing module counts the vehicle information data set and stores it in different folders according to different categories.

Citation Information

Patent Citations

  • Vehicle attribute identification method based on multi-task convolutional neural network

    CN106599869A

  • Method and device for recognizing vehicle information

    CN106874840A

  • Passenger detection method and system based on deep learning

    CN108537117A

  • Multi-area real-time motion detection method based on monitoring video

    CN108764148A

  • Car damage recognition method, electronic apparatus and computer-readable storage medium

    WO2018166116A1