Traffic sign identification method and related equipment

By performing image enhancement processing and masking processing on traffic sign images, the problem of inaccurate recognition under the influence of illumination and angle in the existing technology is solved, and the recognition accuracy of traffic signs is improved.

CN118644829APending Publication Date: 2024-09-13HON HAI PRECISION INDUSTRY CO LTD

Patent Information

Application Number
CN202310238409.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing traffic sign recognition technology is easily affected by factors such as lighting, shooting angle, and size deformation, resulting in inaccurate recognition results.

Method used

By performing image enhancement processing on the initial image, merging and converting it into an image data matrix, the location of the traffic sign is identified, and the initial image and the enhanced image are masked to reduce background interference, improve the visibility of the outline of the traffic sign, and thereby improve the recognition accuracy. Rate.

Benefits of technology

It effectively improves the accuracy of traffic sign location and recognition, reduces the inconspicuous outlines caused by lighting, and enhances the visibility of traffic signs in the background.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644829A
    Figure CN118644829A
Patent Text Reader

Abstract

The invention discloses a traffic sign recognition method and related equipment, relates to the technical field of image processing, and aims to solve the problem of how to improve the traffic sign recognition accuracy. The traffic sign recognition method comprises the steps of obtaining an initial image of a traffic sign; performing image enhancement processing on the initial image to obtain an enhanced image; merging and converting the initial image and the enhanced image into an image data matrix; identifying the position of the traffic sign from the image data matrix; performing mask processing on the initial image and the enhanced image according to the position of the traffic sign to obtain a specific area initial image and a specific area enhanced image; the specific area initial image and the specific area enhanced image are merged and converted into a specific area image data matrix; and identifying the traffic sign from the specific area image data matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a traffic sign recognition method and related equipment. Background Art

[0002] At present, the recognition of road traffic signs is usually done by manually designing features, identifying the location of traffic signs from the collected images through feature comparison, then extracting traffic sign images, and then recognizing traffic signs from traffic sign images. However, the collected images have certain limitations, such as being easily affected by factors such as lighting, shooting angle, and the size and deformation of traffic signs, which makes the final recognition results prone to errors. Summary of the invention

[0003] In view of this, the present application provides a traffic sign recognition method and related equipment, aiming to solve the problem of how to improve the accuracy of traffic sign recognition.

[0004] The first aspect of the present application provides a traffic sign recognition method, which includes: acquiring an initial image of a traffic sign; performing image enhancement processing on the initial image to obtain an enhanced image; merging the initial image and the enhanced image into an image data matrix; identifying the position of the traffic sign from the image data matrix; performing mask processing on the initial image and the enhanced image according to the position of the traffic sign to obtain a specific area initial image and a specific area enhanced image; merging the specific area initial image and the specific area enhanced image into a specific area image data matrix; and identifying the traffic sign from the specific area image data matrix.

[0005] The traffic sign recognition method of this embodiment is used to merge the initial image and the enhanced image into an image data matrix, and then the position of the traffic sign is identified from the image data matrix. Since the image enhancement process can enhance the outline of the traffic sign, the traffic sign is more obvious in the background, thereby improving the accuracy of traffic sign position recognition. Masking the initial image and the enhanced image according to the position of the traffic sign can reduce the background interference of the initial image and the enhanced image. The initial image of the specific area and the enhanced image of the specific area are merged and converted into the image data matrix of the specific area, and then the traffic sign is identified from the image data matrix of the specific area. Since the outline of the traffic sign in the enhanced image of the specific area is more obvious, the situation where the outline of the traffic sign is not obvious due to lighting can be reduced, thereby improving the accuracy of traffic sign recognition.

[0006] A second aspect of the present application provides an electronic device, which includes a processor and a memory. The processor runs a computer program or code stored in the memory to implement the traffic sign recognition method of an embodiment of the present application.

[0007] A third aspect of the present application provides a computer-readable storage medium, which is used to store a computer program or code. When the computer program or code is executed by a processor, the traffic sign recognition method of the embodiment of the present application is implemented.

