Logistics wrecker standard work identification method and equipment based on multiple modes and medium

Through the combination of video pre-processing and multi-modal CLIP network structure, the problem of low recognition accuracy at night in tow truck video monitoring is solved, efficient and accurate identification of tow truck standard work is achieved, and the safety of logistics transportation is ensured. and work efficiency.

CN118609088APending Publication Date: 2024-09-06SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753588.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing technology has safety hazards in the video monitoring of tow trucks. Especially when driving at night, the recognition accuracy of dimly lit videos is low, making it difficult to effectively identify the standard working behavior of tow trucks.

Method used

The video pre-processing algorithm is used to extract night-time dark videos and the DeepUPE model is used to enhance dark-light images, and a multi-modal CLIP network structure is built to identify tow truck standard work. The RGB histogram method and deep learning technology are combined to improve the video Frame quality and recognition accuracy.

Benefits of technology

It improves the accuracy of video recognition at night and in low-light environments, reduces labor costs, realizes real-time and accurate identification of tow truck standard work, and ensures the safety and operation efficiency of logistics transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609088A
    Figure CN118609088A
Patent Text Reader

Abstract

The invention discloses a logistics wrecker standard work identification method and device based on multiple modes and a medium, and the method comprises the steps: collecting a small number of wrecker vehicle-mounted videos, and carrying out the early-stage processing; a video preprocessing algorithm is added in the earlier stage of model construction, a video with dark light is found through an RGB histogram method, and then a DeepUPE model is used for carrying out dark light image enhancement; establishing a multi-mode CLIP network structure for detection, and setting proper parameters; performing model training to obtain a wrecker standard work identification model; using the test set to identify the standard work of the wrecker; according to the method, the vehicle-mounted video of the wrecker is judged and input through a visual algorithm, whether a vehicle exists on the wrecker in the video or not is recognized by using the multi-mode CLIP model, whether the wrecker works normally or not is checked, and therefore a guarantee is provided for transportation. According to the method, the frequency of night driving is considered, a video preprocessing algorithm is introduced to extract a video with dark light at night, and a DeepUPE model is used to perform dark light image enhancement, so that the accuracy of algorithm recognition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video monitoring and identification, and in particular to a method, device and medium for identifying the standardized operation of a logistics tow truck based on multi-modality. Background Art

[0002] Road tow trucks, also known as trailers, road rescue trucks, and towing trucks, have multiple functions such as lifting, pulling, and lifting and traction. Tow trucks are mainly used for road fault vehicles, urban illegal vehicles, and emergency rescue, which makes tow trucks play an increasingly important role in logistics and transportation. It is particularly necessary to check whether there is a rescued vehicle on the tow truck's board. The existing operation method is mainly to contact the tow truck driver. However, during the driver's driving, frequent phone calls pose certain safety hazards. Now, through visual algorithms, we can judge, input the on-board video of the tow truck, and use the multimodal CLIP (Contrastive Language–Image Pre-training) model to identify whether there is a vehicle on the tow truck in the video, and check whether the tow truck is working normally, so as to provide protection for transportation. Considering the frequency of driving at night, the video pre-processing algorithm is introduced to extract videos with dark light at night, and the DeepUPE model is used for dark light image enhancement, which can greatly improve the accuracy of algorithm recognition. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention discloses a method, device and medium for identifying the standardized operation of a logistics tow truck based on multimodality to solve the problems raised in the above background technology.

[0004] To achieve the above object, the present invention provides the following technical solution: a method for identifying the standardized operation of a logistics tow truck based on multimodality, comprising the following steps:

[0005] S1. Collect a small amount of videos on tow trucks and perform preliminary processing;

[0006] The early video processing includes operations such as video editing, labeling, and normalization. Editing is to extract the key clips of the tow truck's work, and labeling is to mark the start and end time of the tow truck's standard work, as well as any important actions or events in the video. Normalization is to ensure the uniformity of the video data, such as adjusting the frame rate and resolution of the video to adapt it to the subsequent model processing requirements.

[0007] S2. Add video pre-processing algorithm in the early stage of model construction, find videos with dark light through RGB histogram method, and then use DeepUPE model to enhance dark light images;

