An intelligent road sign recognition vehicle camera system
Through the intelligent road sign recognition vehicle camera system, using technologies such as RetinaNet network and adversarial network, the problems of incomplete recognition, slow speed and low accuracy of road sign images in day and night are solved, achieving high accuracy and fast road sign recognition effects.
Patent Information
- Application Number
- CN202410586500.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-05-13
AI Technical Summary
The existing technology has problems such as incomplete recognition of street sign images in day and night, slow recognition speed, and low recognition accuracy.
An intelligent road sign recognition vehicle camera system is adopted, including a road sign recognition management system module, a road sign data collection module, a data storage module, a road sign recognition model module, a road sign detection module, a semantic segmentation module, and a text recognition module. Through the RetinaNet network model, DenseNet, and feature pyramid And the day and night classification regression network, combined with the adversarial network BigGAN, generates black-sky street sign adversarial sample images to enhance night-time street sign recognition capabilities, and uses the small target detection FSSD algorithm and the anchor-free method for identification.
It achieves high accuracy and rapid recognition of the location and text content of street signs under day and dark conditions, solves the problem of incomplete street sign recognition, and improves the recognition speed and accuracy.
Smart Images

Figure CN118397602B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of intelligent road sign recognition vehicle-mounted cameras, and specifically refers to an intelligent road sign recognition vehicle-mounted camera system. Background Art
[0002] At present, the navigation system used is based on GPS (Global Positioning System) and built-in map. When GPS fails or the map fails to be updated in time, it is easy to cause navigation errors. The traffic navigation system based on intelligent recognition is the development direction of future navigation. Road sign recognition is one of the components. Road signs are commonly used traffic guide signs. Their characteristics are easy to identify. They can provide necessary information for drivers and guide drivers to reach their destinations. Road signs are generally placed above or on both sides of the road. Because drivers need to do two things at the same time when reading road sign information during driving, and due to reasons such as vehicle speed, weather, and road conditions, the time for drivers to obtain information is relatively short. In the case of unfamiliar roads, it is often necessary to slow down the vehicle to read the information, which brings safety hazards. Therefore, it is a research direction of intelligent cars to effectively obtain road sign information based on intelligent systems and convey the information to drivers. In the prior art, neural learning networks are usually used to directly recognize images. However, due to the influence of daytime and nighttime light, the methods of the prior art often fail to fully recognize road signs, the recognition speed is slow, and the recognition accuracy is low. Summary of the invention
[0003] In order to solve the problems in the prior art of incomplete recognition of road sign images during the day and at night, slow recognition speed, low recognition accuracy, etc., the present invention proposes an intelligent road sign recognition vehicle-mounted camera system to improve the above problems.
[0004] The specific application is as follows:
[0005] An intelligent road sign recognition vehicle camera system includes a road sign recognition management system module, a road sign data collection module, a data storage module, a road sign recognition model module, a road sign detection module, a semantic segmentation module, a text recognition module and a road sign broadcasting module. The road sign recognition model module uses data from the data storage module to build a model and iteratively optimize it. The road sign detection module, the semantic segmentation module and the text recognition module are used to implement the basic business functions of the road sign recognition model module. The result of the road sign detection module recognizing a road sign frame is used for further processing by the semantic segmentation module. The processing result of the semantic segmentation module is used for text recognition by the text recognition module. The road sign text recognized by the text recognition module is used for broadcasting by the road sign broadcasting module.
[0006] The road sign recognition management system module is used to manage the scheduling of services, data and communications of each module of the system;
[0007] The road sign data collection module is used to collect road sign information using a vehicle-mounted camera and generate video data and road sign data set samples;
[0008] The data storage module is used to store the data collected by the road sign data collection module;
[0009] The road sign recognition model module trains two RetinaNet network models through the collected data. The RetinaNet network model is divided into a dual feature extraction network DenseNet, a feature pyramid and a day and night classification regression network. The RetinaNet network model is used to train and optimize the recognition of the road sign data set, and use the adversarial network BigGAN to generate adversarial sample images of road signs in the dark, enhance the recognition of road signs in the dark, and the trained and optimized road sign recognition model is used for real-time intelligent recognition of road signs during the day and at night;
[0010] The road sign detection module is used to detect the road sign frame position of the road sign images during the day and at night;
[0011] The semantic segmentation module is used to reprocess the image within the road sign frame position;
[0012] The text recognition module is used to recognize and process the text in the road sign frame position, and extract the text in the road sign frame position;
[0013] The road sign broadcasting module is used to broadcast the recognition result of the text recognition module and broadcast the road sign information to the driver in real time through the vehicle-mounted camera.
[0014] Further, the data storage module includes a distributed storage unit, a data backup unit and a data recovery unit;
[0015] The distributed storage unit is used to perform distributed storage of the database on multiple servers to ensure data security and reliability;
[0016] The data backup unit is used to regularly back up data to prevent data loss;
[0017] The data recovery unit is used to quickly recover data when the data is lost or damaged;
[0018] The road sign data collection module stores the road sign video data collected by the vehicle-mounted camera in the data storage module, wherein a part of the video data is used as the training set data of the road sign recognition model, and a part of the video data is used as the test set data;
[0019] The vehicle-mounted camera also has a voice broadcast function.
[0020] Furthermore, the road sign detection module is used to identify the border position of the road sign in the image in the following process:
[0021] S101: Obtain road sign image data during the day and at night through a vehicle camera, a portion of which is used as a test set and a portion of which is used as a training set. Two RetinaNet network models are trained through the training set. The feature acquisition network of the RetinaNet network model is DenseNet. The two network models obtained after training are respectively recorded as DenseNet-A and DenseNet-B.
[0022] S102: Divide the RetinaNet network model of S101 into a dual feature extraction network DenseNet, a feature pyramid, and a day and night classification regression network, use the dual feature extraction network DenseNet to extract features of road sign images during the day and at night, connect the feature pyramid in series to the dual feature extraction network DenseNet, perform convolution on each layer of the feature pyramid, and perform classification and regression through the day and night classification regression network;
[0023] S103: using the test set to perform a network iteration test on the dual feature extraction network DenseNet, and output a detection result;
[0024] S104: Determine whether the detection result includes a road sign area location frame, and if so, determine whether the content of the road sign area location frame is text.
[0025] Furthermore, the specific steps of building the dual feature extraction network DenseNet are:
[0026] M1: For the images of the training set data, the mean pixel is judged and a threshold is set. If the mean pixel is greater than the threshold, it indicates that it is dark and DenseNet-A is used for processing. Otherwise, it indicates that it is daytime and DenseNet-B is used for processing. If the current input training set data image is dark, a dark road sign image adversarial network BigGAN is constructed;
[0027] M2: Use the adversarial network BigGAN to generate a training set of black sky road sign image samples for the black sky road sign image;
[0028] M3: Add the generated black sky road sign image training set samples to the data storage module for training set data and test set data;
[0029] The process of processing road signs during the day and at night is as follows:
[0030] The feature collection network adopts the network framework of the dual feature extraction network DenseNet to extract the features of road signs during the day and at night respectively, and first superimposes the feature maps of the second layer of road signs convolutional layers during the day and at night based on channels, and then performs dimensionality reduction processing through 2×2 convolution, and the same operation is performed on the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer;
[0031] The specific process of using the adversarial network BigGAN to generate the black sky road sign image training set samples for the black sky road sign image is as follows: according to the original black sky road sign image given by the current training, adversarial black sky road sign image samples are generated, and the adversarial black sky road sign image sample specifications are: the size diversification feature of the road sign frame, the position of the road sign image where the road sign frame is located is not fixed, and the size diversification feature of the text in the road sign frame is diversified. One given black sky road sign original image is input, and a disturbance factor is added through the adversarial network BigGAN to generate 100 black sky road sign sample images;
[0032] The specific process of using the adversarial network BigGAN to generate the Black Sky Road Sign image training set samples for the Black Sky Road Sign image is as follows: according to the original Black Sky Road Sign image given by the current training, adversarial Black Sky Road Sign image samples are generated, and the specifications of the adversarial Black Sky Road Sign image samples are as follows: the size of the road sign frame is diversified, the position of the road sign image where the road sign frame is located is not fixed, and the size of the text in the road sign frame is diversified. One given original Black Sky Road Sign image is input, and 100 Black Sky Road Sign sample images are generated through the adversarial network BigGAN.
[0033] Furthermore, the specific process of connecting the feature pyramid in series to the dual feature extraction network DenseNet is as follows:
[0034] The third convolutional layer, i.e., the feature map of the fusion of the daytime road signs and the nighttime road signs, is upsampled and then superimposed with the feature map of the fusion of the daytime road signs and the nighttime road signs of the second convolutional layer to obtain the first layer of the pyramid. This step is continued for the fourth, fifth, and sixth convolutional layers. Each adjacent two layers of feature maps are superimposed on the channel to obtain one layer of the pyramid. Finally, a total of four layers of feature pyramids are obtained. The specific processing process of the four layers of the pyramid is as follows:
[0035] The first layer of the pyramid is used to process the first resolution image, and the illumination intensity of the image belongs to the first level of illumination;
[0036] The second layer of the pyramid is used to process the second resolution image, and the illumination intensity of the image belongs to the second level illumination;
[0037] The third layer of the pyramid is used to process the third resolution image, and the illumination intensity of the image belongs to the third level of illumination;
[0038] The fourth layer of the pyramid is used to process images with the fourth resolution, and the light intensity of the images belongs to the fourth-level light;
[0039] The resolution levels of the images are specifically divided as follows:
[0040] First-resolution image: w < 320, h < 320;
[0041] Second-resolution image: 320 < w ≤ 640, 320 < h ≤ 640;
[0042] Third-resolution image: 640 < w ≤ 1080, 640 < h ≤ 1080;
[0043] Fourth-resolution image: 1080 < w, 1080 < h, where w represents the width of the image and h represents the height of the image;
[0044] The light intensity of the images uses the method of calculating the average brightness of the image by histogram, and is specifically divided as follows:
[0045] First-level light: 0 ≤ L ≤ 50;
[0046] Second-level light: 50 < L ≤ 100;
[0047] Third-level light: 100 < L ≤ 180;
[0048] Fourth-level light: 180 < L ≤ 255, where L represents the average brightness value of the image.
[0049] Furthermore, the specific implementation steps of the day-night classification regression network are as follows:
[0050] Two branch networks are added behind the feature map of each fusion layer of the pyramid. One branch is used for classification and the other branch is used for regression. And each branch first performs 4 convolutions on the feature map, mainly to enhance the image features of day and night respectively, and the convolution kernel size is 2×2 and the number is 128;
[0051] S102 also includes using an anchor-free method to detect the position of the road sign frame on the road sign image;
[0052] The specific implementation of the anchor-free method is as follows:
[0053] The day-night classification regresses the coordinates of the upper left and center points on the road sign image. The regression process is to perform pixel-by-pixel scanning on the feature map of each layer of the pyramid. Each pixel will regress an 8-dimensional vector, corresponding to generating a rectangular detection frame in the original image. Therefore, a large number of low-quality prediction frames will be generated around the real target frame. In order to suppress the appearance of these low-quality prediction frames, a new constraint loss function is proposed, and the formula is:
[0054]
[0055] If the center point coordinates of the real road sign annotation box The coordinates of the upper left point of the actual prediction box are: (X1, Y2), the coordinates of the center point are: (X2, Y2), where A is a center loss function; the smaller the distance between the center point of the prediction box and the center point of the real annotation box, the larger A is, and vice versa; if the image size input to the detection network is H*W, the coordinates are normalized and uniformly divided by the input size, so that Between 0 and 1, The value range of is: Final A value range The branch is set below the classification branch in parallel. The output result of the branch multiplied by the classification score is the total classification score. The prediction boxes with small scores will be processed by the non-maximum suppression algorithm, and the remaining highest score is the final prediction box position.
[0056] Furthermore, the specific steps of determining whether the content of the road sign area position box is text are as follows:
[0057] K1: The default box mechanism in the FSSD algorithm for small target detection is used for judgment. Default boxes of different specifications are set. Default boxes of different aspect ratios are set on each neuron of each feature map of each layer of the pyramid, which are 1, 2, 4, 7, 9, and 10 respectively.
[0058] K2: The pyramid performs convolution operation on the input road sign area location box content and a 2×2 convolution kernel for feature learning, and then obtains a 36-dimensional feature matrix, of which 24 dimensions are used to regress the text bounding box and 12 dimensions are used to classify the detected target. The predicted road sign area location box content is judged as text based on the category score.
[0059] Furthermore, the process of regression and classification of the road sign area position frame is as follows:
[0060] Assume that the size of the original input image is (w1, h1), w1 and h1 represent the width and height of the original image respectively, the size of the feature map of the input text prediction layer is (w2, h2), w2 and h2 represent the width and height of the feature map respectively, and set the default text box coordinates d1 = (x1, y1, w1, h1) at the position with coordinates (i, j) on the feature map, where (i, j) represents the position coordinates of each neuron in the feature map, (x1, y1) represents the center position coordinates of the default box on each neuron in the feature map, (w1, h1) represents the size information of the width and height of the default box, and the text prediction layer predicts the offset of the default box relative to the real text box. Assume that the predicted coordinate offset is (k1, k2, k3, k4, Q), where Q is the prediction confidence, which is used for target classification. The predicted text box coordinates are (x, y, w, h), and the calculation formula is,
[0061] x=x1+w1*k1,
[0062] y=y1+h1*k2,
[0063] w=w1exp(k3),
[0064] h=h1exp(k4),
[0065] The loss function is calculated using the formula,
[0066]
[0067] Where x represents the matrix that matches the default box. For the i-th default text box and the j-th real text box, when x ij =1 indicates that the two match, otherwise they do not match, c is the prediction confidence, g is the real position coordinate of the text, D is the number of matches between the default text box and the real text box, and Y x,c,g Indicates hyperparameters. The a coefficient is set to 1 in the target detection problem, and the b coefficient is set to 0.5 in the target detection problem. The detection target classification L x,c The loss function used is Softmax.
[0068] Furthermore, the semantic segmentation module preprocesses the road sign frame position area image output by the road sign detection module to obtain a binary image of the road sign frame and noise points, which is recorded as A, performs a morphological opening operation on A, obtains an image with the vertical background eliminated through AB, which is recorded as C, similarly performs an opening operation on A to obtain an image, which is recorded as D, obtains an image E with the frame area eliminated through CD, and after performing an opening operation on image E, eliminates other noise points to obtain a final binary image;
[0069] Furthermore, the text recognition module recognizes text in the following specific process: performing histogram equalization on the processed image of the semantic segmentation module, filling white areas around it, unifying the image size, extracting features through a convolutional layer, and finally outputting the text recognition result;
[0070] Since the vehicle-mounted camera shoots video, the same road sign will appear in multiple frames of the video, so by detecting multiple frames, the text recognition result is output when the text appears the most times in the frame;
[0071] The specific operation process is as follows:
[0072] L1: The road sign in the current frame is x i , record the coordinates of the upper left corner of the road sign as (a i , b i ), as the vehicle moves forward, the same road sign in the video moves from far to near and continuously to the upper left of the current frame. i+1 i And b i+1 i , determine the road sign x in the next frame i+1 With x i The road signs in the same road sign are x i+1 Included in the set X = {x i , x i+1}, continue to execute until the condition is not met, and get the set X = {x i , x i+1 , ..., x i+n}, the character that appears most in the calculation set is the road sign text O in these n frames x , and count the text into set O;
[0073] L2: Using the logical relationship between different road sign characters, the frames that do not meet the conditions in step L1 are recorded as y i According to the rules in step L1, we can get Y = {y i ,y i+1 , ..., y i+n}, the character that appears most frequently in Y is recorded as O y , judge O x With O y Is the difference between them 0? If the difference is 0, it means it will not increase anymore, which means the text displayed in the current frame is the maximum value, that is, the entire text of a road sign.
[0074] A computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the system of any one of the intelligent road sign recognition vehicle-mounted cameras is applied.
[0075] The beneficial effects of the intelligent road sign recognition vehicle-mounted camera system of the present invention are as follows:
[0076] The present invention uses a vehicle-mounted camera to obtain road sign image data during the day and at night, uses part of the obtained road sign image data sets during the day and at night for a test set and part for a training set, trains two RetinaNet network models through the training set, and the two network models obtained after training are respectively recorded as DenseNet-A and DenseNet-B, and divides the RetinaNet network model into a dual feature extraction network DenseNet, a feature pyramid, and a day and night classification regression network. When extracting features of a road sign image at night, the dual feature extraction network DenseNet determines whether the image is at night, and if so, uses a road sign image adversarial network BigGAN to generate a road sign image at night, thereby enhancing the model's ability to recognize road sign images at night, uses the dual feature extraction network DenseNet to extract features of road signs during the day and at night, connects the feature pyramid in series to the dual feature extraction network DenseNet, performs convolution on each layer of the feature pyramid, and performs refinement processing on the four-layer pyramid model according to specific image resolution and image illumination intensity, thereby improving The invention has the capability to detect the position of the road sign frame of the road sign image, and obtains the road sign frame area position through classification and regression through the day and night classification regression network, and uses the default frame mechanism in the small target detection FSSD algorithm to judge whether the road sign frame area contains text. If it contains road sign text, the road sign frame area position is semantically segmented, redundant information is removed, a binary image is generated, and finally the binary image is subjected to text recognition. In the text recognition process, the problem of incomplete text content of the road sign broadcast at one time is solved, all the text contained in the road sign is obtained and then voice broadcast is performed to guide the driver to accurately and quickly recognize the road sign. The invention adopts the RetinaNet dual network to fuse the real-time road sign images taken by the vehicle camera during the day and at night into the feature pyramid model, and fuses and extracts the road sign features during the day and at night through the dual feature extraction network DenseNet, adopts the small target detection FSSD algorithm and the double recognition strategy without anchor frame, and the RetinaNet network adopts the full convolution network and removes the full connection layer, so the road sign recognition speed is very fast and the road sign recognition accuracy is very high. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 This is a system architecture diagram of an intelligent road sign recognition vehicle-mounted camera system of the present invention;
[0078] Figure 2 A flow chart of the road sign border position of an image recognized by an intelligent road sign recognition vehicle-mounted camera system of the present invention;
[0079] Figure 3A road sign recognition image at night for an intelligent road sign recognition vehicle-mounted camera system of the present invention;
[0080] Figure 4 A road sign recognition image during the day of an intelligent road sign recognition vehicle-mounted camera system of the present invention;
[0081] Figure 5 A comparison diagram of the loss functions of a daytime and nighttime system of an intelligent road sign recognition vehicle-mounted camera system of the present invention;
[0082] Figure 6 This is a diagram of a data storage module of an intelligent road sign recognition vehicle-mounted camera system of the present invention.
[0083] Among them, 1-road sign recognition management system module, 2-road sign data acquisition module, 3-data storage module, 31-distributed storage unit, 32-data backup unit, 33-data recovery unit, 4-road sign recognition model module, 5-road sign detection module, 6-semantic segmentation module, 7-text recognition module, 8-road sign broadcast module. DETAILED DESCRIPTION
[0084] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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.
[0085] Example 1
[0086] First, the technical terms involved in the embodiments of the present application are explained.
[0087] (1) RetinaNet network model
[0088] RetinaNet is a deep learning model for object detection. It was proposed by He Kaiming et al. in 2017 and won the Best Student Paper Award at ICCV 2017. The core innovation of RetinaNet is the introduction of a new loss function, Focal Loss, which aims to solve the problem of extreme imbalance between positive and negative samples in object detection. RetinaNet increases the weight of hard negatives through Focal Loss, so that the model can pay more attention to these difficult-to-classify samples.
[0089] (2) Feature Extraction Network DenseNet
[0090] DenseNet (Densely Connected Convolutional Networks) is a convolutional neural network (CNN) architecture proposed by Gao Huang et al. in 2016. The core idea of DenseNet is to introduce a topological structure called "Dense Connections", which makes each layer of the network directly connected to all previous layers. DenseNet improves the information flow and parameter efficiency of the network through its innovative dense connection structure, solves some problems in traditional convolutional neural networks, and is an important contribution to the field of deep learning.
[0091] (3) Feature Pyramid
[0092] Feature Pyramid is a network structure commonly used in deep learning and computer vision, especially in object detection tasks. Its core idea is to capture large and small objects in the image at the same time through feature maps of different scales, thereby improving the detection model's ability to recognize objects of different sizes.
[0093] (4) BigGAN
[0094] BigGAN (Large Scale GAN Training for High Fidelity Natural Image Synthesis) is a generative adversarial network (GAN) model proposed by DeepMind, which has achieved remarkable results in the field of image generation, especially in generating high-resolution and diverse images.
[0095] Figure 1 This is a system architecture diagram of an intelligent road sign recognition vehicle-mounted camera system of the present invention.
[0096] The system includes a road sign recognition management system module 1, a road sign data collection module 2, a data storage module 3, a road sign recognition model module 4, a road sign detection module 5, a semantic segmentation module 6, a text recognition module 7 and a road sign broadcasting module 8. The road sign recognition model module 4 uses the data of the data storage module 3 to build a model and iteratively optimize it. The road sign detection module 5, the semantic segmentation module 6 and the text recognition module 7 are used to implement the basic business functions of the road sign recognition model module 4. The result of the road sign detection module 5 recognizing the road sign frame is used for further processing by the semantic segmentation module 6. The processing result of the semantic segmentation module 6 is used for text recognition by the text recognition module 7. The road sign text recognized by the text recognition module 7 is used for broadcasting by the road sign broadcasting module 8.
[0097] The road sign recognition management system module 1 is used to manage the scheduling of services, data and communications of each module of the system;
[0098] The road sign data collection module 2 is used to collect road sign information using a vehicle-mounted camera and generate video data and road sign data set samples;
[0099] The data storage module 3 is used to store the data collected by the road sign data collection module 2;
[0100] The road sign recognition model module 4 trains two RetinaNet network models through the collected data. The RetinaNet network model is divided into a dual feature extraction network DenseNet, a feature pyramid and a day and night classification regression network. The RetinaNet network model is used to train and optimize the recognition of the road sign data set, and use the adversarial network BigGAN to generate adversarial sample images of road signs at night to enhance the recognition of road signs at night. The trained and optimized road sign recognition model is used for real-time intelligent recognition of road signs during the day and at night;
[0101] The road sign detection module 5 is used to detect the road sign frame position of the road sign images during the day and at night;
[0102] The semantic segmentation module 6 is used to reprocess the image within the road sign frame position;
[0103] The text recognition module 7 is used to recognize and process the text in the road sign frame position, and extract the text in the road sign frame position;
[0104] The road sign broadcasting module 8 is used to broadcast the recognition result of the text recognition module and broadcast the road sign information to the driver in real time through the vehicle-mounted camera.
[0105] Furthermore, the data storage module 3 includes a distributed storage unit 31, a data backup unit 32 and a data recovery unit 33;
[0106] The distributed storage unit 31 is used to perform distributed storage of the database on multiple servers to ensure data security and reliability;
[0107] The data backup unit 32 is used to regularly back up data to prevent data loss;
[0108] The data recovery unit 33 is used to quickly recover data when data is lost or damaged;
[0109] The road sign data collection module 2 stores the road sign video data collected by the vehicle-mounted camera in the data storage module 3, wherein a part of the video data is used as the training set data of the road sign recognition model, and a part of the video data is used as the test set data;
[0110] The vehicle-mounted camera also has a voice broadcast function.
[0111] Example 2, this example is based on the above example, please refer to Figure 2 The process of the road sign detection module 5 for identifying the border position of the road sign in the image is as follows:
[0112] S101: Obtain road sign image data during the day and at night through a vehicle camera, a portion of which is used as a test set and a portion of which is used as a training set. Two RetinaNet network models are trained through the training set. The feature acquisition network of the RetinaNet network model is DenseNet. The two network models obtained after training are respectively recorded as DenseNet-A and DenseNet-B.
[0113] S102: Divide the RetinaNet network model of S101 into a dual feature extraction network DenseNet, a feature pyramid, and a day and night classification regression network, use the dual feature extraction network DenseNet to extract features of road sign images during the day and at night, connect the feature pyramid in series to the dual feature extraction network DenseNet, perform convolution on each layer of the feature pyramid, and perform classification and regression through the day and night classification regression network;
[0114] S103: using the test set to perform a network iteration test on the dual feature extraction network DenseNet, and output a detection result;
[0115] S104: Determine whether the detection result includes a road sign area location frame, and if so, determine whether the content of the road sign area location frame is text.
[0116] Embodiment 3, based on the above embodiment, the specific steps of building the dual feature extraction network DenseNet are:
[0117] The feature collection network adopts the network framework of the dual feature extraction network DenseNet to extract the features of road signs during the day and at night respectively, and first superimposes the feature maps of the second layer of road signs convolutional layers during the day and at night based on channels, and then performs dimensionality reduction processing through 2×2 convolution, and the same operation is performed on the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer;
[0118] Furthermore, the specific process of connecting the feature pyramid in series to the dual feature extraction network DenseNet is as follows:
[0119] M1: For the images of the training set data, the mean pixel is judged and a threshold is set. If the mean pixel is greater than the threshold, it means it is dark and DenseNet-A is used for processing. Otherwise, it means it is daytime and DenseNet-B is used for processing. If the current input training set data image is dark, a dark road sign image adversarial network BigGAN is constructed;
[0120] M2: Use the adversarial network BigGAN to generate a training set of black sky road sign image samples for the black sky road sign image;
[0121] M3: Add the generated training set samples of black sky road sign images to data storage module 3 for training set data and test set data;
[0122] The process of processing road signs during the day and at night is as follows:
[0123] The feature collection network adopts the network framework of the dual feature extraction network DenseNet to extract the features of road signs during the day and at night respectively, and first superimposes the feature maps of the second layer of road signs convolutional layers during the day and at night based on channels, and then performs dimensionality reduction processing through 2×2 convolution, and the same operation is performed on the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer;
[0124] The specific process of using the adversarial network BigGAN to generate the black sky road sign image training set samples for the black sky road sign image is as follows: according to the original black sky road sign image given by the current training, adversarial black sky road sign image samples are generated, and the adversarial black sky road sign image sample specifications are: the size diversification feature of the road sign frame, the position of the road sign image where the road sign frame is located is not fixed, and the size diversification feature of the text in the road sign frame is diversified. One given black sky road sign original image is input, and a disturbance factor is added through the adversarial network BigGAN to generate 100 black sky road sign sample images;
[0125] The third convolutional layer, i.e., the feature map of the fusion of the daytime road signs and the nighttime road signs, is upsampled and then superimposed with the feature map of the fusion of the daytime road signs and the nighttime road signs of the second convolutional layer to obtain the first layer of the pyramid. This step is continued for the fourth, fifth, and sixth convolutional layers. Each adjacent two layers of feature maps are superimposed on the channel to obtain one layer of the pyramid. Finally, a total of four layers of feature pyramids are obtained. The specific processing process of the four layers of the pyramid is as follows:
[0126] The first layer of the pyramid is used to process the first resolution image, and the illumination intensity of the image belongs to the first level of illumination;
[0127] The second layer of the pyramid is used to process the second resolution image, and the illumination intensity of the image belongs to the second level illumination;
[0128] The third layer of the pyramid is used to process images with the third resolution, and the light intensity of the images belongs to the third-level light;
[0129] The fourth layer of the pyramid is used to process images with the fourth resolution, and the light intensity of the images belongs to the fourth-level light;
[0130] The resolution levels of the said images are specifically divided as follows:
[0131] The first resolution: w < 320, h < 320;
[0132] The second resolution: 320 < w ≤ 640, 320 < h ≤ 640;
[0133] The third resolution: 640 < w ≤ 1080, 640 < h ≤ 1080;
[0134] The fourth resolution: 1080 < w, 1080 < h, where w represents the width of the image and h represents the height of the image;
[0135] The light intensity of the said images adopts the method of calculating the average brightness of the image by using a histogram, and is specifically divided as follows:
[0136] The first-level light: 0 ≤ L ≤ 50;
[0137] The second-level light: 50 < L ≤ 100;
[0138] The third-level light: 100 < L ≤ 180;
[0139] The fourth-level light: 180 < L ≤ 255, where L represents the average brightness value of the image.
[0140] It should be noted that the first layer of the pyramid is used to process the recognition of the position of the road sign image frame at night, and the second layer of the pyramid is used to process the recognition of the position of the road sign image frame during the day, independently processing the positions of the road sign images during the day and at night.
[0141] Furthermore, the specific implementation steps of the day-night classification regression network are as follows:
[0142] Two branch networks are added behind the feature map of each fusion layer of the pyramid. One branch is used for classification and the other branch is used for regression. And each branch first performs 4 convolutions on the feature map, mainly to enhance the image features of the day and night respectively, and the convolution kernel size is 2×2 and the number is 128;
[0143] The S102 also includes using an anchor-free method to detect the position of the road sign frame on the road sign image;
[0144] The specific implementation of the anchor-free method is as follows:
[0145] The day and night classification regression is the coordinates of the upper left and center points on the road sign image. The regression process is to scan the feature map of each layer of the pyramid pixel by pixel. Each pixel will regress an 8-dimensional vector and generate a rectangular detection frame corresponding to the original image. Therefore, a large number of low-quality prediction frames will be generated around the real target frame. In order to suppress the appearance of these low-quality prediction frames, a new constraint loss function is proposed. The formula is:
[0146]
[0147] If the center point coordinates of the real road sign annotation box The coordinates of the upper left point of the actual prediction box are: (X1, Y2), the coordinates of the center point are: (X2, Y2), where A is a center loss function; the smaller the distance between the center point of the prediction box and the center point of the real annotation box, the larger A is, and vice versa; if the image size input to the detection network is H*W, the coordinates are normalized and uniformly divided by the input size, so that Between 0 and 1, The value range of is: Final A value range The branch is set below the classification branch in parallel. The output result of the branch multiplied by the classification score is the total classification score. The prediction boxes with small scores will be processed by the non-maximum suppression algorithm, and the remaining highest score is the final prediction box position;
[0148] It should be noted that adding the anchor-free frame method to determine the position frame algorithm of the road sign image is beneficial to the recognition accuracy in the case of poor lighting in dark images.
[0149] Furthermore, the specific steps of determining whether the content of the road sign area position box is text are as follows:
[0150] K1: The default box mechanism in the FSSD algorithm for small target detection is used for judgment. Default boxes of different specifications are set. Default boxes of different aspect ratios are set on each neuron of each feature map of each layer of the pyramid, which are 1, 2, 4, 7, 9, and 10 respectively.
[0151] K2: The pyramid performs convolution operation on the input road sign area location box content and a 2×2 convolution kernel for feature learning, and then obtains a 36-dimensional feature matrix, of which 24 dimensions are used to regress the text bounding box and 12 dimensions are used to classify the detected target. The predicted road sign area location box content is judged as text based on the category score;
[0152] It should be noted that the default box mechanism in the small target detection FSSD algorithm is used for judgment, which is beneficial to improve the recognition of road sign information more quickly when the road sign image is very small.
[0153] Furthermore, the process of regression and classification of the road sign area position frame is as follows:
[0154] Assume that the size of the original input image is (w1, h1), w1 and h1 represent the width and height of the original image respectively, the size of the feature map of the input text prediction layer is (w2, h2), w2 and h2 represent the width and height of the feature map respectively, and set the default text box coordinates d1 = (x1, y1, w1, h1) at the position with coordinates (i, j) on the feature map, where (i, j) represents the position coordinates of each neuron in the feature map, (x1, y1) represents the center position coordinates of the default box on each neuron in the feature map, and (w1, h1) represents the size information of the width and height of the default box. The text prediction layer predicts the offset of the default box relative to the real text box. Assume that the predicted coordinate offset is (k1, k2, k3, k4, Q), where Q is the prediction confidence, which is used for target classification. The predicted text box coordinates are (x, y, w, h), and the calculation formula is
[0155] x=x1+w1*k1,
[0156] y=y1+h1*k2,
[0157] w=w1exp(k3),
[0158] h=h1exp(k4),
[0159] The loss function is calculated using the formula,
[0160]
[0161] Where x represents the matrix that matches the default box. For the i-th default text box and the j-th real text box, when x ij =1 indicates that the two match, otherwise they do not match, c is the prediction confidence, g is the real position coordinate of the text, D is the number of matches between the default text box and the real text box, and Y x,c,g Indicates hyperparameters. The a coefficient is set to 1 in the target detection problem, and the b coefficient is set to 0.5 in the target detection problem. The detection target classification L x,c The loss function used is Softmax.
[0162] Example 4, this example is based on the above example, please refer to Figure 1 The semantic segmentation module 6 pre-processes the road sign frame position area image output by the road sign detection module 5 to obtain a binary image of the road sign frame and noise points, which is recorded as A. A morphological opening operation is performed on A, and an image with the vertical background eliminated is obtained through AB, which is recorded as C. Similarly, an opening operation is performed on A to obtain an image, which is recorded as D. An image E with the frame area eliminated is obtained through CD. After the opening operation is performed on image E, other noise points are eliminated to obtain a final binary image;
[0163] It should be noted that the semantic segmentation network was trained 150,000 times. Its purpose was to segment the road sign area images that were filled with white areas on all sides, obtain a binary image containing only the text area, eliminate background and noise interference, and then obtain the precise text area location through contour search and segment out individual text.
[0164] Furthermore, the text recognition module 7 recognizes text in the following specific process: performing histogram equalization on the processed image of the semantic segmentation module 6, filling white areas around it, unifying the image size, extracting features through a convolutional layer, and finally outputting the text recognition result;
[0165] Since the vehicle-mounted camera shoots video, the same road sign will appear in multiple frames of the video, so by detecting multiple frames, the text recognition result is output when the text appears the most times in the frame;
[0166] The specific operation process is as follows:
[0167] L1: The road sign in the current frame is x i , record the coordinates of the upper left corner of the road sign as (a i , b i ), as the vehicle moves forward, the same road sign in the video moves from far to near and continuously to the upper left of the current frame. i+1 i And b i+1 i , determine the road sign x in the next frame i+1 With x i The road signs in the same road sign are x i+1 Included in the set X = {x i , x i+1}, continue to execute until the condition is not met, and get the set X = {x i , x i+1 , ..., x i+n}, the character that appears most in the calculation set is the road sign text O in these n frames x , and count the text into set O;
[0168] L2: Using the logical relationship between different road sign characters, the frames that do not meet the conditions in step L1 are recorded as y i According to the rules in step L1, we can get Y = {y i ,y i+1 , ..., y i+n}, the character that appears most frequently in Y is recorded as O y , judge O x With O y Is the difference between them 0? If the difference is 0, it means it will not increase anymore, which means the text displayed in the current frame is the maximum value, that is, the entire text of a road sign;
[0169] It should be noted that, since the input image is a binary image, the binary images generated during the day and at night can be put into a training set for training. The model obtained in this way can be applied to both day and night conditions. A dropout layer is added during training with a coefficient of 0.8 to prevent network overfitting. After the training is completed, it is tested on 305 pictures in the test set, with an accuracy of 93.44%, which meets the accuracy required for text recognition. The system of the present invention can recognize road signs at a speed of 11.8 frames / s during the day and 14.7 frames / s at night. The average recognition accuracy under daytime conditions is 87.98%, and the average recognition accuracy under night conditions is 72.92%.
[0170] The beneficial effects of the intelligent road sign recognition vehicle-mounted camera system of the present invention are as follows:
[0171] The present invention uses a vehicle-mounted camera to obtain road sign image data during the day and at night, uses part of the obtained road sign image data sets during the day and at night for a test set and part for a training set, trains two RetinaNet network models through the training set, and the two network models obtained after training are respectively recorded as DenseNet-A and DenseNet-B, and divides the RetinaNet network model into a dual feature extraction network DenseNet, a feature pyramid, and a day and night classification regression network. When extracting features of a road sign image at night, the dual feature extraction network DenseNet determines whether the image is at night, and if so, uses a road sign image adversarial network BigGAN to generate a road sign image at night, thereby enhancing the model's ability to recognize road sign images at night, uses the dual feature extraction network DenseNet to extract features of road signs during the day and at night, connects the feature pyramid in series to the dual feature extraction network DenseNet, performs convolution on each layer of the feature pyramid, and performs refinement processing on the four-layer pyramid model according to specific image resolution and image illumination intensity, thereby improving The invention has the capability to detect the position of the road sign frame of the road sign image, and obtains the road sign frame area position through classification and regression through the day and night classification regression network, and uses the default frame mechanism in the small target detection FSSD algorithm to judge whether the road sign frame area contains text. If it contains road sign text, the road sign frame area position is semantically segmented, redundant information is removed, a binary image is generated, and finally the binary image is subjected to text recognition. In the text recognition process, the problem of incomplete text content of the road sign broadcast at one time is solved, all the text contained in the road sign is obtained and then voice broadcast is performed to guide the driver to accurately and quickly recognize the road sign. The invention adopts the RetinaNet dual network to fuse the real-time road sign images taken by the vehicle camera during the day and at night with the input feature pyramid model, and fuses and extracts the road sign features during the day and at night through the dual feature extraction network DenseNet, adopts the small target detection FSSD algorithm and the double recognition strategy without anchor frame, and the RetinaNet network removes the fully connected layer and adopts the full convolution network, so the road sign recognition speed is very fast and the road sign recognition accuracy is very high.
[0172] The present invention and its embodiments are described above, which is not restrictive. What is shown in the accompanying drawings is only one of the embodiments of the present invention, and the actual content is not limited to this. In short, if ordinary technicians in this field are inspired by it and do not deviate from the purpose of the invention, they can creatively design structural methods and embodiments similar to the technical scheme, which should all fall within the scope of protection of the present invention.
Claims
1. An intelligent road sign recognition vehicle camera system, characterized in that: The invention comprises a road sign recognition management system module (1), a road sign data collection module (2), a data storage module (3), a road sign recognition model module (4), a road sign detection module (5), a semantic segmentation module (6), a text recognition module (7) and a road sign broadcasting module (8); the road sign recognition model module (4) uses the data of the data storage module (3) to carry out model construction and iterative optimization; the road sign detection module (5), the semantic segmentation module (6) and the text recognition module (7) are used to realize the business functions of the road sign recognition model module (4); the result of the road sign recognition frame recognition by the road sign detection module (5) is used for further processing by the semantic segmentation module (6); the processing result of the semantic segmentation module (6) is used for text recognition by the text recognition module (7); and the road sign text recognized by the text recognition module (7) is used for broadcasting by the road sign broadcasting module (8); The road sign recognition management system module (1) is used to manage the scheduling of services, data and communications of each module of the system; The road sign data collection module (2) is used to collect road sign information using a vehicle-mounted camera and generate video data and road sign data set samples; The data storage module (3) is used to store the data collected by the road sign data collection module (2); The road sign recognition model module (4) trains two RetinaNet network models through the collected data. The RetinaNet network model is divided into a dual feature extraction network DenseNet, a feature pyramid and a day and night classification regression network. The RetinaNet network model is used to train and optimize the recognition of the road sign data set. The adversarial network BigGAN is used to generate adversarial sample images of road signs at night to enhance the recognition of road signs at night. The trained and optimized road sign recognition model is used for real-time intelligent recognition of road signs during the day and at night. The road sign detection module (5) uses a small target detection FSSD algorithm and an anchor-free frame recognition strategy to detect the position of the road sign frame, and is used to detect the position of the road sign frame on road sign images during the day and at night; The semantic segmentation module (6) is used to reprocess the image within the road sign frame position; The text recognition module (7) is used to recognize and process the text in the road sign frame position, and extract the text in the road sign frame position; The road sign broadcasting module (8) is used to broadcast the recognition result of the text recognition module (7) and broadcast the road sign information to the driver in real time through the vehicle-mounted camera; The data storage module (3) comprises a distributed storage unit (31), a data backup unit (32) and a data recovery unit (33); The distributed storage unit (31) is used to perform distributed storage on the database, storing it on multiple servers to ensure data security and reliability; The data backup unit (32) is used to regularly back up data to prevent data loss; The data recovery unit (33) is used to quickly recover data when the data is lost or damaged; The road sign data collection module (2) stores road sign video data collected by a vehicle-mounted camera in the data storage module (3), wherein a portion of the video data is used as training set data for a road sign recognition model, and a portion of the video data is used as test set data; The vehicle-mounted camera also has a voice broadcast function; The road sign detection module (5) is used to identify the border position of the road sign in the image in the following process: S101: Obtain road sign image data during the day and at night through a vehicle camera, a portion of which is used as a test set and a portion of which is used as a training set. Two RetinaNet network models are trained through the training set. The feature acquisition network of the RetinaNet network model is DenseNet. The two network models obtained after training are respectively recorded as DenseNet-A and DenseNet-B. S102: Divide the RetinaNet network model of S101 into a dual feature extraction network DenseNet, a feature pyramid, and a day and night classification regression network, use the dual feature extraction network DenseNet to extract features of road sign images during the day and at night, connect the feature pyramid in series to the dual feature extraction network DenseNet, perform convolution on each layer of the feature pyramid, and perform classification and regression through the day and night classification regression network; S103: using the test set to perform a network iteration test on the dual feature extraction network DenseNet, and output a detection result; S104: Determine whether the detection result includes a road sign area location frame, and if so, determine whether the content of the road sign area location frame is text; The specific steps of building the dual feature extraction network DenseNet are: M1: For the images of the training set data, the mean pixel is judged and a threshold is set. If the mean pixel is greater than the threshold, it indicates that it is dark and DenseNet-A is used for processing. Otherwise, it indicates that it is daytime and DenseNet-B is used for processing. If the current input training set data image is judged to be dark, a dark road sign image adversarial network BigGAN is constructed; M2: Use the adversarial network BigGAN to generate a training set of black sky road sign image samples for the black sky road sign image; M3: Add the generated black sky road sign image training set samples to the data storage module (3) for training set data and test set data; The process of processing road signs during the day and at night is as follows: The feature collection network adopts the network framework of the dual feature extraction network DenseNet to extract the features of road signs during the day and at night respectively, and first superimposes the feature maps of the second layer of road signs convolutional layers during the day and at night based on channels, and then performs dimensionality reduction processing through 2×2 convolution, and the same operation is performed on the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer; The specific process of using the adversarial network BigGAN to generate a training set sample of the black sky road sign image from the original black sky road sign image is as follows: According to the original black sky road sign image given in the current training, generate adversarial black sky road sign image samples. The specifications of the adversarial black sky road sign image samples are: diverse features of the size of the road sign frame, non-fixed features of the position of the road sign frame in the road sign image, and diverse features of the size of the text within the road sign frame. Input 1 original black sky road sign image, and through the adversarial network BigGAN, add a perturbation factor to generate 100 black sky road sign sample images; The specific process of connecting the feature pyramid to the dual feature extraction network DenseNet is as follows: Sample the feature map of the third convolutional layer, that is, the feature map of the fusion of the road signs in the daytime and at night, and then superimpose it on the feature map of the fusion of the road signs in the daytime and at night of the second convolutional layer to obtain the first layer of the pyramid. Continue to execute this step for the fourth convolutional layer, the fifth convolutional layer, and the sixth convolutional layer. Superimpose the feature maps of every two adjacent layers in the channels to obtain one layer of the pyramid. Finally, a total of four layers of feature pyramids are obtained. The specific processing process of the four layers of the pyramid is as follows: The first layer of the pyramid is used to process the first-resolution image, and the illumination intensity of the image belongs to the first-level illumination; The second layer of the pyramid is used to process the second-resolution image, and the illumination intensity of the image belongs to the second-level illumination; The third layer of the pyramid is used to process the third-resolution image, and the illumination intensity of the image belongs to the third-level illumination; The fourth layer of the pyramid is used to process the fourth-resolution image, and the illumination intensity of the image belongs to the fourth-level illumination; The resolution levels of the images are specifically divided as follows: The first-resolution image: w < 320, h < 320; The second-resolution image: 320 < w ≤ 640, 320 < h ≤ 640; The third-resolution image: 640 < w ≤ 1080, 640 < h ≤ 1080; The fourth-resolution image: 1080 < w, 1080 < h, where w represents the width of the image and h represents the height of the image; The illumination intensity of the image uses the method of calculating the average brightness of the image by histogram, and is specifically divided as follows: The first-level illumination: 0 ≤ L ≤ 50; The second-level illumination: 50 < L ≤ 100; The third-level illumination: 100 < L ≤ 180; The fourth-level illumination: 180 < L ≤ 255, where L represents the average brightness value of the image; The specific implementation steps of the day-night classification regression network are as follows: Add two branch networks behind the feature map of each fusion layer of the pyramid. One branch is used for classification, and the other branch is used for regression. And each branch first performs 4 convolutions on the feature map to enhance the image features of the daytime and at night respectively, and the size of the convolution kernel is 2×2, and the number is 128; S102 also includes using an anchor-free method to detect the position of the road sign frame on the road sign image; The specific implementation of the anchor-free method is as follows: The day and night classification regression is the coordinates of the upper left and center points on the road sign image. The regression process is to scan the feature map of each layer of the pyramid pixel by pixel. Each pixel will regress an 8-dimensional vector and generate a rectangular detection frame corresponding to the original image. Therefore, a large number of low-quality prediction frames will be generated around the real target frame. In order to suppress the appearance of these low-quality prediction frames, a constrained loss function is proposed, the formula is: If the center point coordinates of the real road sign annotation box The coordinates of the upper left point of the actual prediction box are: (X1, Y2), the coordinates of the center point are: (X2, Y2), where A is a center loss function; the smaller the distance between the center point of the prediction box and the center point of the real annotation box, the larger A is, and vice versa; if the image size input to the detection network is H*W, the coordinates are normalized and uniformly divided by the input size, so that Between 0 and 1, The value range of is: Final A value range The branch is set below the classification branch in parallel. The output result of the branch multiplied by the classification score is the total classification score. The prediction boxes with small scores will be processed by the non-maximum suppression algorithm, and the remaining highest score is the final prediction box position.
2. The intelligent road sign recognition vehicle camera system according to claim 1, characterized in that: The specific steps of determining whether the content of the road sign area position box is text are as follows: K1: The default box mechanism in the FSSD algorithm for small target detection is used for judgment. Default boxes of different specifications are set. Default boxes of different aspect ratios are set on each neuron of each feature map of each layer of the pyramid, which are 1, 2, 4, 7, 9, and 10 respectively. K2: The pyramid performs convolution operation on the input road sign area location box content and a 2×2 convolution kernel for feature learning, and then obtains a 36-dimensional feature matrix, of which 24 dimensions are used to regress the text bounding box and 12 dimensions are used to classify the detected target. The predicted road sign area location box content is judged as text based on the category score.
3. The intelligent road sign recognition vehicle camera system according to claim 2, characterized in that: The process of road sign area position frame regression and classification is as follows: Assume that the size of the original input image is (w1, h1), w1 and h1 represent the width and height of the original image respectively, the size of the feature map of the input text prediction layer is (w2, h2), w2 and h2 represent the width and height of the feature map respectively, and set the default text box coordinates d1 = (x1, y1, w1, h1) at the position with coordinates (i, j) on the feature map, where (i, j) represents the position coordinates of each neuron in the feature map, (x1, y1) represents the center position coordinates of the default box on each neuron in the feature map, (w1, h1) represents the size information of the width and height of the default box, and the text prediction layer predicts the offset of the default box relative to the real text box. Assume that the predicted coordinate offset is (k1, k2, k3, k4, Q), where Q is the prediction confidence, which is used for target classification. The predicted text box coordinates are (x, y, w, h), and the calculation formula is, x=x1+w1*k1, y=y1+h1*k2, w=w1exp(k3), h=h1exp(k4), The loss function is calculated using the formula, Where x represents the matrix that matches the default box. For the i-th default text box and the j-th real text box, when x ij =1 indicates that the two match, otherwise they do not match, c is the prediction confidence, g is the real position coordinate of the text, D is the number of matches between the default text box and the real text box, and Y x,c,g Indicates hyperparameters. The a coefficient is set to 1 in the target detection problem, and the b coefficient is set to 0.5 in the target detection problem. The detection target classification L x,c The loss function used is Softmax.
4. The intelligent road sign recognition vehicle camera system according to claim 3, characterized in that: The semantic segmentation module (6) pre-processes the road sign frame position area image output by the road sign detection module (5) to obtain a binary image of the road sign frame and noise points, which is recorded as A, performs a morphological opening operation on A, obtains an image with the vertical background eliminated through AB, which is recorded as C, similarly performs an opening operation on A to obtain an image, which is recorded as D, obtains an image E with the frame area eliminated through CD, and after performing an opening operation on image E, eliminates other noise points to obtain a final binary image; The text recognition module (7) recognizes text in the following specific process: performing histogram equalization on the processed image of the semantic segmentation module (6), filling white areas around it, unifying the image size, extracting features through a convolution layer, and finally outputting the text recognition result; Since the vehicle-mounted camera shoots video, the same road sign will appear in multiple frames of the video, so by detecting multiple frames, the text recognition result is output when the text appears the most times in the frame; The specific operation process is as follows: L1: The road sign in the current frame is x i , record the coordinates of the upper left corner of the road sign as (a i , b i ), as the vehicle moves forward, the same road sign in the video moves from far to near and continuously to the upper left of the current frame. i+1 i And b i+1 i , determine the road sign x in the next frame i+1 With x i The road signs in the same road sign are x i+1 Included in the set X = {x i , x i+1 }, continue to execute until the condition is not met, and get the set X = {x i , x i+1 , ..., x i+n }, the character that appears most in the calculation set is the road sign text O in these n frames x , and count the text into set O; L2: Using the logical relationship between different road sign characters, the frames that do not meet the conditions in step L1 are recorded as y i According to the rules in step L1, we can get Y = {y i ,y i+1 , ..., y i+n }, the character that appears most frequently in Y is recorded as O y , judge O x With O y Is the difference between them 0? If the difference is 0, it means it will not increase anymore, which means the text displayed in the current frame is the maximum value, that is, the entire text of a road sign.
5. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, it is used to implement the functions of an intelligent road sign recognition vehicle-mounted camera system as described in any one of claims 1 to 4.
