License plate attribute recognition and positioning method and device, terminal equipment and storage medium

Through the fusion of multi-task models and multi-modal features, the problem of low accuracy of license plate attribute recognition and positioning in the existing technology is solved, multiple recognition and positioning of license plate attributes are realized, the recognition and positioning accuracy is improved, and the Model training process.

CN118648036APending Publication Date: 2024-09-13SHENZHEN STREAMING VIDEO TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202480000745.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the existing technology, license plate attribute recognition and positioning models lack the ability to perceive multiple license plate attributes, resulting in low recognition accuracy and positioning accuracy. Multiple models need to be trained to adapt to license plate data in different regions, resulting in low training efficiency and poor model performance. Difference.

Method used

It adopts a multi-task model and uses multi-modal algorithms of text and images to uniformly realize license plate number recognition, license plate attribute classification and license plate character detection. It uses the bidirectional attention module and character decoder for multi-modal feature fusion and direct end-to-end output. Recognition and positioning results of license plate attributes.

Benefits of technology

It realizes multiple recognition and positioning of license plate attributes, improves the recognition accuracy and positioning accuracy, simplifies the model training process, adapts to license plate data in different regions, and reduces the complexity of training and optimizing the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118648036A
    Figure CN118648036A
Patent Text Reader

Abstract

The invention is suitable for the technical field of vehicles, and provides a license plate attribute recognition and positioning method and device, terminal equipment and a storage medium. The license plate attribute recognition and positioning method comprises the steps that a first image feature of a license plate image and a first text feature of text information are acquired, the text information comprises at least one task description, and one task description corresponds to one license plate attribute; fusing the first text feature on the basis of the first image feature to obtain a second image feature; fusing the first image feature on the basis of the first text feature to obtain a second text feature; and determining an identification result and a positioning result of at least one license plate attribute based on the second image feature and the second text feature. According to the invention, identification and positioning of one or more license plate attributes can be realized, and the identification accuracy and positioning accuracy of the license plate attributes are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle technology, and in particular, relates to a license plate attribute recognition and positioning method, device, terminal equipment and storage medium. Background Art

[0002] When identifying and locating license plate attributes such as license plate number, license plate country, license plate city, license plate region, license plate color, and vehicle type, the prior art usually uses multiple models for identification and positioning. For example, the license plate number is identified by the license plate number recognition model, and the other license plate attributes such as license plate country, license plate city, license plate region, license plate color, and vehicle type are identified by the classifiers corresponding to each of them. The license plate number is located by the character detection model, and the other license plate attributes mentioned above are located by the attribute detection model. That is, a single model in the prior art does not have the ability to perceive multiple license plate attributes, and cannot identify and locate multiple (i.e., at least two) license plate attributes, and the recognition accuracy and positioning accuracy of the license plate attributes are low.

[0003] Technical issues

[0004] The embodiments of the present application provide a license plate attribute recognition and positioning method, apparatus, terminal device and storage medium to realize the recognition and positioning of one or more license plate attributes and improve the recognition accuracy and positioning accuracy of the license plate attributes.

[0005] Technical Solutions

[0006] In a first aspect, an embodiment of the present application provides a license plate attribute recognition and positioning method, the license plate attribute recognition and positioning method comprising:

[0007] Acquire a first image feature of the license plate image and a first text feature of the text information, wherein the text information includes at least one task description, and each task description corresponds to a license plate attribute;

[0008] Based on the first image feature, the first text feature is fused to obtain a second image feature;

[0009] Based on the first text feature, the first image feature is fused to obtain a second text feature;

[0010] Based on the second image feature and the second text feature, a recognition result and a positioning result of at least one of the license plate attributes are determined.

[0011] In a second aspect, an embodiment of the present application provides a license plate attribute recognition and positioning device, the license plate attribute recognition and positioning device comprising:

[0012] A feature acquisition module, used to acquire a first image feature of the license plate image and a first text feature of the text information, wherein the text information includes at least one task description, and each task description corresponds to a license plate attribute;

[0013] A first fusion module, used for fusing the first text feature with the first image feature to obtain a second image feature;

[0014] A second fusion module, configured to fuse the first image feature with the first text feature to obtain a second text feature;

[0015] A result determination module is used to determine a recognition result and a positioning result of at least one of the license plate attributes based on the second image feature and the second text feature.

[0016] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the license plate attribute recognition and positioning method as described in the first aspect above are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the license plate attribute recognition and positioning method as described in the first aspect above are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the steps of the license plate attribute recognition and positioning method as described in the first aspect above.

[0019] Beneficial Effects

[0020] As can be seen from the above, this solution obtains the first image feature of the license plate image and the first text feature of the text information, the text information includes at least one task description, and one task description corresponds to a license plate attribute. By fusing the first text feature on the basis of the first image feature, a second image feature fused with the text feature can be obtained, and by fusing the first image feature on the basis of the first text feature, a second text feature fused with the image feature can be obtained. Based on the second image feature and the second text feature, the recognition result and positioning result of at least one license plate attribute can be determined. This solution can limit the license plate attribute to be identified and located through the task description in the text information, and the second image feature fused with the text feature and the second text feature fused with the image feature provide richer feature information than the first image feature and the first text feature. Therefore, based on the second image feature and the second text feature, not only can the recognition and positioning of one or more license plate attributes be realized, but also the recognition accuracy and positioning accuracy of the license plate attributes can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 It is a schematic diagram of the implementation process of the license plate attribute recognition and positioning method provided in one embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the implementation flow of a license plate attribute recognition and positioning method provided by another embodiment of the present application;

