Vehicle damage detection method and device, electronic equipment and storage medium

By performing image enhancement and scaling on vehicle damaged images, and using the vehicle damage assessment model to extract feature data, the problem of low manual detection accuracy is solved and more efficient vehicle damage detection is achieved.

CN114723945BActive Publication Date: 2024-10-29PING AN TECH (SHENZHEN) CO LTD

Patent Information

Application Number
CN202210361642.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2024-10-29
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

Existing vehicle damage detection mainly relies on manual estimation, which is easily affected by subjective factors, leading to false detections and missed detections, and low detection accuracy.

Method used

A vehicle damage detection method and device are used to obtain vehicle damage images for image enhancement and scaling processing, and a pre-trained vehicle damage assessment model is used for damage detection, and vehicle damage feature data is extracted, including component features, location features and Status characteristics to determine the type and degree of damage.

Benefits of technology

The accuracy and efficiency of vehicle damage detection are improved, and the damaged parts and extent of vehicle damage can be located and identified more accurately and efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114723945B_ABST
    Figure CN114723945B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a vehicle damage detection method and device, an electronic device and a storage medium, which belong to the field of artificial intelligence technology. The method includes: acquiring a damaged vehicle image; performing image enhancement processing on the damaged vehicle image to obtain an initial damaged image; performing scaling processing on the initial damaged image according to preset scaling parameters to obtain a target damaged image; performing damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, the vehicle damage feature data including vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features; determining the target damage category based on the vehicle damaged component features and vehicle damaged position features; calculating the damage degree of the target damage category, vehicle damaged component features, and vehicle damaged state features to obtain the target damage degree. The embodiments of the present application can improve the accuracy of vehicle damage detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a vehicle damage detection method and device, electronic equipment and storage medium. Background Art

[0002] At present, vehicle damage detection mainly relies on manual estimation. Workers need to classify different collected images and distinguish the damage of components based on the images. It is easy to be affected by various subjective factors, resulting in false detection and missed detection of vehicle damage, affecting the judgment of the damage type and degree of the vehicle, and the detection accuracy is not high. Therefore, how to improve the accuracy of vehicle damage detection has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a vehicle damage detection method and device, an electronic device and a storage medium, aiming to improve the accuracy of vehicle damage detection.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a vehicle damage detection method, the method comprising:

[0005] Acquire vehicle damage images;

[0006] Performing image enhancement processing on the damaged image of the vehicle to obtain an initial damaged image;

[0007] Scaling the initial damaged image according to a preset scaling parameter to obtain a target damaged image;

[0008] Performing damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged location features, and vehicle damaged state features;

[0009] Determining a target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle;

[0010] The damage degree is calculated for the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree.

[0011] In some embodiments, acquiring a damaged vehicle image includes:

[0012] Acquire original video data, wherein the original video data is damaged video data of the target vehicle;

[0013] Segmenting the original video data to obtain a plurality of video frame images;

[0014] The video frame image is compared with a preset reference image to obtain the damaged vehicle image.

[0015] In some embodiments, the vehicle damage assessment model includes a residual network, a semantic segmentation network, and a target detection network. The damage detection of the target damaged image is performed by the pre-trained vehicle damage assessment model to obtain vehicle damage feature data, including:

[0016] Extracting features of the target damaged image through the residual network to obtain a local damaged feature map;

[0017] Performing image segmentation processing on the local damaged feature map through the semantic segmentation network to obtain vehicle segmentation component features;

[0018] The target detection network is used to perform target detection on the vehicle segmentation component features to obtain the vehicle damage feature data.

[0019] In some embodiments, determining the target damage category according to the characteristics of the damaged vehicle components and the characteristics of the damaged vehicle location includes:

[0020] The classification probability of the damaged vehicle parts and the damaged vehicle location is calculated by a preset prediction function to obtain a prediction probability value of each preset vehicle damage category;

[0021] The preset vehicle damage categories are screened according to the predicted probability values ​​to determine the target damage category.

[0022] In some embodiments, calculating the damage degree of the target damage category, the characteristics of the damaged vehicle components, and the characteristics of the damaged vehicle status to obtain the target damage degree includes:

[0023] According to a preset vehicle damage value comparison table, the target damage category, the vehicle damaged component characteristics, and the vehicle damaged state characteristics are assigned values ​​to obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the vehicle damaged component characteristics, and a third vehicle damage value corresponding to the vehicle damaged state characteristics;

[0024] The damage degree is calculated according to the first vehicle damage value, the second vehicle damage value and the third vehicle damage value to obtain the target damage degree.

[0025] In some embodiments, after calculating the damage degree of the target damage category, the characteristics of the damaged vehicle components, and the characteristics of the damaged vehicle status to obtain the target damage degree, the method further includes:

[0026] Extracting damaged area features from the vehicle damage feature data;

[0027] According to the target damage category, weighted calculation is performed on the damaged area characteristics and the target damage degree to obtain a comprehensive vehicle damage value;

[0028] The preset reference maintenance data is screened according to the comprehensive vehicle damage value to obtain target maintenance data, wherein the target maintenance data is used to perform maintenance processing on the target vehicle.

[0029] In some embodiments, before performing damage detection on the target damaged image using a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, the method further includes pre-training the vehicle damage assessment model, specifically including:

[0030] Obtain annotated vehicle damaged images;