[0008] It can be understood that the specific implementation and beneficial effects of the electronic device provided in the second aspect of the present application and the computer-readable storage medium provided in the third aspect of the present application are roughly the same as the specific implementation and beneficial effects of the traffic sign recognition method provided in the first aspect of the present application, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application.

[0010] Figure 2 This is a flow chart of a traffic sign recognition method provided by an embodiment of the present application.

[0011] Figure 3 It is an initial image of a backlit scene provided by an embodiment of the present application.

[0012] Figure 4 This is a grayscale enhanced image of a backlit scene provided by an embodiment of the present application.

[0013] Figure 5 This is a color enhanced image of a backlit scene provided by an embodiment of the present application.

[0014] Figure 6 This is a schematic diagram of a mask provided by an embodiment of the present application.

[0015] Figure 7 It is an initial image of a specific area provided by an embodiment of the present application.

[0016] Figure 8 This is a specific area grayscale enhanced image provided by an embodiment of the present application.

[0017] Fig. 9 This is a color enhanced image of a specific area provided by an embodiment of the present application.

[0018] Main component symbols

[0019] Electronic devices 100

[0020] Processor 110

[0021] Memory 120 DETAILED DESCRIPTION

[0022] It should be noted that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0023] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.

[0024] Road traffic sign recognition is widely used in the vehicle's Advanced Driving Assistance System (ADAS). Road traffic sign recognition mainly uses the vehicle-mounted camera to obtain images, processes the images with visual algorithms, and recognizes traffic signs. At present, the visual algorithm for identifying traffic signs is usually based on manually designed features. The location of the traffic sign is identified from the collected image through feature comparison, and then the traffic sign image is extracted, and then the traffic sign is recognized from the traffic sign image. However, the collected images have certain limitations. For example, they are easily affected by factors such as lighting, shooting angle, and the size and deformation of the traffic sign, which makes the final recognition result prone to errors.

[0025] Based on this, the embodiment of the present application provides a traffic sign recognition method and related equipment, which performs image enhancement processing on the initial image, then merges the initial image and the enhanced image into an image data matrix, and then identifies the position of the traffic sign from the image data matrix. Since the image enhancement processing can enhance the outline of the traffic sign, the traffic sign is more obvious in the background, thereby improving the accuracy of traffic sign position recognition. Masking the initial image and the enhanced image according to the position of the traffic sign can reduce the background interference of the initial image and the enhanced image. The initial image of a specific area and the enhanced image of a specific area are merged and converted into a specific area image data matrix, and then the traffic sign is identified from the specific area image data matrix. Since the outline of the traffic sign in the enhanced image of the specific area is more obvious, it is possible to reduce the situation where the outline of the traffic sign is not obvious due to lighting, thereby improving the accuracy of traffic sign recognition.

[0026] The electronic device according to the embodiment of the present application is described below.

[0027] Figure 1 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application.

[0028] See also Figure 1 The electronic device 100 may include a processor 110 and a memory 120. The processor 110 may run a computer program or code stored in the memory 120 to implement the traffic sign recognition method of the embodiment of the present application.

[0029] In this embodiment, the processor 110 can be configured to perform the following operations: obtain an initial image of the traffic sign; perform image enhancement processing on the initial image to obtain an enhanced image; merge the initial image and the enhanced image into an image data matrix; identify the position of the traffic sign from the image data matrix; perform mask processing on the initial image and the enhanced image according to the position of the traffic sign to obtain an initial image of a specific area and an enhanced image of a specific area; merge the initial image of the specific area and the enhanced image of the specific area into a specific area image data matrix; identify the traffic sign from the specific area image data matrix.

[0030] The processor 110 may include one or more processing units. For example, the processor 110 may include, but is not limited to, an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a neural network processor (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0031] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory.

[0032] In some embodiments, the processor 110 may include one or more interfaces. The interface may include, but is not limited to, an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, a Universal Serial Bus (USB) interface, etc.