[0024] Figure 3 This is an example diagram of the structure of the bidirectional attention module;

[0025] Figure 4 This is a diagram showing an example of the structure of a character decoder;

[0026] Figure 5 is a diagram showing an example of the structure of the detector;

[0027] Figure 6 This is a structural example diagram of a multi-task model;

[0028] Figure 7 It is a structural schematic diagram of a license plate attribute recognition and positioning device provided in one embodiment of the present application;

[0029] Figure 8 It is a structural diagram of a terminal device provided in one embodiment of the present application.

[0030] Embodiments of the present invention

[0031] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0032] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0033] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0034] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0035] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0036] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0037] The training process of the model in the prior art is as follows: construct a license plate data set based on manually collected license plate data, and annotate the license plate number. The license plate number is expressed in character form, and other license plate attributes such as the license plate country, license plate city, license plate region, license plate color, and vehicle type are annotated. These other license plate attributes are expressed as classification labels, and the character positions in the license plate number and the positions of other license plate attributes are annotated. Based on the license plate data set and the annotated license plate numbers, train a license plate number recognition model; based on the license plate data set and each other annotated license plate attribute, train a classifier for each other license plate attribute, such as a classifier for the license plate country and a classifier for the license plate color. Based on the license plate data set and the annotated character positions and the positions of other license plate attributes, train character detection models and other license plate attribute detection models.

[0038] The prior art has the following disadvantages:

[0039] 1. License plate number recognition, other license plate attribute classification, license plate character detection, other license plate attribute detection, etc. require training of multiple models. A single model does not have the ability to perceive all license plate attributes.

[0040] 2. Multiple tasks are independent of each other and the model cannot be trained uniformly. Training and optimizing the model is time-consuming and labor-intensive.

[0041] 3. There are differences in the attributes of license plates in different countries and regions, and there are differences in license plate data sets. There may be multiple different attribute recognition and positioning models in different regions.

[0042] 4. The model is limited by the amount of license plate data in different regions. For regions with less license plate data, the performance of the model trained based on the license plate data in that region is poor.

[0043] 5. The recognition and positioning of multiple license plate attributes require the use of multiple models. The connection of multiple models requires the design of complex logic to adapt to license plates from different regions. It is not possible to directly input data to obtain recognition and positioning results.

[0044] The embodiments of the present application utilize a multimodal algorithm of text and image, and can use a multi-task model to uniformly implement tasks such as license plate number recognition, other license plate attribute classification, license plate character detection, and other license plate attribute detection, that is, to uniformly implement the recognition and positioning of one license plate attribute or multiple license plate attributes, and a multi-task model has the ability to perceive all license plate attributes.

[0045] The embodiment of the present application can utilize a large amount of license plate data (i.e., license plate samples, license plate images used to train the model) to train a multi-task model, unify the model training method, and improve the model training efficiency.

[0046] The embodiment of the present application utilizes a multi-task model structure to improve the performance of the recognition algorithm and the positioning algorithm, and solve the problem of license plate data dependence in each region. All license plate data from different regions can be used to train a multi-task model together, and even when the number of license plate data in a certain region is small, the multi-task model can be used to correctly identify and locate.

[0047] The embodiment of the present application uses a multi-task model, which no longer requires a lengthy pipeline and directly outputs end-to-end. It does not require complex logic to adapt to license plates in different regions, and a single model can adapt to all license plate data.

[0048] It should be noted that the above-mentioned multi-task model may refer to the program code or software for realizing license plate attribute recognition and positioning in the embodiment of the present application.

[0049] The license plate attribute recognition and positioning method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0050] It should be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0051] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0052] See also Figure 1 , is a schematic diagram of the implementation flow of a license plate attribute recognition and positioning method provided in an embodiment of the present application, and the license plate attribute recognition and positioning method is applied to a terminal device. Figure 1 As shown, the license plate attribute recognition and positioning method may include the following steps:

[0053] Step 101: Acquire a first image feature of a license plate image and a first text feature of text information.

[0054] The text information includes at least one task description, one task description corresponds to one license plate attribute, and the task description and the license plate attribute are bound one by one. If the text information contains one task description, the present application can realize the recognition and positioning of the license plate attribute corresponding to the task description; if the text information contains multiple task descriptions, the present application can realize the recognition and positioning of the license plate attributes corresponding to each of the multiple task descriptions, that is, the recognition and positioning of multiple license plate attributes can be realized.

[0055] Exemplarily, the text information includes five task descriptions, namely, outputting the license plate number, outputting the license plate country, outputting the license plate city, outputting the license plate color, and outputting the license plate region. The license plate attribute corresponding to the task description "outputting the license plate number" is the license plate number, and the corresponding task is to realize the recognition and positioning of the license plate number; the license plate attribute corresponding to the task description "outputting the license plate country" is the license plate country, and the corresponding task is to realize the recognition and positioning of the license plate country; the license plate attribute corresponding to the task description "outputting the license plate city" is the license plate city, and the corresponding task is to realize the recognition and positioning of the license plate city; the license plate attribute corresponding to the task description "outputting the license plate color" is the license plate color, and the corresponding task is to realize the recognition and positioning of the license plate color; the license plate attribute corresponding to the task description "outputting the license plate region" is the license plate region, and the corresponding task is to realize the recognition and positioning of the license plate region. Through this application, the recognition and positioning of five license plate attributes, namely, the license plate number, the license plate country, the license plate city, the license plate color, and the license plate region, can be uniformly realized.

