Image detection method, system and equipment based on coating stone impact resistance test result
The image detection method is used to quantitatively analyze the stone impact resistance test results of the coating sample, which solves the problem of being unable to accurately determine the damage area and number, reduces human errors, and improves the accuracy and detail of the evaluation.
Patent Information
- Application Number
- CN202410710321.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
AI Technical Summary
In the evaluation of the stone chip resistance of the coating sample, the damaged area and number of damaged areas cannot be accurately obtained, resulting in human errors caused by visual sensory discrimination and inaccurate evaluation results.
Provide an image detection method based on the stone impact resistance test results of the coating. By obtaining the stone impact resistance test result image, image preprocessing, morphology analysis and classification statistics are performed to obtain damage image feature data, determine the damage situation, and based on the damage Evaluate the situation to reduce human error.
It realizes the quantitative test result rating of the stone impact resistance test of coating samples, reduces human errors, improves the accuracy of analysis, and provides detailed damage data to support the improvement of test methods.
Smart Images

Figure CN118628451A
Abstract
Description
Technical Field
[0001] The present application relates to a method for evaluating the anti-stone impact performance of a coating sample, and in particular to an image detection method, system and equipment based on the results of a coating anti-stone impact test. Background Art
[0002] In the process of evaluating the anti-stone impact performance of coating samples, it is necessary to refer to the evaluation standard map and compare the stone impact test results. According to the different characteristics of different coatings, the coating surface will leave damage of varying sizes, and many of the damage dents have not caused coating peeling. The coating evaluation reference diagram only marks the approximate distribution of coating peeling, and only gives an evaluation sample, which is easy to cause visual errors when compared with actual test results. After each test is completed, it is impossible to obtain specific data on the damaged area and the number of damaged areas. The test results are directly stored as test photos. The comparative analysis of the test results of different coating samples relies on visual sensory discrimination, lacks analysis tools, and is prone to human errors. Summary of the invention
[0003] Based on this, it is necessary to provide an image detection method, system and equipment based on the coating anti-stone impact test results to address the above-mentioned technical problems, which can solve the problems of human errors and inaccurate evaluation results caused by relying on visual senses to distinguish test results in the anti-stone impact performance experiment of the coating sample due to the inability to obtain specific damage conditions such as the damaged area and the number of damaged parts.
[0004] In a first aspect, the present application provides an image detection method based on the results of a coating anti-stone impact test, the method comprising:
[0005] Obtaining an anti-stone impact test result image, adjusting the orientation of the anti-stone impact test result image, and selecting any paint film morphology rectangular area of interest from the image through a user interface for image preprocessing;
[0006] Performing morphological analysis on the rectangular area of the pre-treated paint film to obtain damaged image feature data;
[0007] Classify and count the damaged image feature data to obtain damage classification information;
[0008] The damage condition is determined based on the damage classification information, and the coating stone impact resistance test results are evaluated based on the damage condition.
[0009] Optionally, the selecting any paint film morphology rectangular area of interest from the image for image preprocessing includes:
[0010] Select any rectangular area of the paint film morphology in the image to enlarge the image, and obtain an enlarged rectangular area image of the damaged coating;
[0011] For the enlarged rectangular area image, RGB color space conversion is performed with the goal of minimizing the difference between the color image content and the grayscale image content, and the contrast of the enlarged rectangular area image is enhanced by brightness adjustment.
[0012] Optionally, the analyzing the pre-processed paint film morphology rectangular area to obtain damaged image feature data includes:
[0013] According to the length unit conversion, measure the distance between any two points in the rectangular area image of the paint film morphology;
[0014] Pick up the color value of any point as the damage feature point;
[0015] Call opencv to locate the damaged features in the rectangular area image of the paint film morphology, and the pictures with consistent frame differences and pictures with a preset threshold;
[0016] Record the current frame image data and the previous frame image data near the damaged feature point respectively;
[0017] The current frame image data and the previous frame image data near the damaged feature point of the current picture are translated and registered, and the corrected image data are respectively subjected to differential processing and sum processing to generate differentially processed data and summed processed data.
[0018] Optionally, the classifying and counting the damaged image feature data to obtain damage classification information includes:
[0019] Classify the historical damaged image feature data to obtain the damage type; construct a damage classification model corresponding to the damage type; input the acquired damaged image feature data into the damage classification model to determine the damage classification situation.
[0020] Optionally, classifying the historical damaged image feature data to obtain the damage type includes:
[0021] Damaged image feature data classification variables x1, x2;
[0022] Based on the principle of logistic regression, a logistic regression function, a cost function and a gradient of the cost function of the classification variable of the damaged image feature data are defined;
[0023] Set the iteration conditions, use the gradient descent method, and iteratively calculate the optimal solution of the weight coefficient according to the gradient of the cost function;
[0024] Substitute the optimal solution into the logistic regression function, calculate the weight coefficient of each variable, and obtain the damage type.
[0025] Optionally, the logistic regression function is determined by the following formula:
[0026]
[0027] Where, W = (w1, w2), X = (x1, x2); w1, w2 are the weight coefficients of the classification variables x1 and x2 of the damaged image feature data respectively; T represents transposition;
[0028] The cost function is determined by the following formula:
[0029]
[0030] In the formula, W is the weight coefficient vector, N represents the sample size, and x n Represents the value of the classification variable of the nth damaged image feature data, y n Indicates that x is obtained according to the regression function n The corresponding value of .
[0031] The gradient equation of the cost function is determined by the following formula:
[0032]
[0033] In the formula, t represents the number of iterations, and t+1 represents the t+1th iteration;
[0034] Set convergence conditions The weight coefficient is calculated iteratively by the following formula:
[0035]
[0036] In the formula, η represents the distance moved in the opposite direction of the cost function gradient each time;
[0037] If the weight coefficient is W t+1 hour Then W t+1 As the optimal solution, the iteration stops.
[0038] Optionally, determining the damage condition based on the damage classification information includes:
[0039] Get the number, area, perimeter, and perimeter / area ratio of different types of damage;
[0040] The minimum circumscribed circle of the damaged part is drawn, and the area of the circle is compared with the damaged area to obtain the roundness data;
[0041] Statistics are collected on the damage in the roundness data, and a data distribution histogram of a single damage is drawn;
[0042] Conduct statistical analysis on historical damage situations of the same type and manufacturer, draw a data distribution histogram of the overall damage situation, analyze the mean, variance and singular value of the statistical data, compare the single damage situation with the overall damage situation, and obtain the damage situation; it includes the total damage area value, the single largest damaged area value, and the damage quantity parameters.
[0043] Optionally, the evaluation of the coating anti-stone impact test results based on the damage condition includes:
[0044] According to the total damaged area value, the single largest damaged area value, the damaged quantity parameters, and the pre-set classification limit values and indicator priorities, the test results are automatically graded to eliminate the errors caused by human reference to standard legends;
[0045] Marking information on all damaged parts in the anti-stone impact test image to obtain area and perimeter marks;
[0046] According to user needs, select and filter the damage conditions of concern according to the damage condition data;
[0047] Binarize the damaged image and convert it into a black-and-white image, and display the black-and-white distribution image of the screened damaged area; obtain test data;
[0048] The quantitative test data obtained from the same batch of coating samples with the same performance are used as measurement indicators, and the accuracy of the coating stone impact resistance test results is regularly judged according to the preset time scale.
[0049] In a second aspect, the present application provides an image detection system based on the results of a coating anti-stone impact test, comprising:
[0050] A processing module, used for obtaining an anti-stone impact test result image, adjusting the orientation of the anti-stone impact test result image, and selecting any paint film morphology rectangular area of interest from the image through a user interface for image preprocessing;
[0051] An analysis module is used to perform morphological analysis on the pre-processed paint film morphology rectangular area to obtain damaged image feature data;
[0052] An acquisition module is used to classify and count the damaged image feature data to obtain damage classification information;
[0053] The detection and evaluation module is used to determine the damage situation based on the damage classification information, and to evaluate the results of the coating stone impact resistance test based on the damage situation.
[0054] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0055] The above-mentioned image detection method, system and equipment based on the results of the anti-stone impact test of the coating first obtain the anti-stone impact test result image, adjust the orientation of the anti-stone impact test result image, select any rectangular area of the paint film morphology of interest from the image through the user interface for image preprocessing, and perform morphological analysis on the preprocessed rectangular area of the paint film morphology to obtain the damaged image feature data; compared with visual observation under ordinary daylight, the image features are more obvious. Secondly, the damaged image feature data is classified and counted to obtain damage classification information; the damage situation is determined based on the damage classification information, and the coating anti-stone impact test results are evaluated based on the damage situation. The test result image is quantified to support test evaluation and test data analysis, and the test result rating can be automatically obtained. Intelligent grading and judgment of the anti-stone impact test results is realized to reduce human errors. By specifying the quantitative test data results of the coating sample, it is judged whether there is a deviation in the anti-stone impact test.
[0056] The image detection method of the coating anti-stone impact test result provided by the present invention has accurate regional segmentation and flexible operation. By extracting the damaged feature image from the anti-stone impact test result image, the image is transformed in color and brightness to improve the ability to analyze details. The color value of any point can be picked up, and the distance between any two points can be measured. The damaged feature image is classified, processed and statistically analyzed to obtain information such as the area size, perimeter, number, perimeter / area ratio, roundness, distribution histogram, etc. of the damaged area, and the historical data is stored and analyzed. The obtained test data can provide a large amount of data support for the modification of the test method, such as replacing the type of new impact pellets, adjusting the impact airflow pressure, etc. The problem of human error and inaccurate evaluation results caused by the inability to obtain specific damage conditions such as the damaged area and the number of damaged parts in the anti-stone impact performance experiment of the coating sample and the visual sense to distinguish the test results is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flow chart of an image detection method based on the results of a coating anti-stone impact test in one embodiment;
[0058] Figure 2 is a schematic diagram of a black and white image of a damaged area in one embodiment;
[0059] Figure 3 A statistical histogram of roundness data in one embodiment;
[0060] Figure 4 is a histogram of the area distribution of damaged regions in one embodiment;
[0061] Figure 5 It is a structural block diagram of an image detection system based on the results of a coating anti-stone impact test in one embodiment;
[0062] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0063] 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.
[0064] The image detection method, system and device based on the results of the coating anti-stone impact test provided in the embodiments of the present application are mainly used in the coating sample adhesion test evaluation. The method can be applied to a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc.
[0065] Embodiment 1: In one embodiment, as Figure 1 As shown, the following specific implementation scheme provides an image detection method based on the results of the coating anti-stone impact test, the method comprising:
[0066] S101 obtains an anti-stone impact test result image, adjusts the orientation of the anti-stone impact test result image, and selects any paint film morphology rectangular area of interest from the image through a user interface for image preprocessing;
[0067] S102 performs morphological analysis on the pre-processed paint film morphology rectangular area to obtain damaged image feature data;
[0068] S103 classifies and counts the damaged image feature data to obtain damage classification information;
[0069] S104 determines the damage condition based on the damage classification information, and evaluates the coating stone impact resistance test result based on the damage condition.
[0070] In this embodiment, step S101 selects any paint film morphology rectangular area of interest from the image for image preprocessing, including:
[0071] Select any rectangular area of the paint film morphology in the image to enlarge the image, and obtain an enlarged rectangular area image of the damaged coating;
[0072] For the enlarged rectangular area image, RGB color space conversion is performed with the goal of minimizing the difference between the color image content and the grayscale image content, and the contrast of the enlarged rectangular area image is enhanced by brightness adjustment.
[0073] Specifically, the image of the anti-stone impact test result is obtained, and the photo of the anti-stone impact test result is adjusted to the front view orientation or the photo of the front view orientation is obtained by shooting the sample in parallel with the front view orientation; from the anti-stone impact test result image, through the user interface, by the mouse click-drag-release click control, any rectangular area of interest is selected, and the area is enlarged, so that the tested damaged area of the coating or any paint film morphology of interest can be obtained;
[0074] In the above embodiment, for the above-mentioned enlarged rectangular area or the entire image, red, green, blue or grayscale image conversion is performed to increase or decrease the brightness and enhance the image contrast, which is beneficial to the overall image morphology analysis or the detailed morphology analysis after any magnification. Compared with visual observation under ordinary daylight, the image features are more obvious.
[0075] In this embodiment, step S102 analyzes the pre-processed paint film morphology rectangular area, and obtains damaged image feature data including:
[0076] According to the length unit conversion, measure the distance between any two points in the rectangular area image of the paint film morphology;
[0077] Pick up the color value of any point as the damage feature point;
[0078] Call opencv to locate the damaged features in the rectangular area image of the paint film morphology, and the pictures with consistent frame differences and pictures with a preset threshold;
[0079] Record the current frame image data and the previous frame image data near the damaged feature point respectively;
[0080] The current frame image data and the previous frame image data near the damaged feature point of the current picture are translated and registered, and the corrected image data are respectively subjected to differential processing and sum processing to generate differentially processed data and summed processed data.
[0081] In this embodiment, the damaged image feature data is classified and counted in step S103 to obtain damage classification information, including: classifying the historical damaged image feature data to obtain the damage type; constructing a damage classification model corresponding to the damage type; inputting the acquired damaged image feature data into the damage classification model to determine the damage classification situation.
[0082] In the above embodiment, the historical damaged image feature data is classified to obtain the damage type, including:
[0083] Damaged image feature data classification variables x1, x2;
[0084] Based on the principle of logistic regression, a logistic regression function, a cost function and a gradient of the cost function of the classification variable of the damaged image feature data are defined;
[0085] Set the iteration conditions, use the gradient descent method, and iteratively calculate the optimal solution of the weight coefficient according to the gradient of the cost function;
[0086] Substitute the optimal solution into the logistic regression function, calculate the weight coefficient of each variable, and obtain the damage type.
[0087] Wherein, the logistic regression function is determined by the following formula:
[0088]
[0089] Where, W = (w1, w2), X = (x1, x2); w1, w2 are the weight coefficients of the classification variables x1 and x2 of the damaged image feature data respectively; T represents transposition;
[0090] The cost function is determined by the following formula:
[0091]
[0092] In the formula, W is the weight coefficient vector, N represents the sample size, and x n Represents the value of the classification variable of the nth damaged image feature data, y n Indicates that x is obtained according to the regression function n The corresponding value of .
[0093] The gradient equation of the cost function is determined by the following formula:
[0094]
[0095] In the formula, t represents the number of iterations, and t+1 represents the t+1th iteration;
[0096] Set convergence conditions The weight coefficient is calculated iteratively by the following formula:
[0097]
[0098] In the formula, η represents the distance moved in the opposite direction of the cost function gradient each time;
[0099] If the weight coefficient is W t+1 hour Then W t+1 As the optimal solution, the iteration stops.
[0100] In this embodiment, step S104 determines the damage condition based on the damage classification information, including:
[0101] Get the number, area, perimeter, and perimeter / area ratio of different types of damage;
[0102] The minimum circumscribed circle of the damaged part is drawn, and the area of the circle is compared with the damaged area to obtain the roundness data, such as Figure 3 As shown;
[0103] Statistics are collected on the damage in the roundness data, and a data distribution histogram of a single damage is drawn, such as Figure 4 As shown;
[0104] Conduct statistical analysis on the historical damage of the same type and the same manufacturer, draw a data distribution histogram of the overall damage, analyze the mean, variance and singular value of the statistical data, compare the single damage with the overall damage, and obtain the damage situation; it includes the total damage area value, the single largest damage area value, and the damage quantity parameter. The above-mentioned damage information and other related charts can be stored in Excel and other files.
[0105] In this embodiment, step S104 evaluates the coating anti-stone impact test result based on the damage condition, including:
[0106] According to the total damaged area value, the single largest damaged area value, the damaged quantity parameters, and the pre-set classification limit values and indicator priorities, the test results are automatically graded to eliminate the errors caused by human reference to standard legends;
[0107] Marking information on all damaged parts in the anti-stone impact test image to obtain area and perimeter marks;
[0108] According to user needs, select and filter the damage conditions of concern according to the damage condition data;
[0109] The damaged image is binarized and converted into a black and white image, and the black and white distribution image of the damaged area after screening is displayed; Figure 2 shown.
[0110] Obtain test data; use the quantitative test data obtained from the same batch of coating samples with the same performance as the measurement indicator, and regularly judge whether the coating stone impact resistance test results are accurate based on the preset time scale.
[0111] Optionally, the evaluation of the coating anti-stone impact test results can be obtained using a pre-established damage feature model. The damage feature model is established based on an initial model of a neural network structure, using pre-collected anti-stone impact test data and the artificial visual evaluation case information in the anti-stone impact test standard corresponding to the anti-stone impact test data as training samples, and the model is obtained through training. It has the data analysis function of the artificial visual evaluation case in the anti-stone impact test standard, has realized intelligent judgment of the test results, and outputs the evaluation results of the coating anti-stone impact test results.
[0112] Embodiment 2: Based on the above content, a specific embodiment is provided, and the specific implementation steps are as follows:
[0113] Obtain images of the anti-stone impact test results through mobile phone cameras or industrial cameras;
[0114] This method can adjust the photo of the anti-stone impact test result to the front view by selecting the four corner points of the rectangular shape of the coating sample, or can use parallel front view to shoot the sample to obtain the photo of the front view;
[0115] First, a coating damage area is selected from the anti-stone impact test result image, and any rectangular area of interest is selected through the user interface by mouse click-drag-release click control;
[0116] For the above-mentioned enlarged rectangular area or the whole image that has not been selected, red, green, blue or grayscale image conversion is performed to increase or decrease the brightness and enhance the image contrast, which is beneficial to the overall image morphology analysis or the detailed morphology analysis after any enlargement. Compared with visual observation under ordinary daylight, the image features are more obvious;
[0117] You can pick up the color value of any point;
[0118] The distance between any two points can be measured;
[0119] Then, by extracting the damaged image data, the damage conditions are classified; wherein the damage conditions include the number, area, perimeter, perimeter / area ratio, roundness, etc. of the damaged parts; the damage conditions are counted, and a distribution histogram of the data of a single damage condition is drawn;
[0120] Conduct statistical analysis on the historical damage of the same type and manufacturer, draw the distribution histogram of all historical data, analyze the mean, variance and singular value of the statistical data, and compare the single damage with the overall damage; at the same time, all damage information and charts can be stored in Excel and other files;
[0121] In addition, the damage characteristic model includes the analysis data model of the manual visual evaluation case in the anti-stone impact test standard; by comparing the data with the computer, an intelligent judgment is made on the test results, and the test results are automatically rated, eliminating the sensory errors caused by manual reference to the standard legend;
[0122] Furthermore, the damaged parts in the anti-stone impact test image or in the designated area of interest are marked with the area and perimeter of the damaged parts; the damaged parts of interest can be selected according to the damage data according to the user's requirements, such as only focusing on the damaged parts with a damage area greater than a designated value, and only marking the area and perimeter of these places;
[0123] In addition to generating images of different contrasts and enhancing detail resolution as mentioned above, the image can be binarized and converted into a black and white image, such as Figure 2 . Only the distribution of the selected damaged parts is displayed, and compared with the images of the cases of artificial visual evaluation in the anti-stone impact test standard, and artificial visual sensory comparison and judgment are carried out;
[0124] Finally, the obtained test big data provides a lot of data support for the modification of the test method, and the quantitative test data obtained from the same batch of coating samples with the same performance can be used as a measurement indicator to regularly judge whether the test results are accurate, so as to avoid the loss of striking sharpness due to excessive use of impact pellets. Based on the quantitative test result data, the anti-stone impact test itself can be evaluated and improved.
[0125] Based on the same inventive concept, the embodiment of the present application also provides an image detection system based on the results of the coating anti-stone impact test for realizing the image detection method based on the results of the coating anti-stone impact test. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme described in the above method, so the specific limitations in one or more of the image detection embodiments based on the results of the coating anti-stone impact test provided below can refer to the limitations of the image detection method based on the results of the coating anti-stone impact test above, and will not be repeated here.
[0126] In one embodiment, the present invention also provides an image detection system based on the results of the coating anti-stone impact test, such as Figure 5 As shown, it includes: a processing module 11, an analysis module 12, an acquisition module 13 and a detection and evaluation module 14; wherein:
[0127] The processing module 11 is used to obtain the anti-stone impact test result image, and after adjusting the orientation of the anti-stone impact test result image, select any paint film morphology rectangular area of interest from the image through the user interface to perform image preprocessing;
[0128] An analysis module 12 is used to perform morphological analysis on the pre-processed paint film morphology rectangular area to obtain damage image feature data;
[0129] The acquisition module 13 is used to classify and count the damaged image feature data to obtain damage classification information;
[0130] The detection and evaluation module 14 is used to determine the damage situation based on the damage classification information, and evaluate the coating anti-stone impact test results based on the damage situation.
[0131] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image detection based on the results of the coating anti-stone impact test is realized. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0132] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0134] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An image detection method based on the results of a coating anti-stone impact test, characterized in that: The method comprises: Obtaining an anti-stone impact test result image, adjusting the orientation of the anti-stone impact test result image, and selecting any paint film morphology rectangular area of interest from the image through a user interface for image preprocessing; Performing morphological analysis on the rectangular area of the pre-treated paint film to obtain damaged image feature data; Classify and count the damaged image feature data to obtain damage classification information; The damage condition is determined based on the damage classification information, and the coating stone impact resistance test results are evaluated based on the damage condition.
2. The method according to claim 1, characterized in that The step of selecting any paint film morphology rectangular region of interest from the image for image preprocessing includes: Select any rectangular area of the paint film morphology in the image to enlarge the image, and obtain an enlarged rectangular area image of the damaged coating; For the enlarged rectangular area image, RGB color space conversion is performed with the goal of minimizing the difference between the color image content and the grayscale image content, and the contrast of the enlarged rectangular area image is enhanced by brightness adjustment.
3. The method according to claim 1, characterized in that The analysis of the pre-processed paint film morphology rectangular area to obtain damaged image feature data includes: According to the length unit conversion, measure the distance between any two points in the rectangular area image of the paint film morphology; Pick up the color value of any point as the damage feature point; Call opencv to locate the damaged features in the rectangular area image of the paint film morphology, and the pictures with consistent frame differences and pictures with a preset threshold; Record the current frame image data and the previous frame image data near the damaged feature point respectively; The current frame image data and the previous frame image data near the damaged feature point of the current picture are translated and registered, and the corrected image data are respectively subjected to differential processing and sum processing to generate differentially processed data and summed processed data.
4. The method according to claim 1, characterized in that The classification and statistics of the damaged image feature data to obtain damage classification information includes: Classify the historical damaged image feature data to obtain the damage type; construct a damage classification model corresponding to the damage type; input the acquired damaged image feature data into the damage classification model to determine the damage classification situation.
5. The method according to claim 4, characterized in that The classification of the historical damaged image feature data to obtain the damage type includes: Damaged image feature data classification variables x1, x2; Based on the principle of logistic regression, a logistic regression function, a cost function and a gradient of the cost function of the classification variable of the damaged image feature data are defined; Set the iteration conditions, use the gradient descent method, and iteratively calculate the optimal solution of the weight coefficient according to the gradient of the cost function; Substitute the optimal solution into the logistic regression function, calculate the weight coefficient of each variable, and obtain the damage type.
6. The method according to claim 5, characterized in that The logistic regression function is determined by the following formula: Where, W = (w1, w2), X = (x1, x2); w1, w2 are the weight coefficients of the classification variables x1 and x2 of the damaged image feature data respectively; T represents transposition; The cost function is determined by the following formula: In the formula, W is the weight coefficient vector, N represents the sample size, and x n Represents the value of the classification variable of the nth damaged image feature data, y n Indicates that x is obtained according to the regression function n The corresponding value of . The gradient equation of the cost function is determined by the following formula: In the formula, t represents the number of iterations, and t+1 represents the t+1th iteration; Set convergence conditions The weight coefficient is calculated iteratively by the following formula: In the formula, η represents the distance moved in the opposite direction of the cost function gradient each time; If the weight coefficient is W t+1 hour Then W t+1 As the optimal solution, the iteration stops.
7. The method according to claim 1, characterized in that Determining the damage condition based on the damage classification information includes: Get the number, area, perimeter, and perimeter / area ratio of different types of damage; The minimum circumscribed circle of the damaged part is drawn, and the area of the circle is compared with the damaged area to obtain the roundness data; Statistics are collected on the damage in the roundness data, and a data distribution histogram of a single damage is drawn; Conduct statistical analysis on historical damage situations of the same type and manufacturer, draw a data distribution histogram of the overall damage situation, analyze the mean, variance and singular value of the statistical data, compare the single damage situation with the overall damage situation, and obtain the damage situation; it includes the total damage area value, the single largest damaged area value, and the damage quantity parameters.
8. The method according to claim 1, characterized in that The evaluation of the coating anti-stone impact test results based on the damage condition includes: According to the total damaged area value, the single largest damaged area value, the damaged quantity parameters, and the pre-set classification limit values and indicator priorities, the test results are automatically graded to eliminate the errors caused by human reference to standard legends; Marking information on all damaged parts in the anti-stone impact test image to obtain area and perimeter marks; According to user needs, select and filter the damage conditions of concern according to the damage condition data; Binarize the damaged image and convert it into a black-and-white image, and display the black-and-white distribution image of the screened damaged area; obtain test data; The quantitative test data obtained from the same batch of coating samples with the same performance are used as measurement indicators, and the accuracy of the coating stone impact resistance test results is regularly judged according to the preset time scale.
9. An image detection system based on the results of coating anti-stone impact test, characterized in that: include: A processing module, used for obtaining an anti-stone impact test result image, adjusting the orientation of the anti-stone impact test result image, and selecting any paint film morphology rectangular area of interest from the image through a user interface for image preprocessing; An analysis module is used to perform morphological analysis on the pre-processed paint film morphology rectangular area to obtain damaged image feature data; An acquisition module is used to classify and count the damaged image feature data to obtain damage classification information; The detection and evaluation module is used to determine the damage situation based on the damage classification information, and to evaluate the results of the coating stone impact resistance test based on the damage situation.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Precipitation classification method and system
CN107807907A
Vehicle damage feature detection method and device, computer equipment and storage medium
CN111666990A
Assembly defect detection quality grading method and system
CN113567446A
Media sorting device, media sorting program, recording medium, media transaction device, and media sorting system
WO2015136764A1
Cited By
Automatic detection method and equipment for coating test panel
CN120984572A
A method and apparatus for automated detection of paint panels
CN120984572B