[0008] Among them, the RGB histogram method is used to analyze the brightness distribution of video frames and identify video segments with insufficient light. The key to this step is that through histogram analysis, dark-light video frames that need to be enhanced can be found. The DeepUPE model is used for dark-light image enhancement, which is a deep learning method that can effectively improve the visibility and details of images under dark conditions. The advantage of the DeepUPE model is that it can enhance the brightness and color of dark areas without losing image details, thereby improving the overall quality of the image.

[0009] S3, build multimodal CLIP network structure detection and set appropriate parameters;

[0010] Among them, the multimodal CLIP network structure detection is to build a network that can process image and text data at the same time. The characteristic of CLIP (Contrastive Language-Image Pre-training) network is that it can associate images and texts through contrast learning, so that the model can understand the text description corresponding to the image while understanding the image content. When building the network, it is necessary to select the appropriate network architecture and parameters to meet the specific needs of the recognition of the standard work of the tow truck.

[0011] S4, perform model training to obtain a standard working recognition model for a tow truck;

[0012] Among them, model training is the core of the whole method. During the training process, the model will improve its accuracy in identifying the standard work of tow trucks by learning a large number of videos of standard work of tow trucks and corresponding text descriptions. During the training process, various optimization algorithms and regularization techniques may be needed to prevent overfitting and improve the generalization ability of the model.

[0013] S5. Use the test set to identify the standard work of the tow truck;

[0014] The purpose of using the test set to identify the standard work of the tow truck is to evaluate the performance of the model. The test set contains videos of tow trucks working in various scenarios. Through the test, we can verify whether the model can accurately identify the standard work behavior and how the model performs when facing unknown situations. Based on the test results, the model can be adjusted and optimized to improve its recognition accuracy and robustness.

[0015] Preferably, step S1 specifically includes the following:

[0016] 1) Collect the vehicle monitoring video taken by the on-board camera of the tow truck and divide the video into two categories: loaded and unloaded;

[0017] 2) The video is processed for duration, and the sample videos are uniformly saved with a duration of 10 seconds.

[0018] Preferably, in step S2, the RGB histogram method specifically includes:

[0019] RGB color model, the three primary colors of light are red, green and blue. These three colors are mixed in different proportions and intensities to obtain a variety of other colors. When you need the monitor to display the corresponding color, you only need to enter the corresponding R (red), G (green), and B (blue) content.

[0020] The brightness of the photo is divided into 256 values ​​from 0 to 255. The larger the value, the higher the brightness. 0 represents the darkest area of ​​pure black, 255 represents the brightest pure white, and the numbers in the middle are grays of different brightness. At the same time, these brightness are further divided into 5 areas, namely black, shadows, midtones, highlights and white.

[0021] The horizontal axis represents the brightness value of 0-255; the vertical axis represents the number of pixels of corresponding brightness in the photo. At this time, the function graph is called a histogram; the height of the column in the histogram represents how many pixels in the picture are of that brightness, indicating the distribution and proportion of the brightness in the picture. The RGB histogram is formed by superimposing the histograms of the red, green, and blue channels and dividing them by 3.

[0022] Preferably, in step S2, the DeepUPE model includes a network structure including a local module and a global module, which can obtain information of different scales, and then because the output size is relatively small, the efficiency is guaranteed. The specific steps include:

[0023] First, the input is downsampled and encoded into a feature map, local and global features are extracted, and concatenated to predict low-resolution illumination through a convolutional layer;

[0024] The result is then upsampled to produce a full-resolution multi-channel illumination thermal color map, which is used to restore the full-resolution enhanced image.

[0025] 1) To enhance underexposed photos, local features (such as contrast, detail sharpness, shadows and highlights) and global features (such as color distribution, average brightness and scene category) need to be adjusted simultaneously. The features generated from the encoder network are used to consider local and global contexts.

[0026] 2) In order to drive the network to learn the illumination map from the input low-exposure image i and the corresponding expert-retouched image li, a loss function smoothoss is set, which has a priori smoothness on the illumination and reconstruction and color losses on the enhanced image.

[0027] 3) Restore the enhanced image through rich photographic adjustments.

[0028] Preferably, in step S3, the multimodal CLIP network structure constructed specifically includes the following steps:

[0029] CLI includes two modes, one is text mode and the other is visual mode, corresponding to TextEncoder and ImageEncoder respectively;

[0030] TextEncoder is used to encode text and obtain its Embedding;

[0031] ImageEncoder is used to encode the image and obtain its Embedding;

