Wharf freight vehicle management system and method thereof

Through deep learning technology combined with lighting compensation, target detection and pixel enhancement, the problem of low accuracy in license plate recognition in dock freight vehicle management is solved, the accuracy and reliability of license plate recognition is improved, and automated management is realized.

CN118658152AInactive Publication Date: 2024-09-17XIANGSHAN CHENGZE ENERGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411070158.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the management of terminal freight vehicles, poor lighting and small license plate sizes lead to low accuracy and reliability of vehicle number identification, affecting the efficiency and accuracy of terminal freight vehicle management.

Method used

The image processing technology based on deep learning is adopted, combined with the lighting compensator of the automatic codec, the license plate target detection network, the pixel enhancer of the diffusion model and the ViT model, license plate recognition is carried out to improve the accuracy and reliability of license plate recognition.

Benefits of technology

It realizes accurate identification of license plates under poor lighting conditions, improves the accuracy and reliability of license plate recognition, and realizes automated and intelligent terminal freight vehicle management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658152A
    Figure CN118658152A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent management, and more specifically discloses a wharf freight vehicle management system and a method thereof, which are combined with an image processing technology based on deep learning to automatically identify license plates of trucks entering and exiting a wharf, improve the accuracy and reliability of license plate identification, and improve the management efficiency. Therefore, automatic and intelligent wharf freight vehicle management is realized. According to the scheme, the problems that a license plate image is greatly influenced by poor light, and the license plate is a small-size object relative to a vehicle body and is difficult to accurately recognize are solved, the accuracy and reliability of license plate recognition are improved, and therefore automatic and intelligent wharf freight vehicle management is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent management technology, and more specifically, to a terminal freight vehicle management system and method thereof. Background Art

[0002] Terminal freight vehicle management is an important logistics business, involving cargo loading and unloading, transportation, safety, etc. In order to improve the efficiency and accuracy of terminal freight vehicle management, it is necessary to monitor and register the vehicles entering and leaving the terminal in real time.

[0003] At present, the license plate number can be automatically recognized and recorded by the camera, which simplifies the manual registration process and saves time and labor costs. However, the lighting at the dock is poor, and the license plate is a small object relative to the body of the vehicle, which leads to deviations in vehicle number recognition, affecting the accuracy and reliability of recognition.

[0004] Therefore, an optimized terminal freight vehicle management solution is expected. Summary of the invention

[0005] In order to solve the above technical problems, this application is proposed. The embodiment of this application provides a terminal freight vehicle management system and method thereof, which combines image processing technology based on deep learning to automatically identify the license plates of trucks entering and leaving the terminal, improve the accuracy and reliability of license plate recognition, and thus realize automated and intelligent terminal freight vehicle management. This solution solves the problems that poor light has a great impact on license plate images and that license plates are small objects relative to the vehicle body and are difficult to accurately recognize, thereby improving the accuracy and reliability of license plate recognition, and thus realizing automated and intelligent terminal freight vehicle management.

[0006] Accordingly, according to one aspect of the present application, a terminal freight vehicle management system is provided, which includes: A truck detection unit, used to obtain a detection image of a truck to be identified; an illumination compensation unit, used for passing the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; A license plate region recognition unit, used for passing the compensated detection image through a license plate target detection network to obtain a license plate region of interest image; A clarity enhancement unit, used for passing the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a clarity enhanced license plate region of interest image; An image feature extraction unit is used to perform image block processing on the definition enhanced license plate region of interest image and then pass it through a ViT model including an embedding layer to obtain a classification feature vector; and The license plate recognition unit is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to represent a label of the license plate number.

[0007] In the above-mentioned terminal freight vehicle management system, the lighting compensation unit includes: a truck detection image encoding subunit, which is used to use the encoder of the lighting compensator based on the automatic codec to extract the detection feature map of the truck to be identified from the detection image of the truck to be identified, wherein the encoder of the automatic encoder is a convolutional layer; and a truck detection image feature decoding subunit, which is used to use the decoder of the lighting compensator based on the automatic codec to decode the detection feature map of the truck to be identified to obtain the compensated detection image, wherein the decoder of the automatic encoder is a deconvolutional layer.