[0033] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0034] The memory 120 may include an external memory interface and an internal memory. Among them, the external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface to realize the data storage function. The internal memory can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The storage data area may store data (such as audio data, image data, etc.) created during the use of the electronic device 100, etc. In addition, the internal memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or a universal flash memory (Universal FlashStorage, UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory, and / or instructions stored in a memory provided in the processor 110, such as implementing the traffic sign recognition method of the embodiment of the present application.

[0035] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0036] The electronic device 100 may be a vehicle-mounted terminal or a mobile terminal. The vehicle-mounted terminal is integrated in the vehicle and is connected to the vehicle-mounted camera for communication. The mobile terminal is not integrated with the vehicle, and may be a smart phone, a tablet computer, or a personal digital assistant (PDA).

[0037] The traffic sign recognition method of the embodiment of the present application is described below using the electronic device 100 as an example.

[0038] Figure 2 This is a flow chart of a traffic sign recognition method provided by an embodiment of the present application.

[0039] See also Figure 2 , the traffic sign recognition method may include the following steps:

[0040] S201, acquiring an initial image of a traffic sign.

[0041] In this embodiment, the electronic device 100 is connected to the vehicle camera for communication. The electronic device 100 can call the vehicle camera to capture the initial image of the traffic sign in a specific distance range in front of the vehicle, and then receive the initial image of the traffic sign from the vehicle camera. The specific distance range is the shooting field of view of the vehicle camera.

[0042] In one embodiment, the electronic device 100 includes a camera. The electronic device 100 can use its own camera to capture an initial image of a traffic sign within a specific distance range in front of the vehicle. The specific distance range is the shooting field of view of the camera.

[0043] In another embodiment, the electronic device 100 is connected to the Internet of Vehicle (IoV). The electronic device 100 can receive an initial image of a traffic sign in a specific area from other vehicles in the IoV. The specific area is the shooting field of view of the onboard camera of the other vehicle.

[0044] S202, performing image enhancement processing on the initial image to obtain an enhanced image.

[0045] In this embodiment, the image enhancement process is to process certain degraded image features in the initial image, such as edges, contours, contrast, etc.

[0046] It is understandable that the initial image is easily affected by factors such as lighting, shooting angle, and the size and deformation of traffic signs, which may cause degradation of some image features. The enhanced image obtained by image enhancement processing has better visual effects and higher definition than the initial image.

[0047] S203, merging the initial image and the enhanced image into an image data matrix.

[0048] In this embodiment, the electronic device 100 performs matrix transformation on the initial image and the enhanced image, and merges the image data of the initial image and the image data of the enhanced image into an image data matrix. The image data includes the size and channel data of the image. The size of the image includes length and width, and the length and width are measured in terms of the number of pixels. The channel data includes the pixel value of each pixel in each channel. For example, the channel data of an RGB color image includes the pixel value of each pixel in the three channels of R, G, and B, and the channel data of a grayscale image includes the pixel value of a single channel of each pixel.

[0049] For example, the image data matrix can be:

[0050]

[0051] Among them, (x nm ,y nm , z nm ) represents the channel data of the pixel at the nth row and mth column in the initial image, x nm, y nm , z nm They represent the pixel values ​​of the R, G, and B channels of the pixel point in the nth row and the mth column of the original image. The size of the original image and the enhanced image is the same, both n*m, where n and m are integers greater than 1. 1(m+1) ,y 1(m+1) , z 1(m+1) ) represents the channel data of the pixel in the first row and first column of the enhanced image, x 1(m+1) ,y 1(m+1) , z 1(m+1) Respectively represent the pixel values ​​of the R, G, and B channels of the pixel point in the first row and first column of the enhanced image. (x n(2m) ,y n(2m) , z n(2m) ) represents the channel data of the pixel at the nth row and mth column in the enhanced image, x n(2m) ,y n(2m) , z n(2m) They respectively represent the pixel values ​​of the R, G, and B channels of the pixel point in the nth row and the mth column in the enhanced image.