[0032] And both Embeddings are single vectors of a certain length;

[0033] During training, assuming that there are 64 text-image pairs in a batch, 64 pictures and 64 texts will be obtained at the same time. First, a text-image pair is taken out from the 64 text-image pairs. Paired text-image pairs are natural positive samples, and they are paired.

[0034] For the text of this sample, the other 63 images are negative samples and they are unpaired.

[0035] For this sample image, the other 63 texts are negative samples and they are unpaired.

[0036] Preferably, CLIP comprises three stages:

[0037] 1) Contrastive pre-training: In the pre-training stage, contrastive learning training is performed using image-text pairs;

[0038] In the pre-training stage, the positive sample pairs and negative samples in contrastive learning are defined as image-text pairs that can be matched, and image-text pairs that cannot be matched. Specifically, the features of the image and text are extracted separately. At this time, the image generates feature vectors of 11, 12..n, and the text generates feature vectors of 1, T2..n. Then the middle diagonal is the positive sample, and the rest are negative samples, thus forming n positive samples and n2-n negative samples. With positive and negative samples, the model can be trained by contrastive learning, and manual labeling is completely unnecessary. At the same time, self-supervised training requires a large amount of data. The amount of training data of OPENAI is about 400 million, and the data source comes from the Internet.

[0039] 2)Createdatasetclassifierfromlabeltext: extract the predicted category text features;

[0040] Since the text output input during CLIP pre-training is a sentence, but the original categories are all sentences, the text categories are first converted from words to sentences. The method is as follows: Use the prompt template of Aphotoofalobject] to construct it. For example, for dog, it is constructed as Aphotoofadog. Then it is sent to TextEncoder for feature extraction to obtain a feature vector of the text.

[0041] 3) Use for zero-shot prediction: Perform Zero-Shot inference prediction;

[0042] Model inference, pass the input image to the imagesEncoder module, generate a one-dimensional image feature vector, and then compare the cosine similarity between this image feature and the text feature generated in the second stage. The most similar one is the desired result, for example, photofadog should be obtained here.

[0043] Preferably, in step S4, model training specifically includes:

[0044] Use the ison format for training. Before training, put the image file in datasets<dataset name> and the label file in datasets / <label name>json. Start network training in the train.py file and set the corresponding parameters, including:

[0045] modelpath points to the pre-trained weights to be used;

[0046] phi points to the model that needs to be used;

[0047] datasetspath is the path where the dataset is stored;

[0048] datasetstrainjsonpath is the label of the training set;

[0049] datasets_valjson_path is the label of the validation machine.

[0050] Preferably, two files are required for training result prediction, including clip.py and predict.py respectively;

[0051] First, you need to put modeD in the dD.V file in dioDV, and use the corresponding trained file in the following file: modepat corresponds to the weight file under the logs folder;

[0052] After setting image_path and captions, run predict.py for detection.

[0053] The present invention also provides an electronic device, comprising:

[0054] a memory for storing instructions to be executed by one or more processors of the electronic device;

[0055] Processor, when the instruction is executed by one or more processors, the processor is used to execute the multi-modal logistics tow truck standard work identification method.

[0056] The present invention also provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the multi-modal logistics tow truck standard work identification method.

[0057] Compared with the prior art, the present invention has the following beneficial effects:

[0058] 1. In the present invention, a video pre-processing algorithm is introduced to extract videos of dark nighttime lights, and then more features are extracted. The introduction of the video pre-processing algorithm is specifically for extracting working video clips of tow trucks at night or in dimly lit environments. These video clips often contain more challenging features, such as low contrast, unclear details, etc., which put forward higher requirements for the standardized working identification of tow trucks. Through the pre-processing algorithm, these video clips can be screened out, and image enhancement technologies such as the DeepUPE model can be used to improve the quality of the video frames. The enhanced video frames can show the operating details of the tow truck more clearly, thereby providing more powerful visual information for subsequent analysis and identification.

[0059] 2. In the present invention, a multimodal CLIP network structure is used for zero-shot detection, which takes into account both accuracy and efficiency, and is suitable for small sample scenarios. The adoption of a multimodal CLIP network structure enables the present invention to effectively identify the standardized work of tow trucks in zero-sample learning scenarios. The CLIP network, with its powerful cross-modal understanding ability, can directly establish a connection between images and texts without the need for complex feature extraction and annotation of images. This network structure not only improves the accuracy of recognition, but also greatly improves work efficiency. In small sample scenarios, the advantages of the CLIP network are more obvious because it can use limited samples for effective learning and can quickly adapt to new and unseen tow truck work scenarios.