[0008] In the above-mentioned terminal freight vehicle management system, the license plate target detection network is CenterNet, ExtremeNet or RepPoints.

[0009] In the above-mentioned terminal freight vehicle management system, the image feature extraction unit includes: a block processing subunit, which is used to perform image block processing on the clarity enhanced license plate area of ​​interest image to obtain a sequence of image blocks; an embedding coding subunit, which is used to use the embedding layer of the ViT model to embed code each image block in the sequence of image blocks to obtain a sequence of image block embedding vectors; and a conversion coding subunit, which is used to input the sequence of image block embedding vectors into the converter module of the ViT model to obtain the classification feature vector.

[0010] In the above-mentioned terminal freight vehicle management system, the conversion encoding subunit includes: an arrangement secondary subunit, which is used to arrange the sequence of the image block embedding vectors into an input vector; a conversion secondary subunit, which is used to convert the input vector into a query vector and a key vector respectively through a learnable embedding matrix; a self-attention secondary subunit, which is used to calculate the product between the query vector and the transposed vector of the key vector to obtain a self-attention association matrix; a normalization secondary subunit, which is used to normalize the self-attention association matrix to obtain a standardized self-attention association matrix; an activation secondary subunit, which is used to input the standardized self-attention association matrix into a Softmax activation function for activation to obtain a self-attention feature matrix; and an attention application secondary subunit, which is used to multiply the self-attention feature matrix with each of the multiple local feature vectors to obtain the classification feature vector.

[0011] In the above-mentioned terminal freight vehicle management system, the license plate recognition unit includes: a fully connected encoding subunit, used to use the fully connected layer of the classifier to fully connect the classification feature vector to obtain an encoded classification feature vector; and a classification result generation subunit, used to input the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.

[0012] In the above-mentioned terminal freight vehicle management system, it also includes a training module for training the automatic codec-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including the embedding layer, and the classifier; wherein the training module includes: A training data acquisition unit, used to acquire training data, wherein the training data includes a training detection image of a truck to be identified and a true value of a label of a license plate number; A training illumination compensation unit, used for passing the training detection image of the truck to be identified through the illumination compensator based on the automatic codec to obtain a training compensated detection image; A training license plate area recognition unit, used for passing the training compensated detection image through the license plate target detection network to obtain a training license plate region of interest image; A training definition enhancement unit, used for passing the training license plate region of interest image through the diffusion model-based pixel enhancer to obtain a training definition enhanced license plate region of interest image; A training image feature extraction unit, used for performing image block processing on the training definition enhanced license plate region of interest image and then passing it through the ViT model including the embedding layer to obtain a training classification feature vector; A classification loss unit, used for passing the training classification feature vector through a classifier to obtain a classification loss function value; A loss function value calculation unit, used to calculate a predetermined loss function value for promoting classification understanding for the complex feature expression of the training classification feature vector; A training unit is used to train the auto-encoder-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including an embedding layer, and the classifier by taking the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value and by the propagation direction of gradient descent.

[0013] In the above-mentioned terminal freight vehicle management system, the loss function value calculation unit is used to: first calculate the mean and variance between the eigenvalues ​​of any two positions of the training classification feature vector to obtain the mean weight matrix and the variance weight matrix, and then perform query multiplication of the training classification feature vector with the mean weight matrix and the variance weight matrix respectively, and calculate the autocorrelation matrix of the two eigenvectors. norm, and subtract the autocorrelation matrix of the training classification feature vector The predetermined loss function value is obtained by multiplying the norm by the weight as a hyperparameter.