[0056] The license plate image may be any image that needs to be identified and located. The license plate image may be collected by a camera on a terminal device, stored on the terminal device, or sent to the terminal device by other devices (such as a vehicle-mounted camera), and this application does not impose any restrictions on this.

[0057] In an optional embodiment, the license plate image can be input into an image feature extractor, which outputs a first image feature, thereby obtaining the first image feature of the license plate image; the license plate image can be input into a text feature extractor, which outputs a first text feature, thereby obtaining the first text feature of the license plate image.

[0058] Among them, the network structure of the above-mentioned image feature extractor can be any structure such as Vit, Swintransformer, Resnet, etc. Of course, the network structure of the above-mentioned image feature extractor can also be other structures, which is not limited in this application. The network structure of the above-mentioned text feature extractor can be BERT (Bidirectional EncoderRepresentations from Transformers), which is a pre-trained natural language processing model. Of course, the network structure of the above-mentioned text feature extractor can also be other structures, which is not limited in this application.

[0059] Step 102: The first text feature is fused on the basis of the first image feature to obtain a second image feature.

[0060] The terminal device fuses the first text feature based on the first image feature to obtain the second image feature integrated with the text feature, thereby realizing multimodal feature fusion. Multimodal feature fusion can narrow the heterogeneity differences between text and image while maintaining the integrity of the specific semantics of each modality. Therefore, when the license plate attributes are identified and located based on the second image feature, the recognition accuracy and positioning accuracy of the license plate attributes can be improved.

[0061] Step 103: The first image feature is fused on the basis of the first text feature to obtain a second text feature.

[0062] The terminal device fuses the first image feature based on the first text feature to obtain the second text feature integrated with the image feature, thereby realizing multimodal feature fusion. Multimodal feature fusion can narrow the heterogeneity differences between text and image while maintaining the integrity of the specific semantics of each modality. Therefore, when the license plate attributes are identified and located based on the second text feature, the recognition accuracy and positioning accuracy of the license plate attributes can be improved.

[0063] Step 104: Determine a recognition result and a positioning result of at least one license plate attribute based on the second image feature and the second text feature.

[0064] Optionally, the recognition result of the license plate attribute may be represented in text form. For example, when the license plate attributes are the license plate number and the license plate country, the recognition result of the license plate number may be "License Plate Number: SSS-xxxx", and the recognition result of the license plate country may be "License Plate Country: North America". Of course, the recognition result of the license plate attribute may also be represented in other forms, which is not limited in this application.

[0065] The positioning result of the license plate attribute may refer to the position information of the license plate attribute in the license plate image, and specifically may refer to the position information of the prediction box of the license plate attribute (for example, the upper left corner coordinates and the lower right corner coordinates of the prediction box), and the prediction box is the bounding box of the license plate attribute. When the license plate attribute is the license plate number, the position information of the license plate number may refer to the position information of each character in the license plate number.

[0066] Since the second image features and the second text features have undergone multimodal feature fusion, they provide richer feature information compared to the first image features and the first text features. Therefore, based on the second image features and the second text features, not only can the recognition and positioning of one or multiple license plate attributes be achieved, but the recognition accuracy and positioning accuracy of the license plate attributes can also be improved.

[0067] This embodiment can limit the license plate attributes to be identified and located through the task description in the text information, and the second image features integrated with the text features and the second text features integrated with the image features provide richer feature information compared to the first image features and the first text features. Therefore, based on the second image features and the second text features, not only can the recognition and location of one or multiple license plate attributes be achieved, but also the recognition accuracy and positioning accuracy of the license plate attributes can be improved.

[0068] See also Figure 2 , is a schematic diagram of the implementation flow of a license plate attribute recognition and positioning method provided by another embodiment of the present application, and the license plate attribute recognition and positioning method is applied to a terminal device. Figure 2 As shown, the license plate attribute recognition and positioning method may include the following steps:

[0069] Step 201: Acquire a first image feature of a license plate image and a first text feature of text information.

[0070] This step is the same as step 101. For details, please refer to the relevant description of step 101, which will not be repeated here.

[0071] Step 202: input the first image feature into a third self-attention module to obtain a third image feature.

[0072] Among them, the third self-attention module realizes the function of attention. The input dimension and output dimension of the third self-attention module are the same, and both the input and output are image features. Compared with the input (i.e., the first image feature), the output (i.e., the third image feature) incorporates the image attention feature, so that the terminal device notices the correlation between different parts of the first image feature, improving the performance of the multi-task model.

[0073] Step 203: input the first text feature into the fourth self-attention module to obtain the third text feature.

[0074] Among them, the fourth self-attention module realizes the function of attention. The input dimension and output dimension of the fourth self-attention module are the same, and both the input and output are text features. The output (i.e., the third text feature) integrates the text attention feature compared to the input (i.e., the first text feature), so that the terminal device notices the correlation between different parts of the first text feature, improving the performance of the multi-task model.

[0075] Step 204: input the third image feature and the third text feature into a text-to-image attention module to obtain a fourth image feature.

[0076] Among them, the text-to-image attention module is used to fuse text features into image features. The fourth image feature can be abstractly understood as a high-dimensional feature that fuses text features.

[0077] After the third image feature and the third text feature are input into the text-to-image attention module, the text-to-image attention module can use convolution operation to obtain feature Q1 based on the third text feature, and use convolution operation to obtain feature K1 and feature V1 based on the third image feature; multiply feature Q1 and feature K1 to obtain a first similarity matrix; multiply the first similarity matrix by feature V1 to obtain an output (i.e., a fourth image feature). The input dimension and output dimension of the text-to-image attention module are the same, and the output incorporates text features compared to the input. The input third image feature does not contain text features, and the output fourth image feature incorporates text features through the text-to-image attention module.