[0031] Performing image enhancement and scaling processing on the annotated damaged vehicle image to obtain a sample damaged image;

[0032] Inputting the sample damaged image into the vehicle damage assessment model;

[0033] Performing damage detection on the sample damaged image by using the vehicle damage assessment model to obtain sample damage features;

[0034] Calculating the distance value between the damaged features of the samples by using the loss function of the vehicle damage assessment model;

[0035] The loss function is optimized according to the distance value to update the vehicle damage assessment model.

[0036] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a vehicle damage detection device, the device comprising:

[0037] An image acquisition module, used for acquiring a damaged image of a vehicle;

[0038] An image enhancement module, used for performing image enhancement processing on the damaged image of the vehicle to obtain an initial damaged image;

[0039] An image scaling module, used for scaling the initial damaged image according to preset scaling parameters to obtain a target damaged image;

[0040] A damage detection module is used to perform damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features;

[0041] A target damage category determination module, used to determine the target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle;

[0042] The damage degree calculation module is used to calculate the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree.

[0043] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program, when executed by the processor, implements the method described in the first aspect above.

[0044] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium used for computer-readable storage, and the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in the first aspect above.

[0045] The vehicle damage detection method and device, electronic device and storage medium proposed in the present application obtain a damaged vehicle image, perform image enhancement processing on the damaged vehicle image to obtain an initial damaged image, and perform scaling processing on the initial damaged image according to preset scaling parameters to obtain a target damaged image, thereby eliminating irrelevant information in the damaged vehicle image, restoring useful real information, enhancing the detectability of relevant information, and improving the image quality of the target damaged image; further, damage detection is performed on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features, and the target damage category is determined based on the vehicle damaged component features and the vehicle damaged position features, and the damage degree is calculated for the target damage category, the vehicle damaged component features, and the vehicle damaged state features to obtain the target damage degree, and the vehicle damage assessment model based on deep learning can more accurately and efficiently locate and identify the damaged parts and damage degrees of the vehicle, thereby improving the accuracy of vehicle damage detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a flow chart of a vehicle damage detection method provided in an embodiment of the present application;

[0047] Figure 2 yes Figure 1 Flow chart of step S101 in FIG.

[0048] Figure 3 is another flow chart of the vehicle damage detection method provided in an embodiment of the present application;

[0049] Figure 4yes Figure 1 Flow chart of step S104 in FIG.

[0050] Figure 5 yes Figure 1 Flow chart of step S105 in FIG.

[0051] Figure 6 yes Figure 1 Flow chart of step S106 in FIG.

[0052] Figure 7 is another flow chart of the vehicle damage detection method provided in an embodiment of the present application;

[0053] Figure 8 is a schematic diagram of the structure of a vehicle damage detection device provided in an embodiment of the present application;

[0054] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0058] First, some nouns involved in this application are analyzed:

[0059] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0060] Natural language processing (NLP): NLP uses computers to process, understand and apply human languages ​​(such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary subject between computer science and linguistics. It is often referred to as computational linguistics. Natural language processing includes grammatical analysis, semantic analysis, and text understanding. Natural language processing is often used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, public opinion analysis and opinion mining. It involves data mining related to language processing, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computing.

[0061] Information Extraction (NER): A text processing technology that extracts specified types of entity, relationship, event and other factual information from natural language text and forms structured data output. Information extraction is a technology that extracts specific information from text data. Text data is composed of some specific units, such as sentences, paragraphs, and chapters. Text information is composed of some small specific units, such as characters, words, phrases, sentences, paragraphs, or a combination of these specific units. Extracting noun phrases, names, place names, etc. from text data are all text information extraction. Of course, the information extracted by text information extraction technology can be various types of information.

[0062] Web crawler (also known as web spider, web robot, and more often called web chaser in the FOAF community): A web crawler is a program or script that automatically crawls the World Wide Web information according to certain rules.

[0063] Image enhancement: Enhance the useful information in the image. It can be a distortion process, and its purpose is to improve the visual effect of the image. For the application of a given image, it purposefully emphasizes the overall or local characteristics of the image, makes the originally unclear image clear or emphasizes certain interesting features, expands the difference between the features of different objects in the image, suppresses uninteresting features, improves image quality, enriches the amount of information, strengthens image interpretation and recognition, and meets the needs of certain special analysis.

[0064] Residual Network: Fully utilize all hierarchical features of the original LR image through residual dense blocks (RDB). For a very deep network, it is difficult and impractical to directly extract the output of each convolutional layer in the LR space. Residual dense blocks (RDB) are used as the building blocks of RDN. RDB contains densely connected layers and local feature fusion (LFF) with local residual learning (LRL). Residual dense blocks also support continuous memory between RDBs. The output of one RDB can directly access the layers of the next RDB, so that the state is continuously passed. Each convolutional layer of RDB can access all subsequent layers to pass the information that needs to be retained. LFF extracts local dense features by adaptively preserving information by connecting the previous RDB with the state of all previous layers of the current RDB. In addition, LFF achieves extremely high growth rates by stabilizing the training of larger networks. After extracting multiple layers of local dense features, global feature fusion (GFF) is further performed to adaptively preserve hierarchical features in a global manner. Each layer can directly access the original LR input, resulting in implicit deep supervised learning. The characteristics of residual networks are easy to optimize and can improve accuracy by increasing considerable depth. The residual block inside it uses skip connections to alleviate the gradient vanishing problem caused by increasing the depth of the deep neural network. The residual network is composed of a series of residual blocks. The residual block is divided into two parts: the direct mapping part and the residual part. The residual part is generally composed of two or three convolution operations.

[0065] Object Detection: The task of object detection is to find all the objects of interest in the image and determine their categories and locations. It is one of the core problems in the field of computer vision. The core problems of object detection include four categories, namely (1) Classification problem: that is, to which category the image in the picture (or a certain area) belongs. (2) Positioning problem: the object may appear at any position in the image. (3) Size problem: the object has various sizes. (4) Shape problem: the object may have various shapes. Object detection is divided into two major series: RCNN series and YOLO series. RCNN series is a representative algorithm based on region detection, and YOLO is a representative algorithm based on region extraction.

[0066] Image segmentation: Image segmentation is the technology and process of dividing an image into several specific regions with unique properties and proposing objects of interest. It is a key step from image processing to image analysis. Existing image segmentation methods are mainly divided into the following categories: threshold-based segmentation methods, region-based segmentation methods, edge-based segmentation methods, and segmentation methods based on specific theories. From a mathematical point of view, image segmentation is the process of dividing a digital image into non-overlapping regions. The image segmentation process is also a labeling process, that is, pixels belonging to the same region are assigned the same number.

[0067] Softmax classifier: The Softmax classifier is a generalization of the logistic regression classifier in the face of multiple classifications, and the output is the probability value belonging to different categories.

[0068] With the rapid increase in the number of cars, traffic collision accidents have increased rapidly, and more and more vehicles have been damaged. To this end, insurance companies have launched auto insurance services to protect the safety of people's vehicles and property. When an insured vehicle is involved in a traffic accident, it is necessary to assess the damage to the damaged vehicle and determine the amount of auto insurance claims based on the worst damage to the vehicle. Therefore, vehicle damage assessment is a key link in claims.

[0069] At present, the judgment of vehicle damage mainly relies on manual estimation, which requires staff to conduct on-site inspection and judgment at the scene of the vehicle accident. Manual classification of damage by staff will take a lot of time and require a lot of labor costs. It is inefficient and not conducive to the rapid realization of auto insurance claims. In addition, staff need to classify different collected images and distinguish the damage to vehicle parts based on the images. It is easy to be affected by various subjective factors and cause false detection and missed detection of vehicle damage, which affects the judgment of the damage type and degree of damage to the vehicle, and the detection accuracy is not high. Therefore, how to improve the accuracy of vehicle damage detection has become a technical problem that needs to be solved urgently.

[0070] Based on this, the embodiments of the present application provide a vehicle damage detection method and device, an electronic device and a storage medium, aiming to improve the accuracy of vehicle damage detection.

[0071] The vehicle damage detection method and device, electronic device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the vehicle damage detection method in the embodiments of the present application is described.

[0072] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0073] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0074] The vehicle damage detection method provided in the embodiment of the present application relates to the field of artificial intelligence technology. The vehicle damage detection method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the vehicle damage detection method, etc., but is not limited to the above forms.

[0075] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0076] Figure 1 is an optional flow chart of the vehicle damage detection method provided in an embodiment of the present application. Figure 1The method may include but is not limited to steps S101 to S106.

[0077] Step S101, obtaining a damaged vehicle image;

[0078] Step S102, performing image enhancement processing on the damaged vehicle image to obtain an initial damaged image;

[0079] Step S103, scaling the initial damaged image according to a preset scaling parameter to obtain a target damaged image;

[0080] Step S104, performing damage detection on the target damaged image by using a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features;

[0081] Step S105, determining the target damage category according to the characteristics of the damaged parts of the vehicle and the damaged position of the vehicle;

[0082] Step S106, calculating the damage degree of the target damage category, the characteristics of the damaged vehicle parts, and the characteristics of the damaged vehicle state to obtain the target damage degree.

[0083] Steps S101 to S106 shown in the embodiment of the present application acquire a damaged vehicle image, perform image enhancement processing on the damaged vehicle image, obtain an initial damaged image, and perform scaling processing on the initial damaged image according to preset scaling parameters to obtain a target damaged image, thereby eliminating irrelevant information in the damaged vehicle image, restoring useful real information, enhancing the detectability of relevant information, and improving the image quality of the target damaged image; performing damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features, and determining a target damage category based on the vehicle damaged component features and the vehicle damaged position features, calculating the damage degree of the target damage category, vehicle damaged component features, and vehicle damaged state features to obtain a target damage degree, and the vehicle damage assessment model based on deep learning can more accurately and efficiently locate and identify the damaged parts and damage degrees of the vehicle, thereby improving the accuracy of vehicle damage detection.

[0084] See also Figure 2 In some embodiments, step S101 may include but is not limited to steps S201 to S202:

[0085] Step S201, obtaining original video data, wherein the original video data is damaged video data of the target vehicle;

[0086] Step S202, segmenting the original video data to obtain a plurality of video frame images;

[0087] Step S203, comparing the video frame image with a preset reference image to obtain a damaged vehicle image.

[0088] In step S201 of some embodiments, a web crawler may be written to crawl data in a targeted manner after setting a data source, thereby obtaining raw video data, wherein the data source may be a preset historical damaged vehicle video library, or other sources. Alternatively, a camera or other imaging device may be used to shoot a video of the target vehicle from an all-round perspective, thereby obtaining damaged video data of the target vehicle, but the present invention is not limited thereto. It should be noted that the damaged video data contains image information within the visible range of the vehicle exterior and interior.