[0014] According to another aspect of the present application, a method for managing terminal freight vehicles is also provided, which includes: Acquire a detection image of the truck to be identified; Passing the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; Passing the compensated detection image through a license plate target detection network to obtain a license plate region of interest image; Passing the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a definition-enhanced license plate region of interest image; The definition-enhanced license plate region of interest image is processed into blocks and then passed through a ViT model including an embedding layer to obtain a classification feature vector; and The classification feature vector is passed through a classifier to obtain a classification result, and the classification result is used to represent a label of a license plate number.

[0015] In the above-mentioned terminal freight vehicle management method, the detection image of the truck to be identified is passed through an illumination compensator based on an automatic codec to obtain a compensated detection image, including: extracting a detection image feature map of the truck to be identified from the detection image of the truck to be identified using an encoder of the illumination compensator based on the autocodec, wherein the encoder of the autoencoder is a convolutional layer; and The decoder of the illumination compensator based on the auto-encoder / decoder is used to decode the detection image feature map of the truck to be identified to obtain the compensated detection image, wherein the decoder of the auto-encoder is a deconvolution layer.

[0016] Compared with the prior art, the terminal freight vehicle management system and method provided by the present application, which combines image processing technology based on deep learning, automatically identifies the license plates of trucks entering and leaving the terminal, improves the accuracy and reliability of license plate recognition, and thus realizes automated and intelligent terminal freight vehicle management. This solution solves the problems that poor light has a great impact on license plate images and that license plates are small objects relative to the vehicle body and are difficult to accurately recognize, improves the accuracy and reliability of license plate recognition, and thus realizes automated and intelligent terminal freight vehicle management. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0018] Figure 1 This is an application scenario diagram of a terminal freight vehicle management system according to an embodiment of the present application.

[0019] Figure 2 It is a block diagram of a terminal freight vehicle management system according to an embodiment of the present application.

[0020] Figure 3 Schematic diagram of the architecture of a terminal freight vehicle management system according to an embodiment of the present application.

[0021] Figure 4 4 is a block diagram of a lighting compensation unit in a terminal freight vehicle management system according to an embodiment of the present application.

[0022] Figure 5 It is a block diagram of an image feature extraction unit in a terminal freight vehicle management system according to an embodiment of the present application.

[0023] Figure 6 It is a block diagram of a conversion coding subunit in a terminal freight vehicle management system according to an embodiment of the present application.

[0024] Figure 7 It is a block diagram of a training module in a terminal freight vehicle management system according to an embodiment of the present application.

[0025] Figure 8 Flow chart of a method for managing terminal freight vehicles according to an embodiment of the present application.