[0078] Step 205: input the fourth image feature into the sixth neural network to obtain the second image feature.

[0079] Among them, the sixth neural network can be a feedforward neural network (FNN), which is essentially a two-layer fully connected layer, through which features can be further extracted and the expression ability of features can be enhanced. Of course, the sixth neural network can also be other neural networks, and this application does not limit this.

[0080] Step 206: Input the third image feature and the third text feature into an image-to-text attention module to obtain a fourth text feature.

[0081] Among them, the image-to-text attention module is used to fuse image features into text features. The fourth text feature can be abstractly understood as a high-dimensional feature that fuses image features.

[0082] After the third image feature and the third text feature are input into the image-to-text attention module, the image-to-text attention module can use convolution operation to obtain feature Q2 based on the third image feature, and use convolution operation to obtain feature K2 and feature V2 based on the third text feature; multiply feature Q2 and feature K2 to obtain a second similarity matrix; multiply the second similarity matrix by feature V2 to obtain output (i.e., the fourth text feature). The input dimension and output dimension of the image-to-text attention module are the same, and the output incorporates image features compared to the input. The input third text feature does not contain image features, and the output fourth text feature incorporates image features through the image-to-text attention module.

[0083] Step 207: input the fourth text feature into the seventh neural network to obtain the second text feature.

[0084] Among them, the seventh neural network can be an FNN, which is essentially a two-layer fully connected layer, through which features can be further extracted and the expression ability of features can be enhanced. Of course, the seventh neural network can also be other neural networks, which is not limited in this application.

[0085] In one embodiment, the third self-attention module, the fourth self-attention module, the text-to-image attention module, the image-to-text attention module, the sixth neural network, and the seventh neural network can form a bidirectional attention module, and the first image feature and the first text feature are input into the bidirectional attention module, and multimodal feature fusion can be performed to obtain the second image feature and the second text feature. Figure 3 Shown is a structural example diagram of a bidirectional attention module.

[0086] Step 208: input the second image feature, the second text feature and the first start and end symbol feature into a character decoder to obtain a recognition result of at least one license plate attribute.

[0087] The character decoder can be a language model (LM) for generating recognition results in an autoregressive manner. The first start and end symbol feature in step 208 is the initial value of the character decoder and can be preset. The first start and end symbol feature and output are generated or updated cyclically.

[0088] Exemplarily, at the start stage: the first start and end symbol features are the start and end symbols [start], and the output is the first character: car; the next stage: the first start and end symbol features are the start and end symbols [start car], and the output is the first character: license plate; the next stage: the first start and end symbol features are the start and end symbols [start license plate number], and the output is the first character: number; the next stage: the first start and end symbol features are the start and end symbols [start license plate number], and the output is the first character: code; the next stage: the first start and end symbol features are the start and end symbols [start license plate number], and the output is the first character: “:”; the next stage: the first start and end symbol features are the start and end symbols [start license plate number:], and the output is the first character: S; keep looping; until the next stage: the first start and end symbol features are the start and end symbols [start license plate number: SSS-xxxx], and the output is the first character: [end]; indicating the end of generation (that is, the end of the loop).

[0089] The second image feature can provide image feature information for the character decoder, and the second text feature can provide text feature information for the character decoder, so that the character decoder can realize license plate attribute recognition based on multimodal features.

[0090] In an alternative embodiment, if Figure 4 As shown, the character decoder includes a first self-attention module, a first image cross-attention module, a first text cross-attention module, a first neural network and a second neural network; the recognition process based on the character decoder is as follows:

[0091] Input the first start and end symbol features into the first self-attention module to obtain the second start and end symbol features;

[0092] Inputting the second start-end symbol feature and the second image feature into the first image cross attention module to obtain a third start-end symbol feature;

[0093] Inputting the third start and end symbol feature and the second text feature into the first text cross attention module to obtain a fourth start and end symbol feature;

[0094] Input the fourth start and end symbol feature into the first neural network to obtain the fifth start and end symbol feature, and use the fifth start and end symbol feature as the first start and end symbol feature, and return to execute the step of inputting the first start and end symbol feature into the first self-attention module and subsequent steps until the number of times returned to execute reaches N times, where N is an integer greater than zero;

[0095] The fifth start and end symbol features are input into the second neural network to obtain the recognition result.

[0096] Among them, the first self-attention module realizes the function of attention. The input dimension and output dimension of the first self-attention module are the same, the input and output are both start and end symbol features, and the output (i.e., the second start and end symbol features) integrates the attention features of the start and end symbols compared to the input (i.e., the first start and end symbol features).

[0097] The first image cross attention module can be a Transformer structure. Feature Q3 can be obtained based on the second start-end symbol feature using convolution feature, and features K3 and V3 can be obtained based on the second image feature using convolution operation; feature Q3 and feature K3 are multiplied to obtain a third similarity matrix; the third similarity matrix is ​​multiplied by feature V3 to obtain output (i.e., the third start-end symbol feature). The output third start-end symbol feature integrates the image feature.

[0098] The first text cross-attention module can be a Transformer structure. Feature Q4 can be obtained based on the third start-end symbol feature using convolution features, and features K4 and V4 can be obtained based on the second text feature using convolution operations; feature Q4 and feature K4 are multiplied to obtain a fourth similarity matrix; the fourth similarity matrix is ​​multiplied by feature V4 to obtain an output (i.e., a fourth start-end symbol feature). The output fourth start-end symbol feature fuses text features on the basis of the third start-end symbol feature, i.e., the fourth start-end symbol feature fuses image features and text features.