[0089] In step S202 of some embodiments, the original video data is segmented by image processing software such as Open CV to split the original video data into multiple original video segments, and then each frame of the original video segment is split to obtain multiple video frame images.

[0090] In step S203 of some embodiments, each video frame image is compared with a reference image, and video frame images with a similarity less than a preset similarity threshold are selected to obtain a damaged vehicle image, wherein the reference image is a standard vehicle image. The degree of proximity between the video frame image and the standard vehicle image can be determined by similarity comparison, thereby filtering video frame images that are relatively close to the standard vehicle image, and retaining video frame images that are significantly different from the standard vehicle image as damaged vehicle images.

[0091] In step S102 of some embodiments, data enhancement operations such as random cropping, random rotation, saturation adjustment, hue adjustment, and contrast adjustment may be performed on the damaged vehicle image by image processing software such as Open CV to obtain an initial damaged image.

[0092] In step S103 of some embodiments, the preset scaling parameters may be set according to actual conditions. For example, according to the preset scaling parameters, the initial damaged image may be scaled to an image of 800*800 size to obtain a target damaged image.

[0093] Through the above steps S102 and S103, irrelevant information in the damaged vehicle image can be eliminated, useful real information can be restored, the detectability of relevant information can be enhanced, and the image quality of the target damaged image can be improved.

[0094] See also Figure 3In some embodiments, before step S104, the vehicle damage detection method further includes pre-training a vehicle damage assessment model. The process of training the vehicle damage assessment model includes but is not limited to steps S301 to S306:

[0095] Step S301, obtaining an annotated vehicle damaged image;

[0096] Step S302, performing image enhancement and scaling processing on the annotated damaged vehicle image to obtain a sample damaged image;

[0097] Step S303, inputting the sample damaged image into the vehicle damage assessment model;

[0098] Step S304, performing damage detection on the sample damaged image through the vehicle damage assessment model to obtain the sample damage feature;

[0099] Step S305, calculating the distance value between the damaged features of the samples by using the loss function of the vehicle damage assessment model;

[0100] Step S306, optimizing the loss function according to the distance value to update the vehicle damage assessment model.

[0101] In step S301 of some embodiments, a plurality of annotated vehicle damaged images may be extracted from a preset vehicle damage database. The vehicle damage database may be obtained by manually annotating historical images of vehicle damage. Specifically, a rectangular frame is used to annotate the damaged form in each historical image of vehicle damage, and the damage category and degree of damage to which the damaged form belongs are recorded. Meanwhile, historical images that are difficult to distinguish the damaged category are removed to obtain a vehicle damage database. The vehicle damage database contains a plurality of annotated vehicle damaged images, and the vehicle damaged images are labeled with damage category and damage degree. Among them, the damage category may include scratches, scrapes, dents, wrinkles, dead folds, tears, missing, etc. The damage degree may be measured by the degree of deformation of the vehicle damage. Specifically, the damage degree may be graded according to slight damage, moderate damage, and severe damage, or other categories, but not limited thereto.

[0102] In step S302 of some embodiments, data enhancement operations such as random cropping, random rotation, saturation adjustment, hue adjustment, and contrast adjustment are performed on the labeled damaged vehicle image through image processing software such as Open CV, and then the labeled damaged vehicle image that has undergone image enhancement processing is scaled according to preset scaling parameters to obtain a sample damaged image.

[0103] In step S303 of some embodiments, the sample damaged image is input into the vehicle damage assessment model, which includes a residual network, a semantic segmentation network, and a target detection network. The residual network can be constructed based on the resnext101 model, and the residual network is mainly used to extract the damaged features of the vehicle; the semantic segmentation network can be constructed based on the SSDFPN model, and the semantic segmentation network is mainly used to segment the damaged features of different parts of the vehicle; the target detection network can be constructed based on the Seq-Bbox Matching model, and the target detection network is mainly used to locate the vehicle damage and determine the damaged position of the vehicle.

[0104] In step S304 of some embodiments, features of the sample damaged image are extracted through the residual network of the vehicle damage assessment model to obtain a sample damaged feature map, features belonging to different components on the sample damaged feature map are segmented through a semantic segmentation network to obtain sample segmented component features, and target detection is performed on the sample segmented component features through a target detection network to obtain sample damaged features.

[0105] In step S305 of some embodiments, the distance value between the sample damage features is calculated by the loss function of the vehicle damage assessment model, wherein the loss function of the vehicle damage assessment model can be expressed as shown in formula (1):

[0106] loss = 1 - IoU + R (B, B gt )Formula (1)

[0107] Among them, loss is the loss value, B gt is the target box of the damaged feature of the sample, R(B, B gt ) represents the penalty term of the damaged feature of the sample, IoU represents the position similarity of the damaged feature of the sample, and B is the prediction box of the damaged feature of the sample

[0108] In step S306 of some embodiments, when optimizing the loss function according to the distance value, the loss function can be continuously adjusted according to the relationship between the distance value and the preset distance threshold to improve the training effect of the model.

[0109] See also Figure 4 In some embodiments, the vehicle damage assessment model includes a residual network, a semantic segmentation network, and a target detection network. Step S104 may include but is not limited to steps S401 to S403:

[0110] Step S401, extracting features of the target damaged image through a residual network to obtain a local damaged feature map;

[0111] Step S402, performing image segmentation processing on the local damaged feature map through a semantic segmentation network to obtain vehicle segmentation component features;

[0112] Step S403, performing target detection on the vehicle segmented component features through a target detection network to obtain vehicle damage feature data.

[0113] In step S401 of some embodiments, the residual network includes a convolution layer and a pooling layer. The convolution layer is used to extract features of the target damaged image to capture the global features of the target damaged image and obtain a global damaged feature map. The pooling layer is used to pool the global damaged feature map to capture the local features of the target damaged image and obtain a local damaged feature map.

[0114] In step S402 of some embodiments, the local damaged feature map is upsampled through a semantic segmentation network to obtain a target feature map, and then multiple features of the target damaged feature map are feature fused to obtain a fused damaged feature map. Finally, the fused damaged feature map is decoded according to preset size parameters, and the fused damaged feature map is segmented into image features of multiple scales to obtain vehicle segmentation component features.

[0115] In step S403 of some embodiments, target detection is performed on each segmented vehicle component feature through a target detection network to generate multiple initial detection frames; the distance value between each two initial detection frames is calculated, and the initial detection frames are merged according to the distance value to obtain a target detection frame; finally, damage prediction processing is performed on the target detection frame to obtain multiple vehicle damage feature data such as vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features. For example, vehicle damaged component features may include sheet metal parts, glass, tires, etc.

[0116] Specifically, the distance value between the initial detection frames (i.e., the vehicle segmentation component features) can be calculated by a preset distance function, wherein the preset distance function can be expressed as shown in formula (2):

[0117]

[0118] Wherein, distance represents the distance value, and IoU represents the position similarity between the features of vehicle segmentation components. i ·Vctr j Represents the semantic similarity between the features of vehicle segmentation components; Dctr i ·Dctr jIndicates the similarity of the degree of damage between the features of two vehicle segmented components. This method can easily determine whether the damage of two vehicle segmented component features belongs to the same damaged feature, reduce the error caused by similar losses at different locations being confused as the same damaged feature, and thus improve the accuracy of vehicle damage detection.

[0119] See also Figure 5 In some embodiments, step S105 may also include but is not limited to steps S501 to S502:

[0120] Step S501, calculating the classification probability of the damaged vehicle parts and damaged vehicle location features using a preset prediction function to obtain a predicted probability value of each preset vehicle damage category;

[0121] Step S502: screening the preset vehicle damage categories according to the predicted probability values ​​to determine the target damage category.

[0122] In step S501 of some embodiments, the preset prediction function may be a softmax function, and the preset vehicle damage categories may include scratches, scrapes, dents, wrinkles, dead folds, tears, missing, etc. Specifically, a probability distribution may be created for each preset vehicle damage category through the softmax function to obtain a predicted probability value for each preset vehicle damage category.

[0123] In step S502 of some embodiments, the preset vehicle damage categories may be arranged in descending order according to the predicted probability values ​​of different preset vehicle damage categories, and one or more preset vehicle damage categories with larger predicted probability values ​​are selected as target damage categories. In other embodiments, the predicted probability value is also compared with a preset probability threshold, and the preset vehicle damage category with a predicted probability value greater than or equal to the probability threshold is selected as the target damage category, but the present invention is not limited thereto.

[0124] See also Figure 6 In some embodiments, step S106 further includes but is not limited to steps S601 to S602:

[0125] Step S601, assigning values ​​to the target damage category, the characteristics of the damaged vehicle parts, and the characteristics of the damaged vehicle status, respectively, according to a preset vehicle damage value comparison table, to obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the characteristics of the damaged vehicle parts, and a third vehicle damage value corresponding to the characteristics of the damaged vehicle status;

[0126] Step S602, calculating the damage degree according to the first vehicle damage value, the second vehicle damage value and the third vehicle damage value to obtain a target damage degree.

[0127] In step S601 of some embodiments, a preset vehicle damage comparison table is provided with corresponding vehicle damage values ​​for each preset vehicle damage category, vehicle damaged component, and vehicle damaged state. By consulting the vehicle damage comparison table, it is convenient to assign values ​​to the target damage category, the characteristics of the vehicle damaged component, and the characteristics of the vehicle damaged state, and obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the characteristics of the vehicle damaged component, and a third vehicle damage value corresponding to the characteristics of the vehicle damaged state. Specifically, the preset vehicle damage category may include scratches, scrapes, , dents, wrinkles, dead folds, tears, missing, the corresponding vehicle damage values ​​are set to 1, 1, 2, 2, 3, 5, 6. For example, when the target damage category is dents, the first vehicle damage value is 2; for the vehicle damage state feature, if the deformation caused by scratches and scratches is small, the vehicle damage value is set to 1, otherwise the vehicle damage value is 2; if the dent is a slight dent, the vehicle damage value is set to 1, otherwise the vehicle damage value is 2; the vehicle damage value of wrinkles and dead folds is 2; if the tear and missing are located at the edge or buckle position, the vehicle damage value is 1, otherwise the vehicle damage value is 2. For example, if a slight dent occurs, the third vehicle damage value is 1. For the vehicle damaged parts feature, the vehicle damaged parts may include sheet metal, glass, tires, etc. Different vehicle damage values ​​are set according to the cost of different parts. For example, the second vehicle damage value corresponding to sheet metal is 2. The second vehicle damage value corresponding to tires is 5, and so on.