[0026] Fig. 9 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0028] Figure 1 FIG. 1 is an application scenario diagram of a terminal freight vehicle management system according to an embodiment of the present application. Figure 1 As shown, in this application scenario, first, through a camera (for example, Figure 1 C) as shown in the figure, collects the trucks to be identified (for example, Figure 1 Then, the collected detection image of the truck to be identified is input into a server deployed with a terminal freight vehicle management algorithm (for example, Figure 1 S), wherein the server is capable of using the terminal freight vehicle management algorithm to process the detection image of the truck to be identified to generate a classification result for a label representing a license plate number.

[0029] Figure 2 It is a block diagram of a terminal freight vehicle management system according to an embodiment of the present application. Figure 3 FIG. 1 is a schematic diagram of the architecture of a terminal freight vehicle management system according to an embodiment of the present application. Figure 2 and Figure 3 As shown, according to the terminal freight vehicle management system 100 of the embodiment of the present application, it includes: a truck detection unit 110, which is used to obtain a detection image of a truck to be identified; an illumination compensation unit 120, which is used to pass the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; a license plate area recognition unit 130, which is used to pass the compensated detection image through a license plate target detection network to obtain a license plate area of ​​interest image; a clarity enhancement unit 140, which is used to pass the license plate area of ​​interest image through a pixel enhancer based on a diffusion model to obtain a clarity-enhanced license plate area of ​​interest image; an image feature extraction unit 150, which is used to perform image block processing on the clarity-enhanced license plate area of ​​interest image and then pass it through a ViT model including an embedding layer to obtain a classification feature vector; and a license plate recognition unit 160, which is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to represent the label of the license plate number.

[0030] In the above-mentioned terminal freight vehicle management system 100, the truck detection unit 110 is used to obtain a detection image of the truck to be identified. In the terminal freight vehicle management, it is necessary to monitor and register the vehicles entering and leaving the terminal in real time. In order to realize automatic license plate recognition and registration, the technical concept of the present application is to combine the image processing technology based on deep learning to automatically identify the license plates of trucks entering and leaving the terminal, improve the accuracy and reliability of license plate recognition, and thus realize automated and intelligent terminal freight vehicle management. Specifically, in the technical solution of the present application, first, it is necessary to obtain a detection image of the truck to be identified. For example, a detection image of a vehicle can be obtained through a camera, which contains important information such as the appearance information of the vehicle and the license plate number.

[0031] In the above-mentioned terminal freight vehicle management system 100, the lighting compensation unit 120 is used to pass the detection image of the truck to be identified through a lighting compensator based on an automatic codec to obtain a compensated detection image. Considering that in the management of terminal freight vehicles, the detection image of the truck to be identified obtained by the camera may have problems such as poor lighting, resulting in insufficient image brightness and clarity, affecting the accuracy and reliability of license plate recognition, in the technical solution of the present application, the detection image of the truck to be identified is passed through a lighting compensator based on an automatic codec to obtain a compensated detection image. Here, the lighting compensator based on the automatic codec can adaptively adjust the contrast, brightness and other parameters of the image by learning the significant information of the image, thereby obtaining a clearer and brighter image.

[0032] Figure 4 FIG. 1 is a block diagram of a lighting compensation unit in a terminal freight vehicle management system according to an embodiment of the present application. Figure 4 As shown, the lighting compensation unit 120 includes: a truck detection image encoding subunit 121, used to extract a detection feature map of the truck to be identified from the detection image of the truck to be identified using the encoder of the lighting compensator based on the automatic codec, wherein the encoder of the automatic encoder is a convolutional layer; and a truck detection image feature decoding subunit 122, used to decode the detection feature map of the truck to be identified using the decoder of the lighting compensator based on the automatic codec to obtain the compensated detection image, wherein the decoder of the automatic encoder is a deconvolutional layer.

[0033] In the above-mentioned terminal freight vehicle management system 100, the license plate area recognition unit 130 is used to pass the compensated detection image through the license plate target detection network to obtain a license plate area of ​​interest image. Here, the license plate target detection network can quickly and accurately detect the license plate area in the vehicle in the image. That is, the compensated detection image is processed through the license plate target detection network to obtain a license plate area of ​​interest image, that is, the license plate part in the vehicle image is extracted. In a specific implementation, the license plate target detection network is CenterNet, ExtremeNet or RepPoints.

[0034] In the above-mentioned terminal freight vehicle management system 100, the clarity enhancement unit 140 is used to pass the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a clarity enhanced license plate region of interest image. Here, the diffusion model is a generative model paradigm, which can encode the input image into latent variables through an encoder, and then decode the latent variables into a reconstructed image through a decoder. The characteristic of the diffusion model is that it does not encode and decode the input image at one time, but gradually adds noise to the input image through multiple steps, so that it gradually becomes blurred, and then gradually removes the noise through multiple steps, so that it gradually recovers clarity. The principle of the pixel enhancer based on the diffusion model is to first take the license plate region of interest image as the input image, encode it into latent variables through an encoder, and then gradually add noise to it through multiple steps, so that it becomes blurred. This process is equivalent to data enhancement of the input image, increasing its diversity and robustness. Then gradually remove the noise through multiple steps to restore clarity. This process is equivalent to denoising and deblurring the input image, improving its clarity and quality. Finally, the latent variables are decoded into a reconstructed image through a decoder, that is, a clarity-enhanced license plate region of interest image. In this way, the pixel enhancer based on the diffusion model can effectively improve the clarity of the license plate region of interest image, which is beneficial to the subsequent license plate number recognition.

[0035] In the above-mentioned terminal freight vehicle management system 100, the image feature extraction unit 150 is used to perform image block processing on the clarity enhanced license plate area of ​​interest image and then pass it through the ViT model including an embedding layer to obtain a classification feature vector. Here, the advantage of performing image block processing on the license plate area of ​​interest image is that a larger image can be divided into multiple small image blocks, which can magnify the details of the license plate to a certain extent. Among them, the ViT model is a visual Transformer model based on the attention mechanism, which can extract high-level semantic features from the image and has a powerful visual feature extraction capability. Specifically, through the Transformer encoder, the ViT model can capture the long-distance dependencies between image blocks and learn feature representations at different positions.

[0036] Figure 5 FIG. 1 is a block diagram of an image feature extraction unit in a terminal freight vehicle management system according to an embodiment of the present application. Figure 5 The image feature extraction unit 150 includes: a block processing subunit 151, which is used to perform image block processing on the clarity enhanced license plate area of ​​interest image to obtain a sequence of image blocks; an embedding coding subunit 152, which is used to use the embedding layer of the ViT model to embed code each image block in the sequence of image blocks to obtain a sequence of image block embedding vectors; and a conversion coding subunit 153, which is used to input the sequence of image block embedding vectors into the converter module of the ViT model to obtain the classification feature vector.

[0037] Figure 6 FIG. 1 is a block diagram of a conversion coding subunit in a terminal freight vehicle management system according to an embodiment of the present application. Figure 6 As shown, the conversion coding subunit 153 includes: an arrangement secondary subunit 1531, which is used to arrange the sequence of the image block embedding vectors into an input vector; a conversion secondary subunit 1532, which is used to convert the input vector into a query vector and a key vector respectively through a learnable embedding matrix; a self-attention secondary subunit 1533, which is used to calculate the product between the query vector and the transposed vector of the key vector to obtain a self-attention association matrix; a normalization secondary subunit 1534, which is used to normalize the self-attention association matrix to obtain a standardized self-attention association matrix; an activation secondary subunit 1535, which is used to input the standardized self-attention association matrix into a Softmax activation function for activation to obtain a self-attention feature matrix; and an attention application secondary subunit 1536, which is used to multiply the self-attention feature matrix with each of the multiple local feature vectors to obtain the classification feature vector.

[0038] In the above-mentioned terminal freight vehicle management system 100, the license plate recognition unit 160 is used to pass the classification feature vector through the classifier to obtain a classification result, and the classification result is used to represent the label of the license plate number. Here, the classifier can be regarded as a license plate recognition model, which can predict the label of the license plate number based on the obtained classification feature vector. In a specific implementation, the license plate recognition unit 160 includes: a fully connected encoding unit, which is used to use the fully connected layer of the classifier to fully connect the classification feature vector to obtain an encoded classification feature vector; and a classification result generation unit, which is used to input the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.

[0039] It should be understood that before using the above-mentioned automatic codec-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including the embedding layer and the classifier, it is necessary to train the automatic codec-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including the embedding layer and the classifier. That is to say, the terminal freight vehicle management system of the present application also includes a training module.

[0040] Figure 7 FIG. 1 is a block diagram of a training module in a terminal freight vehicle management system according to an embodiment of the present application. Figure 7As shown, the training module 200 includes: a training data acquisition unit 210, used to acquire training data, wherein the training data includes a training detection image of a truck to be identified and the true value of the label of the license plate number; a training illumination compensation unit 220, used to pass the training detection image of the truck to be identified through the illumination compensator based on the automatic codec to obtain a training compensated detection image; a training license plate area recognition unit 230, used to pass the training compensated detection image through the license plate target detection network to obtain a training license plate region of interest image; a training clarity enhancement unit 240, used to pass the training license plate region of interest image through the pixel enhancer based on the diffusion model to obtain a training clarity enhanced license plate region of interest image; a training image feature extraction unit 250, used to The training clarity enhanced license plate region of interest image is subjected to image block processing and then passed through the ViT model including an embedding layer to obtain a training classification feature vector; a classification loss unit 260 is used to pass the training classification feature vector through a classifier to obtain a classification loss function value; a loss function value calculation unit 270 is used to calculate a predetermined loss function value for promoting classification understanding for the complex feature expression of the training classification feature vector; a training unit 280 is used to use the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value and train the automatic codec-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including an embedding layer and the classifier through the propagation direction of gradient descent.

[0041] Here, for the classification feature vector obtained by the ViT model including an embedding layer after the image of the clarity enhanced license plate region of interest is processed by image segmentation, the classification feature vector is obtained by directly cascading multiple context image block feature vectors obtained by the ViT model for each image block of the clarity enhanced license plate region of interest image. Therefore, although the ViT model can enhance the contextual relevance between the image semantic features of each image block, due to the image source semantic differences between each image block, there are still explicit differences in feature distribution between the multiple context image block feature vectors, which makes the distribution expression between each feature value of the classification feature vector obtained by direct cascading complex, resulting in a relatively obvious problem of insufficient classification understanding of complex feature expressions, affecting the accuracy of the classification result obtained by the classification feature vector through the classifier.

[0042] Based on this, the present application further introduces a loss function for promoting classification understanding by complex feature expressions of the classification feature vector, that is, calculating a predetermined loss function value for promoting classification understanding by complex feature expressions of the training classification feature vector. The loss function value calculation unit is used to: first calculate the mean and variance between the feature values ​​at any two positions of the training classification feature vector to obtain a mean weight matrix and a variance weight matrix, and then perform query-type multiplication of the training classification feature vector with the mean weight matrix and the variance weight matrix, and then calculate the autocorrelation matrix of the two feature vectors. norm, and subtract the autocorrelation matrix of the training classification feature vector The predetermined loss function value is obtained by multiplying the norm by the weight as a hyperparameter.

[0043] For example, represented as: ;in, represents the training classification feature vector, is the mean weight matrix, is the variance weight matrix, represents the transpose of a vector, represents the matrix multiplication operation, is the weight as a hyperparameter, Represents the matrix norm, represents the predetermined loss function value, and as described above: ;in, represents the first eigenvalues, represents the first eigenvalues, represents the mean weight matrix The eigenvalues ​​of the positions, represents the variance weight matrix The eigenvalue of the location.

[0044] That is, the predetermined loss function value, on the basis of determining the overall distributed structural bottleneck of the classification feature vector through the multi-dimensional interaction of the detail group of the classification feature vector, associatively simulates the correlation between the structural details of the classification feature vector and the macro-structured feature representation behavior through the low-rank structured reasoning of the classification feature vector. In this way, by training the classifier with the predetermined loss function value, the structural detail dependency relative to the macro-complexity can be modeled in the classification scenario, thereby promoting the understanding of the macro-complex feature expression of the classification feature vector based on the structural details and improving the accuracy of the classification results.

[0045] In summary, the terminal freight vehicle management system according to the embodiment of the present application is explained, which combines the image processing technology based on deep learning to automatically identify the license plates of trucks entering and leaving the terminal, improve the accuracy and reliability of license plate recognition, and thus realize automated and intelligent terminal freight vehicle management. This solution solves the problems that poor light has a great impact on the license plate image and that the license plate is a small-sized object relative to the vehicle body and is difficult to accurately recognize, thereby improving the accuracy and reliability of license plate recognition, and thus realizing automated and intelligent terminal freight vehicle management.

[0046] Figure 8 FIG. 1 is a flow chart of a method for managing terminal freight vehicles according to an embodiment of the present application. Figure 8 As shown, according to the terminal freight vehicle management method of the embodiment of the present application, the steps include: S110, acquiring a detection image of a truck to be identified; S120, passing the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; S130, passing the compensated detection image through a license plate target detection network to obtain a license plate region of interest image; S140, passing the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a clarity enhanced license plate region of interest image; S150, performing image block processing on the clarity enhanced license plate region of interest image and then passing it through a ViT model including an embedding layer to obtain a classification feature vector; and, S160, passing the classification feature vector through a classifier to obtain a classification result, and the classification result is used to represent the label of the license plate number.

[0047] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned terminal freight vehicle management method have been referred to above. Figures 2 to 7 The description of the terminal freight vehicle management system has been described in detail, and therefore, its repeated description will be omitted.

[0048] Below, reference Fig. 9 To describe an electronic device according to an embodiment of the present application. Fig. 9 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present application. Fig. 9 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .

[0049] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.

[0050] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the functions of the terminal freight vehicle management system of each embodiment of the present application described above and / or other desired functions. Various contents such as detection images of trucks to be identified may also be stored in the computer-readable storage medium.

[0051] In one example, the electronic device 10 may further include: an input device 13 and an output device 14 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0052] The input device 13 may include, for example, a keyboard, a mouse, etc.