[0099] The above-mentioned character decoder utilizes the first image cross-attention module and the first text cross-attention module to fuse image features and text features in the autoregressive decoding process, thereby realizing multimodal feature fusion.

[0100] The first neural network may be an FNN, which is essentially a two-layer fully connected layer, through which features can be further extracted and the expressive power of features can be enhanced. Of course, the first neural network may also be other neural networks, which is not limited in this application.

[0101] The second neural network may be an FNN, which is essentially two fully connected layers, through which the recognition result of the license plate attribute can be output.

[0102] This embodiment performs N+1 multimodal feature fusion and N+1 feature enhancement on the start and end symbol features, so that the start and end symbol features can better fuse image features and text features, enhance the expressiveness of the features, and thus improve the recognition accuracy of license plate attributes. Optionally, the start and end symbol features can be subjected to only one multimodal feature fusion and one feature enhancement, that is, the steps of performing multimodal feature fusion and feature enhancement are not returned.

[0103] Step 209: input the second image feature, the second text feature and the first target query feature into a detector to obtain a positioning result of at least one license plate attribute.

[0104] The above detector is a detection decoding module. In the decoding process, image features and text features can be fused to achieve multimodal feature fusion. Inputting text features into the detector allows the target query feature to understand the input text information, which is used to guide the detection content (i.e., which one or which license plate attributes are located). Inputting image features into the detector allows the target query feature to understand the input image information, which is used to guide the generation of positioning results.

[0105] The second image feature can provide image feature information for the detector, and the second text feature can provide text feature information for the detector, so that the detector can realize license plate attribute positioning based on multimodal features.

[0106] The target query feature is used to query and locate the license plate attribute in the target detection task. The first target query feature in step 209 is composed of a set of predefined vectors, each vector representing a potential license plate attribute.

[0107] In an alternative embodiment, if Figure 5 As shown, the detector includes a second self-attention module, a second image cross-attention module, a second text cross-attention module, a third neural network and a fourth neural network; the positioning process of the detector is as follows:

[0108] Inputting the first target query feature into the second self-attention module to obtain a second target query feature;

[0109] Inputting the second target query feature and the second image feature into the second image cross attention module to obtain a third target query feature;

[0110] Inputting the third target query feature and the second text feature into the second text cross attention module to obtain a fourth target query feature;

[0111] Input the fourth target query feature into the third neural network to obtain a fifth target query feature, and use the fifth target query feature as the first target query feature, and return to execute the step of inputting the first target query feature into the second self-attention module and subsequent steps until the number of executions reaches M times, where M is an integer greater than zero;

[0112] The fifth target query feature is input into the fourth neural network to obtain a positioning result.

[0113] The second self-attention module implements the attention function. The input dimension and output dimension of the first self-attention module are the same, the input and output are both target query features, and the output (i.e., the second target query feature) incorporates the attention feature of the target query compared to the input (i.e., the first target query feature).

[0114] The second image cross attention module can be a Transformer structure. The feature Q5 can be obtained based on the second target query feature using the convolution feature, and the features K5 and V5 can be obtained based on the second image feature using the convolution operation; the feature Q5 and the feature K5 are multiplied to obtain the fifth similarity matrix; the fifth similarity matrix is ​​multiplied by the feature V5 to obtain the output (i.e., the third target query feature). The output third target query feature incorporates the image feature.

[0115] The second text cross attention module can be a Transformer structure. Feature Q6 can be obtained based on the third target query feature using convolution features, and features K6 and V6 can be obtained based on the second text feature using convolution operations; feature Q6 and feature K6 are multiplied to obtain a sixth similarity matrix; the sixth similarity matrix is ​​multiplied by feature V6 to obtain an output (i.e., a fourth target query feature). The output fourth target query feature fuses text features on the basis of the third target query feature, i.e., the fourth target query feature fuses image features and text features.

[0116] The third neural network may be an FNN, which is essentially a two-layer fully connected layer, through which features can be further extracted and the expressive power of features can be enhanced. Of course, the third neural network may also be other neural networks, which is not limited in this application.

[0117] The fourth neural network mentioned above may be an FNN, which is essentially two fully connected layers, through which the positioning result of the license plate attributes can be output.

[0118] This embodiment performs M+1 multimodal feature fusion and M+1 feature enhancement on the target query feature, so that the target query feature can better fuse the image feature and the text feature, enhance the feature's expressiveness, and thus improve the accuracy of locating the license plate attribute. Optionally, the target query feature can be subjected to only one multimodal feature fusion and one feature enhancement, i.e., the step of performing multimodal feature fusion and feature enhancement is not returned.

[0119] It should be noted that M and N can be the same or different, and this application does not limit this. For example, M and N are both 6.

[0120] In an optional embodiment, the detector further includes a fifth neural network, and after obtaining the fifth target query feature, further includes:

[0121] The fifth target query feature is input into the fifth neural network to obtain the category of the license plate attribute.

[0122] The fifth neural network may be an FNN, which is essentially a two-layer fully connected layer, through which the category of the license plate attribute can be output. By identifying the category of the license plate attribute, when locating multiple license plate attributes, the prediction boxes of multiple license plate attributes can be distinguished, so that the user can understand which license plate attribute each of the multiple prediction boxes corresponds to.

[0123] like Figure 5 As shown, the detector includes a second self-attention module, a second image cross-attention module, a third text cross-attention module, a third neural network, a fourth neural network and a fifth neural network. The detector can output the positioning results and categories of the license plate attributes.