[0052] S204, identifying the position of the traffic sign from the image data matrix.

[0053] In this embodiment, the electronic device 100 can store the reference position feature of the traffic sign in the standard image, and the reference position feature includes a set of pixel points on the outline of the traffic sign. After establishing the image data matrix, the electronic device 100 can poll each pixel point in the image data matrix to query whether there is a reference position feature in the image data matrix. When it is found that there is a reference position feature in the image data matrix, the electronic device 100 can extract the reference position feature from the image data matrix to determine the position of the traffic sign. When it is found that there is no reference position feature in the image data matrix, the electronic device 100 determines that the recognition fails, and then re-acquires the initial image and enhanced image of the traffic sign, and re-establishes the image data matrix, and performs the position recognition of the traffic sign again until the recognition is successful.

[0054] It can be understood that the image data matrix includes image data of the initial image and image data of the enhanced image. When some image features of the initial image are degraded, making it difficult to identify the position of the traffic sign from the image data of the initial image, the electronic device 100 can extract image data at the same position from the enhanced image, and since the outline of the traffic sign in the enhanced image is more obvious, the position of the traffic sign can be effectively identified.

[0055] For example, suppose that in the above image data matrix, the pixel point (x nm ,y nm , z nm ) is a pixel point on the outline of the traffic sign. When the pixel point (x nm ,y nm , z nm ) is missing, the electronic device 100 can extract the pixel point x n(2m) ,y n(2m) , z n(2m) The pixel value at pixel x n(2m) ,y n(2m) , z n(2m) After image enhancement processing, its pixel value has a higher accuracy.

[0056] S205 , performing mask processing on the initial image and the enhanced image according to the position of the traffic sign to obtain the specific area initial image and the specific area enhanced image.

[0057] In this embodiment, the electronic device 100 performs mask processing on the initial image and the enhanced image, which can reduce background interference in the initial image and the enhanced image, and retain the specific area initial image and the specific area enhanced image near the traffic sign position. The specific area initial image and the specific area enhanced image are local images near the traffic sign position in the initial image and the enhanced image.

[0058] It can be understood that the sizes of the specific region initial image and the specific region enhanced image are the same.

[0059] S206, merging the specific region initial image and the specific region enhanced image into a specific region image data matrix.

[0060] In this embodiment, the electronic device 100 performs matrix transformation on the specific area initial image and the specific area enhanced image, and merges the image data of the specific area initial image and the image data of the specific area enhanced image into a specific area image data matrix.

[0061] It can be understood that the specific area image data matrix is ​​a sub-matrix of the image data matrix in step S203.

[0062] S207, identifying traffic signs from the specific area image data matrix.

[0063] In this embodiment, the electronic device 100 can store reference features of traffic signs in the standard image, and the reference features include a set of pixel points on the traffic sign. After establishing the specific area image data matrix, the electronic device 100 can poll each pixel point in the specific area image data matrix to query whether there is a reference feature in the specific area image data matrix. When it is found that there is a reference feature in the specific area image data matrix, the electronic device 100 can extract the reference feature from the specific area image data matrix to determine the traffic sign. When it is found that there is no reference feature in the specific area image data matrix, the electronic device 100 determines that the recognition has failed, and then re-masks the initial image and the enhanced image, and re-establishes the specific area image data matrix, and recognizes the traffic sign again until the recognition is successful.

[0064] It can be understood that the specific area image data matrix includes image data of the specific area initial image and image data of the specific area enhanced image. When some image features of the specific area initial image are degraded, making it difficult to identify the traffic sign from the image data of the specific area initial image, the electronic device 100 can extract image data at the same position from the specific area enhanced image, and since the outline of the traffic sign in the specific area enhanced image is more obvious, the traffic sign can be effectively identified.