[0053] The output device 14 can output various information to the outside, including classification results of labels used to represent license plate numbers, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0054] Of course, to simplify, Fig. 9 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0055] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the functions of the terminal freight vehicle management method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0056] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0057] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps in the functions of the terminal freight vehicle management method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0058] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

Claims

1. A terminal freight vehicle management system, characterized in that: include: A truck detection unit, used to obtain a detection image of a truck to be identified; an illumination compensation unit, used for passing the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; A license plate region recognition unit, used for passing the compensated detection image through a license plate target detection network to obtain a license plate region of interest image; A clarity enhancement unit, used for passing the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a clarity enhanced license plate region of interest image; An image feature extraction unit, used for performing image block processing on the definition enhanced license plate region of interest image and then passing it through a ViT model including an embedding layer to obtain a classification feature vector; as well as The license plate recognition unit is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to represent a label of the license plate number.

2. The terminal freight vehicle management system according to claim 1, characterized in that: The lighting compensation unit comprises: a truck detection image encoding subunit, configured to extract a detection feature map of the truck to be identified from the detection image of the truck to be identified using an encoder of the illumination compensator based on the autocodec, wherein the encoder of the autoencoder is a convolutional layer; and The truck detection image feature decoding subunit is used to decode the detection feature map of the truck to be identified using the decoder of the illumination compensator based on the autocoder to obtain the compensated detection image, wherein the decoder of the autoencoder is a deconvolution layer.

