Vehicle surrounding sign recognition method, device, storage medium and computer equipment
By acquiring environmental images around the car and using a traffic sign detection neural network to identify blocked traffic signs, the problem of drivers ignoring traffic signs is solved and efficient recognition and notification of traffic signs around the vehicle are achieved.
Patent Information
- Application Number
- CN202210033637.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-01-12
AI Technical Summary
When driving a car, drivers tend to ignore traffic signs on the road, especially when the distance around the vehicle is close. Due to the obstruction of the car shell, the existence and content of the traffic signs cannot be noticed.
By obtaining the surrounding environment image of the target vehicle, the pre-trained traffic sign detection neural network is used to extract the traffic sign image and background color, detect the occlusion position, and generate a traffic sign query instruction based on the background color and classification, and upload it to the processing server to identify and notify the driver. .
It effectively prevents drivers from ignoring traffic signs near the vehicle, improves the recognition efficiency and accuracy of traffic signs, and ensures that drivers understand surrounding traffic information in a timely manner.
Smart Images

Figure CN114387581B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic sign recognition, and in particular to a method, device, storage medium and computer equipment for recognizing signs around a vehicle. Background Art
[0002] Cars are a common means of transportation in people's daily lives. When driving a car, you need to pay attention to both road safety and traffic signs on the road. However, since drivers focus on road safety most of the time, they may ignore traffic signs on the road. Moreover, when some traffic signs are close to the car, the driver cannot detect the existence of traffic signs near the car due to the obstruction of the car body, let alone the content of the traffic signs. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings and deficiencies in the prior art and to provide a method, device, storage medium and computer equipment for identifying vehicle surrounding signs. By acquiring the surrounding environment image of the target vehicle and identifying traffic signs from the surrounding environment image, the driver can be prevented from ignoring the traffic signs near the vehicle.
[0004] An embodiment of the present invention provides a method for identifying a vehicle surrounding sign, comprising:
[0005] The surrounding environment image of the target vehicle is acquired by an image acquisition component; the image acquisition component is arranged around the body of the target vehicle;
[0006] Extracting a traffic sign image and a background color of a traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of a non-character object in the traffic sign image;
[0007] Detecting the occluded position and range from the traffic sign image through a pre-trained image occlusion detection neural network, and obtaining a traffic sign image with the occluded position marked;
[0008] Obtaining a corresponding traffic sign classification according to the background color and a preset relationship between the background color and the traffic sign classification;
[0009] Generate a traffic sign query instruction according to the traffic sign image with the blocked position marked and the traffic sign classification;
[0010] Uploading the traffic sign query instruction to a processing server and receiving the traffic sign query result issued by the processing server;
[0011] The image occlusion detection neural network is trained by the following steps:
[0012] The initial image training sample is sampled by an initial high-resolution model to obtain information features of at least four feature channels, wherein the initial image training sample includes an occluded position selected by a real rectangular frame, and the occluded position corresponds to at least two occluder categories, and the occluder categories include: an occluder category attached to the image acquisition component, and an occluder category attached to a traffic sign;
[0013] Fusing the information features of each of the feature channels to obtain at least four enhanced multi-scale features;
[0014] The positioning loss is calculated for the enhanced multi-scale features to obtain the positioning loss of the multi-scale features. The process is as follows:
[0015]
[0016] in,
[0017]
[0018]
[0019]
[0020] Where b represents the matching coefficient, l represents the set of predicted rectangular boxes, and g represents the set of real rectangular boxes. Each box contains four elements (cx, cy, w, h), where cx is the horizontal coordinate of the center point of the rectangular box, cy is the vertical coordinate of the center point of the rectangular box, w is the width of the rectangular box, and h is the height of the rectangular box. It is represented as the matching value between the i-th predicted rectangle and the j-th real rectangle of the occluder category k. If the categories are consistent, the value is 1, otherwise, the value is 0; To predict the width of the rectangle, is the horizontal coordinate of the predicted rectangular box, The horizontal coordinate of the real frame; The expected predicted value of the horizontal coordinate of the real rectangular box; is the ordinate of the center point of the predicted rectangular box, To predict the height of the rectangular box, is the ordinate of the center point of the real rectangular frame, is the width of the real rectangular frame, is the height of the real rectangular box; wherein the predicted rectangular box is a rectangular box obtained by predicting the box selection in the initial image training sample during the initial high-resolution model training process.
[0021] Compared with the prior art, the vehicle surrounding sign recognition method of the present invention extracts the traffic sign image and the background color of the traffic sign from the surrounding environment image of the target vehicle through the traffic sign detection neural network obtained by pre-training, and then finds out the corresponding traffic sign classification, and then generates a traffic sign query instruction based on the traffic sign image and the traffic sign classification, and then uploads the traffic sign query instruction to the processing server and receives the corresponding traffic sign query result issued by the server, so that the driver can also understand the traffic signs near the target vehicle in the target vehicle, avoiding the driver ignoring the traffic signs near the vehicle.
[0022] Furthermore, the processing server stores a plurality of traffic sign databases, wherein the traffic sign databases store a plurality of traffic sign samples belonging to the same traffic sign classification. After receiving the traffic sign query instruction, the processing server performs the following steps:
[0023] In response to the traffic sign query instruction, acquiring a target traffic sign database corresponding to the traffic sign classification;
[0024] Comparing the traffic sign image with each traffic sign sample in the target traffic sign database, and determining the traffic sign sample with the highest similarity to the traffic sign image as the target traffic sign sample, includes:
[0025] Grayscale the traffic sign image and the traffic sign sample to be compared to obtain a first grayscale image and a second grayscale image;
[0026] Convert pixels of the first grayscale image and the second grayscale image into vectors to obtain a plurality of first vectors and a plurality of second vectors for cosine similarity detection;
[0027] The cosine similarity between each of the first vectors and the corresponding second vector is calculated as shown in the following formula:
[0028]
[0029] Wherein, T(x, y) is the cosine similarity between the first vector and the second vector, x is the first vector; y is the second vector; x i is the i-th dimension vector of the first vector; y i is the i-th dimension vector of the second vector.
[0030] Obtaining image similarity between the grayscale image of the traffic sign image and the current traffic sign sample according to the cosine similarity between the grayscale image of the traffic sign image and all pixel vectors of the current traffic sign sample;
[0031] Compare the grayscale image of the traffic sign image with the image similarities of each of the traffic sign samples to obtain the traffic sign sample corresponding to the maximum image similarity, and determine it as the target traffic sign sample;
[0032] The identification data of the target traffic sign sample is obtained, and the traffic sign query result is generated and issued according to the identification data.
[0033] By determining a target traffic sign database corresponding to the traffic sign classification and then comparing each traffic sign sample in the target traffic sign database with the traffic sign image, comparison time is saved and detection efficiency is improved.
[0034] Furthermore, the traffic sign detection neural network includes a first neural network module and a second neural network module, and the traffic sign detection neural network is trained by the following steps:
[0035] Inputting a plurality of first sample images marked with traffic signs into a first neural network module, and performing parameter correction on the first neural network module according to a first loss function corresponding to the first neural network module, to obtain a first neural network module for detecting traffic signs;
[0036] Annotate the background range and background color of the multiple traffic signs detected by the first neural network module to obtain multiple second sample images;
[0037] Input a plurality of the second sample images into a second neural network module, and perform parameter correction on the second neural network module according to a second loss function corresponding to the second neural network module, so as to obtain a second neural network module for detecting the background range and background color of the traffic sign.
[0038] By training the first neural network module and the second neural network module respectively, a trained traffic sign detection neural network is obtained.
[0039] Furthermore, the step of generating a traffic sign query instruction according to the traffic sign image and the traffic sign classification further includes:
[0040] Obtaining the real-time positioning of the target vehicle;
[0041] Acquire the road information where the target vehicle is currently located according to the real-time positioning;
[0042] The traffic sign query instruction is generated according to the traffic sign image, the traffic sign classification, the real-time positioning and the road information.
[0043] Further, after receiving the traffic sign query instruction, the processing server performs the following steps:
[0044] Acquire traffic sign data of a corresponding road section according to the road information;
[0045] Obtaining traffic sign data near the target vehicle according to the real-time positioning, the preset target range and the traffic sign data;
[0046] Filtering candidate traffic sign data from the traffic sign data near the target vehicle according to the traffic sign classification;
[0047] Comparing the identification features of the traffic sign image with the identification features of the candidate traffic sign data, and determining the candidate traffic sign data having the highest similarity in identification features with the traffic sign image as the target traffic sign data;
[0048] The target traffic sign data is acquired to generate and issue the traffic sign query result.
[0049] Combining road information and real-time positioning to search for traffic signs can increase the diversity of traffic sign search methods.
[0050] Furthermore, after uploading the traffic sign query instruction to the processing server and receiving the traffic sign query result issued by the processing server, the following steps are also included:
[0051] The traffic sign query result is displayed on the electronic screen of the target vehicle, and the traffic sign query result is played by voice broadcast.
[0052] The information of the traffic signs near the target vehicle can be notified to the driver and passengers in the target vehicle in a timely manner.
[0053] Furthermore, the image acquisition component includes a camera with a fixed lens and / or a camera with a rotating lens.
[0054] An embodiment of the present invention further provides a vehicle surrounding sign recognition device, comprising: a surrounding environment image acquisition module, a sign detection module, an occlusion position marking module, a traffic sign classification acquisition module, an instruction generation module and an information interaction module;
[0055] A surrounding environment image acquisition module acquires the surrounding environment image of the target vehicle through an image acquisition component; the image acquisition component is arranged around the body of the target vehicle;
[0056] A sign detection module, which extracts a traffic sign image and a background color of a traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of non-character objects in the traffic sign image;
[0057] An occlusion position marking module detects the occluded position and range from the traffic sign image through a pre-trained image occlusion detection neural network, and obtains a traffic sign image with the occluded position marked;
[0058] A traffic sign classification acquisition module, used to obtain the corresponding traffic sign classification according to the background color and the preset background color and traffic sign classification relationship;
[0059] An instruction generation module generates a traffic sign query instruction according to the traffic sign image with the blocked position marked and the traffic sign classification;
[0060] An information interaction module, used to upload the traffic sign query instruction to a processing server and receive the traffic sign query result issued by the processing server;
[0061] The image occlusion detection neural network is trained by the following steps:
[0062] The initial image training sample is sampled by an initial high-resolution model to obtain information features of at least four feature channels, wherein the initial image training sample includes an occluded position selected by a real rectangular frame, and the occluded position corresponds to at least two occluder categories, and the occluder categories include: an occluder category attached to the image acquisition component, and an occluder category attached to a traffic sign;
[0063] Fusing the information features of each of the feature channels to obtain at least four enhanced multi-scale features;
[0064] The positioning loss is calculated for the enhanced multi-scale features to obtain the positioning loss of the multi-scale features. The process is as follows:
[0065]
[0066] in,
[0067]
[0068]
[0069]
[0070] Where b represents the matching coefficient, l represents the set of predicted rectangular boxes, and g represents the set of real rectangular boxes. Each box contains four elements (cx, cy, w, h), where cx is the horizontal coordinate of the center point of the rectangular box, cy is the vertical coordinate of the center point of the rectangular box, w is the width of the rectangular box, and h is the height of the rectangular box. It is represented as the matching value between the i-th predicted rectangle and the j-th real rectangle of the occluder category k. If the categories are consistent, the value is 1, otherwise, the value is 0; To predict the width of the rectangle, is the horizontal coordinate of the predicted rectangular box, The horizontal coordinate of the real frame; The expected predicted value of the horizontal coordinate of the real rectangular box; is the ordinate of the center point of the predicted rectangular box, To predict the height of the rectangular box, is the ordinate of the center point of the real rectangular frame, is the width of the real rectangular frame, is the height of the real rectangular box; wherein the predicted rectangular box is a rectangular box obtained by predicting the box selection in the initial image training sample during the initial high-resolution model training process.
[0071] Compared with the prior art, the vehicle surrounding sign recognition device of the present invention extracts the traffic sign image and the background color of the traffic sign from the surrounding environment image of the target vehicle through the pre-trained traffic sign detection neural network, and then finds out the corresponding traffic sign classification, and then generates a traffic sign query instruction based on the traffic sign image and the traffic sign classification, and then uploads the traffic sign query instruction to the processing server and receives the corresponding traffic sign query result issued by the server, so that the driver can also understand the traffic signs near the target vehicle in the target vehicle, avoiding the driver ignoring the traffic signs near the vehicle.
[0072] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the vehicle surrounding sign recognition method as described above when executed by a processor.
[0073] An embodiment of the present invention further provides a computer device, characterized in that it includes a memory, a processor, and a computer program stored in the memory and executable by the processor, and when the processor executes the computer program, the steps of the vehicle surrounding sign recognition method as described above are implemented.
[0074] In order to more clearly understand the present invention, the specific implementation of the present invention will be described below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 The present invention is a flowchart of a method for identifying vehicle surrounding signs according to an embodiment of the present invention.
[0076] Figure 2The present invention is a flowchart of the steps executed by a processing server of a method for identifying vehicle surrounding signs according to an embodiment of the present invention.
[0077] Figure 3 This is a module connection diagram of a vehicle periphery sign recognition device according to an embodiment of the present invention.
[0078] 1. Surrounding environment image acquisition module; 2. Sign detection module; 3. Occlusion position marking module; 4. Traffic sign classification acquisition module; 5. Instruction generation module; 6. Information interaction module. DETAILED DESCRIPTION
[0079] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0080] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0081] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0082] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0083] See also Figure 1 , which is a flow chart of a vehicle surrounding identification method according to an embodiment of the present invention, comprising:
[0084] S101: Acquire the surrounding environment image of the target vehicle through an image acquisition component; the image acquisition component is arranged around the body of the target vehicle.
[0085] The target vehicle is the car currently driven by the driver user, and the car may be a common vehicle that often travels on traffic roads, such as a passenger car, a bus, or a truck.
[0086] Wherein, the image acquisition component includes a camera with a fixed lens and / or a camera with a rotating lens.
[0087] S102: extracting a traffic sign image and a background color of a traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of non-character objects in the traffic sign image.
[0088] The traffic signs are graphic symbols that display traffic regulations and road information. They can express traffic regulations in an image, concrete and concise manner, and also express content that is difficult to describe in words. They are used to manage traffic, indicate driving directions, and ensure smooth roads and driving safety. They are applicable to highways, urban roads and all special roads. They have the nature of laws and must be obeyed by vehicles and pedestrians.
[0089] The non-character objects are objects other than language text in the traffic sign, including lines and color-filled parts on the traffic sign, and the filled colors are not limited to red, blue, yellow, white, etc.
[0090] S103: Detecting the blocked position and range from the traffic sign image through a pre-trained image blockage detection neural network, and obtaining a traffic sign image with the blocked position marked;
[0091] S104: Obtaining a corresponding traffic sign classification according to the background color and a preset relationship between the background color and the traffic sign classification.
[0092] Since traffic signs with different background colors represent different meanings, classifying the traffic signs according to their colors can improve the efficiency of identifying and inserting the traffic sign images.
[0093] The background colors of the traffic signs include but are not limited to: red: indicates prohibition, stop, danger, used for the border, background color, slash of the prohibition sign, and also used for the background color of the cross symbol and slash symbol, warning linear guidance mark, etc. Yellow or fluorescent yellow: indicates warning, used for the background color of the warning sign; blue: used to indicate instructions and follow, used for the background color of the instruction sign: indicates driving information such as place names, routes, directions, etc., used for the background color of general road sign; green: indicates driving information such as place names, routes, directions, etc., used for the background color of highway and urban expressway sign; brown: indicates the indication of new projects in tourist areas and scenic spots, used for the background color of tourist area signs; black: used for the text, graphic symbols and the background color of some signs; white: used for the background color, text and graphic symbols of the sign and the border of some signs; orange or fluorescent orange: used for warning and guide signs in road work areas.
[0094] S105: Generate a traffic sign query instruction according to the traffic sign image with the blocked position marked and the traffic sign classification.
[0095] S106: Upload the traffic sign query instruction to a processing server, and receive the traffic sign query result issued by the processing server.
[0096] The image occlusion detection neural network is trained by the following steps:
[0097] The initial image training sample is sampled by an initial high-resolution model to obtain information features of at least four feature channels, wherein the initial image training sample includes an occluded position selected by a real rectangular frame, and the occluded position corresponds to at least two occluder categories, and the occluder categories include: an occluder category attached to the image acquisition component, and an occluder category attached to a traffic sign;
[0098] Fusing the information features of each of the feature channels to obtain at least four enhanced multi-scale features;
[0099] The positioning loss is calculated for the enhanced multi-scale features to obtain the positioning loss of the multi-scale features. The process is as follows:
[0100]
[0101] in,
[0102]
[0103]
[0104]
[0105] Where b represents the matching coefficient, l represents the set of predicted rectangular boxes, and g represents the set of real rectangular boxes. Each box contains four elements (cx, cy, w, h), where cx is the horizontal coordinate of the center point of the rectangular box, cy is the vertical coordinate of the center point of the rectangular box, w is the width of the rectangular box, and h is the height of the rectangular box. It is represented as the matching value between the i-th predicted rectangle and the j-th real rectangle of the occluder category k. If the categories are consistent, the value is 1, otherwise, the value is 0; To predict the width of the rectangle, is the horizontal coordinate of the predicted rectangular box, The horizontal coordinate of the real frame; The expected predicted value of the horizontal coordinate of the real rectangular box; is the ordinate of the center point of the predicted rectangular box, To predict the height of the rectangular box, is the ordinate of the center point of the real rectangular frame, is the width of the real rectangular frame, is the height of the real rectangular box; wherein the predicted rectangular box is a rectangular box obtained by predicting the box selection in the initial image training sample during the initial high-resolution model training process.
[0106] Compared with the prior art, the vehicle surrounding sign recognition method of the present invention extracts the traffic sign image and the background color of the traffic sign from the surrounding environment image of the target vehicle through the pre-trained traffic sign detection neural network, then finds out the corresponding traffic sign classification, and then generates a traffic sign query instruction based on the traffic sign image and traffic sign classification, and then receives the corresponding traffic sign query result issued by the server after uploading the traffic sign query instruction to the processing server, so that the driver can also understand the traffic signs near the target vehicle in the target vehicle, avoiding the driver from ignoring the traffic signs near the vehicle. In addition, the present invention also detects and marks the obscured position in the traffic sign image through the pre-trained image occlusion detection neural network, and then sends it to the processing server together, avoiding the processing server being affected by the obscured position during the identification process and reducing the accuracy of the detection result.
[0107] See also Figure 2 In a feasible embodiment, the processing server stores a plurality of traffic sign databases, and the traffic sign databases store a plurality of traffic sign samples belonging to the same traffic sign classification. After receiving the traffic sign query instruction, the processing server performs the following steps:
[0108] S201: In response to the traffic sign query instruction, obtaining a target traffic sign database corresponding to the traffic sign classification.
[0109] Among them, each of the traffic sign databases is divided according to the original background color of the stored traffic sign samples, including but not limited to a traffic sign database for storing a traffic sign database with an original background color of red, a traffic sign database for storing a traffic sign database with an original background color of blue, a traffic sign database for storing a traffic sign database with an original background color of yellow, and a traffic sign database for storing a traffic sign database with an original background color of white, etc.
[0110] S202: comparing the traffic sign image with each traffic sign sample in the target traffic sign database, and determining the traffic sign sample with the highest similarity to the traffic sign image as the target traffic sign sample, including:
[0111] Grayscale the traffic sign image and the traffic sign sample to be compared to obtain a first grayscale image and a second grayscale image;
[0112] Convert pixels of the first grayscale image and the second grayscale image into vectors to obtain a plurality of first vectors and a plurality of second vectors for cosine similarity detection;
[0113] The cosine similarity between each of the first vectors and the corresponding second vector is calculated as shown in the following formula:
[0114]
[0115] Wherein, T(x, y) is the cosine similarity between the first vector and the second vector, x is the first vector; y is the second vector; x i is the i-th dimension vector of the first vector; y i is the i-th dimension vector of the second vector.
[0116] According to the cosine similarity between the grayscale image of the traffic sign image and all pixel vectors of the current traffic sign sample, the image similarity between the grayscale image of the traffic sign image and the current traffic sign sample is obtained; preferably, the pixels corresponding to the marked occluded positions are not subjected to cosine similarity calculation and comparison to avoid the influence of the occluded positions on the image similarity comparison results.
[0117] The grayscale image of the traffic sign image is compared with the image similarities of each of the traffic sign samples to obtain the traffic sign sample corresponding to the maximum image similarity, and determine it as the target traffic sign sample.
[0118] S203: Acquire identification data of the target traffic sign sample, and generate and issue the traffic sign query result according to the identification data.
[0119] In this embodiment, by determining a target traffic sign database corresponding to the traffic sign classification, and then comparing each traffic sign sample in the target traffic sign database with the traffic sign image, comparison time is saved and detection efficiency is improved.
[0120] In a feasible embodiment, the traffic sign detection neural network includes a first neural network module and a second neural network module, and the traffic sign detection neural network is trained by the following steps:
[0121] Inputting a plurality of first sample images marked with traffic signs into a first neural network module, and performing parameter correction on the first neural network module according to a first loss function corresponding to the first neural network module, to obtain a first neural network module for detecting traffic signs;
[0122] Annotate the background range and background color of the multiple traffic signs detected by the first neural network module to obtain multiple second sample images;
[0123] Input a plurality of the second sample images into a second neural network module, and perform parameter correction on the second neural network module according to a second loss function corresponding to the second neural network module, so as to obtain a second neural network module for detecting the background range and background color of the traffic sign.
[0124] In this embodiment, the first neural network module and the second neural network module are trained respectively to obtain a trained traffic sign detection neural network.
[0125] In a feasible embodiment, the step of generating a traffic sign query instruction according to the traffic sign image and the traffic sign classification further includes:
[0126] Obtaining the real-time positioning of the target vehicle;
[0127] Acquire the road information where the target vehicle is currently located according to the real-time positioning;
[0128] The traffic sign query instruction is generated according to the traffic sign image, the traffic sign classification, the real-time positioning and the road information.
[0129] In this embodiment, preferably, after receiving the traffic sign query instruction, the processing server performs the following steps:
[0130] Acquire traffic sign data of a corresponding road section according to the road information;
[0131] Obtaining traffic sign data near the target vehicle according to the real-time positioning, the preset target range and the traffic sign data;
[0132] Filtering candidate traffic sign data from the traffic sign data near the target vehicle according to the traffic sign classification;
[0133] Comparing the identification features of the traffic sign image with the identification features of the candidate traffic sign data, and determining the candidate traffic sign data having the highest similarity in identification features with the traffic sign image as the target traffic sign data;
[0134] The target traffic sign data is acquired to generate and issue the traffic sign query result.
[0135] Combining road information and real-time positioning to search for traffic signs can increase the diversity of traffic sign search methods.
[0136] In a feasible embodiment, after uploading the traffic sign query instruction to the processing server and receiving the traffic sign query result issued by the processing server, the following steps are also included:
[0137] The traffic sign query result is displayed on the electronic screen of the target vehicle, and the traffic sign query result is played by voice broadcast.
[0138] In this embodiment, the information of the traffic signs near the target vehicle can be notified to the driver and passengers in the target vehicle in a timely manner.
[0139] See also Figure 3 , one embodiment of the present invention also provides a vehicle surrounding sign recognition device, comprising: a surrounding environment image acquisition module 1, a sign detection module 2, an occlusion position marking module 3, a traffic sign classification acquisition module 4, an instruction generation module 5 and an information interaction module 6;
[0140] The surrounding environment image acquisition module 1 acquires the surrounding environment image of the target vehicle through an image acquisition component; the image acquisition component is arranged around the body of the target vehicle;
[0141] The sign detection module 2 extracts the traffic sign image and the background color of the traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of non-character objects in the traffic sign image;
[0142] The occlusion position marking module 3 detects the occluded position and range from the traffic sign image through a pre-trained image occlusion detection neural network, and obtains a traffic sign image with the occluded position marked;
[0143] A traffic sign classification acquisition module 4 is used to obtain the corresponding traffic sign classification according to the background color and the preset background color and traffic sign classification relationship;
[0144] An instruction generation module 5 generates a traffic sign query instruction according to the traffic sign image and traffic sign classification;
[0145] The information interaction module 6 is used to upload the traffic sign query instruction to the processing server and receive the traffic sign query result issued by the processing server.
[0146] Compared with the prior art, the vehicle surrounding sign recognition device of the present invention extracts the traffic sign image and the background color of the traffic sign from the surrounding environment image of the target vehicle through the pre-trained traffic sign detection neural network, then finds out the corresponding traffic sign classification, and then generates a traffic sign query instruction based on the traffic sign image and traffic sign classification, and then receives the corresponding traffic sign query result issued by the server after uploading the traffic sign query instruction to the processing server, so that the driver can also understand the traffic signs near the target vehicle in the target vehicle, avoiding the driver from ignoring the traffic signs near the vehicle. In addition, the present invention also detects and marks the obscured position in the traffic sign image through the pre-trained image occlusion detection neural network, and then sends it to the processing server together, avoiding the processing server being affected by the obscured position during the identification process and reducing the accuracy of the detection result.
[0147] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the vehicle surrounding sign recognition method as described above when executed by a processor.
[0148] An embodiment of the present invention further provides a computer device, characterized in that it includes a memory, a processor, and a computer program stored in the memory and executable by the processor, and when the processor executes the computer program, the steps of the vehicle surrounding sign recognition method as described above are implemented.
[0149] The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. Ordinary technicians in this field can understand and implement it without creative work.
[0150] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0151] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.
[0152] 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 steps for the function selected in a box or multiple boxes.
[0153] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0154] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0155] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0156] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0157] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for identifying vehicle surrounding signs, characterized in that: include: Acquire the surrounding environment image of the target vehicle through the image acquisition component; the image acquisition component is arranged around the body of the target vehicle; Extracting a traffic sign image and a background color of a traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of a non-character object in the traffic sign image; Detecting the occluded position and range from the traffic sign image through a pre-trained image occlusion detection neural network, and obtaining a traffic sign image with the occluded position marked; Obtaining a corresponding traffic sign classification according to the background color and a preset relationship between the background color and the traffic sign classification; Generate a traffic sign query instruction according to the traffic sign image with the blocked position marked and the traffic sign classification; Uploading the traffic sign query instruction to a processing server and receiving the traffic sign query result issued by the processing server; The image occlusion detection neural network is trained by the following steps: The initial image training sample is sampled by an initial high-resolution model to obtain information features of at least four feature channels, wherein the initial image training sample includes an occluded position selected by a real rectangular frame, and the occluded position corresponds to at least two occluder categories, and the occluder categories include: an occluder category attached to the image acquisition component, and an occluder category attached to a traffic sign; Fusing the information features of each of the feature channels to obtain at least four enhanced multi-scale features; The positioning loss is calculated for the enhanced multi-scale features to obtain the positioning loss of the multi-scale features. The process is as follows: in, Where b represents the matching coefficient, l represents the set of predicted rectangular boxes, and g represents the set of real rectangular boxes. Each box contains four elements (cx, cy, w, h), where cx is the horizontal coordinate of the center point of the rectangular box, cy is the vertical coordinate of the center point of the rectangular box, w is the width of the rectangular box, and h is the height of the rectangular box. It is represented as the matching value between the i-th predicted rectangle and the j-th real rectangle of the occluder category k. If the categories are consistent, the value is 1, otherwise, the value is 0; To predict the width of the rectangle, is the horizontal coordinate of the predicted rectangular box, The horizontal coordinate of the real frame; The expected predicted value of the horizontal coordinate of the real rectangular box; is the ordinate of the center point of the predicted rectangular box, To predict the height of the rectangular box, is the ordinate of the center point of the real rectangular frame, is the width of the real rectangular frame, is the height of the real rectangular box; wherein the predicted rectangular box is a rectangular box obtained by predicting the box selection in the initial image training sample during the initial high-resolution model training process.
2. The vehicle surrounding sign recognition method according to claim 1, characterized in that: The processing server stores a plurality of traffic sign databases, wherein the traffic sign databases store a plurality of traffic sign samples belonging to the same traffic sign classification. After receiving the traffic sign query instruction, the processing server performs the following steps: In response to the traffic sign query instruction, acquiring a target traffic sign database corresponding to the traffic sign classification; Comparing the traffic sign image with each traffic sign sample in the target traffic sign database, and determining the traffic sign sample with the highest similarity to the traffic sign image as the target traffic sign sample, includes: Grayscale the traffic sign image and the traffic sign sample to be compared to obtain a first grayscale image and a second grayscale image; Convert pixels of the first grayscale image and the second grayscale image into vectors to obtain a plurality of first vectors and a plurality of second vectors for cosine similarity detection; The cosine similarity between each of the first vectors and the corresponding second vector is calculated as shown in the following formula: Wherein, T(x, y) is the cosine similarity between the first vector and the second vector, x is the first vector; y is the second vector; x i is the i-th dimension vector of the first vector; y i is the i-th dimension vector of the second vector; Obtaining image similarity between the grayscale image of the traffic sign image and the current traffic sign sample according to the cosine similarity between the grayscale image of the traffic sign image and all pixel vectors of the current traffic sign sample; Compare the grayscale image of the traffic sign image with the image similarities of each of the traffic sign samples to obtain the traffic sign sample corresponding to the maximum image similarity, and determine it as the target traffic sign sample; The identification data of the target traffic sign sample is obtained, and the traffic sign query result is generated and issued according to the identification data.
3. The vehicle surrounding sign recognition method according to claim 1, characterized in that: The traffic sign detection neural network includes a first neural network module and a second neural network module, and the traffic sign detection neural network is trained by the following steps: Inputting a plurality of first sample images marked with traffic signs into a first neural network module, and performing parameter correction on the first neural network module according to a first loss function corresponding to the first neural network module, to obtain a first neural network module for detecting traffic signs; Annotate the background range and background color of the multiple traffic signs detected by the first neural network module to obtain multiple second sample images; Input a plurality of the second sample images into a second neural network module, and perform parameter correction on the second neural network module according to a second loss function corresponding to the second neural network module, so as to obtain a second neural network module for detecting the background range and background color of the traffic sign.
4. The vehicle surrounding sign recognition method according to claim 1, characterized in that: The step of generating a traffic sign query instruction according to the traffic sign image and the traffic sign classification further includes: Obtaining the real-time positioning of the target vehicle; Acquire the road information where the target vehicle is currently located according to the real-time positioning; The traffic sign query instruction is generated according to the traffic sign image, the traffic sign classification, the real-time positioning and the road information.
5. The vehicle surrounding sign recognition method according to claim 4, characterized in that: After receiving the traffic sign query instruction, the processing server performs the following steps: Acquire traffic sign data of a corresponding road section according to the road information; Obtaining traffic sign data near the target vehicle according to the real-time positioning, the preset target range and the traffic sign data; Filtering candidate traffic sign data from the traffic sign data near the target vehicle according to the traffic sign classification; Comparing the identification features of the traffic sign image with the identification features of the candidate traffic sign data, and determining the candidate traffic sign data having the highest similarity in identification features with the traffic sign image as the target traffic sign data; The target traffic sign data is acquired to generate and issue the traffic sign query result.
6. The vehicle surrounding sign recognition method according to claim 1, characterized in that: After uploading the traffic sign query instruction to the processing server and receiving the traffic sign query result issued by the processing server, the method further includes the following steps: The traffic sign query result is displayed on the electronic screen of the target vehicle, and the traffic sign query result is played by voice broadcast.
7. The vehicle surrounding sign recognition method according to claim 1, characterized in that: The image acquisition component includes a camera with a fixed lens and / or a camera with a rotating lens.
8. A vehicle peripheral identification device, characterized in that: include: Surrounding environment image acquisition module, sign detection module, occlusion position marking module, traffic sign classification acquisition module, instruction generation module and information interaction module; A surrounding environment image acquisition module acquires the surrounding environment image of the target vehicle through an image acquisition component; the image acquisition component is arranged around the body of the target vehicle; A sign detection module, which extracts a traffic sign image and a background color of a traffic sign from the surrounding environment image through a pre-trained traffic sign detection neural network; the background color represents the color of non-character objects in the traffic sign image; An occlusion position marking module detects the occluded position and range from the traffic sign image through a pre-trained image occlusion detection neural network, and obtains a traffic sign image with the occluded position marked; A traffic sign classification acquisition module, used to obtain the corresponding traffic sign classification according to the background color and the preset background color and traffic sign classification relationship; An instruction generation module generates a traffic sign query instruction according to the traffic sign image with the blocked position marked and the traffic sign classification; An information interaction module, used to upload the traffic sign query instruction to a processing server and receive the traffic sign query result issued by the processing server; The image occlusion detection neural network is trained by the following steps: The initial image training sample is sampled by an initial high-resolution model to obtain information features of at least four feature channels, wherein the initial image training sample includes an occluded position selected by a real rectangular frame, and the occluded position corresponds to at least two occluder categories, and the occluder categories include: an occluder category attached to the image acquisition component, and an occluder category attached to a traffic sign; Fusing the information features of each of the feature channels to obtain at least four enhanced multi-scale features; The positioning loss is calculated for the enhanced multi-scale features to obtain the positioning loss of the multi-scale features. The process is as follows: in, Where b represents the matching coefficient, l represents the set of predicted rectangular boxes, and g represents the set of real rectangular boxes. Each box contains four elements (cx, cy, w, h), where cx is the horizontal coordinate of the center point of the rectangular box, cy is the vertical coordinate of the center point of the rectangular box, w is the width of the rectangular box, and h is the height of the rectangular box. It is represented as the matching value between the i-th predicted rectangle and the j-th real rectangle of the occluder category k. If the categories are consistent, the value is 1, otherwise, the value is 0; To predict the width of the rectangle, is the horizontal coordinate of the predicted rectangular box, The horizontal coordinate of the real frame; The expected predicted value of the horizontal coordinate of the real rectangular box; is the ordinate of the center point of the predicted rectangular box, To predict the height of the rectangular box, is the ordinate of the center point of the real rectangular frame, is the width of the real rectangular frame, is the height of the real rectangular box; wherein the predicted rectangular box is a rectangular box obtained by predicting the box selection in the initial image training sample during the initial high-resolution model training process.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the vehicle surrounding sign recognition method according to any one of claims 1 to 7 are implemented.
10. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the vehicle surrounding sign recognition method as claimed in any one of claims 1 to 7 when executing the computer program.
Citation Information
Patent Citations
Image recognition method and device
CN109871909A
Traffic flow statistical method, device and equipment based on YOLO neural network
CN113158922A