[0065] In this embodiment, the electronic device 100 performs image enhancement processing on the initial image, then merges the initial image and the enhanced image into an image data matrix, and then identifies the position of the traffic sign from the image data matrix. Since the image enhancement processing can enhance the outline of the traffic sign, the traffic sign is more obvious in the background, thereby improving the accuracy of traffic sign position recognition. Masking the initial image and the enhanced image according to the position of the traffic sign can reduce background interference of the initial image and the enhanced image. The specific area initial image and the specific area enhanced image are merged and converted into a specific area image data matrix, and then the traffic sign is identified from the specific area image data matrix. Since the outline of the traffic sign in the specific area enhanced image is more obvious, it can reduce the situation where the outline of the traffic sign is not obvious due to lighting, thereby improving the accuracy of traffic sign recognition.

[0066] In some embodiments, the enhanced image includes a grayscale enhanced image and / or a color enhanced image.

[0067] In one embodiment, the image enhancement process includes: converting the initial image into a grayscale image; and performing histogram averaging process on the grayscale image to obtain a grayscale enhanced image.

[0068] In another embodiment, the image enhancement process includes: performing histogram averaging process on the initial image to obtain a color enhanced image.

[0069] It is understood that the types of enhanced images may include one or more, for example, at least one of a grayscale enhanced image and a color enhanced image. The outline of the traffic sign in the grayscale enhanced image and the color enhanced image is more obvious, thereby improving the accuracy of traffic sign position recognition.

[0070] In some other embodiments, before identifying the position of the traffic sign from the image data matrix, the traffic sign recognition method further includes: inputting the image data matrix into a pre-trained traffic sign segmentation network.

[0071] It can be understood that the traffic sign segmentation network is used to identify the position of the traffic sign from the image data matrix. The traffic sign segmentation network may include, but is not limited to, SegNet, U-Net, Fully Convolution Network (FCN), etc.

[0072] In one embodiment, before inputting the image data matrix into the pre-trained traffic sign segmentation network, the traffic sign recognition method further includes training the traffic sign segmentation network. Training the traffic sign segmentation network may include the following steps: obtaining an initial image training sample set of traffic signs, the initial image training sample set being a set of initial images with the positions of traffic signs marked; performing image enhancement processing on each initial image in the initial image training sample set to obtain a corresponding enhanced image; merging each initial image and the corresponding enhanced image into an image data matrix; inputting the image data matrix into the traffic sign segmentation network to be trained; training the traffic sign segmentation network with a preset number of cycles; obtaining the network weights of the trained traffic sign segmentation network to obtain a pre-trained traffic sign segmentation network.

[0073] In this embodiment, each time the traffic sign segmentation network is trained, an initial image is selected from the initial image training sample set, image enhancement processing is performed on the initial image to obtain a corresponding enhanced image, and then the initial image and the corresponding enhanced image are merged and converted into an image data matrix, and then the image data matrix is ​​input into the traffic sign segmentation network to be trained. When the electronic device 100 completes the preset number of cycles, or when or after the loss function reaches the minimum, the training can be terminated, and the network weights of the trained traffic sign segmentation network are used as the network weights of the pre-trained traffic sign segmentation network.

[0074] It can be understood that the number of initial images in the initial image training sample set is greater than or equal to the preset number of cycles, and the preset number of cycles can be set as needed. For example, the number of initial images in the initial image training sample set is 5000, and the preset number of cycles is 500.

[0075] In other embodiments, before identifying the traffic sign from the specific area image data matrix, the traffic sign recognition method further includes: inputting the specific area image data matrix into a pre-trained traffic sign detection network.

[0076] It can be understood that the traffic sign detection network is used to identify traffic signs from a specific area image data matrix. The traffic sign detection network can be a tinyYolo network.