3. The terminal freight vehicle management system according to claim 2, characterized in that: The license plate target detection network is CenterNet, ExtremeNet or RepPoints.

4. The terminal freight vehicle management system according to claim 3, characterized in that: The image feature extraction unit comprises: A block processing subunit, used for performing image block processing on the definition enhanced license plate region of interest image to obtain a sequence of image blocks; an embedding coding subunit, configured to use the embedding layer of the ViT model to perform embedding coding on each image block in the sequence of image blocks to obtain a sequence of image block embedding vectors; and The conversion encoding subunit is used to input the sequence of image block embedding vectors into the converter module of the ViT model to obtain the classification feature vector.

5. The terminal freight vehicle management system according to claim 4, characterized in that: The conversion coding subunit comprises: an arrangement secondary subunit, used for arranging the sequence of the image block embedding vectors into an input vector; A conversion secondary subunit, used to convert the input vector into a query vector and a key vector through a learnable embedding matrix; A self-attention secondary subunit, configured to calculate the product between the query vector and the transposed vector of the key vector to obtain a self-attention association matrix; A normalization secondary subunit, used for normalizing the self-attention association matrix to obtain a normalized self-attention association matrix; Activate the secondary subunit, which is used to input the standardized self-attention association matrix into the Softmax activation function for activation to obtain a self-attention feature matrix; and The attention applying secondary subunit is used to multiply the self-attention feature matrix with each local feature vector of the multiple local feature vectors to obtain the classification feature vector.