[0124] like Figure 6 The figure shows an example of the structure of a multi-task model, which includes an image feature extractor, a text feature extractor, a bidirectional attention module, a character decoder and a detector. By inputting the license plate image and text information into the multi-task model, the recognition and positioning of at least one license plate attribute in the license plate image can be realized. It should be noted that for the license plate attribute that cannot be located, its positioning result is empty or its positioning result is not output. For example, Figure 6 The license plate image in does not contain the area where the license plate attributes such as license plate color, license plate country, and license plate color are located, that is, the location of these license plate attributes cannot be located in the license plate image. Figure 6 The predicted boxes for these license plate attributes are not shown in the localization results shown.

[0125] Before using the multi-task model to identify and locate the license plate attributes in the embodiment of the present application, it is necessary to train the character decoder and detector in the multi-task model. The training process is as follows:

[0126] (1) Input at least one license plate sample and a text sample "license plate number" into the multi-task model to obtain the first predicted recognition result of each license plate sample output by the character decoder and the first predicted positioning result and the first predicted category of each license plate sample output by the detector; calculate the first loss function of the character decoder based on the first predicted recognition result and the first true recognition result of at least one license plate sample; calculate the first positioning loss function of the detector based on the first predicted positioning result and the first true positioning result of at least one license plate sample; calculate the first classification loss function of the detector based on the first predicted category and the first true category of at least one license plate sample; calculate the weighted sum of the first loss function of the character decoder, the first positioning loss function and the first classification loss function of the detector to obtain a first total loss function; adjust the parameters of the multi-task model based on the first total loss function to complete the training of the multi-task model, so that the trained multi-task model can realize the recognition, positioning and classification of license plate numbers.

[0127] (2) Input at least one license plate sample and a text sample "license plate country" into the multi-task model to obtain the second predicted recognition result of each license plate sample output by the character decoder and the second predicted positioning result and second predicted category of each license plate sample output by the detector; calculate the second loss function of the character decoder based on the second predicted recognition result and the second true recognition result of at least one license plate sample; calculate the second classification loss function of the detector based on the second predicted positioning result and the second true positioning result of at least one license plate sample; calculate the second classification loss function of the detector based on the second predicted category and the second true category of at least one license plate sample; calculate the weighted sum of the second loss function of the character decoder, the second positioning loss function and the second classification loss function of the detector to obtain a second total loss function; adjust the parameters of the multi-task model based on the second total loss function to complete the training of the multi-task model, so that the trained multi-task model can realize the recognition, positioning and classification of the license plate country.

[0128] (3) Input at least one license plate sample and a text sample "license plate city" into the multi-task model to obtain the third predicted recognition result of each license plate sample output by the character decoder and the third predicted positioning result and third predicted category of each license plate sample output by the detector; calculate the third loss function of the character decoder based on the third predicted recognition result and the third true recognition result of at least one license plate sample; calculate the third positioning loss function of the detector based on the third predicted positioning result and the third true positioning result of at least one license plate sample; calculate the third classification loss function of the detector based on the third predicted category and the third true category of at least one license plate sample; calculate the weighted sum of the third loss function of the character decoder, the third positioning loss function and the third classification loss function of the detector to obtain the third total loss function; adjust the parameters of the multi-task model based on the third total loss function to complete the training of the multi-task model, so that the trained multi-task model can realize the recognition, positioning and classification of the license plate city.

[0129] (4) Input at least one license plate sample and a text sample "license plate color" into the multi-task model to obtain the fourth predicted recognition result of each license plate sample output by the character decoder and the fourth predicted positioning result and fourth predicted category of each license plate sample output by the detector; calculate the fourth loss function of the character decoder based on the fourth predicted recognition result and the fourth true recognition result of at least one license plate sample; calculate the fourth positioning loss function of the detector based on the fourth predicted positioning result and the fourth true positioning result of at least one license plate sample; calculate the fourth classification loss function of the detector based on the fourth predicted category and the fourth true category of at least one license plate sample; calculate the weighted sum of the fourth loss function of the character decoder, the fourth positioning loss function and the fourth classification loss function of the detector to obtain a fourth total loss function; adjust the parameters of the multi-task model based on the fourth total loss function to complete the training of the multi-task model, so that the trained multi-task model can realize the recognition, positioning and classification of license plate color.

[0130] (5) Input at least one license plate sample and a text sample "license plate area" into the multi-task model to obtain the fifth predicted recognition result of each license plate sample output by the character decoder and the fifth predicted positioning result and the fifth predicted category of each license plate sample output by the detector; calculate the fifth loss function of the character decoder based on the fifth predicted recognition result and the fifth true recognition result of at least one license plate sample; calculate the fifth positioning loss function of the detector based on the fifth predicted positioning result and the fifth true positioning result of at least one license plate sample; calculate the fifth classification loss function of the detector based on the fifth predicted category and the fifth true category of at least one license plate sample; calculate the weighted sum of the fifth loss function of the character decoder, the fifth loss function of the detector and the fifth classification loss function to obtain the fifth total loss function; adjust the parameters of the multi-task model based on the fifth total loss function to complete the training of the multi-task model, so that the trained multi-task model can realize the recognition, positioning and classification of the license plate area.