[0060] 3. The present invention significantly reduces labor costs and improves the detection efficiency of the tow truck's standardized work by adopting advanced computer vision technology. Traditional tow truck monitoring relies on manual inspection of video recordings, which is not only time-consuming and labor-intensive, but also prone to missed detection or false detection due to human fatigue. The automatic recognition system in the present invention can work continuously and will not be affected by fatigue, thereby greatly reducing the missed detection rate and improving the accuracy of detection. In addition, the automated recognition system can also provide real-time feedback on the working status of the tow truck, providing real-time and accurate data support for logistics management decisions.

[0061] 4. The present invention constructs an efficient and accurate tow truck standard work recognition system by introducing video pre-processing algorithms, using multimodal CLIP network structures, and reducing labor costs. The system can not only improve the operating efficiency of logistics tow trucks, but also ensure the safety and standardization of operations, which is of great significance to the construction of intelligent logistics systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0063] In the attached picture:

[0064] Figure 1 It is a flow chart of a method for identifying a standardized operation of a logistics tow truck based on multi-modality according to the present invention;

[0065] Figure 2 It is a schematic diagram of the DeepUPE model structure of the present invention. DETAILED DESCRIPTION

[0066] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0067] Example: Figure 1 As shown, the multi-modal logistics tow truck standard work identification method includes the following steps:

[0068] S1. Collect a small amount of videos on the tow truck and perform preliminary processing; specifically, the following:

[0069] 1) Collect the vehicle monitoring video taken by the on-board camera of the tow truck and divide the video into two categories: loaded and unloaded;

[0070] 2) The video is processed for duration, and the sample videos are uniformly saved with a duration of 10 seconds.

[0071] The early video processing includes operations such as video editing, labeling, and normalization. Editing is to extract the key clips of the tow truck's work, and labeling is to mark the start and end time of the tow truck's standard work, as well as any important actions or events in the video. Normalization is to ensure the uniformity of the video data, such as adjusting the frame rate and resolution of the video to adapt it to the subsequent model processing requirements.

[0072] S2. Add a video pre-processing algorithm in the early stage of model construction, find videos with dark light through the RGB histogram method, and then use the DeepUPE model to enhance dark light images; the RGB histogram method specifically includes:

[0073] RGB color model, the three primary colors of light are red, green and blue. These three colors are mixed in different proportions and intensities to obtain a variety of other colors. When you need the monitor to display the corresponding color, you only need to enter the corresponding R (red), G (green), and B (blue) content.

[0074] The brightness of the photo is divided into 256 values ​​from 0 to 255. The larger the value, the higher the brightness. 0 represents the darkest area of ​​pure black, 255 represents the brightest pure white, and the numbers in the middle are grays of different brightness. At the same time, these brightness are further divided into 5 areas, namely black, shadows, midtones, highlights and white.

[0075] The horizontal axis represents the brightness value of 0-255; the vertical axis represents the number of pixels of corresponding brightness in the photo. At this time, the function graph is called a histogram; the height of the column in the histogram represents how many pixels in the picture are of that brightness, indicating the distribution and proportion of the brightness in the picture. The RGB histogram is formed by superimposing the histograms of the red, green, and blue channels and dividing them by 3.

[0076] like Figure 2 The following is a schematic diagram of the DeepUPE model structure:

[0077] The DeepUPE model includes a network structure including a local module and a global module, which can obtain information of different scales. Since the output size is relatively small, the efficiency is guaranteed. The specific steps include:

[0078] First, the input is downsampled and encoded into a feature map, local and global features are extracted, and concatenated to predict low-resolution illumination through a convolutional layer;

[0079] Among them, in the deep learning network, the input low-resolution image is first downsampled through the convolution layer, which can be considered as feature extraction. Downsampling helps the network focus on important patterns in the image and reduces the amount of computation. After encoding into the feature map, local and global features are extracted in parallel. Local features are usually related to the details and texture of the image, while global features are related to the overall color, brightness, and scene category of the image. On the encoder side, local and global features can be captured simultaneously by using convolutional layers with convolution kernels of different sizes or special structures (such as dilated convolution).