6. The terminal freight vehicle management system according to claim 5, characterized in that: The license plate recognition unit comprises: a fully connected encoding unit, configured to perform fully connected encoding on the classification feature vector using the fully connected layer of the classifier to obtain an encoded classification feature vector; and The classification result generating unit is used to input the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.

7. The terminal freight vehicle management system according to claim 6, characterized in that: Also included is a training module for training the autocodec-based illumination compensator, the license plate object detection network, the diffusion model-based pixel enhancer, the ViT model including the embedding layer, and the classifier; Wherein, the training module includes: A training data acquisition unit, used to acquire training data, wherein the training data includes a training detection image of a truck to be identified and a true value of a label of a license plate number; A training illumination compensation unit, used for passing the training detection image of the truck to be identified through the illumination compensator based on the automatic codec to obtain a training compensated detection image; A training license plate area recognition unit, used for passing the training compensated detection image through the license plate target detection network to obtain a training license plate region of interest image; A training definition enhancement unit, used for passing the training license plate region of interest image through the diffusion model-based pixel enhancer to obtain a training definition enhanced license plate region of interest image; A training image feature extraction unit, used for performing image block processing on the training definition enhanced license plate region of interest image and then passing it through the ViT model including the embedding layer to obtain a training classification feature vector; A classification loss unit, used for passing the training classification feature vector through a classifier to obtain a classification loss function value; A loss function value calculation unit, used to calculate a predetermined loss function value for promoting classification understanding for the complex feature expression of the training classification feature vector; A training unit is used to train the auto-encoder-based illumination compensator, the license plate target detection network, the diffusion model-based pixel enhancer, the ViT model including an embedding layer, and the classifier by taking the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value and by the propagation direction of gradient descent.

