A portable multi-scenario traffic sign rapid detection method and system
Through multi-channel feature extraction and transfer learning methods, combined with ACF and SVM, the adaptability and speed of the traffic sign detector are improved, solving the problem of low detection accuracy during scene migration in the existing technology, and realizing efficient multi-scene traffic Sign detection.
Patent Information
- Application Number
- CN202111214274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-10-19
AI Technical Summary
Existing traffic sign detection methods have low detection accuracy and slow speed during scene migration, especially under high-resolution conditions in large scenes, and are difficult to adapt to new data in different application scenarios.
Multi-channel feature extraction and transfer learning methods are used, regional cropping and screening are performed through the ACF algorithm, and the SVM classifier and transfer learning and supplementary training of the AdaBoost detector are combined to form a multi-scene detector to adapt to the detection needs of different scenes.
It achieves rapid detection of high-resolution images, improves detection accuracy and speed, enhances the adaptability and robustness of the detector, and can effectively identify traffic signs in different scenarios.
Smart Images

Figure CN113887479B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of traffic sign detection, and in particular relates to a portable multi-scenario traffic sign rapid detection method and system. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] With the development of technology in the field of intelligent transportation, more and more traffic scene data are obtained, including a large number of different scenes, large scenes, high-resolution scenes, etc. There are currently three main traffic sign detection structures: AdaBoost-based detection, support vector machine (SVM)-based detection, and neural network (NN)-based detection.
[0004] 1) Detectors based on AdaBoost and Haar-like features have been used to detect traffic signs with similar structures and appearances. Some researchers proposed MN-LBP features to express the common features of different types of traffic signs, and designed an SFC tree to detect different types of traffic signs from coarse to fine. Without using a single feature, the ICF method can extract features such as local sum, histogram, and Haarlike features from multiple registered image channels. The detection method based on AggregatedChannelFeature(ACF) has been used for some detection problems and has also been successfully applied in TSD applications, using some features to complete the detection work; the features include ACF, LBP, and Spatial Pooled LBP. These different types of features can generate a large number of training features; however, the training and detection process of this method is usually more complicated than using a single feature.
[0005] 2) Detection structures based on SVM and histogram of oriented gradients (HOG) have been successfully applied to the TSD problem. HOG features have been extended to the HIS color space and combined with local self-similarity (LSS) features to obtain descriptors for TSD. Without using HOG-like features, edge-adaptive Gabor filters and SVM classification can also be used for traffic sign detection. Features including HOG, LBP, and Gabor can also be used in methods using the SVM classification framework. Most SVM-based detection methods have a ROI extraction process, for example, using color and shape-based ROI extraction methods to provide candidates for SVM classification, using color enhancement and MSER-based methods to extract ROIs, and applying SVM+HOG detectors to classify ROIs as objects or backgrounds. However, this method does not have scene transferability.
[0006] 3) Detection methods based on convolutional neural networks (CNNs) learn features through convolutional networks, use CNN classifiers to classify objects from the background, and require ROI extraction methods to obtain candidate objects. Some CNN-based methods do not use ROI methods, but have their own ROI extraction networks, such as a classification method based on a fully convolutional network (FCN) and a deep CNN, and an end-to-end deep network that extracts proposal regions through a two-stage adjustment strategy. Most CNN-based detection networks are slow in detecting landmarks. Although many deep learning methods have achieved fast performance in certain applications, most CNN-based methods rely heavily on GPU computing platforms and are still slow on traditional computing platforms. Summary of the invention
[0007] In order to solve the above problems, the present invention proposes a portable multi-scenario traffic sign rapid detection method and system. The detection method of the present invention has the advantages of robustness, fast detection speed and high detection accuracy.
[0008] According to some embodiments, the present invention adopts the following technical solutions:
[0009] A transferable multi-scenario traffic sign rapid detection method comprises the following steps:
[0010] Extract features from the acquired image based on multi-channel features, perform preliminary cropping based on the extracted multi-channel features, select cropped blocks containing traffic signs to be detected, and post-process the cropped blocks to obtain the area blocks to be detected;
[0011] Using the transfer learning method, the detector is retrained based on the new labeled data and the old data, and the retrained detector is supplemented with training to obtain the final multi-scene detector;
[0012] The multi-scene detector is used to process the area block to be detected to obtain the detection result.
[0013] As an optional implementation, the specific process of extracting features from images on multi-channel features includes: extracting features from the normalized gradient amplitude map, directional gradient histograms and LUV color channels of the image based on the ACF algorithm.
[0014] As an optional implementation, the specific process of preliminary cropping based on the extracted multi-channel features includes: the original image may obtain multiple small blocks at the same position, accumulate the features of the small blocks of multi-feature channels with consistent positions, and then use dimensionality reduction and smoothing operations to aggregate the channel features at this position to obtain the cropped area result features.
[0015] As an optional implementation, the specific process of screening the cropped blocks containing the traffic sign to be detected includes: using a trained SVM classifier to process the features of each cropped block to complete the screening.
[0016] As an optional implementation, the specific process of post-processing the cropped blocks includes: fusing and merging the area blocks whose positions in the original image overlap or whose center points are less than a set value into one area block; and not merging and retaining the area blocks whose positions in the original image do not overlap and whose center points are greater than a set threshold.
[0017] As an optional implementation method, the specific process of retraining the detector based on new labeled data and old data using the transfer learning method includes: dividing the new labeled data and the old data into two parts: a positive training set and a negative training set, and then merging them respectively to form a total positive training set and a negative training set, iteratively removing some features trained based on the old data set, and adding some features trained based on the new and old data to obtain the detector after transfer learning.
[0018] As a further limitation, the specific process of removing some features trained on the old dataset includes: testing the existing detector with the positive training set of the new labeled data, where the former The pseudo-negative samples with the largest values find m features in the detector, believing that these features are prone to misclassification and remove the above features.
[0019] As a further limitation, the specific process of adding some features obtained by training based on new and old data includes: assigning the maximum weight to all samples in the positive training set of the newly labeled data, using the detector after removing the features to assign the maximum weight to the misclassified samples in the positive training set of the old data, and also assigning the maximum weight to the negative samples in the new and old data, and normalizing the weights of the negative training sets of the new and old data, selecting the classification result with the smallest weighted error to update the weights of all samples, and iterating m times.
[0020] As a further qualification, the principle of iterative execution is to retain similar samples and discard samples in the old dataset whose differences exceed a set threshold until there are no discardable samples.
[0021] As an optional implementation, the specific process of supplementary training the retrained detector includes: the weights of all samples in the new and old training data sets after multiple transfer learning processes are assigned to corresponding supplementary training samples, the retrained detector includes multiple weak classifiers, and the weak classifier with the smallest weighted error is selected, and the weights of all samples are updated according to the classification results, and the iteration is repeated for multiple times to enhance the original classifier to obtain a multi-scene detector.
[0022] A portable multi-scenario traffic sign rapid detection system, comprising:
[0023] The region cropping module is configured to extract features from the acquired image based on multi-channel features, perform preliminary cropping based on the extracted multi-channel features, select the cropped block containing the traffic sign to be detected, and post-process the cropped block to obtain the region block to be detected;
[0024] A transfer learning and supplementary training module is configured to utilize a transfer learning method to retrain the detector based on new labeled data and old data, and to perform supplementary training on the retrained detector to obtain a final multi-scene detector;
[0025] The detection module uses a multi-scene detector to process the area block to be detected to obtain the detection result.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The present invention proposes a high-resolution target-containing region clipping method ACF-S based on the ACF algorithm, which performs preliminary clipping of the region containing traffic signs in high-precision traffic scenes to reduce the processing complexity of the detection algorithm while improving the accuracy and detection speed, and is used to solve the problem of high-resolution detection of large scenes.
[0028] The present invention proposes a transfer training method to find new features to replace the old features of the offline trained AdaBoost-based detector. With the help of additional training samples from other application scenarios, the transfer retrained AdaBoost-based detector can be adapted to other application scenarios.
[0029] After transfer learning, the detector retrained by the present invention may need more features to process samples from different application scenarios. A supplementary training method is proposed to find new features to improve the performance of the retrained AdaBoost-based detector. By supplementing features, the detector after transfer learning and supplementary learning can solve the adaptability problem of detectors in different scenarios.
[0030] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0032] Figure 1 A flowchart of at least one embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0034] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0035] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0036] A traffic sign detection method for high-resolution, large-scale, and multi-scene scenarios, such as Figure 1 As shown in the figure, based on the ACF-S algorithm and the transfer-supplement AdaBoost (TS-AdaBoost) learning method, the high-resolution traffic scene image is first cropped to contain the target area, and then TS-AdaBoost is designed to perform transfer-supplement training on the AdaBoost detector to adapt to new data from different application scenarios. ACF-S first extracts features from the high-resolution image on multi-channel features based on the ACF algorithm, divides the features into blocks according to the feature results, and obtains its aggregated channel features; then, each block feature is input into the trained SVM classifier to classify the target and the target; the area blocks classified as containing the target are post-processed to obtain the final cropped area blocks as the image to be detected by the subsequent TS-AdaBoost detection method.
[0037] The proposed TS-AdaBoost method consists of two parts: a transfer learning process and a supplementary learning process. The transfer learning process aims to replace the features in the offline trained detector with new features to obtain a transfer learning classifier with better adaptability to new data. The supplementary learning process aims to train and enhance the performance of the transfer learning detector to achieve a higher detection rate and a lower false alarm rate. The entire method includes the traditional offline learning process and the proposed transfer supplementary learning process.
[0038] First, the target region of ACF-S is cropped:
[0039] ACF-S first extracts features from 10 channels of high-resolution images based on the ACF algorithm: normalized gradient amplitude map (1 channel), six directional gradient histograms (6 channels), and LUV color channel (3 channels); based on the 10 channel features, preliminary region segmentation is performed based on their respective feature maps. The original image may have multiple small blocks at the same position. The features of the small blocks of multiple feature channels with consistent positions are accumulated, and then dimensionality reduction and smoothing operations are used to aggregate the features of each channel at this position to obtain the region result features cropped by the ACF algorithm.
[0040] In order to distinguish whether the block area contains the target, the features of each block are then input into the trained SVM classifier for further screening of the cropped blocks. The training data of the SVM comes from the area blocks cropped from the training data set images by the ACF algorithm, and are manually marked to see whether they contain the target.
[0041] After classifying the segmented small blocks, the obtained area blocks containing the target are subjected to two steps of post-processing to obtain the final segmented area blocks. The post-processing method includes: fusing the area blocks that overlap or are relatively close in the original image into one area block; for the area blocks that do not overlap in the original image and are far away from each other (the distance between the center points is greater than the set threshold), no processing is performed and both area blocks are retained.
[0042] After the above steps, the final cropped area block obtained by the ACF-S algorithm is obtained as the image to be processed by the subsequent detection algorithm.
[0043] The second is the transfer learning process.
[0044] Training the AdaBoost algorithm using old data
[0045] In some unknown applications, it is impossible to collect training data from these application scenarios in advance. AdaBoost can be trained using an old collected training dataset that does not contain samples from unknown applications. When training an Adaboost-based algorithm using old data, the positive training set is denoted as S p , the negative training set is denoted as S n The number of these two sets of training samples are expressed as and The training sample is recorded as (x i ,y i ), where x i represents the i-th training sample, y i = 1 or 0 is the positive or negative training label. Using the AdaBoost training method, a strong classifier can be trained and expressed as,
[0046]
[0047] Where T is the number of features in the training classifier, c j is the jth learned feature, α j It is feature c j The weight of .
[0048] When processing data from new applications, offline trained detectors often do not have enough generalization ability to adapt to different new application scenarios, resulting in relatively low detection accuracy. If the AdaBoost-based detector can be retrained with new labeled data, the detection accuracy may be improved. Based on this assumption, transfer learning methods are designed to retrain old trained detectors with new labeled data and old data. The principle of transfer learning is to replace features with low detection rates with some new learned features.
[0049] In the process of training the detector with old data, the positive training set is denoted as S p , the negative training set is denoted as S n The number of these two sets of training samples are expressed as and
[0050] In transfer training, the new positive training set is denoted as E p , the new negative training set is denoted as E n The number of these two sets of training samples are expressed as and
[0051] The set containing all positive samples is S p +E p , the set containing all negative samples is S n +E n .
[0052] The training sample is represented as {x i ,y i}, where x i is the i-th training sample, y i = 1 or 0 is the training label of positive or negative samples.
[0053] (a) Remove some features trained based on the old dataset
[0054] In transfer learning, each feature in the old trained detector is used in the set E p Test, including The maximum pseudo-negative sample finds m features in the detector. These features are considered to be the most likely cause of misclassification and need to be replaced with new features. The set containing all m features is denoted as F m ,
[0055]
[0056] Among them, the function Γ is to find the features with m maximum values.
[0057] The strong classifier after feature removal is,
[0058]
[0059] Where T is the number of features in the old classifier, c t is the old feature, α j It is feature c t The weight of .
[0060] (b) Add some features trained based on new and old data
[0061] Then, based on the classifier H after feature removal, a learning method is designed to select m new features to enhance the classifier H. The training data includes new training data and old training data.
[0062] The weight of the training samples after the old training process is denoted as D. In D, the weight of the samples that were misclassified in the old training process is the largest. Before the transfer training, it is E p All samples in are assigned the maximum weight, expressed as,
[0063]
[0064] Among them, T-m+1 is the number of starting iterations, It is E in Tm p The weight of the jth sample in + 1 iteration, is the old classifier after T iterations S p The weight of the i-th sample in .
[0065] We also use the classifier H for S p The misclassified samples are assigned the maximum weight,
[0066]
[0067] Among them, T-m+1 is the number of starting iterations, It is S in Tm p The weight of the j-th sample in + 1 iteration.
[0068] Since m features are removed, the iteration starts from T-m+1 iteration. Then, the new dataset E will be mainly considered in the iteration p All training samples in . Normalized and yes,
[0069]
[0070]
[0071] Just like assigning weights to positive samples, we also assign the maximum weight of old negative samples to E n All samples in S n and E n The weights in are normalized according to the above two formulas. In each boosting process, the weak classifier with the smallest weighted error is selected. Its weighted error is:
[0072]
[0073] in, Represents the classification result of the i-th sample.
[0074] After each weak classifier selection process, the weights of all samples need to be updated according to the classification results. The update is performed according to the following formula:
[0075]
[0076]
[0077] Among them, if x i If the classification is correct, then e i =0, otherwise e i =1, After each iteration, and All weights need to be normalized.
[0078] After m iterations in a transfer learning process, the strong classifier yes:
[0079]
[0080] in, is the set of m features selected in transfer learning, F m is the old feature set to be replaced, is the new feature set replacing the feature, α j It is feature c j The weight of It is a feature The weight of .
[0081] (c) k feature update iterations
[0082] The purpose of the transfer learning of the present invention is to transfer the detector trained with old data to a new detector that can process new data. Some samples in the old data set may be different from E p The new samples in S are very different. Therefore, the principle of the iterative method is to keep similar samples and discard samples that are very different from the old dataset. Perform the transfer learning process k times. After each transfer learning process, discard S p The misclassified samples in the training set S p Updated to,
[0083]
[0084] in, Represents the old positive data set S in the i-th transfer learning p Sample x in is the sample x using the classifier in the i-th transfer learning Please note that the above formula removes some old samples that are very different from new samples and are no longer needed. If all samples in the old data set are useful, the sample discarding process shown in this formula is not needed.
[0085] After performing the transfer learning process k times, the resulting strong classifier is:
[0086]
[0087] in, is the feature set replaced in the i-th transfer learning, is the m features selected in the i-th transfer learning, and is the jth replaced feature and its weight in the i-th transfer learning process, and are the features and their weights learned in the i-th transfer learning process, is the i-th transfer learning process The weight of .
[0088] Supplementary learning process:
[0089] After transfer learning, the supplementary learning process aims to train and enhance the transfer learning detector to achieve higher detection rate and lower false positive rate. The positive training dataset is The negative training dataset is in It’s the main episode, is the negative set transfer learning process after k. The trained transfer detector H k There are T weak classifiers, represented by L = {l1,l2,…,l T}. There is M P Sample {x i ,y i}, There is M n Sample {x i ,y i}. i = 1 or 0 is the positive or negative training label.
[0090] The supplementary training process starts from the T+1th iteration. Before the supplementary training, S P and E P The weights of all samples in after k transfer learning processes are assigned to the corresponding supplementary training samples:
[0091]
[0092]
[0093] in, and Respectively represent S P and E P The weights after k transfer learning processes; and Represents the initialization weights for supplementary training after transfer learning of T classifiers.
[0094] After transfer training, the classifier There are T weak classifiers. The number of iterations of supplementary training is fixed to T s In the supplementary training, we need to train to find T s Weak classifiers are used to enhance the original classifier. Supplementary training phase H s Expected to have T+T s Weak classifier.
[0095] In each boosting process, we select the weak classifier c with the smallest weighted error t , after the weak classifier is selected, we need to update the weights of all samples according to the classification results:
[0096]
[0097] After the weak classifier is selected, we need to update the weights of all samples according to the classification results:
[0098]
[0099]
[0100] Among them, if c i If the classification is correct, then e i=0, otherwise e i =1, After each iteration, and All weights need to be normalized.
[0101] After T s Iterations, supplement the trained strong classifier H s for:
[0102]
[0103] in, and is the tth supplementary training feature and its weight.
[0104] After completing the above transfer training process and supplementary training process, we train a new detector H s , which combines transfer-trained weak classifiers and complement-trained weak classifiers.
[0105] In this section, experiments are also conducted on the ACF-S method that includes the target area cropping part. The accuracy of the target included in the cropping result of the high-precision image is experimented and compared with other algorithms. The selected database is the image data containing traffic signs taken by a high-resolution vehicle-mounted camera. The experimental results are shown in Table 1.
[0106] Table 1 includes the comparison of the inclusion rate of the target area clipping algorithm
[0107]
[0108] The main function of the three algorithms in Table 1 is to reduce the detection range, and regard the cropped target containing more than half of the target area as containing the target to be detected. The ACF or LDCF algorithm will generate some cropped blocks containing less than half of the target area and a small amount of full background cropping. After the ACF-S method of the present invention is processed, the above situation can be handled by merging the cropped blocks containing small target areas and deleting the background area, so that the inclusion rate of the regional blocks reaches nearly 99%. This experiment selects an input image with a resolution of 1024×2048. The ACF-S algorithm takes about 0.18 seconds to process an image under CPU processing.
[0109] The second experiment of the present invention selected the German GTSRB dataset and the Swedish STS dataset in the field of traffic sign detection to conduct the evaluation experiment of the transfer supplementary learning AdaBoost method of the present invention. The GTSRB dataset has more than 50,000 signs and is a large comprehensive dataset covering different types of German traffic signs. The Swedish STS includes more than 20,000 different types of images of Swedish traffic signs. The transfer learning problem of traffic sign detection is used to verify the method of the present invention, and the German sign detector is transferred to the Swedish sign detector.
[0110] We transfer the detector of German circle and triangle signs to a new detector of Swedish circle and triangle signs and use this transfer problem to show the performance of different parts of the TS-AdaBoost method. This experiment aims to prove that the proposed TS-AdaBoost training method can retrain the offline trained AdaBoost-based detector on a different distribution of signs from another country and achieve good results. The German circle and triangle signs are used as the old dataset and the Swedish circle and triangle signs are used as the new dataset.
[0111] Based on the above experimental settings, while testing the performance of the method of the present invention, the method of the present invention is compared with some representative Boosting methods, including Gentle AdaBoost, Modest AdaBoost, TrAdaBoost and TransferBoost. Classic AdaBoost methods including Real AdaBoost and Gentle AdaBoost are trained with the old dataset. For TrAdaBoost and TransferBoost detectors, the old dataset is used to train the traditional AdaBoost detector, while half of the new dataset is used for transfer learning, generally for testing. The experimental results are measured by two parameters, including recall and precision.
[0112] Table 2 Experimental results of the method of the present invention and the comparative method
[0113]
[0114]
[0115] Table 2 shows the experimental results, which show that the proposed TS-AdaBoost can achieve high recall and precision values, while other methods achieve low recall values. Classic AdaBoost methods including Real AdaBoost and Gentle AdaBoost achieved a recall rate of 80.32%, which means that the classic AdaBoost method cannot be retrained to adapt to new data. TrAdaBoost and TransferBoost detectors achieved recall rates of 88.04% to 90.15% because these two transfer learning methods are designed for classification and are not suitable for migration problems in target detection. Since the TrAdaBoost and TransferBoost methods do not have a mechanism to discard training samples, these two migration methods do not have a high recall rate on the migration detection problem. The TS-AdaBoost proposed in the present invention achieved a highest recall rate of 97.58%.
[0116] In summary, in order to solve the high-resolution problem of large traffic scenes, the present invention provides a method for cropping high-resolution images into small areas containing targets, and provides an ACF-S method based on the ACF algorithm to crop small areas of images containing targets, and perform preliminary target area screening for large high-resolution scenes. This method uses the ACF algorithm to perform preliminary cropping based on multi-channel features, and then uses SVM to screen the cropped blocks containing the target, and obtains the area block to be detected containing the target after merging and other post-processing.
[0117] Aiming at the problem of detector adaptation in different scenarios, a learning method of transfer and supplement AdaBoost (TS-AdaBoost) is proposed. Compared with the deep network-based method, the detection framework based on AdaBoost has the advantages of not relying on a special computing platform and fast computing speed, which makes it successfully applied in many practical applications. The traditional AdaBoost-based detection framework makes a basic assumption that the training and test data should be under similar distribution. In addition, the traditional AdaBoost-based detector trained offline cannot be retrained, which makes it difficult to adapt to new data from different application scenarios. In the present invention, the proposed TS-AdaBoost retrains the offline trained AdaBoost detector to adapt to the new data. TS-AdaBoost includes a transfer learning process and a supplement learning process. The transfer learning process aims to replace the features in the offline trained detector with some new features, thereby generating a new transfer learning detector with better adaptability to new data. The supplement learning process can enhance the performance of the transfer learning detector to achieve higher detection rate and lower false alarm rate. This method allows users to retrain offline trained detectors with new labeled data, and does not need to discard all old labeled data and old trained detectors.
[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0123] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A transferable multi-scenario traffic sign rapid detection method, characterized by: The following steps are involved: Extract features from the acquired image based on multi-channel features, perform preliminary cropping based on the extracted multi-channel features, select cropped blocks containing traffic signs to be detected, and post-process the cropped blocks to obtain the area blocks to be detected; Using the transfer learning method, the detector is retrained based on the new labeled data and the old data, and the retrained detector is supplemented with training to obtain the final multi-scene detector; Use the multi-scene detector to process the area block to be detected to obtain the detection result; The specific process of retraining the detector based on the new labeled data and the old data by using the transfer learning method includes: dividing the new labeled data and the old data into two parts, a positive training set and a negative training set, and then merging them respectively to form a total positive training set and a negative training set, iteratively removing some features obtained by training based on the old data set, and adding some features obtained by training based on the new and old data, to obtain the detector after transfer learning; The specific process of removing some features trained based on the old dataset includes: testing the existing detector with the positive training set of the new labeled data, where the former Find m features in the detector with the largest pseudo-negative sample, and consider that these features are prone to misclassification, so remove the above features; The specific process of adding some features obtained by training based on new and old data includes: assigning the maximum weight to all samples in the positive training set of the newly labeled data, using the detector after removing the features to assign the maximum weight to the samples that are misclassified in the positive training set of the old data, and also assigning the maximum weight to the negative samples in the new and old data, and normalizing the weights of the negative training sets of the new and old data, and selecting the classification result with the smallest weighted error to update the weights of all samples, iterating m times; The specific process of supplementary training for the retrained detector includes: the weights of all samples in the new and old training data sets after multiple transfer learning processes are assigned to the corresponding supplementary training samples, the retrained detector includes multiple weak classifiers, and the weak classifier with the smallest weighted error is selected. The weights of all samples are updated according to the classification results, and the iteration is repeated for multiple times to enhance the original classifier and obtain a multi-scene detector.
2. The portable multi-scenario traffic sign rapid detection method as claimed in claim 1 is characterized by: The specific process of extracting features of an image on multi-channel features includes: extracting features of the image on a normalized gradient amplitude map, a gradient histogram in each direction, and a LUV color channel based on an ACF algorithm.
3. The portable multi-scenario traffic sign rapid detection method as claimed in claim 1 is characterized by: The specific process of preliminary cropping based on the extracted multi-channel features includes: the original image may obtain multiple small blocks at the same position, accumulate the features of the small blocks of multi-feature channels with the same position, and then use dimensionality reduction and smoothing operations to aggregate the features of each channel at this position to obtain the cropped area result features.
4. The portable multi-scenario traffic sign rapid detection method as claimed in claim 1 is characterized by: The specific process of selecting the cropped blocks containing the traffic sign to be detected includes: using the trained SVM classifier to process the features of each cropped block to complete the selection.
5. The portable multi-scenario traffic sign rapid detection method as claimed in claim 1 is characterized by: The specific process of post-processing the cropped blocks includes: fusing and merging the area blocks whose positions in the original image overlap or whose center points are less than a set value into one area block; and retaining the area blocks whose positions in the original image do not overlap and whose center points are greater than a set threshold without merging.
6. The portable multi-scenario traffic sign rapid detection method according to claim 1 is characterized by: The principle of iterative execution is to retain similar samples and discard samples in the old data set whose differences exceed the set threshold until there are no discardable samples.
7. A portable multi-scenario traffic sign rapid detection system, characterized by: include: The region cropping module is configured to extract features from the acquired image based on multi-channel features, perform preliminary cropping based on the extracted multi-channel features, select the cropped block containing the traffic sign to be detected, and post-process the cropped block to obtain the region block to be detected; A transfer learning and supplementary training module is configured to utilize a transfer learning method to retrain the detector based on new labeled data and old data, and to perform supplementary training on the retrained detector to obtain a final multi-scene detector; The detection module uses a multi-scene detector to process the area block to be detected and obtain the detection result; The specific process of retraining the detector based on the new labeled data and the old data by using the transfer learning method includes: dividing the new labeled data and the old data into two parts, a positive training set and a negative training set, and then merging them respectively to form a total positive training set and a negative training set, iteratively removing some features obtained by training based on the old data set, and adding some features obtained by training based on the new and old data, to obtain the detector after transfer learning; The specific process of removing some features trained based on the old dataset includes: testing the existing detector with the positive training set of the new labeled data, where the former Find m features in the detector with the largest pseudo-negative sample, and consider that these features are prone to misclassification, so remove the above features; The specific process of adding some features obtained by training based on new and old data includes: assigning the maximum weight to all samples in the positive training set of the newly labeled data, using the detector after removing the features to assign the maximum weight to the samples that are misclassified in the positive training set of the old data, and also assigning the maximum weight to the negative samples in the new and old data, and normalizing the weights of the negative training sets of the new and old data, and selecting the classification result with the smallest weighted error to update the weights of all samples, iterating m times; The specific process of supplementary training for the retrained detector includes: the weights of all samples in the new and old training data sets after multiple transfer learning processes are assigned to the corresponding supplementary training samples, the retrained detector includes multiple weak classifiers, and the weak classifier with the smallest weighted error is selected. The weights of all samples are updated according to the classification results, and the iteration is repeated for multiple times to enhance the original classifier and obtain a multi-scene detector.
Citation Information
Patent Citations
Traffic sign detection identification method, apparatus and system
CN107679508A
Traffic sign detection method based on convolutional neural network
CN110210362A
Mark detection model training and mark detection method based on multi-stage transfer learning
CN111062885A
Remote sensing image special vehicle target detection method based on transfer learning
CN111898523A
Method and device for training prediction model for new scenario
WO2020024716A1