[0080] The result is then upsampled to produce a full-resolution multi-channel illumination thermal color map, which is used to restore the full-resolution enhanced image.

[0081] 1) To enhance underexposed photos, local features (such as contrast, detail sharpness, shadows and highlights) and global features (such as color distribution, average brightness and scene category) need to be adjusted simultaneously. The features generated from the encoder network are used to consider local and global contexts.

[0082] 2) In order to drive the network to learn the illumination map from the input low-exposure image i and the corresponding expert-retouched image li, a loss function smoothoss is set, which has a priori smoothness on the illumination and reconstruction and color losses on the enhanced image.

[0083] Among them, the loss function is an indicator that evaluates the difference between the network output and the true value, which is crucial to the training of the network. In the mentioned method, a smooth loss function is used to ensure the smoothness of the illumination map, which helps prevent the illumination map from abruptly changing in space, resulting in more natural results. In addition, reconstruction loss (such as mean square error or mean absolute error) is used to ensure that the network can recover high-quality full-resolution enhanced images from low-exposure images. Color loss ensures that the color of the enhanced image is consistent with the color of the expert-retouched image.

[0084] 3) Restore the enhanced image through rich photographic adjustments;

[0085] After image enhancement, a series of photographic adjustments may be required to further improve image quality. These adjustments may include contrast enhancement, sharpness improvement, shadow and highlight adjustments, etc. These adjustments can be achieved through a series of post-processing steps, such as optimizing the visual effect of the image by adjusting hue, saturation, and brightness.

[0086] In summary, the RGB histogram method is used to analyze the brightness distribution of video frames and identify video segments with insufficient light. The key to this step is that through histogram analysis, dark-light video frames that need to be enhanced can be found. Use the DeepUPE model for dark-light image enhancement, which is a deep learning method that can effectively improve the visibility and details of images under dark conditions. The advantage of the DeepUPE model is that it can enhance the brightness and color of dark areas without losing image details, thereby improving the overall quality of the image. Deep learning frameworks such as convolutional neural networks (CNNs) can be used to learn the complex mapping relationship between low-exposure images and high-exposure images through a large amount of training data. The training dataset should contain image pairs in various scenes and lighting conditions so that the network can learn universal enhancement strategies.

[0087] S3. Build a multimodal CLIP network structure test and set appropriate parameters. The built multimodal CLIP network structure specifically includes the following steps:

[0088] CLI includes two modes, one is text mode and the other is visual mode, corresponding to TextEncoder and ImageEncoder respectively;

[0089] TextEncoder is used to encode text and obtain its Embedding;

[0090] ImageEncoder is used to encode the image and obtain its Embedding;

[0091] And both Embeddings are single vectors of a certain length;

[0092] During training, assuming that there are 64 text-image pairs in a batch, 64 pictures and 64 texts will be obtained at the same time. First, a text-image pair is taken out from the 64 text-image pairs. Paired text-image pairs are natural positive samples, and they are paired.

[0093] For the text of this sample, the other 63 images are negative samples and they are unpaired.

[0094] For this sample image, the other 63 texts are negative samples and they are unpaired.

[0095] Among them, CLIP includes three stages:

[0096] 1) Contrastive pre-training: In the pre-training stage, contrastive learning training is performed using image-text pairs;

[0097] In the pre-training stage, the positive sample pairs and negative samples in contrastive learning are defined as image-text pairs that can be matched, and image-text pairs that cannot be matched. Specifically, the features of the image and text are extracted separately. At this time, the image generates feature vectors of 11, 12..n, and the text generates feature vectors of 1, T2..n. Then the middle diagonal is the positive sample, and the rest are negative samples, thus forming n positive samples and n2-n negative samples. With positive and negative samples, the model can be trained by contrastive learning, and manual labeling is completely unnecessary. At the same time, self-supervised training requires a large amount of data. The amount of training data of OPENAI is about 400 million, and the data source comes from the Internet.

[0098] 2)Createdatasetclassifierfromlabeltext: extract the predicted category text features;

[0099] Since the text output input during CLIP pre-training is a sentence, but the original categories are all sentences, the text categories are first converted from words to sentences. The method is as follows: Use the prompt template of Aphotoofalobject] to construct it. For example, for dog, it is constructed as Aphotoofadog. Then it is sent to TextEncoder for feature extraction to obtain a feature vector of the text.