8. The terminal freight vehicle management system according to claim 7, characterized in that: The loss function value calculation unit is used to: first calculate the mean and variance between the eigenvalues ​​at any two positions of the training classification feature vector to obtain a mean weight matrix and a variance weight matrix, and then perform query multiplication of the training classification feature vector with the mean weight matrix and the variance weight matrix respectively, and then calculate the autocorrelation matrix of the two eigenvectors. norm, and subtract the autocorrelation matrix of the training classification feature vector The predetermined loss function value is obtained by multiplying the norm by the weight as a hyperparameter.

9. A method for managing terminal freight vehicles, characterized in that: include: Acquire a detection image of the truck to be identified; Passing the detection image of the truck to be identified through an illumination compensator based on an automatic codec to obtain a compensated detection image; Passing the compensated detection image through a license plate target detection network to obtain a license plate region of interest image; Passing the license plate region of interest image through a pixel enhancer based on a diffusion model to obtain a definition-enhanced license plate region of interest image; The definition enhanced license plate region of interest image is processed into blocks and then passed through a ViT model including an embedding layer to obtain a classification feature vector; as well as The classification feature vector is passed through a classifier to obtain a classification result, and the classification result is used to represent a label of a license plate number.

10. The method for managing terminal freight vehicles according to claim 9, characterized in that: The detection image of the truck to be identified is passed through an illumination compensator based on an automatic codec to obtain a compensated detection image, including: extracting a detection image feature map of the truck to be identified from the detection image of the truck to be identified using an encoder of the illumination compensator based on the autocoder / decoder, wherein the encoder of the autoencoder is a convolutional layer; and The decoder of the illumination compensator based on the auto-encoder / decoder is used to decode the detection image feature map of the truck to be identified to obtain the compensated detection image, wherein the decoder of the auto-encoder is a deconvolution layer.

Citation Information

Patent Citations

  • License plate recognition method and device based on image processing, equipment and medium

    CN114913518A

  • Monitoring system and method for material handling equipment

    CN117058618A

  • Method for training vehicle model-year recognition model and method for recognizing vehicle model year

    WO2021174863A1