[0131] Optionally, the types of the first loss function, the second loss function, the third loss function, the fourth loss function and the fifth loss function of the character decoder may be cross entropy loss functions. Of course, other types of loss functions may also be used, which is not limited in the present application. The types of the first positioning loss function, the second positioning loss function, the third positioning loss function, the fourth positioning loss function and the fifth positioning loss function of the detector may be Focal loss functions, which are used to train the positioning function of the detector, thereby realizing the positioning of the license plate attributes. Of course, the positioning loss function may also be other types of loss functions, which is not limited in the present application. The types of the first classification loss function, the second classification loss function, the third classification loss function, the fourth classification loss function and the fifth classification loss function of the detector may be L1 loss functions and Giou loss functions, which are used to train the classification function of the detector, thereby identifying the category of the license plate attributes. Of course, the classification loss function may also be other types of loss functions, which is not limited in the present application.

[0132] This embodiment proposes a novel license plate attribute recognition and positioning solution based on multi-modality and multi-task. The multi-task model is a brand-new network structure, and the unified network framework solves the license plate perception problem. Using character decoders and detectors, combined with text information, a multi-task loss function can be constructed, so that the multi-task model can customize learning of different tasks and realize multi-task license plate attribute recognition and positioning. Due to the combination of text information and perception tasks, all labeled data can be used to train the multi-task model, thereby solving the problem that license plate data cannot be shared across regions and regions, and is suitable for the recognition and positioning of license plate attributes in different regions and countries.

[0133] In this embodiment, by inputting the first image feature and the first text feature into the bidirectional attention module, the second image feature and the second text feature can be obtained, by inputting the second image feature, the second text feature and the first start and end symbol features into the character decoder, the recognition result of at least one license plate attribute can be obtained, and by inputting the second image feature, the second text feature and the first target query feature into the detector, the positioning result of at least one license plate attribute can be obtained, thereby realizing the recognition and positioning of one or more license plate attributes and improving the recognition accuracy and positioning accuracy of the license plate attributes.

[0134] See also Figure 7 , is a structural diagram of a license plate attribute recognition and positioning device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0135] The above-mentioned license plate attribute recognition and positioning device includes:

[0136] A feature acquisition module 71 is used to acquire a first image feature of a license plate image and a first text feature of text information, wherein the text information includes at least one task description, and one task description corresponds to one license plate attribute;

[0137] A first fusion module 72, configured to fuse the first text feature on the basis of the first image feature to obtain a second image feature;

[0138] A second fusion module 73, configured to fuse the first image feature on the basis of the first text feature to obtain a second text feature;

[0139] The result determination module 74 is used to determine the recognition result and positioning result of at least one license plate attribute based on the second image feature and the second text feature.

[0140] Optionally, the result determination module 74 includes:

[0141] The attribute recognition unit is used to input the second image feature, the second text feature and the first start and end symbol feature into the character decoder to obtain a recognition result.

[0142] Optionally, the character decoder includes a first self-attention module, a first image cross-attention module, a first text cross-attention module, a first neural network, and a second neural network; the attribute recognition unit is specifically used for:

[0143] Input the first start and end symbol features into the first self-attention module to obtain the second start and end symbol features;

[0144] Inputting the second start-end symbol feature and the second image feature into the first image cross attention module to obtain a third start-end symbol feature;

[0145] Inputting the third start and end symbol feature and the second text feature into the first text cross attention module to obtain a fourth start and end symbol feature;

[0146] Input the fourth start and end symbol feature into the first neural network to obtain the fifth start and end symbol feature, and use the fifth start and end symbol feature as the first start and end symbol feature, and return to execute the step of inputting the first start and end symbol feature into the first self-attention module and subsequent steps until the number of times returned to execute reaches N times, where N is an integer greater than zero;

[0147] The fifth start and end symbol features are input into the second neural network to obtain the recognition result.

[0148] Optionally, the result determination module 74 includes:

[0149] The attribute positioning unit is used to input the second image feature, the second text feature and the first target query feature into the detector to obtain a positioning result.

[0150] Optionally, the detector includes a second self-attention module, a second image cross-attention module, a third text cross-attention module, a third neural network and a fourth neural network; the attribute localization unit is specifically used for:

[0151] Inputting the first target query feature into the second self-attention module to obtain a second target query feature;

[0152] Inputting the second target query feature and the second image feature into the second image cross attention module to obtain a third target query feature;

[0153] Inputting the third target query feature and the second text feature into the second text cross attention module to obtain a fourth target query feature;

[0154] Input the fourth target query feature into the third neural network to obtain a fifth target query feature, and use the fifth target query feature as the first target query feature, and return to execute the step of inputting the first target query feature into the second self-attention module and subsequent steps until the number of executions reaches M times, where M is an integer greater than zero;

[0155] The fifth target query feature is input into the fourth neural network to obtain a positioning result.

[0156] Optionally, the detector further includes a fifth neural network; and the attribute localization unit is further used for:

[0157] The fifth target query feature is input into the fifth neural network to obtain the category of the license plate attribute.

[0158] Optionally, the above-mentioned license plate attribute recognition and positioning device further includes:

[0159] An image extraction module, used for inputting the first image feature into a third self-attention module to obtain a third image feature;

[0160] A text extraction module, used for inputting the first text feature into a fourth self-attention module to obtain a third text feature;

[0161] The first fusion module 72 is specifically used for:

[0162] Inputting the third image feature and the third text feature into the text-to-image attention module to obtain a fourth image feature;

[0163] Inputting the fourth image feature into a sixth neural network to obtain a second image feature;

[0164] The second fusion module 72 is specifically used for:

[0165] Inputting the third image feature and the third text feature into the image-to-text attention module to obtain a fourth text feature;

[0166] The fourth text feature is input into the seventh neural network to obtain the second text feature.

[0167] The license plate attribute recognition and positioning device provided in the embodiment of the present application can be applied in the aforementioned method embodiment. For details, please refer to the description of the aforementioned method embodiment, which will not be repeated here.