[0128] In step S602 of some embodiments, the first vehicle damage value, the second vehicle damage value, and the third vehicle damage value obtained may be directly summed up, or the first vehicle damage value, the second vehicle damage value, and the third vehicle damage value may be weighted according to a preset weight ratio to obtain a vehicle damage value corresponding to the target damage degree, and according to the corresponding relationship between the vehicle damage value and the damage degree, it is determined whether the target damage degree belongs to light damage, moderate damage, or severe damage. This method can improve the accuracy of damage degree prediction.

[0129] See also Figure 7 In some embodiments, after step S106, the vehicle damage detection method may further include but is not limited to steps S701 to S703:

[0130] Step S701, extracting damaged area features from vehicle damage feature data;

[0131] Step S702, according to the target damage category, weighted calculation is performed on the damaged area characteristics and the target damage degree to obtain a comprehensive vehicle damage value;

[0132] Step S703, screening the preset reference maintenance data according to the comprehensive vehicle damage value to obtain target maintenance data, wherein the target maintenance data is used to perform maintenance processing on the target vehicle.

[0133] In step S701 of some embodiments, a damaged area feature in the vehicle damage feature data is obtained, and the damaged area feature may be the vehicle damaged area, wherein the vehicle damaged area may be obtained by detection using a size measurement tool.

[0134] In step S702 of some embodiments, for different target damage categories, different weight parameters are set for the damaged area feature and the target damage degree. For example, when the target damage category is scratches, the weight parameter of the damaged area feature is set larger, while the weight parameter of the target damage degree is set smaller. The comprehensive vehicle damage value is obtained by weighted calculation of the target damage degree and damaged area.

[0135] In step S703 of some embodiments, according to the comprehensive vehicle damage value and the target damage category, the target repair data that best meets the current needs is extracted from the preset multiple reference repair data. For example, if the current target damage category is scratches or scrapes, spray painting is selected as the target repair method, and the appropriate spraying material is selected according to the target repair method and the comprehensive vehicle damage value, and the damaged parts and damaged positions of the target vehicle are repaired according to the damaged area characteristics; if it is other damage categories, sheet metal repair plans of different degrees can be selected according to the comprehensive vehicle damage value. In this way, the damaged area and degree of damage of the vehicle can be combined to screen multiple repair plans, select the most appropriate target repair data, and repair the target vehicle according to the target repair data, thereby improving the repair efficiency and repair accuracy, and can also effectively reduce the repair cost.

[0136] The vehicle damage detection method of the embodiment of the present application obtains original video data, wherein the original video data is damaged video data of a target vehicle, performs segmentation processing on the original video data to obtain a damaged vehicle image, and can obtain image information of the damaged vehicle in a relatively comprehensive manner; performs image enhancement processing on the damaged vehicle image to obtain an initial damaged image; performs scaling processing on the initial damaged image according to a preset scaling parameter to obtain a target damaged image, and can eliminate irrelevant information in the damaged vehicle image, restore useful real information, enhance the detectability of relevant information, and improve the image quality of the target damaged image; performs damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features, and determines a target damage category based on the vehicle damaged component features and the vehicle damaged position features, calculates the damage degree of the target damage category, the vehicle damaged component features, and the vehicle damaged state features to obtain the target damage degree; and the vehicle damage assessment model based on deep learning can more accurately and efficiently locate and identify the damaged part and damage degree of the vehicle, thereby improving the accuracy of vehicle damage detection.

[0137] See also Figure 8 The embodiment of the present application further provides a vehicle damage detection device, which can implement the above-mentioned vehicle damage detection method. The vehicle damage detection device includes:

[0138] An image acquisition module 801 is used to acquire a damaged vehicle image;

[0139] An image enhancement module 802 is used to perform image enhancement processing on the damaged image of the vehicle to obtain an initial damaged image;

[0140] The image scaling module 803 is used to scale the initial damaged image according to preset scaling parameters to obtain a target damaged image;

[0141] The damage detection module 804 is used to perform damage detection on the target damaged image by using a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features;

[0142] The target damage category determination module 805 is used to determine the target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle;

[0143] The damage degree calculation module 806 is used to calculate the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree.

[0144] In some embodiments, the image acquisition module 801 includes:

[0145] A video data acquisition unit, used to acquire original video data, wherein the original video data is damaged video data of a target vehicle;

[0146] The video segmentation unit is used to segment the original video data to obtain a damaged vehicle image.

[0147] In some embodiments, the vehicle damage assessment model includes a residual network, a semantic segmentation network, and an object detection network, and the damage detection module 804 includes:

[0148] A feature extraction unit, used for extracting features of the target damaged image through a residual network to obtain a local damaged feature map;

[0149] An image segmentation unit is used to perform image segmentation processing on the local damaged feature map through a semantic segmentation network to obtain vehicle segmentation component features;

[0150] The target detection unit is used to perform target detection on the features of the vehicle segmented components through a target detection network to obtain vehicle damage feature data.

[0151] In some embodiments, the target damage category determination module 805 includes:

[0152] A prediction unit, used to calculate the classification probability of the vehicle damaged component characteristics and the vehicle damaged position characteristics through a preset prediction function to obtain a prediction probability value of each preset vehicle damage category;

[0153] The screening unit is used to screen the preset vehicle damage categories according to the predicted probability value to determine the target damage category.