[0100] 3) Use for zero-shot prediction: Perform Zero-Shot inference prediction;

[0101] Model inference, pass the input image to the imagesEncoder module, generate a one-dimensional image feature vector, and then compare the cosine similarity between this image feature and the text feature generated in the second stage. The most similar one is the desired result, for example, photofadog should be obtained here.

[0102] Among them, the multimodal CLIP network structure detection is to build a network that can process image and text data at the same time. The characteristic of CLIP (Contrastive Language-Image Pre-training) network is that it can associate images and texts through contrast learning, so that the model can understand the text description corresponding to the image while understanding the image content. When building the network, it is necessary to select the appropriate network architecture and parameters to meet the specific needs of the recognition of the standard work of the tow truck.

[0103] S4. Perform model training to obtain a standard working recognition model for a tow truck. The model training specifically includes:

[0104] Use the ison format for training. Before training, put the image file in datasets<dataset name> and the label file in datasets / <label name>json. Start network training in the train.py file and set the corresponding parameters, including:

[0105] modelpath points to the pre-trained weights to be used;

[0106] phi points to the model that needs to be used;

[0107] datasetspath is the path where the dataset is stored;

[0108] datasetstrainjsonpath is the label of the training set;

[0109] datasets_valjson_path is the label of the validation machine.

[0110] Among them, two files are needed for training result prediction, including clip.py and predict.py;

[0111] First, you need to put modeD in the dD.V file in dioDV, and use the corresponding trained file in the following file: modepat corresponds to the weight file under the logs folder;

[0112] After setting image_path and captions, run predict.py for detection.

[0113] Among them, model training is the core of the whole method. During the training process, the model will improve its accuracy in identifying the standard work of tow trucks by learning a large number of videos of standard work of tow trucks and corresponding text descriptions. During the training process, various optimization algorithms and regularization techniques may be needed to prevent overfitting and improve the generalization ability of the model.

[0114] S5. Finally, the test set is used to identify the standard work of the tow truck.

[0115] The purpose of using the test set to identify the standard work of the tow truck is to evaluate the performance of the model. The test set contains videos of tow trucks working in various scenarios. Through the test, we can verify whether the model can accurately identify the standard work behavior and how the model performs when facing unknown situations. Based on the test results, the model can be adjusted and optimized to improve its recognition accuracy and robustness.

[0116] The present invention also provides an electronic device, comprising:

[0117] a memory for storing instructions to be executed by one or more processors of the electronic device;

[0118] Processor, when the instruction is executed by one or more processors, the processor is used to execute the multi-modal logistics tow truck standard work identification method.

[0119] Among them, the advantages of computer equipment:

[0120] 1) High-performance processing: Powerful processors can quickly handle large amounts of data and complex tasks.

[0121] 2) Big data storage: It has sufficient storage space to cope with the huge logistics data storage needs.

[0122] 3) Scalability: As the business grows, hardware resources can be expanded or programs upgraded as needed to meet new demands.

[0123] 4) High reliability: Modern computer equipment usually has a high degree of stability and reliability, ensuring that the system runs error-free for a long time.

[0124] The present invention also provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the multi-modal logistics tow truck standard work identification method.

[0125] The present invention can judge through visual algorithms, input the on-board video of the tow truck, use the multimodal CLIP (Contrastive Language–Image Pre-training) model to identify whether there is a vehicle on the tow truck in the video, and check whether the tow truck is working normally, thereby providing protection for transportation. Considering the frequency of night driving, the video pre-processing algorithm is introduced to extract videos with dark light at night, and the DeepUPE model is used for dark light image enhancement, which can greatly improve the accuracy of algorithm recognition.

[0126] In summary, the present invention constructs an efficient and accurate tow truck standard work recognition system by introducing video pre-processing algorithms, using multimodal CLIP network structures, and reducing labor costs. This system can not only improve the operating efficiency of logistics tow trucks, but also ensure the safety and standardization of operations, which is of great significance to the construction of intelligent logistics systems.

[0127] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multi-modal identification method for the standardized work of logistics tow trucks. It is characterized in that The following steps are involved: S1. Collect a small amount of videos on tow trucks and perform preliminary processing; S2. Add video pre-processing algorithm in the early stage of model construction, find videos with dark light through RGB histogram method, and then use DeepUPE model to enhance dark light images; S3, build multimodal CLIP network structure detection and set appropriate parameters; S4, perform model training to obtain a standard working recognition model for a tow truck; S5. Use the test set to identify the standard work of the tow truck.