[0077] In one embodiment, before inputting the specific area image data matrix into the pre-trained traffic sign detection network, the traffic sign recognition method further includes training the traffic sign detection network. Training the traffic sign detection network may include the following steps: obtaining a specific area initial image training sample set of traffic signs, the specific area initial image training sample set being a specific area initial image set that annotates the location and category of the traffic sign; performing image enhancement processing on each specific area initial image in the specific area initial image training sample set to obtain a corresponding specific area enhanced image; merging each specific area initial image and the corresponding specific area enhanced image into a specific area image data matrix; inputting the specific area image data matrix into the traffic sign detection network to be trained; training the traffic sign detection network with a preset number of cycles; obtaining the network weights of the trained traffic sign detection network to obtain a pre-trained traffic sign detection network.

[0078] In this embodiment, each time the traffic sign detection network is trained, an initial image of the specific area is selected from the initial image training sample set of the specific area, and the initial image of the specific area is subjected to image enhancement processing to obtain a corresponding enhanced image of the specific area, and then the initial image of the specific area and the corresponding enhanced image of the specific area are merged and converted into a specific area image data matrix, and then the specific area image data matrix is ​​input into the traffic sign detection network to be trained. When the electronic device 100 executes the preset number of cycles, or when or after the loss function reaches the minimum, the training can be terminated, and the network weights of the trained traffic sign detection network are used as the network weights of the pre-trained traffic sign detection network.

[0079] It is understood that the number of specific area initial images in the specific area initial image training sample set is greater than or equal to the preset number of cycles, and the preset number of cycles can be set as needed. For example, the number of specific area initial images in the specific area initial image training sample set is 3000, and the preset number of cycles is 500.

[0080] The traffic sign recognition method of the embodiment of the present application is described below by taking the recognition of a traffic speed limit sign in a backlit scene as an example.

[0081] See also Figure 3 , Figure 3 is an initial image of a backlit scene provided by an embodiment of the present application. The electronic device 100 obtains an initial image of a traffic speed limit sign. Figure 3 As shown, the initial image is affected by lighting, where the outline of the traffic speed limit sign is blurred in the background.

[0082] See also Figure 4 and Figure 5 , Figure 4 is a grayscale enhanced image of a backlit scene provided by an embodiment of the present application, Figure 5is a color enhanced image of a backlit scene provided by an embodiment of the present application. The electronic device 100 performs image enhancement processing on the initial image to obtain a grayscale enhanced image and a color enhanced image. Figure 4 and Figure 5 As shown, the outline of the traffic speed limit sign in the grayscale enhanced image and the color enhanced image is more obvious against the background.

[0083] See also Figures 6 to 9 , Figure 6 is a mask schematic diagram provided by an embodiment of the present application, Figure 7 is an initial image of a specific area provided by an embodiment of the present application, Figure 8 is a specific area grayscale enhanced image provided by an embodiment of the present application, Fig. 9 It is a specific area color enhanced image provided by an embodiment of the present application. The electronic device 100 combines the initial image, the grayscale enhanced image and the color enhanced image into an image data matrix, and then identifies the position of the traffic speed limit sign from the image data matrix, and then masks the initial image, the grayscale enhanced image and the color enhanced image according to the position of the traffic speed limit sign to obtain the specific area initial image, the specific area grayscale enhanced image and the specific area color enhanced image. Figures 7 to 9 As shown, the initial image of the specific area, the grayscale enhanced image of the specific area, and the color enhanced image of the specific area have been masked to filter out background interference and retain the area near the traffic speed limit sign. Among them, the outline of the traffic speed limit sign in the grayscale enhanced image of the specific area and the color enhanced image of the specific area is more obvious. Subsequently, the electronic device 100 merges the initial image of the specific area, the grayscale enhanced image of the specific area, and the color enhanced image of the specific area into a specific area image data matrix, and then identifies the traffic speed limit sign from the specific area image data matrix. The electronic device 100 can identify the values ​​of each position in the traffic speed limit sign, such as the tens position and the ones position, and then determine that the speed limit value is 60.

[0084] The embodiment of the present application also provides a computer-readable storage medium for storing a computer program or code. When the computer program or code is executed by a processor, the traffic sign recognition method of the embodiment of the present application is implemented.