[0168] See also Figure 8 , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 8 As shown, the terminal device 8 of this embodiment includes: one or more processors 80 (only one is shown in the figure), a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, the steps in the above-mentioned various license plate attribute recognition and positioning method embodiments are implemented.

[0169] The terminal device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the terminal device 8 and does not constitute a limitation of the terminal device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0170] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0171] The memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used to store the computer program and other programs and data required by the terminal device. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0172] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0173] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0174] The embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0175] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0176] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0177] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0178] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0180] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A license plate attribute recognition and positioning method, It is characterized in that The license plate attribute recognition and positioning method comprises: Acquire a first image feature of the license plate image and a first text feature of the text information, wherein the text information includes at least one task description, and each task description corresponds to a license plate attribute; Based on the first image feature, the first text feature is fused to obtain a second image feature; Based on the first text feature, the first image feature is fused to obtain a second text feature; Based on the second image feature and the second text feature, a recognition result and a positioning result of at least one of the license plate attributes are determined.

2. The license plate attribute recognition and positioning method according to claim 1, It is characterized in that Determining a recognition result of at least one of the license plate attributes based on the second image feature and the second text feature includes: The second image feature, the second text feature and the first start and end symbol feature are input into a character decoder to obtain the recognition result.

3. The license plate attribute recognition and positioning method according to claim 2, It is characterized in that The character decoder includes a first self-attention module, a first image cross-attention module, a first text cross-attention module, a first neural network and a second neural network; the second image feature, the second text feature and the first start and end symbol feature are input into the character decoder to obtain the recognition result, including: Inputting the first start and end symbol features into the first self-attention module to obtain second start and end symbol features; Inputting the second start-end symbol feature and the second image feature into the first image cross attention module to obtain a third start-end symbol feature; Inputting the third start and end symbol feature and the second text feature into the first text cross attention module to obtain a fourth start and end symbol feature; Input the fourth start-end symbol feature into the first neural network to obtain a fifth start-end symbol feature, and use the fifth start-end symbol feature as the first start-end symbol feature, and return to execute the step of inputting the first start-end symbol feature into the first self-attention module and subsequent steps until the number of times of return execution reaches N times, where N is an integer greater than zero; The fifth start and end symbol feature is input into the second neural network to obtain the recognition result.

4. The license plate attribute recognition and positioning method according to any one of claims 1 to 3, It is characterized in that Determining a positioning result of at least one of the license plate attributes based on the second image feature and the second text feature includes: The second image feature, the second text feature and the first target query feature are input into a detector to obtain the positioning result.

5. The license plate attribute recognition and positioning method according to claim 4, It is characterized in that The detector includes a second self-attention module, a second image cross-attention module, a third text cross-attention module, a third neural network and a fourth neural network; the second image feature, the second text feature and the first target query feature are input into the detector to obtain the positioning result, including: Inputting the first target query feature into the second self-attention module to obtain a second target query feature; Inputting the second target query feature and the second image feature into the second image cross attention module to obtain a third target query feature; Inputting the third target query feature and the second text feature into the second text cross attention module to obtain a fourth target query feature; Input the fourth target query feature into the third neural network to obtain a fifth target query feature, and use the fifth target query feature as the first target query feature, and return to execute the step of inputting the first target query feature into the second self-attention module and subsequent steps until the number of executions reaches M times, where M is an integer greater than zero; The fifth target query feature is input into the fourth neural network to obtain the positioning result.

6. The license plate attribute recognition and positioning method according to claim 5, It is characterized in that The detector also includes a fifth neural network; After obtaining the fifth target query feature, the method further includes: The fifth target query feature is input into the fifth neural network to obtain the category of the license plate attribute.

7. The license plate attribute recognition and positioning method according to any one of claims 1 to 3, It is characterized in that After obtaining the first image feature of the license plate image and the first text feature of the text information, the method further includes: Inputting the first image feature into a third self-attention module to obtain a third image feature; Inputting the first text feature into a fourth self-attention module to obtain a third text feature; The step of fusing the first text feature on the basis of the first image feature to obtain the second image feature includes: Inputting the third image feature and the third text feature into a text-to-image attention module to obtain a fourth image feature; Inputting the fourth image feature into a sixth neural network to obtain the second image feature; The step of fusing the first image feature on the basis of the first text feature to obtain a second text feature includes: Inputting the third image feature and the third text feature into an image-to-text attention module to obtain the fourth text feature; The fourth text feature is input into a seventh neural network to obtain the second text feature.

8. A license plate attribute recognition and positioning device, It is characterized in that The license plate attribute recognition and positioning device comprises: A feature acquisition module, used to acquire a first image feature of the license plate image and a first text feature of the text information, wherein the text information includes at least one task description, and each task description corresponds to a license plate attribute; A first fusion module, used for fusing the first text feature with the first image feature to obtain a second image feature; A second fusion module, configured to fuse the first image feature with the first text feature to obtain a second text feature; A result determination module is used to determine a recognition result and a positioning result of at least one of the license plate attributes based on the second image feature and the second text feature.

9. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the license plate attribute recognition and positioning method as claimed in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the license plate attribute recognition and positioning method as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Neural network generation method and device, face detection method and device and driving control method and device

    CN113902961A

  • License plate recognition method, device and equipment and storage medium

    CN114155520A

  • Article identification method and device, electronic equipment and storage medium

    CN116030295A

  • Image classification method and device, electronic equipment and computer readable storage medium

    CN116469110A

  • Advertisement false information identification method and device, electronic equipment and storage medium

    CN117095409A