Roadside sign recognition method, device and electronic equipment
By introducing the attention network into the convolutional neural network, the fusion weight of the feature map is obtained and weighted fusion is solved, which solves the problem of low accuracy of street sign corner recognition, improves the recognition accuracy, and avoids violations and safety hazards.
Patent Information
- Application Number
- CN202210301584.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-03-24
AI Technical Summary
The accuracy of street sign corner recognition in the existing technology is low, resulting in the car being unable to accurately obtain road sign information, which may lead to traffic violations and safety hazards.
The optimized convolutional neural network is used to perform convolution calculation on the input image, and the attention network is combined to obtain the fusion weight of the feature map, and the feature map is weighted and fused to improve the recognition accuracy of the corner position of the road sign.
Through the weighted fusion feature map, the recognition accuracy of the corner position of the road sign is significantly improved, and problems of violations and safety hazards are avoided.
Smart Images

Figure CN114677661B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a roadside sign recognition method, device and electronic equipment. Background Art
[0002] In the field of assisted driving or unmanned driving research, sensing the current environment of the car is a prerequisite for the car to achieve automatic control. Road sign information (such as speed limit signs) is important traffic information. If it is not accurately known, it will lead to problems such as car violations and safety hazards. Accurately identifying the content of road signs can provide important data support for navigation, assisted driving, and unmanned driving technologies, avoiding violations and safety hazards.
[0003] The core prerequisite for identifying the content of road signs is to be able to accurately identify the corner points of road signs from the collected image data, and determine the content of road signs based on the identified corner points of road signs. However, in the related art, there is a problem of low accuracy in identifying the corner points of road signs. Summary of the invention
[0004] In view of this, the main purpose of the present invention is to provide a roadside sign recognition method, device and electronic device, which can accurately recognize the roadside sign from image data.
[0005] According to a first aspect of the present invention, a method for identifying a roadside sign is provided, comprising:
[0006] Acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements;
[0007] Using an optimized convolutional neural network to perform convolution calculation on the input image to obtain feature maps of different branches;
[0008] Obtaining a fusion weight of the feature map based on the attention network, performing weighted fusion on the feature map according to the corresponding fusion weight to obtain a fused feature map;
[0009] The position of each feature element in the input image is determined according to the fused feature map.
[0010] In some embodiments, obtaining the fusion weight of the feature map based on the attention network includes:
[0011] Determine the characteristic mean of each branch;
[0012] The feature means of each branch are fully connected to obtain the fusion weight corresponding to each branch.
[0013] In some embodiments, determining the feature mean of each branch includes:
[0014] Get the feature maps of all channels in each branch;
[0015] The feature mean of the feature maps of all channels in each branch is determined as the feature mean of the branch.
[0016] In some embodiments, weighted fusion is performed on the feature maps according to corresponding fusion weights to obtain a fused feature map, including:
[0017] Multiply all feature maps in each branch by the fusion weight of the branch to obtain a weighted feature map;
[0018] The weighted feature maps in different branches are linearly fused to obtain a fused feature map.
[0019] In some embodiments, obtaining the fusion weight of the feature map based on the attention network includes:
[0020] Determine the feature mean of each channel in each branch;
[0021] The feature mean of each channel is fully connected to obtain the fusion weight of each channel in each branch.
[0022] In some embodiments, determining the feature mean of each channel in each branch includes:
[0023] The feature mean of the feature map of each channel in each branch is determined as the feature mean of the channel.
[0024] In some embodiments, weighted fusion is performed on the feature maps according to corresponding fusion weights to obtain a fused feature map, including:
[0025] Multiply each feature map in each branch by the fusion weight of the corresponding channel to obtain all weighted feature maps of the branch;
[0026] All weighted feature maps in different branches are linearly fused to obtain a fused feature map.
[0027] In some embodiments, obtaining the fusion weight of the feature map based on the attention network further includes:
[0028] In the optimization process of the convolutional neural network, the attention network is optimized, and the fusion weight of the feature map is obtained using the optimized attention network.
[0029] According to a second aspect of the present invention, there is provided a roadside sign recognition device, comprising:
[0030] A data acquisition unit, used to acquire an input image including a route mark, wherein the route mark has a plurality of characteristic elements;
[0031] A feature calculation unit, used to perform convolution calculation on the input image using an optimized convolutional neural network to obtain feature maps of different branches;
[0032] A weight calculation unit, used for obtaining a fusion weight of the feature map based on an attention network, and performing weighted fusion on the feature map according to the corresponding fusion weight to obtain a fused feature map;
[0033] The identification unit is used to determine the position of each feature element in the input image according to the fused feature map.
[0034] According to a third aspect of the present invention, there is provided an electronic device, comprising a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the roadside sign recognition method of the above embodiment.
[0035] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the roadside sign recognition method of the above embodiment is implemented.
[0036] At least one of the above-mentioned technical solutions adopted by the present invention can achieve the following beneficial effects: when the roadside sign recognition method, device and electronic device of the embodiments of the present invention use a convolutional neural network to recognize roadside signs on an input image, the attention network is used to obtain the fusion weights of the feature maps to be fused, the importance of each feature map is characterized by the fusion weights, the feature maps to be fused are weightedly fused according to the fusion weights, so that the fused feature map carries the weighted features of all feature maps, and then the fused feature map is classified and recognized by the convolutional neural network, thereby improving the recognition accuracy of multiple feature elements of road signs in the input image, for example, it can improve the recognition accuracy of the corner position of the road sign. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0038] Figure 1 A schematic diagram of a roadside sign recognition method according to an embodiment of the present invention is shown;
[0039] Figure 2 A schematic diagram of a process of identifying road sign corners using an attention-based convolutional neural network according to an embodiment of the present invention is shown;
[0040] Figure 3A schematic diagram of the fusion of feature maps in the prior art is shown;
[0041] Figure 4 A schematic diagram of a branch-level attention network structure according to an embodiment of the present invention is shown;
[0042] Figure 5 A schematic diagram of a channel-level attention network structure according to an embodiment of the present invention is shown;
[0043] Figure 6 A schematic diagram of the structure of a roadside sign recognition device according to an embodiment of the present invention is shown;
[0044] Figure 7 A schematic structural diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. These embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0046] Figure 1 FIG. 4 shows a schematic flow chart of a roadside sign recognition method according to an embodiment of the present invention. Figure 1 As shown, the method of this embodiment at least includes steps S110 to S140:
[0047] Step S110 , acquiring an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements.
[0048] The roadside sign recognition method of the embodiment of the present invention can be implemented by a roadside unit, a vehicle-mounted computing platform, and a cloud computing platform. Taking the field of autonomous driving as an example, the roadside sign recognition method of the embodiment of the present invention can be implemented by a vehicle-mounted computing platform, and the input image can be an image taken by a vehicle-mounted camera, and the image taken by the vehicle-mounted camera is used as the input image to be recognized. Of course, the input image can also be an image that has been pre-processed by denoising, target area extraction, etc.
[0049] The input image of this embodiment carries a roadside sign with multiple characteristic elements, and the roadside sign includes, for example, road traffic signs, road markings, etc. The characteristic elements can be understood as key features for identifying the roadside sign.
[0050] Take a road sign as an example. A road sign is a traffic sign installed on a lane. The road sign contains relevant traffic information. A road sign is usually square in shape. A square road sign has four right angles, which are the road sign corner points. The four road sign corner points can be understood as four characteristic elements.
[0051] The embodiment of the present invention performs a series of processing on the input image, and finally obtains the position of each characteristic element in the input image. The number of roadside signs included in the input image is not limited to one, but may be multiple.
[0052] Step S120, using the optimized convolutional neural network to perform convolution calculation on the input image to obtain feature maps of different branches.
[0053] Convolutional Neural Networks (CNN) is a feedforward neural network used for image processing that includes convolution calculations and has a deep structure. Figure 2 The convolutional neural network of the embodiment of the present invention includes multiple base layers, which generally include convolution layers and pooling layers. The convolution layers are used to perform convolution calculations and feature extraction, and the pooling layers reduce the dimension of the input image and extract the main features. Any two adjacent base layers are connected to each other. The first base layer receives the input image. After the input image is processed by multi-scale convolution calculations, feature maps of different branches are obtained, such as Figure 2 The number of branches in this embodiment is related to the scale of the convolution layer. Different scales can represent the features of the input image from different dimensions, and feature maps of the same scale are output by the same branch. In practical applications, those skilled in the art can flexibly set the number of branches.
[0054] Step S130, obtaining the fusion weight of the feature map based on the attention network, performing weighted fusion on the feature map according to the corresponding fusion weight, and obtaining a fused feature map.
[0055] like Figure 3 As shown, the convolutional neural network of the prior art usually assumes that the importance of each branch is the same. In the process of fusion of multi-branch feature maps, the same weight is usually used to linearly add the feature maps of the multiple branches. However, in actual applications, the importance of different feature elements in the input image is generally different. For example, in the road sign element, the importance of the road sign corner position and the other positions of the road sign in the road sign recognition process is different, and the importance of the four road sign corner points is also different. If in the process of feature map fusion, the feature maps of different branches learn different weights according to the importance of the features, and the feature maps are weighted fused according to the weights, the recognition accuracy of the subsequent classifier can be improved.
[0056] Based on this, the embodiment of the present invention introduces an attention network (Bottlenet Attention Module, abbreviated as BAM) into the convolutional neural network, uses the attention network to learn the fusion weights of each feature map, and uses the fusion weights to learn the weights of the feature maps. When the feature maps are fused, weighted fusion is performed according to the corresponding weights.
[0057] Step S140, determining the position of each feature element in the input image according to the fused feature map.
[0058] The convolutional neural network of this embodiment includes a classifier, such as a Softmax classifier, which classifies and identifies the final fused feature map to obtain the position of each feature element in the input image. When the roadside sign is a road sign, the embodiment of the present invention can accurately identify the positions of the four road sign corner points.
[0059] visible, Figure 1 The method shown, when using a convolutional neural network to recognize roadside signs on an input image, uses an attention network to obtain the fusion weights of the feature maps to be fused, represents the importance of each feature map by the fusion weights, performs weighted fusion on the feature maps to be fused according to the fusion weights, so that the fused feature maps carry the weighted features of all feature maps, and then classifies and recognizes the fused feature maps through the convolutional neural network, thereby improving the recognition accuracy of the positions of each feature element in the input image.
[0060] The attention network of the embodiment of the present invention is used to learn the fusion weights of feature maps. According to the attention angle, the attention network of the embodiment of the present invention can be divided into two types. One is the branch level, which is used to learn the fusion weights of different branches. The fusion weights of different branches are generally different. In this case, all feature maps in each branch correspond to the same fusion weight. The other is the channel level, which is used to learn the fusion weights of different channels. The fusion weights of different channels are generally different. In this case, the feature maps of each channel in each branch correspond to the same fusion weight. Figure 1 Generally have different fusion weights.
[0061] Specifically, the branch-level attention network determines the feature mean of each branch, performs full connection processing on the feature mean of each branch, and obtains the fusion weight corresponding to each branch. When calculating the feature mean of each branch, the feature map of all channels in each branch is obtained. Assuming that a branch includes N channels, the feature mean of the feature map of these N channels of the branch is determined as the feature mean of the branch.
[0062] Where N is a natural number greater than 1, and the feature mean can be understood as the mean of the feature representations of all feature points in the feature map. For example, a 2*2 feature map includes 4 feature points. Assuming that the feature representations of these 4 feature points are 1, 0.2, 1, and 0.4, the feature mean of the feature map is 0.65. In this way, the feature means of N feature maps of N channels can be obtained, and the mean of the feature means of the N feature maps is the feature mean of the branch.
[0063] like Figure 4 The structure of the branch-level attention network shown in the figure is a multi-layer attention network. The four branches to be fused are respectively connected to a layer of attention network. The feature mean of each branch is determined by the attention network, and then the feature means of the four branches are fully connected. After the full connection, four weights are obtained as the fusion weights of the corresponding branches. The feature maps of all channels in each branch are multiplied by the fusion weight of the branch to obtain a weighted feature map. The weighted feature maps in different branches are linearly fused to obtain a fused feature map.
[0064] The channel-level attention network determines the feature mean of each channel, performs full connection processing on the feature mean of each channel, and obtains the fusion weight of each channel in each branch. When calculating the fusion weight of each channel, the feature mean of the feature map of each channel in each branch is determined as the feature mean of the channel. Assuming that a branch includes M channels, the feature mean of the feature map of each channel is determined as the feature mean of the channel in the branch.
[0065] like Figure 5 The structure of the channel-level attention network shown in FIG. 1 is a multi-layer attention network. The two branches to be fused include 2 channels as an example. In practical applications, each branch may include different numbers of channels. Each channel of branch 1 and branch 2 is connected to a layer of attention network. The feature mean of each channel is determined by the attention network. Then, the feature means of all channels of the two branches are fully connected. The weights obtained after the full connection are used as the fusion weights of the corresponding channels. The feature maps of each channel of the same branch are multiplied by the fusion weight of the channel to obtain the weighted feature maps of each branch. The weighted feature maps of all channels of each branch are linearly fused to obtain the first-level fusion feature maps of the two branches. Then, the first-level fusion feature maps of the two branches are linearly fused to obtain the second-level fusion feature maps. The second-level fusion feature maps are sent to the classifier for classification and recognition of road sign corners.
[0066] In this embodiment, the branch-level attention network focuses on the differences in features between different branches, while the channel-level attention network focuses on the differences in features between different channels. In practical applications, the attention network can be reasonably selected based on the accuracy requirements for roadside sign recognition. For example, when the accuracy requirements are higher and the system computing power is high, the channel-level attention network may be selected.
[0067] It should be noted that the embodiment of the present invention uses the attention network to perform weighted fusion on all feature maps to be fused, including Figure 2 As shown in FIG, all branches before being fed into the classifier are connected to the attention network, and the branches involved in the feature map fusion process of the input data using the base layer for multi-scale convolution calculation are also included.
[0068] In practical applications, when the attention network learns the fusion weights of the feature maps of each branch, this embodiment also performs a series of convolution operations on the feature maps of each channel of the branch (for example Figure 2 In the residual processing of feature maps of different scales using residual network XL), for example, before calculating the weighted feature map, convolution calculation is performed on the feature map of each channel, and after obtaining the weighted feature map, convolution calculation is performed on the weighted feature map, and convolution calculation is also performed after each linear addition fusion to prevent the introduction of noise.
[0069] refer to Figure 4 and Figure 5 As shown, the network parameters of the attention network of an embodiment of the present invention, including mean calculation parameters and full connection parameters, are optimized simultaneously during the optimization process of the convolutional neural network, and the fusion weights of the feature graph are obtained using the optimized attention network.
[0070] For example, in the process of optimizing a convolutional neural network, an optimizer and a loss function are set, and the optimizer is used to continuously reduce the loss function. When the loss function is adjusted to the expected value, the convolutional neural network and the attention network can obtain better parameters.
[0071] In summary, the roadside sign recognition method according to the embodiment of the present invention has the following effects:
[0072] An attention network is introduced into the convolutional neural network. The attention network is used to learn the weight of each feature map to be fused, and the weights are used to characterize the feature differences between different feature maps. This makes it easier for the convolutional neural network classifier to identify the feature elements of the input data based on features with different weights, which can significantly improve the recognition accuracy.
[0073] The invention also provides a roadside sign recognition device, which is based on the same technical concept as the roadside sign recognition method in the aforementioned embodiment, and is used to implement the roadside sign recognition method in the aforementioned embodiment.
[0074] Figure 6 FIG. 4 shows a schematic diagram of a roadside sign recognition device according to an embodiment of the present invention. Figure 6 As shown, the roadside sign recognition device 600 includes:
[0075] A data acquisition unit 610 is used to acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements;
[0076] A feature calculation unit 620, configured to perform convolution calculation on the input image using an optimized convolutional neural network to obtain feature maps of different branches;
[0077] A weight calculation unit 630 is used to obtain a fusion weight of the feature map based on an attention network, and perform weighted fusion on the feature map according to the corresponding fusion weight to obtain a fused feature map;
[0078] The identification unit 640 is used to determine the position of each feature element in the input image according to the fused feature map.
[0079] In some embodiments, the weight calculation unit 630 includes a first calculation module and a second calculation module;
[0080] The first calculation module is used to determine the feature mean of each branch; perform full connection processing on the feature mean of each branch to obtain the fusion weight corresponding to each branch; and multiply all feature maps in each branch by the fusion weight of the branch to obtain a weighted feature map; linearly fuse the weighted feature maps in different branches to obtain a fused feature map.
[0081] In some embodiments, the first calculation module is specifically used to obtain feature maps of all channels in each branch; and determine the feature mean of the feature maps of all channels in each branch as the feature mean of the branch.
[0082] In some embodiments, the second computing module is used to determine the feature mean of each channel in each branch; perform full connection processing on the feature mean of each channel to obtain the fusion weight of each channel in each branch; and multiply each feature map in each branch by the fusion weight of the corresponding channel to obtain all weighted feature maps of the branch; linearly fuse all weighted feature maps in different branches to obtain a fused feature map.
[0083] In some embodiments, the second calculation module is specifically configured to determine a feature mean of a feature map of each channel in each branch as a feature mean of the channel.
[0084] In some embodiments, the roadside sign recognition device 600 also includes an optimization unit for optimizing the attention network during the optimization process of the convolutional neural network, and the weight calculation unit 630 specifically uses the optimized attention network to obtain the fusion weight of the feature map.
[0085] It can be understood that the above-mentioned roadside sign recognition device can implement the various steps of the roadside sign recognition method provided in the aforementioned embodiment, and the relevant explanations about the roadside sign recognition method are applicable to the roadside sign recognition device and will not be repeated here.
[0086] Figure 7 FIG. 1 shows a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 7 At the hardware level, the electronic device includes a processor and a memory, and optionally also includes an internal bus and a network interface. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0087] The processor, interface module, communication module and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0088] The memory is used to store computer executable instructions. The memory provides computer executable instructions to the processor through an internal bus.
[0089] The processor executes the computer executable instructions stored in the memory and is specifically used to implement the following operations:
[0090] Acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements;
[0091] Using an optimized convolutional neural network to perform convolution calculation on the input image to obtain feature maps of different branches;
[0092] Obtaining a fusion weight of the feature map based on the attention network, performing weighted fusion on the feature map according to the corresponding fusion weight to obtain a fused feature map;
[0093] The position of each feature element in the input image is determined according to the fused feature map.
[0094] As described above, the present invention Figure 1 The functions performed by the road sign corner point recognition method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or by instructions in the form of software.
[0095] The embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the following operations are implemented:
[0096] Acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements;
[0097] Using an optimized convolutional neural network to perform convolution calculation on the input image to obtain feature maps of different branches;
[0098] Obtaining a fusion weight of the feature map based on the attention network, performing weighted fusion on the feature map according to the corresponding fusion weight to obtain a fused feature map;
[0099] The position of each feature element in the input image is determined according to the fused feature map.
[0100] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] 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 A step that specifies a function in one or more boxes.
[0103] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0104] The memory may include non-permanent storage 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.
[0105] Computer-readable media include permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0106] 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.
[0107] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0108] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A roadside sign recognition method, It is characterized in that include: Acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements, wherein the roadside sign includes a road sign, and wherein the characteristic elements include a road sign corner point; Using an optimized convolutional neural network to perform convolution calculation on the input image to obtain feature maps of different branches; Based on the attention network, the fusion weights of the feature maps of different branches are learned according to the importance of the features, and the feature maps are weighted fused according to the corresponding fusion weights to obtain the fused feature maps. The attention network includes two types, one is the branch level, which is used to learn the fusion weights of different branches, specifically, the feature maps of all channels in each branch are obtained, the feature mean of the feature maps of all channels in each branch is determined as the feature mean of the branch, and the feature mean of each branch is fully connected to obtain the fusion weight corresponding to each branch; The other is the channel level, which is used to learn the fusion weights of different channels. The feature mean of the feature map of each channel in each branch is determined as the feature mean of the channel, and the feature mean of each channel is fully connected to obtain the fusion weight of each channel in each branch. The position of each feature element in the input image is determined according to the fused feature map.
2. The method according to claim 1, It is characterized in that The feature maps are weighted-fused according to corresponding fusion weights to obtain a fused feature map, including: Multiply all feature maps in each branch by the fusion weight of the branch to obtain a weighted feature map; The weighted feature maps in different branches are linearly fused to obtain a fused feature map.
3. The method according to claim 1, It is characterized in that The feature maps are weighted-fused according to corresponding fusion weights to obtain a fused feature map, including: Multiply each feature map in each branch by the fusion weight of the corresponding channel to obtain all weighted feature maps of the branch; All weighted feature maps in different branches are linearly fused to obtain a fused feature map.
4. The method according to claim 1, It is characterized in that Obtaining the fusion weight of the feature map based on the attention network also includes: In the optimization process of the convolutional neural network, the attention network is optimized, and the fusion weight of the feature map is obtained using the optimized attention network.
5. A roadside sign recognition device, It is characterized in that include: A data acquisition unit, configured to acquire an input image including a roadside sign, wherein the roadside sign has a plurality of characteristic elements, wherein the roadside sign includes a road sign, and wherein the characteristic elements include a road sign corner point; A feature calculation unit, used to perform convolution calculation on the input image using an optimized convolutional neural network to obtain feature maps of different branches; A weight calculation unit is used to learn the fusion weights of the feature maps of different branches according to the importance of the features based on the attention network, and to perform weighted fusion on the feature maps according to the corresponding fusion weights to obtain a fused feature map. The attention network includes two types, one is a branch level, which is used to learn the fusion weights of different branches, specifically, to obtain the feature maps of all channels in each branch, determine the feature mean of the feature maps of all channels in each branch as the feature mean of the branch, and perform full connection processing on the feature means of each branch to obtain the fusion weight corresponding to each branch; The other is the channel level, which is used to learn the fusion weights of different channels. The feature mean of the feature map of each channel in each branch is determined as the feature mean of the channel, and the feature mean of each channel is fully connected to obtain the fusion weight of each channel in each branch. The identification unit is used to determine the position of each feature element in the input image according to the fused feature map.
6. An electronic device, It is characterized in that include: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the roadside sign recognition method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Pedestrian re-identification method and device, computer equipment and storage medium
CN112183295A
Neural network training method, image recognition method and image recognition device
CN112598045A
Character recognition method and device, terminal and computer storage medium
CN113033249A