[0085] Computer-readable storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory or other memory, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), digital versatile disc (Digital Versatile Disc, DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0086] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A traffic sign recognition method, characterized in that: The method comprises: Obtaining an initial image of a traffic sign; Performing image enhancement processing on the initial image to obtain an enhanced image; Combining the initial image and the enhanced image into an image data matrix; identifying the position of the traffic sign from the image data matrix; Performing mask processing on the initial image and the enhanced image according to the position of the traffic sign to obtain a specific area initial image and a specific area enhanced image; Combining the specific area initial image and the specific area enhanced image into a specific area image data matrix; The traffic sign is identified from the specific area image data matrix.

2. The traffic sign recognition method according to claim 1, characterized in that: The enhanced image includes a grayscale enhanced image and / or a color enhanced image.

3. The traffic sign recognition method according to claim 2, characterized in that: The performing image enhancement processing on the initial image to obtain an enhanced image comprises: Converting the initial image into a grayscale image; The grayscale image is subjected to histogram averaging processing to obtain the grayscale enhanced image.

4. The traffic sign recognition method according to claim 2, characterized in that: The performing image enhancement processing on the initial image to obtain an enhanced image comprises: The initial image is subjected to histogram averaging processing to obtain the color enhanced image.

5. The traffic sign recognition method according to claim 1, characterized in that: Before identifying the position of the traffic sign from the image data matrix, the method further comprises: The image data matrix is ​​input into a pre-trained traffic sign segmentation network.

6. The traffic sign recognition method according to claim 5, characterized in that: Before inputting the image data matrix into a pre-trained traffic sign segmentation network, the method further includes: Acquire an initial image training sample set of the traffic sign, wherein the initial image training sample set is a set of initial images that mark the position of the traffic sign; Performing image enhancement processing on each initial image in the initial image training sample set to obtain a corresponding enhanced image; Merge each of the initial images and the corresponding enhanced image and convert them into an image data matrix; Inputting the image data matrix into a traffic sign segmentation network to be trained; Training the traffic sign segmentation network for a preset number of cycles; The network weights of the trained traffic sign segmentation network are obtained to obtain the pre-trained traffic sign segmentation network.

7. The traffic sign recognition method according to claim 1, characterized in that: Before identifying the traffic sign from the specific area image data matrix, the method further includes: The specific area image data matrix is ​​input into a pre-trained traffic sign detection network.

8. The traffic sign recognition method according to claim 7, characterized in that: Before inputting the specific area image data matrix into a pre-trained traffic sign detection network, the method further includes: Acquire a specific area initial image training sample set of the traffic sign, wherein the specific area initial image training sample set is a specific area initial image set that marks the location and category of the traffic sign; Performing image enhancement processing on each specific area initial image in the specific area initial image training sample set to obtain a corresponding specific area enhanced image; Merging each specific area initial image and the corresponding specific area enhanced image into a specific area image data matrix; Inputting the specific area image data matrix into a traffic sign detection network to be trained; Training the traffic sign detection network for a preset number of cycles; The network weights of the trained traffic sign detection network are obtained to obtain the pre-trained traffic sign detection network.

9. An electronic device comprising a processor and a memory, characterized in that: The processor runs a computer program or code stored in the memory to implement the traffic sign recognition method according to any one of claims 1 to 8.

10. A computer-readable storage medium for storing a computer program or code, characterized in that: When the computer program or code is executed by a processor, the traffic sign recognition method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Traffic sign intelligent identification method and system

    CN112101283A

  • Traffic sign detection and recognition method based on image processing

    CN112464731A

  • Small target recognition method and device for power transmission system

    CN113435407A

  • Traffic sign image recognition model training method and traffic sign image recognition method

    CN113780148A

  • Lane line detection enhancement method and device in low-illumination scene, and terminal equipment

    CN113781374A

Cited By

  • Document image processing method and device, storage medium and electronic equipment

    CN121095972A