[0154] In some embodiments, the damage degree calculation module 806 includes:

[0155] The assignment unit is used to assign values ​​to the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle according to a preset vehicle damage value comparison table, so as to obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the characteristics of the damaged parts of the vehicle, and a third vehicle damage value corresponding to the characteristics of the damaged state of the vehicle;

[0156] The damage degree calculation unit is used to calculate the damage degree according to the first vehicle damage value, the second vehicle damage value and the third vehicle damage value to obtain a target damage degree.

[0157] In some embodiments, the vehicle damage detection device further includes a model training module, and the model training module includes:

[0158] A marked image acquisition unit, used for acquiring a marked vehicle damaged image;

[0159] An image processing unit, used for performing image enhancement and scaling processing on the annotated damaged vehicle image to obtain a sample damaged image;

[0160] An image input unit, used for inputting a sample damaged image into a vehicle damage assessment model;

[0161] A damage detection unit, used to perform damage detection on a sample damaged image through a vehicle damage assessment model to obtain a sample damage feature;

[0162] A distance value calculation unit, used to calculate the distance value between the damaged features of the samples through the loss function of the vehicle damage assessment model;

[0163] The model optimization unit is used to optimize the loss function according to the distance value to update the vehicle damage assessment model.

[0164] In some embodiments, the vehicle damage detection device further includes a maintenance processing module, and the maintenance processing module includes:

[0165] A damaged area feature extraction unit, used to extract damaged area features from vehicle damage feature data;

[0166] A weighted calculation unit is used to perform weighted calculation on the damaged area characteristics and the target damage degree according to the target damage category to obtain a comprehensive vehicle damage value;

[0167] The reference maintenance data screening unit is used to screen the preset reference maintenance data according to the comprehensive vehicle damage value to obtain target maintenance data, wherein the target maintenance data is used to perform maintenance processing on the target vehicle.

[0168] The specific implementation of the vehicle damage detection device is basically the same as the specific implementation of the above-mentioned vehicle damage detection method, and will not be repeated here.

[0169] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the above-mentioned vehicle damage detection method is realized when the program is executed by the processor. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.

[0170] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0171] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0172] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the vehicle damage detection method of the embodiment of this application;

[0173] Input / output interface 903, used to implement information input and output;

[0174] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0175] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0176] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0177] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned vehicle damage detection method.

[0178] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0179] The vehicle damage detection method, vehicle damage detection device, electronic device and storage medium provided in the embodiments of the present application obtain original video data, wherein the original video data is damaged video data of a target vehicle, segment the original video data to obtain a damaged vehicle image, and can obtain the image information of the damaged vehicle in a relatively comprehensive manner; perform image enhancement processing on the damaged vehicle image to obtain an initial damaged image; perform scaling processing on the initial damaged image according to a preset scaling parameter to obtain a target damaged image, and can eliminate irrelevant information in the damaged vehicle image, restore useful real information, enhance the detectability of relevant information, and improve the image quality of the target damaged image; perform damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features; determine the target damage category based on the vehicle damaged component features and the vehicle damaged position features, calculate the damage degree of the target damage category, the vehicle damaged component features, and the vehicle damaged state features to obtain the target damage degree; and the vehicle damage assessment model based on deep learning can more accurately and efficiently locate and identify the damaged part and damage degree of the vehicle, thereby improving the accuracy of vehicle damage detection.

[0180] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0181] It can be understood by those skilled in the art that Figure 1-7 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0182] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0183] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0184] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0185] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

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

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

[0188] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0189] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0190] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A vehicle damage detection method, characterized in that: The method comprises: Acquire vehicle damage images; Performing image enhancement processing on the damaged image of the vehicle to obtain an initial damaged image; Scaling the initial damaged image according to a preset scaling parameter to obtain a target damaged image; Performing damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged location features, and vehicle damaged state features; Determining a target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle; Calculating the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree; The vehicle damage assessment model includes a residual network, a semantic segmentation network, and a target detection network. The vehicle damage assessment model trained in advance performs damage detection on the target damaged image to obtain vehicle damage feature data, including: Extracting features of the target damaged image through the convolution layer of the residual network to obtain a global damaged feature map of the target damaged image, and performing pooling processing on the global damaged feature map through the pooling layer of the residual network to obtain a local damaged feature map; Upsampling the local damaged feature map through the semantic segmentation network to obtain a target damaged feature map, performing feature fusion on multiple features of the target damaged feature map to obtain a fused damaged feature map, decoding the fused damaged feature map according to a preset size parameter, and segmenting the fused damaged feature map into image features of multiple scales to obtain vehicle segmentation component features; Performing target detection on each of the vehicle segmentation component features through the target detection network to obtain multiple initial detection frames, calculating the distance value between each two initial detection frames, merging the initial detection frames according to the distance value to obtain a target detection frame, and performing damage prediction on the target detection frame to obtain the vehicle damage feature data; The calculating the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree includes: According to a preset vehicle damage value comparison table, the target damage category, the vehicle damaged component characteristics, and the vehicle damaged state characteristics are assigned values ​​to obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the vehicle damaged component characteristics, and a third vehicle damage value corresponding to the vehicle damaged state characteristics; Calculating the degree of damage according to the first vehicle damage value, the second vehicle damage value, and the third vehicle damage value to obtain the target degree of damage; After calculating the damage degree of the target damage category, the characteristics of the damaged vehicle parts, and the characteristics of the damaged vehicle state to obtain the target damage degree, the method further includes: Extracting damaged area features from the vehicle damage feature data; According to the target damage category, weighted calculation is performed on the damaged area characteristics and the target damage degree to obtain a comprehensive vehicle damage value; The preset reference maintenance data is screened according to the comprehensive vehicle damage value to obtain target maintenance data, wherein the target maintenance data is used to perform maintenance processing on the target vehicle.