2. According to claim 1, the method for identifying the standardized operation of a logistics tow truck based on multi-modality, Features: Step S1 specifically includes the following: 1) Collect the vehicle monitoring video taken by the on-board camera of the tow truck and divide the video into two categories: loaded and unloaded; 2) The video is processed for duration, and the sample videos are uniformly saved with a duration of 10 seconds.

3. According to claim 1, the method for identifying the standardized operation of a logistics tow truck based on multimodality, Features: In step S2, the RGB histogram method specifically includes: The horizontal axis represents the brightness value of 0-255; the vertical axis represents the number of pixels of corresponding brightness in the photo. At this time, the function graph is called a histogram; the height of the column in the histogram represents how many pixels in the picture are of that brightness, indicating the distribution and proportion of the brightness in the picture. The RGB histogram is formed by superimposing the histograms of the red, green, and blue channels and dividing them by 3.

4. According to claim 3, the method for identifying the standardized operation of a logistics tow truck based on multimodality, Features: In step S2, the DeepUPE model includes a network structure including a local module and a global module, which can obtain information of different scales. Since the output size is relatively small, the efficiency is guaranteed. The specific steps include: First, the input is downsampled and encoded into a feature map, local and global features are extracted, and concatenated to predict low-resolution illumination through a convolutional layer; The result is then upsampled to produce a full-resolution multi-channel illumination thermal color map, which is used to restore the full-resolution enhanced image.

5. According to claim 1, the method for identifying the standardized operation of a logistics tow truck based on multimodality, Features: In step S3, the multimodal CLIP network structure is constructed, which specifically includes the following steps: CLI includes two modes, one is text mode and the other is visual mode, corresponding to TextEncoder and ImageEncoder respectively; TextEncoder is used to encode text and obtain its Embedding; ImageEncoder is used to encode the image and obtain its Embedding; And both Embeddings are single vectors of a certain length.

6. According to claim 5, the method for identifying the standardized operation of a logistics tow truck based on multi-modality, Features: in, CLIP consists of three phases: 1) Contrastive pre-training: In the pre-training stage, contrastive learning training is performed using image-text pairs; In the pre-training stage, the positive sample pairs and negative samples in contrastive learning are defined as image-text pairs that can be matched and image-text pairs that cannot be matched. Specifically, the features of the image and text are extracted separately. At this time, the image generates feature vectors of 11, 12..n, and the text generates feature vectors of 1, T2..n. Then the middle diagonal is the positive sample, and the rest are negative samples, thus forming n positive samples and n2-n negative samples. 2)Createdatasetclassifierfromlabeltext: extract the predicted category text features; First, the text category is processed into words and sentences as follows: Use the prompt template of Aphotoofalobject] to construct; 3) Use for zero-shot prediction: Perform Zero-Shot inference prediction; Model inference, pass the input image to the imagesEncoder module, generate a one-dimensional image feature vector, and then compare the cosine similarity between this image feature and the text feature generated in the second stage. The most similar one is the desired result.

7. The method for identifying the standardized operation of a logistics tow truck based on multimodality according to claim 1, Features: In step S4, model training specifically includes: Use the ison format for training. Before training, put the image file in datasets<dataset name> and the label file in datasets / <label name>json. Start network training in the train.py file and set the corresponding parameters, including: modelpath points to the pre-trained weights to be used; phi points to the model that needs to be used; datasetspath is the path where the dataset is stored; datasetstrainjsonpath is the label of the training set; datasets_valjson_path is the label of the validation machine.

8. According to claim 7, the method for identifying the standardized operation of a logistics tow truck based on multi-modality, It is characterized in that: Two files are needed for training result prediction, including clip.py and predict.py; First, you need to put modeD in the dD.V file in dioDV, and use the corresponding trained file in the following file: modepat corresponds to the weight file under the logs folder; After setting image_path and captions, run predict.py for detection.

9. An electronic device, It is characterized in that include: a memory for storing instructions to be executed by one or more processors of the electronic device; Processor, when the instruction is executed by one or more processors, the processor is used to execute the multi-modal logistics tow truck standard work identification method described in any one of claims 1 to 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the multimodal logistics tow truck standard work identification method described in any one of claims 1-8.