Shielding image data identification method and device, electronic equipment and vehicle
By enhancing and annotating the image data of the vehicle-mounted unmanned vending cabinet, training a real-time target detection model, identifying occluded products, solving the occlusion problem, ensuring the accuracy of replenishment and analysis, avoiding losses, and improving user experience and Brand image.
Patent Information
- Application Number
- CN202410708045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-30
AI Technical Summary
When users take out products from existing vehicle-mounted unmanned vending cabinets, the visual system cannot accurately identify the blocked product information due to the obstruction of the products in the cabinet, which affects replenishment plans and sales analysis, may cause losses to users or merchants, and degrades user experience. and brand image.
By acquiring camera image data under different angles and lighting conditions, perform data enhancement and annotation processing, train a real-time target detection model, identify and output predicted bounding boxes, and determine whether the target image is occluded, thereby ensuring the accuracy of replenishment planning and sales analysis. accuracy.
It improves the accuracy of replenishment planning and sales analysis, avoids user or merchant losses, improves user experience, and protects brand image.
Smart Images

Figure CN118570728A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic equipment and vehicle for identifying occluded image data. Background Art
[0002] As the intelligentization process of the automotive industry accelerates, on-board unmanned vending machines can be seamlessly integrated into the vehicle's internal facilities, leveraging the vehicle's own mobility advantages to provide passengers with a more convenient instant consumption experience.
[0003] Existing vehicle-mounted unmanned vending machines mainly use computer vision technology to perform real-time analysis on the video stream captured and recorded by the camera of the user's actions and changes in the status of goods. The product recognition algorithm is used to accurately determine the type and quantity of goods taken by the user. After closing the cabinet door, the goods in the cabinet are counted and the shopping list is accurately calculated to achieve accurate identification and tracking of the goods in the cabinet. The consumer's purchasing behavior can be accurately identified and recorded even when the vehicle is moving.
[0004] However, in the prior art, when users take goods, the goods in the cabinet may block other parts of the goods in the cabinet, making it impossible for the visual system to accurately identify the information of the blocked goods, causing the backend management system of the unmanned vending machine to misjudge the inventory quantity of the goods, resulting in the actual inventory quantity being inconsistent with the inventory quantity recorded by the system, thereby affecting the replenishment plan and sales analysis.
[0005] In addition, since the visual system cannot accurately identify the information of obscured goods, when the user closes the cabinet door to trigger checkout, the system may mistakenly believe that the user has taken the obscured goods, resulting in overcharges at checkout; or when the user takes the obscured goods, but due to occlusion, the visual system fails to detect that the goods have been taken away. Therefore, when the user closes the cabinet door, the system may not include these goods in the shopping list, resulting in undercharges, thereby causing losses to the user or merchant, reducing user experience, and affecting brand image. Summary of the invention
[0006] In view of this, the present application provides a method, device, electronic device and vehicle for identifying obstructed image data. The main purpose is to solve the current problem that the goods in the cabinet may obstruct other parts of the goods in the cabinet, resulting in the inability of the visual system to accurately identify the obstructed product information, thereby affecting the replenishment plan and sales analysis, and causing losses to users or merchants, reducing user experience and affecting brand image.
[0007] According to a first aspect of the present application, a method for identifying occluded image data is provided, comprising:
[0008] Obtaining original target image data and target image data to be identified taken by the camera at different shooting angles and lighting conditions;
[0009] Performing data enhancement processing on the original target image data to obtain original enhanced image data;
[0010] Performing data annotation processing on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate of the true value frame, a width, and a height;
[0011] The real-time target detection model is trained using the original enhanced image data and the original target image information, and the trained real-time target detection model is used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded.
[0012] According to a second aspect of the present application, a device for identifying occluded image data is provided, comprising:
[0013] An acquisition module is used to acquire original target image data and target image data to be identified taken by a camera at different shooting angles and lighting conditions;
[0014] An enhancement module, used for performing data enhancement processing on the original target image data to obtain original enhanced image data;
[0015] A labeling module is used to perform data labeling processing on the original enhanced image data to obtain original enhanced image data labeled with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate of the true value frame, a width, and a height;
[0016] The recognition module is used to perform model training on a real-time target detection model using the original enhanced image data and the original target image information, and perform target image recognition processing on the target image data to be recognized using the trained real-time target detection model to obtain a predicted bounding box, so as to determine whether the target image data to be recognized is occluded using the predicted bounding box.
[0017] According to a third aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for identifying occluded image data described in the first aspect is implemented.
[0018] According to the fourth aspect of the present application, an electronic device is provided, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method for identifying occluded image data described in the first aspect when executing the computer program.
[0019] In a fifth aspect, the present disclosure provides a vehicle, comprising: the device as described in the second aspect, the computer-readable storage medium as described in the third aspect, or the electronic device as described in the fourth aspect.
[0020] By means of the above technical scheme, the present application provides a method, device, electronic device and vehicle for identifying occluded image data, which can obtain original target image data and target image data to be identified taken by a camera under different shooting angles and lighting conditions; perform data enhancement processing on the original target image data to obtain original enhanced image data; perform data annotation processing on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate, a width and a height of the true value frame; a real-time target detection model is trained using the original enhanced image data and the original target image information, and the trained real-time target detection model is used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded. For the embodiments of the present disclosure, original target image data captured by a camera under different shooting angles and lighting conditions is obtained, and data enhancement processing, such as random cropping, splicing, and copying, is performed on the original target image data to increase the diversity of the occluded image data; data annotation processing is performed on the original enhanced image data to obtain the original target image information, and the original enhanced image data and the original target image information are used to train a real-time target detection model so that the real-time target detection model can identify and locate the occluded target image data, and output a predicted bounding box to determine whether the target image data to be identified is occluded, thereby ensuring the accuracy of the replenishment plan and sales analysis, avoiding losses to users or merchants, and improving the user experience while protecting the brand image.
[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 A schematic diagram of a flow chart of a method for identifying occluded image data provided by an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of a flow chart of a method for identifying occluded image data provided by an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of the structure of a device for identifying occluded image data provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to aid understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments of the present disclosure and the features therein may be combined with each other without conflict.
[0028] The following describes the method, device, electronic device and vehicle for recognizing blocked image data according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0029] In order to ensure the accuracy of replenishment planning and sales analysis, avoid losses to users or merchants, improve user experience and protect brand image. This embodiment provides a method for identifying occluded image data, such as Figure 1 As shown, the method includes:
[0030] Step 101: Acquire original target image data and target image data to be identified captured by a camera under different shooting angles and lighting conditions.
[0031] Among them, the original target image data may be clear and unobstructed commodity image data inside the unmanned vending machine taken by the camera under different shooting angles and lighting conditions; the target image data to be identified may be commodity image data that needs to be identified and processed by the real-time target detection model in the unmanned vending machine.
[0032] For the disclosed embodiment, in order to ensure that the training data set of the model meets the specific requirements of identifying different commodities in the vehicle-mounted unmanned vending machine, the training data set is constructed using self-collected data. In order to enable the model to adapt to various environments and conditions, the self-collected data can be the original target image data taken from different shooting angles and under different lighting conditions, so as to improve the generalization ability of the model, so that it can better identify commodities in practical applications, no matter at what angle the commodities are placed or under what lighting conditions.
[0033] The training data set may contain several types (e.g., 8 types) of large commodity image data and several types (e.g., 5 types) of small commodity image data, without any specific limitation, which helps the model learn to distinguish different types of commodities.
[0034] Since the placement and occlusion of commodity image data of different commodity sizes in the vending machine may be different, the original target image data of different commodity sizes need to be distinguished. For example, if the commodity volume of the original target image data is greater than or equal to 250 cubic centimeters, the original target image data can be classified as a large commodity; if the commodity volume of the original target image data is less than 250 cubic centimeters, the original target image data can be classified as a small commodity.
[0035] Step 102: Perform data enhancement processing on the original target image data to obtain original enhanced image data.
[0036] Among them, data enhancement processing can be used to artificially modify the original target image data, increase the diversity and quantity of the training data set, and enable the model to learn a richer and more diverse data distribution, so that it can make accurate predictions when encountering new data in practical applications.
[0037] The original enhanced image data may be a new training data set obtained after data enhancement processing is performed on the original target image data. The original enhanced image data may include multiple variants of the original target image data, and each variant may be obtained by transforming the original target image data by applying different data enhancement techniques.
[0038] For the embodiments of the present disclosure, in order to expand the scale and diversity of the training data set and improve the generalization ability and robustness of the model, data enhancement processing may be performed on the original target image data to obtain original enhanced image data.
[0039] The data enhancement processing may include but is not limited to methods of randomly cropping, splicing or copying part of the existing image data of the original target image, so as to artificially simulate the mutual occlusion caused by the stacking of goods in the actual vending cabinet.
[0040] Step 103: perform data annotation processing on the original enhanced image data to obtain the original enhanced image data annotated with the original target image information.
[0041] Among them, the original target image information includes the original target true value frame, the original target image occlusion state and the original target image occlusion frame. The original target true value frame includes the original target image category, the center coordinates, width and height of the true value frame.
[0042] For the embodiments of the present disclosure, in the data annotation stage, in order to improve the ability of the training algorithm to recognize and process obstructed goods, each product instance may be finely annotated.
[0043] Specifically, each product instance can be routinely labeled first, that is, the original enhanced image data is labeled with basic information such as the original target image category (such as beverages, snacks, etc.), the position coordinates of the product in the image (that is, the original target true value box), and on the basis of the basic information, additional label attributes are added to indicate whether the target product is obscured by other products (that is, the original target image occlusion status). If the target product is obscured by other products, the location information of the obstruction must also be marked (that is, the original target image occlusion box).
[0044] Through labeling, a training data set with original target image information is obtained for use by the deep learning model in the training phase. By learning the labeling information, the model can optimize its ability to identify occluded products, which helps the model to more accurately identify and process occluded target products in practical applications when some information is missing.
[0045] Step 104: Use the original enhanced image data and the original target image information to train the real-time target detection model, and use the trained real-time target detection model to perform target image recognition processing on the target image data to be identified, and obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is blocked.
[0046] Among them, the real-time target detection model can be a deep learning model (You Only Look Once version 8, YOLOV8) used for identifying products in images and locating the positions of products in computer vision.
[0047] YOLOV8 is an advanced single-stage real-time object detection algorithm based on a convolutional neural network architecture that simultaneously predicts multiple bounding boxes and their corresponding category probabilities. By optimizing the network structure and loss function, the detection performance is improved while maintaining high-speed reasoning capabilities.
[0048] For the disclosed embodiment, the original enhanced image data and the original target true value box in the original target image information can be used to train the real-time target detection model. As a possible implementation method, after the model receives the original enhanced image data and the original target true value box, it can perform forward propagation. The model can process the input original enhanced image data through convolution layers, pooling layers, etc. to generate prediction results. The prediction results may include prediction bounding boxes, category probabilities, etc., and the error between the predicted bounding boxes of the model and the original target true value boxes can be evaluated using a defined loss function. After calculating the loss function, back propagation can be performed to calculate the propagation path of the error in the network. During the back propagation process, the model parameters can be adjusted using gradient information to make the model prediction bounding box closer to the original target true value box, thereby reducing the loss function value. Repeat the above steps and iteratively train the model until the loss function value is less than the preset loss function threshold.
[0049] The trained real-time target detection model can be used to perform target image recognition processing on the target image data to be identified, and a predicted bounding box can be obtained to determine whether the target image data to be identified is blocked by using the predicted bounding box.
[0050] In summary, according to a method for identifying occluded image data disclosed in the present invention, original target image data and target image data to be identified taken by a camera under different shooting angles and lighting conditions can be obtained; data enhancement processing is performed on the original target image data to obtain original enhanced image data; data annotation processing is performed on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate, a width, and a height of the true value frame; a real-time target detection model is trained using the original enhanced image data and the original target image information, and the trained real-time target detection model is used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded. For the embodiments of the present disclosure, original target image data captured by a camera under different shooting angles and lighting conditions is obtained, and data enhancement processing, such as random cropping, splicing, and copying, is performed on the original target image data to increase the diversity of the occluded image data; data annotation processing is performed on the original enhanced image data to obtain the original target image information, and the original enhanced image data and the original target image information are used to train a real-time target detection model so that the real-time target detection model can identify and locate the occluded target image data, and output a predicted bounding box to determine whether the target image data to be identified is occluded, thereby ensuring the accuracy of the replenishment plan and sales analysis, avoiding losses to users or merchants, and improving the user experience while protecting the brand image.
[0051] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following Figure 2 The specific method shown comprises the following steps:
[0052] Step 201: Use the original enhanced image data as the input feature of the real-time target detection model, use the original target image information as the training label of the real-time target detection model, iteratively optimize the model hyperparameters of the real-time target detection model until the total loss function value of the real-time target detection model is less than the preset loss function threshold, and determine that the real-time target detection model training is completed.
[0053] For the embodiments of the present disclosure, when the real-time target detection model is trained using the original enhanced image data and the original target image information, the original enhanced image data can be used as the input feature of the real-time target detection model, and the original target image information can be used as the training label of the real-time target detection model. The model hyperparameters of the real-time target detection model are iteratively optimized until the total loss function value of the real-time target detection model is less than the preset loss function threshold, and the real-time target detection model training is determined to be completed.
[0054] Specifically, the backbone network in the real-time object detection model can be used to extract features from the original enhanced image data to obtain feature maps at different levels. The backbone network can use technologies such as convolutional layers and spatial pyramid pooling layers to achieve efficient calculation and multi-scale feature extraction.
[0055] Secondly, feature maps of different levels can be passed to multiple detection heads, which can be used to predict prediction bounding boxes of different sizes. Specifically, each grid unit can generate a set of candidate bounding boxes, and the detection head can select the best candidate bounding box with the highest confidence value and a degree of overlap with other candidate bounding boxes less than a preset overlap threshold from multiple candidate bounding boxes as the prediction bounding box. The candidate bounding box may include the center coordinates, width, height, and classification score (i.e., the confidence value corresponding to the predicted target image category) of each candidate bounding box.
[0056] When training a real-time object detection model, the alignment metric calculation formula can be used to calculate the relationship between the predicted bounding box and the original target true value box in preparation for calculating the loss function. The alignment metric calculation formula is as follows:
[0057] align_metric=bbox_scores.pow(self.alpha)×overlaps.pow(self.beta)
[0058] Wherein, align_metric may represent the alignment metric value, bbox_scores may represent the classification score of the predicted bounding box, overlaps may represent the overlap between the predicted bounding box and the original target true value box, self.alpha may represent the first model hyperparameter, and self.beta may represent the second model hyperparameter.
[0059] Among them, the alignment metric can be an indicator used to measure the degree of match between the predicted bounding box and the original target true value box. In object detection, the alignment metric can help the model understand the degree of proximity between its predicted bounding box and the original target true value box. The alignment metric value can be part of the loss function. The loss function can evaluate the performance of the model based on the alignment metric value and update the model weights through the back-propagation algorithm to improve the model's prediction results;
[0060] The classification score of the predicted bounding box can be used to represent the model's confidence value that each predicted bounding box contains a specific product. For example, if the classification score of a predicted bounding box is very high, the model can believe that there is a high probability that the predicted bounding box contains the corresponding classification of the product;
[0061] The overlap between the predicted bounding box and the original target true value box can be measured by the intersection of the predicted bounding box and the original target true value box. The intersection of the predicted bounding box and the original target true value box can be a value ranging from 0 to 1. The larger the value, the more overlap there is between the predicted bounding box and the original target true value box, and the more accurate the prediction;
[0062] The first model hyperparameter and the second model hyperparameter can be used to adjust the relative weights of the classification score of the predicted bounding box and the intersection-over-union ratio between the predicted bounding box and the original target ground-truth box in the alignment metric.
[0063] For the embodiment of the present disclosure, if there is no occlusion, as a possible implementation method, the overlap between the predicted bounding box and the original target true value box can be calculated using the intersection-over-union ratio calculation formula, and the intersection-over-union ratio calculation formula is as follows:
[0064] IOU = intersection area of pre_box and GT_box / union area of pre_box and GT_box
[0065] Where IOU represents the intersection-over-union ratio between the predicted bounding box and the original target ground truth box, which can be used to measure the degree of overlap, pre_box represents the predicted bounding box (predicted box, pre_box), and GT_box represents the original target ground truth box (Ground truth box, GT_box).
[0066] When the predicted bounding box completely covers the original target truth box, that is, the intersection area of the two boxes is equal to the area of the original target truth box, the intersection ratio is 1, indicating that the prediction is perfect.
[0067] When the two boxes do not overlap, that is, the intersection area is 0, the intersection ratio is 0, indicating that the predicted bounding box does not match the original target true value box at all, and the prediction fails.
[0068] Typically, the IoU value is between 0 and 1. A higher IoU value indicates a greater overlap between the predicted bounding box and the original target true value box, and a more accurate prediction.
[0069] In object detection tasks, improving the intersection-over-union ratio of the predicted bounding box to the original target ground-truth box can improve the performance of the model in detection tasks, especially when dealing with occlusions, small objects or other challenging scenarios.
[0070] For the embodiment of the present disclosure, if there is an occlusion, in order to better evaluate the coverage accuracy of the predicted bounding box on the non-occluded part, as a possible implementation method, a correction factor can be introduced to adjust the calculation of IOU. The adjusted intersection-over-union ratio calculation formula is as follows:
[0071]
[0072] Wherein, IOU may represent the intersection-and-union ratio between the predicted bounding box and the original target true value box, pre_box may represent the predicted bounding box (predicted box, pre_box), GT_box may represent the original target true value box (Ground truthbox, GT_box), and occluded_box may represent the original target image occluder box.
[0073] In order to more accurately evaluate the performance of the predicted bounding box, especially in the case of occlusion, the intersection area of the predicted bounding box and the original target image occlusion box can be subtracted from the intersection area of the predicted bounding box and the original target true value box to eliminate the influence of the occluded part on the IOU calculation, and more accurately reflect the coverage accuracy of the predicted bounding box for the real target area of the non-occluded part, so as to better evaluate and optimize the performance of the real-time target detection model in the presence of occlusion.
[0074] For the embodiment of the present disclosure, in order to optimize the calculation of the alignment metric value, so as to more comprehensively and accurately evaluate the performance of the predicted bounding box, as a possible implementation method, the matching degree between the predicted bounding box and the original target true value box can be more comprehensively evaluated by increasing the feature similarity value. The optimized alignment metric calculation formula is as follows:
[0075] align_metric=bbox_scores.pow(self.alpha)×overlaps.pow(self.beta)×feature.pow(self.gama)
[0076] Wherein, align_metric may represent the alignment metric value, bbox_scores may represent the classification score of the predicted bounding box, overlaps may represent the overlap value between the predicted bounding box and the original target true value box, feature may represent the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box, self.alpha may represent the first model hyperparameter, self.beta may represent the second model hyperparameter, and self.gama may represent the third model hyperparameter.
[0077] Specifically, a pre-trained feature extraction model (Contrastive Language-Image Pre-training, CLIP) can be used to perform feature extraction on the visual content covered by the predicted bounding box in the target detection task to obtain a first feature vector, and to perform feature extraction on the visual content covered by the original target true value box in the target detection task to obtain a second feature vector, and further calculate the similarity score between the first feature vector and the second feature vector to obtain a feature similarity value. The feature similarity value can be used to reflect the degree of consistency between the predicted bounding box and the original target true value box at the visual feature level.
[0078] Since the CLIP model has powerful cross-modal representation capabilities, it can not only capture the visual features of the image, but also accurately evaluate the target detection performance at the abstract concept level, thus providing a strong basis for subsequent task improvement and optimization.
[0079] The CLIP model can achieve cross-modal representation learning under the deep learning framework by large-scale joint optimization of image and text bimodal datasets, and has the ability to accurately capture high-level semantic features from images that match the corresponding descriptive text labels.
[0080] For the embodiments of the present disclosure, when training a real-time target detection model, the learning of the occluded target by the model can be optimized by adjusting the loss function weight.
[0081] Specifically, in the training data set, when a target product is occluded by other products, the occluded state of its original target image (occluded) can be marked as the original target image has been occluded (i.e. true), which means that the visible part of the target product is incomplete and the recognition difficulty of the model is high. The learning of such difficult samples can be focused by adjusting the weight of the loss function.
[0082] For example, when using the loss function (Binary CrossEntropy Loss, BCELoss) to calculate the loss function value, a larger loss weight can be assigned to the occluded target product to enhance the model's learning ability for such samples, thereby helping the model to better learn how to identify the target product when some information is missing and improving the robustness of the model in actual situations.
[0083] When training a real-time target detection model, the weight of the loss function can be dynamically adjusted according to the occlusion status and size of the original target image to better handle the occlusion problem.
[0084] Specifically, for large target products, if the large target products are occluded, the model can assign a higher loss weight to the occluded large target products than to the unoccluded large target products. For example, the weight coefficient (weight) can be set to 1.5, which means that when the model makes an error in predicting an occluded large target product, its corresponding loss value will be magnified by 1.5 times, so that the model will pay more attention to the correct prediction of the occluded large target products during training, thereby improving the performance of the model when dealing with occlusion problems.
[0085] For small-target products, since they occupy a smaller space in the image, they are more susceptible to occlusion, which increases the difficulty of recognition.
[0086] In order to better handle the occlusion problem of small target products, a higher loss weight can be set for the occluded small target products. For example, the weight coefficient (weight) can be set to 2.0, which means that when the model makes an error in predicting the occlusion state of a small target product, the corresponding loss value will be magnified by 2 times, thereby further encouraging the model to strengthen the learning effect of the occlusion state of small target products, so as to improve the recognition accuracy of the model under the occlusion of small target products.
[0087] For example, in the PyTorch framework, the BCELoss function allows you to pass in a weight parameter weight with the same dimension as the output prediction. Each element in this weight tensor corresponds to a sample. By customizing the weight matrix, different loss weights can be assigned to different samples according to the occlusion state and size of the target product, so that the model pays different attention to target products of different sizes and occlusion states during training, thereby optimizing the performance of the entire model in processing occluded target products.
[0088] For the disclosed embodiments, in the target detection task, the predicted bounding boxes may overlap and occlude each other, making it difficult for the model to distinguish different target products. Repulsion Loss can optimize the positioning accuracy of the predicted bounding boxes by introducing additional penalty terms, thereby improving detection accuracy and reducing false positives and missed detections.
[0089] Specifically, Repulsion Loss can mainly include the following two parts:
[0090] 1. Attraction Component (L_attr): This part of the loss ensures that the predicted bounding box is as close as possible to its corresponding original target ground truth box, that is, the model can attract its predicted bounding box to be more accurately located at the correct target location during training.
[0091] 2. Repulsion Component (L_repGT and L_repbox): L_repGT can make the predicted bounding box P and the surrounding original target ground truth box G as far away as possible, which helps prevent overlap between the predicted bounding box and the original target ground truth box, thereby more accurately locating the target in crowded scenes.
[0092] L_repbox can make the predicted bounding box Pi and the surrounding predicted bounding boxes Pj as far apart as possible, which helps to distinguish different target products in crowded areas and avoid overlap between predicted bounding boxes, thereby improving the detection performance of the model in crowded scenes.
[0093] By combining these two mechanisms, Repulsion Loss can help the detector improve detection accuracy and reduce false positives and missed detections in the face of complex and severely occluded scenes.
[0094] Accordingly, the original enhanced image data is used as the input feature of the real-time target detection model, the original target image information is used as the training label of the real-time target detection model, and the model hyperparameters of the real-time target detection model are iteratively optimized until the total loss function value of the real-time target detection model is less than the preset loss function threshold, and the real-time target detection model training is determined to be completed. As a possible implementation method, it may specifically include:
[0095] The convolutional layer and spatial pyramid pooling layer in the real-time target detection model are used to extract features from the original enhanced image data to obtain feature maps at different levels.
[0096] The detection head in the real-time object detection model is used to process the feature maps at different levels to obtain multiple candidate bounding boxes.
[0097] Selecting the best candidate bounding box with the highest confidence value and an overlap value with other candidate bounding boxes less than a preset overlap threshold from multiple candidate bounding boxes as the predicted bounding box, wherein the candidate bounding box includes the center coordinates, width, height and confidence value corresponding to the predicted target image category of the candidate bounding box;
[0098] Calculate a first loss function value between the predicted bounding box and the original target true value box, and calculate a second loss function value between the predicted bounding box and an adjacent predicted bounding box;
[0099] Perform a weighted sum operation on the first loss function value and the second loss function value to obtain a total loss function value;
[0100] If the total loss function value is less than the preset loss function threshold, the real-time target detection model training is determined to be completed.
[0101] Accordingly, calculating the first loss function value between the predicted bounding box and the original target true value box, as a possible implementation method, may specifically include:
[0102] A weight coefficient is assigned to the predicted bounding box and the original target true value box according to the occlusion state and the original target image size to calculate a first loss function value between the predicted bounding box and the original target true value box.
[0103] Among them, the occlusion state of the original target image may include an occluded original target image and an unoccluded original target image, the original target image size may include an original large target image size and an original small target image size, and the weight coefficient of the predicted bounding box and the original target true value box when the occlusion state of the original target image is the occluded original target image and the original target image size is the original small target image size is greater than the weight coefficient of the predicted bounding box and the original target true value box when the occlusion state of the original target image is the occluded original target image and the original target image size is the original large target image size.
[0104] As a possible implementation method, if the occlusion state of the original target image is an unoccluded original target image, then determine the confidence value of the predicted bounding box, determine the overlap value between the predicted bounding box and the original target true value box, and determine the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box, wherein the overlap value is the ratio of the intersection of the predicted bounding box and the original target true value box to the union of the predicted bounding box and the original target true value box, and the overlap value is between 0 and 1, and the higher the overlap value, the greater the overlap between the predicted bounding box and the original target true value box;
[0105] Perform a weighted operation on the confidence value and the overlap value using the model hyperparameters to obtain an alignment metric between the predicted bounding box and the original target true value box, so as to use the alignment metric to evaluate the performance of the predicted bounding box; or,
[0106] The confidence value, overlap value, and feature similarity value are weighted using the model hyperparameters to obtain an alignment metric between the predicted bounding box and the original target true value box, so as to use the alignment metric to evaluate the performance of the predicted bounding box.
[0107] As a possible implementation method, if the occlusion state of the original target image is that the original target image has been occluded, then determine the confidence value of the predicted bounding box, determine the overlap degree value between the predicted bounding box and the original target true value box, and determine the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box, wherein the overlap degree value is the ratio of the difference result to the union part of the predicted bounding box and the original target true value box, and the difference result is the difference result between the intersection part of the predicted bounding box and the original target true value box and the intersection part of the predicted bounding box and the original target image occlusion object box;
[0108] Perform a weighted operation on the confidence value and the overlap value using the model hyperparameters to obtain an alignment metric between the predicted bounding box and the original target true value box, so as to use the alignment metric to evaluate the performance of the predicted bounding box; or,
[0109] The confidence value, overlap value, and feature similarity value are weighted using the model hyperparameters to obtain an alignment metric between the predicted bounding box and the original target true value box, so as to use the alignment metric to evaluate the performance of the predicted bounding box.
[0110] For the embodiments of the present disclosure, after the model training of the real-time target detection model is completed, the trained real-time target detection model can be used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded.
[0111] In the application scenario of unmanned vending machines, the category non-maximum suppression (NMS) technology can be used to accurately identify various commodities. Category non-maximum suppression can be used to filter out redundant detection frames and only retain the most likely detection results.
[0112] Specifically, first, the trained real-time target detection model can predict all areas in the target image data to be identified, and generate candidate bounding boxes for each type of product and their corresponding category probabilities and confidence values.
[0113] Next, the category non-maximum suppression technique can be performed independently for each product category. For example, the candidate bounding boxes for each product category (such as "Sprite") are sorted from high to low according to their confidence values, which can indicate the model's confidence that each candidate bounding box contains a specific product.
[0114] The candidate bounding box with the highest confidence value after sorting can be selected as the reserved box, and then the intersection-and-union ratio of the reserved box and all other "Sprite" candidate bounding boxes can be calculated. If the intersection-and-union ratio of a candidate bounding box and the reserved box is greater than the preset threshold, it is considered that they may be repeated detection results of the same product. At this time, the reserved boxes with higher intersection-and-union ratios can be eliminated, and the reserved boxes with lower intersection-and-union ratios can be retained.
[0115] The above process is repeated until all candidate bounding boxes under the category are traversed, and finally the valid detection box (i.e., predicted bounding box) that is most likely to represent the real product in each category after category non-maximum suppression screening is obtained.
[0116] In unmanned vending machine applications, category-by-category non-maximum suppression technology can effectively reduce false detections and redundant detections, ensuring that the detection results for each product are accurate and unique, thereby improving the accuracy of product identification and counting.
[0117] In summary, according to a method for identifying occluded image data disclosed in the present invention, original target image data and target image data to be identified taken by a camera under different shooting angles and lighting conditions can be obtained; data enhancement processing is performed on the original target image data to obtain original enhanced image data; data annotation processing is performed on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate, a width, and a height of the true value frame; a real-time target detection model is trained using the original enhanced image data and the original target image information, and the trained real-time target detection model is used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded. For the embodiments of the present disclosure, original target image data captured by a camera under different shooting angles and lighting conditions is obtained, and data enhancement processing, such as random cropping, splicing, and copying, is performed on the original target image data to increase the diversity of the occluded image data; data annotation processing is performed on the original enhanced image data to obtain the original target image information, and the original enhanced image data and the original target image information are used to train a real-time target detection model so that the real-time target detection model can identify and locate the occluded target image data, and output a predicted bounding box to determine whether the target image data to be identified is occluded, thereby ensuring the accuracy of the replenishment plan and sales analysis, avoiding losses to users or merchants, and improving the user experience while protecting the brand image.
[0118] Based on the above Figure 1 , Figure 2The specific implementation of the method shown in the embodiment provides a device for identifying occluded image data, such as Figure 3 As shown, the device includes: an acquisition module 31, an enhancement module 32, a labeling module 33, and a recognition module 34;
[0119] An acquisition module 31 is used to acquire original target image data and target image data to be identified taken by a camera under different shooting angles and lighting conditions;
[0120] The enhancement module 32 is used to perform data enhancement processing on the original target image data to obtain original enhanced image data;
[0121] The labeling module 33 is used to perform data labeling processing on the original enhanced image data to obtain the original enhanced image data labeled with the original target image information, wherein the original target image information includes the original target true value frame, the original target image occlusion state and the original target image occlusion frame, and the original target true value frame includes the original target image category, the center coordinates, width and height of the true value frame;
[0122] The recognition module 34 is used to use the original enhanced image data and the original target image information to perform model training on the real-time target detection model, and use the trained real-time target detection model to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded.
[0123] In a specific application scenario, the recognition module 34 can be used to use the original enhanced image data as the input feature of the real-time target detection model, use the original target image information as the training label of the real-time target detection model, iteratively optimize the model hyperparameters of the real-time target detection model until the total loss function value of the real-time target detection model is less than the preset loss function threshold, and determine that the real-time target detection model training is completed.
[0124] In a specific application scenario, the recognition module 34 may be used to extract features from the original enhanced image data using the convolution layer and the spatial pyramid pooling layer in the real-time target detection model to obtain feature maps at different levels;
[0125] Using the detection head in the real-time object detection model to perform feature processing on the feature maps at different levels to obtain multiple candidate bounding boxes;
[0126] Selecting an optimal candidate bounding box with the highest confidence value and an overlap value with other candidate bounding boxes less than a preset overlap threshold from the multiple candidate bounding boxes as a predicted bounding box, wherein the candidate bounding box includes the center coordinates, width, height and confidence value corresponding to the predicted target image category of the candidate bounding box;
[0127] Calculating a first loss function value between the predicted bounding box and the original target true value box, and calculating a second loss function value between the predicted bounding box and an adjacent predicted bounding box;
[0128] Performing a weighted sum operation on the first loss function value and the second loss function value to obtain a total loss function value;
[0129] If the total loss function value is less than a preset loss function threshold, it is determined that the real-time target detection model training is completed.
[0130] In a specific application scenario, the identification module 34 can be used to assign weight coefficients to the predicted bounding box and the original target true value box according to the occlusion state of the original target image and the size of the original target image, so as to calculate a first loss function value between the predicted bounding box and the original target true value box, wherein the occlusion state of the original target image includes an occluded original target image and an unoccluded original target image, and the size of the original target image includes an original large target image size and an original small target image size, and the weight coefficient of the predicted bounding box and the original target true value box whose occlusion state is the occluded original target image and whose original target image size is the original small target image size is greater than the weight coefficient of the predicted bounding box and the original target true value box whose occlusion state is the occluded original target image and whose original target image size is the original large target image size.
[0131] In specific application scenarios, such as Figure 3 As shown, the device further includes: a first determination module 35, a first calculation module 36, and a second calculation module 37;
[0132] A first determination module 35 is used to determine the confidence value of the predicted bounding box, determine the overlap value between the predicted bounding box and the original target true value box, and determine the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box if the occlusion state of the original target image is an unoccluded original target image, wherein the overlap value is a ratio of the intersection of the predicted bounding box and the original target true value box to the union of the predicted bounding box and the original target true value box, and the overlap value is between 0 and 1, and a higher overlap value indicates a greater overlap between the predicted bounding box and the original target true value box;
[0133] A first operation module 36 is used to perform a weighted operation on the confidence value and the overlap value using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value; or
[0134] The second operation module 37 is used to use the model hyperparameters to perform a weighted operation on the confidence value, the overlap value and the feature similarity value to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to use the alignment metric value to perform performance evaluation on the predicted bounding box.
[0135] In specific application scenarios, such as Figure 3 As shown, the device further includes: a second determination module 38, a third operation module 39, and a fourth operation module 40;
[0136] A second determination module 38 is used to determine the confidence value of the predicted bounding box, determine the overlap degree value between the predicted bounding box and the original target true value box, and determine the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box if the occlusion state of the original target image is that the original target image has been occluded, wherein the overlap degree value is the ratio of the difference result to the union part of the predicted bounding box and the original target true value box, and the difference result is the difference result between the intersection part of the predicted bounding box and the original target true value box and the intersection part of the predicted bounding box and the original target image occlusion object box;
[0137] A third operation module 39 is used to perform a weighted operation on the confidence value and the overlap value using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value; or
[0138] The fourth operation module 40 is used to use the model hyperparameters to perform a weighted operation on the confidence value, the overlap value and the feature similarity value to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to use the alignment metric value to perform performance evaluation on the predicted bounding box.
[0139] It should be noted that for other corresponding descriptions of the functional units involved in the device for identifying occluded image data provided in this embodiment, reference can be made to Figure 1 and Figure 2 The corresponding description of the method in will not be repeated here.
[0140] Based on the above Figure 1 and Figure 2The method shown in the present disclosure, accordingly, also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned Figure 1 and Figure 2 The method shown.
[0141] Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various implementation scenarios of the present disclosure.
[0142] Based on the above Figure 1 and Figure 2 The method shown, and Figure 3 In order to achieve the above-mentioned purpose, the embodiment of the present disclosure also provides an electronic device that can be configured on the vehicle (such as an electric vehicle) side, and the device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method shown.
[0143] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0144] Those skilled in the art will appreciate that the above-mentioned physical device structure provided by the present disclosure does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0145] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software plus necessary general hardware platforms, or by hardware. Compared with the prior art, the present disclosure provides a method, device and electronic device for identifying occluded image data. The present disclosure obtains original target image data and target image data to be identified by a camera under different shooting angles and lighting conditions; performs data enhancement processing on the original target image data to obtain original enhanced image data; performs data annotation processing on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes the original target true value frame, the original target image occlusion state and the original target image occlusion frame, and the original target true value frame includes the original target image category, the center coordinates, width and height of the true value frame; the real-time target detection model is trained using the original enhanced image data and the original target image information, and the real-time target detection model that has been trained performs target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded. For the embodiments of the present disclosure, original target image data captured by a camera under different shooting angles and lighting conditions is obtained, and data enhancement processing, such as random cropping, splicing, and copying, is performed on the original target image data to increase the diversity of the occluded image data; data annotation processing is performed on the original enhanced image data to obtain the original target image information, and the original enhanced image data and the original target image information are used to train a real-time target detection model so that the real-time target detection model can identify and locate the occluded target image data, and output a predicted bounding box to determine whether the target image data to be identified is occluded, thereby ensuring the accuracy of the replenishment plan and sales analysis, avoiding losses to users or merchants, and improving the user experience while protecting the brand image.
[0147] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0148] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A method for identifying occluded image data, characterized in that: include: Obtaining original target image data and target image data to be identified taken by the camera at different shooting angles and lighting conditions; Performing data enhancement processing on the original target image data to obtain original enhanced image data; Performing data annotation processing on the original enhanced image data to obtain original enhanced image data annotated with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate of the true value frame, a width, and a height; The real-time target detection model is trained using the original enhanced image data and the original target image information, and the trained real-time target detection model is used to perform target image recognition processing on the target image data to be identified to obtain a predicted bounding box, so as to use the predicted bounding box to determine whether the target image data to be identified is occluded.
2. The method according to claim 1, characterized in that The method of performing model training on a real-time target detection model by using the original enhanced image data and the original target image information comprises: The original enhanced image data is used as the input feature of the real-time target detection model, the original target image information is used as the training label of the real-time target detection model, and the model hyperparameters of the real-time target detection model are iteratively optimized until the total loss function value of the real-time target detection model is less than a preset loss function threshold, and it is determined that the training of the real-time target detection model is completed.
3. The method according to claim 2, characterized in that The method of using the original enhanced image data as the input feature of the real-time target detection model, using the original target image information as the training label of the real-time target detection model, iteratively optimizing the model hyperparameters of the real-time target detection model, until the total loss function value of the real-time target detection model is less than a preset loss function threshold, and determining that the real-time target detection model training is completed, includes: Using the convolution layer and the spatial pyramid pooling layer in the real-time target detection model to extract features from the original enhanced image data, and obtain feature maps at different levels; Using the detection head in the real-time object detection model to perform feature processing on the feature maps at different levels to obtain multiple candidate bounding boxes; Selecting an optimal candidate bounding box with the highest confidence value and an overlap value with other candidate bounding boxes less than a preset overlap threshold from the multiple candidate bounding boxes as a predicted bounding box, wherein the candidate bounding box includes the center coordinates, width, height and confidence value corresponding to the predicted target image category of the candidate bounding box; Calculating a first loss function value between the predicted bounding box and the original target true value box, and calculating a second loss function value between the predicted bounding box and an adjacent predicted bounding box; Performing a weighted sum operation on the first loss function value and the second loss function value to obtain a total loss function value; If the total loss function value is less than a preset loss function threshold, it is determined that the real-time target detection model training is completed.
4. The method according to claim 3, characterized in that The calculating a first loss function value between the predicted bounding box and the original target true value box includes: A weight coefficient is assigned to the predicted bounding box and the original target true value box according to the original target image occlusion state and the original target image size to calculate a first loss function value between the predicted bounding box and the original target true value box, wherein the original target image occlusion state includes an occluded original target image and an unoccluded original target image, the original target image size includes an original large target image size and an original small target image size, and a weight coefficient between the predicted bounding box and the original target true value box whose original target image occlusion state is the occluded original target image and whose original target image size is the original small target image size is greater than a weight coefficient between the predicted bounding box and the original target true value box whose original target image occlusion state is the occluded original target image and whose original target image size is the original large target image size.
5. The method according to claim 3, characterized in that: The method further comprises: If the occlusion state of the original target image is an unoccluded original target image, then determining a confidence value of the predicted bounding box, determining an overlap degree value between the predicted bounding box and the original target true value box, and determining a feature similarity value between a first feature vector corresponding to the predicted bounding box and a second feature vector corresponding to the original target true value box, wherein the overlap degree value is a ratio of an intersection of the predicted bounding box and the original target true value box to a union of the predicted bounding box and the original target true value box, and the overlap degree value is between 0 and 1, and a higher overlap degree value indicates a greater overlap degree between the predicted bounding box and the original target true value box; Performing a weighted operation on the confidence value and the overlap value using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value; or, The confidence value, the overlap value, and the feature similarity value are weighted by using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value.
6. The method according to claim 3, characterized in that The method further comprises: If the occlusion state of the original target image is that the original target image has been occluded, then determining the confidence value of the predicted bounding box, determining the overlap degree value between the predicted bounding box and the original target true value box, and determining the feature similarity value between the first feature vector corresponding to the predicted bounding box and the second feature vector corresponding to the original target true value box, wherein the overlap degree value is the ratio of the difference result to the union part of the predicted bounding box and the original target true value box, and the difference result is the difference result between the intersection part of the predicted bounding box and the original target true value box and the intersection part of the predicted bounding box and the original target image occlusion object box; Performing a weighted operation on the confidence value and the overlap value using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value; or, The confidence value, the overlap value, and the feature similarity value are weighted by using a model hyperparameter to obtain an alignment metric value between the predicted bounding box and the original target true value box, so as to perform a performance evaluation on the predicted bounding box using the alignment metric value.
7. A device for identifying occluded image data, characterized in that: include: An acquisition module is used to acquire original target image data and target image data to be identified taken by a camera at different shooting angles and lighting conditions; An enhancement module, used for performing data enhancement processing on the original target image data to obtain original enhanced image data; A labeling module is used to perform data labeling processing on the original enhanced image data to obtain original enhanced image data labeled with original target image information, wherein the original target image information includes an original target true value frame, an original target image occlusion state, and an original target image occlusion object frame, and the original target true value frame includes an original target image category, a center coordinate of the true value frame, a width, and a height; The recognition module is used to perform model training on a real-time target detection model using the original enhanced image data and the original target image information, and to perform target image recognition processing on the target image data to be recognized using the trained real-time target detection model to obtain a predicted bounding box, so as to determine whether the target image data to be recognized is occluded using the predicted bounding box.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: include: The apparatus of claim 7, or the computer-readable storage medium of claim 8, or the electronic device of claim 9.
Citation Information
Cited By
Control method and system of refrigeration equipment
CN120071507A