2. The vehicle damage detection method according to claim 1, characterized in that: The step of acquiring a damaged vehicle image comprises: Acquire original video data, wherein the original video data is damaged video data of the target vehicle; Segmenting the original video data to obtain a plurality of video frame images; The video frame image is compared with a preset reference image to obtain the damaged vehicle image.

3. The vehicle damage detection method according to claim 1, characterized in that: The determining the target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle includes: The classification probability of the damaged vehicle parts and the damaged vehicle location is calculated by a preset prediction function to obtain a prediction probability value of each preset vehicle damage category; The preset vehicle damage categories are screened according to the predicted probability values ​​to determine the target damage category.

4. The vehicle damage detection method according to any one of claims 1 to 3, characterized in that: Before performing damage detection on the target damaged image by using the pre-trained vehicle damage assessment model to obtain vehicle damage feature data, the method further includes pre-training the vehicle damage assessment model, specifically including: Obtain annotated vehicle damaged images; Performing image enhancement and scaling processing on the annotated damaged vehicle image to obtain a sample damaged image; Inputting the sample damaged image into the vehicle damage assessment model; Performing damage detection on the sample damaged image by using the vehicle damage assessment model to obtain sample damage features; Calculating the distance value between the damaged features of the samples by using the loss function of the vehicle damage assessment model; The loss function is optimized according to the distance value to update the vehicle damage assessment model.

5. A vehicle damage detection device, characterized in that: The device comprises: An image acquisition module, used for acquiring a damaged image of a vehicle; An image enhancement module, used for performing image enhancement processing on the damaged image of the vehicle to obtain an initial damaged image; An image scaling module, used for scaling the initial damaged image according to preset scaling parameters to obtain a target damaged image; A damage detection module is used to perform damage detection on the target damaged image through a pre-trained vehicle damage assessment model to obtain vehicle damage feature data, wherein the vehicle damage feature data includes vehicle damaged component features, vehicle damaged position features, and vehicle damaged state features; A target damage category determination module, used to determine the target damage category according to the characteristics of the damaged parts of the vehicle and the characteristics of the damaged position of the vehicle; A damage degree calculation module is used to calculate the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain a target damage degree; The vehicle damage assessment model includes a residual network, a semantic segmentation network, and a target detection network. The vehicle damage assessment model trained in advance performs damage detection on the target damaged image to obtain vehicle damage feature data, including: Extracting features of the target damaged image through the convolution layer of the residual network to obtain a global damaged feature map of the target damaged image, and performing pooling processing on the global damaged feature map through the pooling layer of the residual network to obtain a local damaged feature map; Upsampling the local damaged feature map through the semantic segmentation network to obtain a target damaged feature map, performing feature fusion on multiple features of the target damaged feature map to obtain a fused damaged feature map, decoding the fused damaged feature map according to a preset size parameter, and segmenting the fused damaged feature map into image features of multiple scales to obtain vehicle segmentation component features; Performing target detection on each of the vehicle segmentation component features through the target detection network to obtain multiple initial detection frames, calculating the distance value between each two initial detection frames, merging the initial detection frames according to the distance value to obtain a target detection frame, and performing damage prediction on the target detection frame to obtain the vehicle damage feature data; The calculating the damage degree of the target damage category, the characteristics of the damaged parts of the vehicle, and the characteristics of the damaged state of the vehicle to obtain the target damage degree includes: According to a preset vehicle damage value comparison table, the target damage category, the vehicle damaged component characteristics, and the vehicle damaged state characteristics are assigned values ​​to obtain a first vehicle damage value corresponding to the target damage category, a second vehicle damage value corresponding to the vehicle damaged component characteristics, and a third vehicle damage value corresponding to the vehicle damaged state characteristics; Calculating the degree of damage according to the first vehicle damage value, the second vehicle damage value, and the third vehicle damage value to obtain the target degree of damage; The vehicle damage detection device further includes a maintenance processing module, and the maintenance processing module includes: A damaged area feature extraction unit, used to extract damaged area features from vehicle damage feature data; A weighted calculation unit is used to perform weighted calculation on the damaged area characteristics and the target damage degree according to the target damage category to obtain a comprehensive vehicle damage value; The reference maintenance data screening unit is used to screen the preset reference maintenance data according to the comprehensive vehicle damage value to obtain target maintenance data, wherein the target maintenance data is used to perform maintenance processing on the target vehicle.

6. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the vehicle damage detection method according to any one of claims 1 to 4 is realized.

7. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the vehicle damage detection method described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Image detection method and device

    CN113177926A

  • Vehicle damage detection method, device and equipment and storage medium

    CN113780435A

  • System and method for analyzing damage to vehicle

    WO2021201349A1

Cited By

  • Systems and methods for inspection of unstructured data to improve acceptability of data processed using a computer vision model

    US12579801B2

  • Systems and methods for inspection of unstructured data

    US20250191365A1