A method and system for identifying sagging

By acquiring coating film images under different light sources and comparing them using machine learning models, the problem of being unable to identify sagging in the existing technology is solved, and the accurate identification of sagging parts is achieved and the quality of the coating film is guaranteed.

CN118334039BActive Publication Date: 2024-09-10CHENGDU AIRCRAFT INDUSTRY GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773512.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-10
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing coating defect detection system based on machine vision cannot accurately identify sagging parts, resulting in unstable coating film quality and unsightly appearance.

Method used

The surface image of the coating film illuminated by the first light source and the second light source is acquired through an image collector, the target image is synthesized based on gray value calculation and preset conditions, and a machine learning model is used to compare with the sag database to determine whether there is sagging.

Benefits of technology

It achieves accurate identification of sagging parts on the surface of objects, improves coating quality and identification accuracy, reduces the scope of judgment, and improves efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334039B
    Figure CN118334039B
Patent Text Reader

Abstract

The present invention discloses a sag identification method and system, which belongs to the field of image recognition technology, and comprises the following steps: S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when a first light source irradiates the coating, and the second image is an image of the coating surface acquired when a second light source irradiates the coating; S2, acquiring a target image through a processor based on the first image and the second image, wherein the target image is an image synthesized by pixels in the first image and the second image that meet a first preset condition and a second preset condition; S3, comparing the target image with a sag image in a sag database of a processor through a machine learning model, and determining whether the target image has sag. The present invention can accurately identify the sag part of the surface of an object and ensure the quality of the coating.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a sag recognition method and system. Background Art

[0002] Surface coating is a common method to prevent surface wear. During the coating process, the paint often flows downward and bulges on the surface of the coating, forming sagging. The causes of sagging may include improper construction, low construction environment temperature, low viscosity of the paint, or uneven surface of the product being painted. Sagging can lead to unstable performance of the paint film, unsightly appearance of the paint film, and uneven thickness of the paint film. Therefore, it is particularly important to accurately identify the sagging parts on the surface of the object.

[0003] A Chinese patent document with publication number CN113030108A and publication date June 25, 2021 discloses a coating defect detection system and method based on machine vision, wherein the detection system includes: an image acquisition module, an image acquisition card, an industrial computer computing platform, a workpiece conveying device, a screening execution device, and a detection model based on a neural network; the image acquisition module includes a brightness compensation device, an industrial camera, and a camera clamping device; the workpiece conveying device is responsible for transferring the workpiece to be inspected to the inspection area and the screening area; the image acquisition card is connected to the industrial camera and the industrial computer computing platform; the industrial computer computing platform randomly crops and scales the collected coating inspection image of the workpiece to be inspected and inputs it into the neural network-based detection model in real time to output the detection classification result, and converts the classification result into a control signal and sends it to the screening execution device.

[0004] The detection method includes the following steps:

[0005] s1. The workpiece conveying device conveys the workpiece to be inspected to the area to be inspected below the image acquisition module;

[0006] s2. The image acquisition module acquires the coating image on the surface of the workpiece to be inspected, and transmits the acquired coating surface image to the industrial computer computing platform through the image acquisition card;

[0007] s3. The program is run on the industrial computer computing platform to pre-process the currently read coating image, and load it into the coating surface defect detection neural network model deployed on the industrial computer computing platform to perform real-time identification and classification of the coating defect type of the current workpiece;

[0008] s4. The detection model feeds back the classification results in real time to the screening execution device connected to the industrial computer computing platform to screen the current workpieces in batches.

[0009] The coating defect detection system and method based on machine vision disclosed in the patent document can automatically detect, classify and screen out surface defects of workpiece coatings, and has the advantages of easy implementation and deployment, saving labor costs and fast detection speed. However, it cannot accurately identify the sagging parts on the surface of the object and cannot guarantee the quality of the coating. Summary of the invention

[0010] In order to overcome the above-mentioned defects of the prior art, the present invention provides a sag identification method and system, which can accurately identify the sag parts on the surface of an object to ensure the quality of the coating.

[0011] The present invention is achieved through the following technical solutions:

[0012] A sag identification method comprises the following steps:

[0013] S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source;

[0014] S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition;

[0015] S3. Compare the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag.

[0016] In S1, the first light source is a light source that irradiates the coating film from a first direction. The first direction refers to a direction from the right side of the image collector to the coating film surface. The angle between the first direction and the plane where the coating film is located is 20-88°.

[0017] In S1, the second light source is a light source that illuminates the coating from a second direction. The second direction refers to a direction from the left side of the image collector toward the coating surface. The angle between the second direction and the plane where the coating is located is 20-88°.

[0018] In S2, obtaining the target image through the processor refers to calculating the grayscale values ​​based on the first image and the second image, obtaining the grayscale values ​​corresponding to the first image and the grayscale values ​​corresponding to the second image, determining a first set that meets the first preset condition based on the grayscale values ​​corresponding to the first image, determining a second set that meets the first preset condition based on the grayscale values ​​corresponding to the second image, and determining a third set and a fourth set that meet the second preset condition based on the first set and the second set, respectively, and merging the pixels of the third set and the fourth set to generate the target image.

[0019] In S2, the first preset condition specifically refers to that the gray value of the pixel is less than a first preset threshold, and the first preset threshold is determined by the gray value statistical data of each pixel in the first image and the second image.

[0020] In S2, the second preset condition specifically refers to that the horizontal coordinates or vertical coordinates of the pixel points in the third set or the fourth set are continuous, and the difference between the horizontal coordinates or vertical coordinates of the first and last coordinate points of the pixel points with continuous horizontal coordinates or vertical coordinates in the third set or the fourth set is greater than the second preset threshold, and the value of the second preset threshold is 5mm.

[0021] The S2 also includes a third preset condition, and the pixel points in the third set and the fourth set that meet the third preset condition are merged to generate a target image.

[0022] The third preset condition specifically means that there is a pixel point in the third set that corresponds to a pixel point in the fourth set whose horizontal and vertical coordinate differences are both less than a third preset threshold, and the value of the third preset threshold is 10 mm.

[0023] A sag identification system includes a processor, and also includes an electrically connected image collector for collecting images of aircraft surface coatings, a first acquisition module for acquiring a first image and a second image, a second acquisition module for acquiring a target image based on the first image and the second image, and a judgment module for judging whether the target image has sags, a first light source is arranged on one side of the image collector, a second light source is arranged on the other side of the image collector, the image collector is electrically connected to the processor, the first image and the second image are both collected by the image collector, and the first image and the second image have different illumination information.

[0024] The image collector is an infrared camera or a grayscale camera.

[0025] The first image and the second image are visible light images, infrared light images or grayscale images.

[0026] The first image is represented by a first vector, each element of the first vector is the gray value of each pixel, and the second image is represented by a second vector, each element of the second vector is the gray value of each pixel.

[0027] The beneficial effects of the present invention are mainly manifested in the following aspects:

[0028] 1. The present invention obtains a first image and a second image respectively through an image collector, obtains a target image through a processor based on the first image and the second image, and then compares the target image with a sag image in a sag database of the processor through a machine learning model to determine whether the target image has sag. Compared with the prior art, the present invention can accurately identify the sag location on the surface of an object to ensure the quality of the coating.

[0029] 2. The present invention, by setting the first light source and the second light source, makes the grayscale value of the pixel corresponding to the negative side of the sag lower, and the grayscale value of the pixel corresponding to the positive side of the sag higher, which can increase the contrast between the positive side, the negative side and the smooth paint surface in the image, facilitate obtaining a clearer sag location, and improve recognition accuracy.

[0030] 3. The present invention obtains a first image illuminated by a first light source and a second image illuminated by a second light source through an image collector. The first light source and the second light source are respectively arranged on both sides of the image collector to obliquely illuminate the paint coating. The pixels in the first image and the second image are classified based on the grayscale value, thereby determining the target image where sagging areas may exist.

[0031] 4. The present invention can eliminate the interference of irrelevant pixels in the first image and the second image, thereby greatly improving the accuracy of identifying sag, by calculating the grayscale values ​​of the first image and the second image and finally determining the target image based on the first preset condition, the second preset condition and the third preset condition.

[0032] 5. The present invention narrows the scope of judgment by judging whether there is sagging in the target image determined by the first image and the second image, thereby improving the efficiency and accuracy of judging the sagging position. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:

[0034] Figure 1 It is a flowchart of the present invention. DETAILED DESCRIPTION

[0035] Example 1

[0036] See also Figure 1 , a sag identification method, comprising the following steps:

[0037] S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source;

[0038] S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition;

[0039] S3. Compare the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag.

[0040] This embodiment is the most basic implementation method. The first image and the second image are respectively acquired through an image collector, and the target image is acquired through a processor based on the first image and the second image. Then, the target image is compared with the sag image in the processor sag database through a machine learning model to determine whether there is sag in the target image. Compared with the existing technology, it can accurately identify the sag location on the surface of the object to ensure the quality of the coating.

[0041] Example 2

[0042] See also Figure 1 , a sag identification method, comprising the following steps:

[0043] S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source;

[0044] S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition;

[0045] S3. Compare the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag.

[0046] In S1, the first light source is a light source that irradiates the coating film from a first direction. The first direction refers to a direction from the right side of the image collector to the coating film surface. The angle between the first direction and the plane where the coating film is located is 20°.

[0047] In S1, the second light source is a light source that irradiates the coating film from a second direction. The second direction refers to a direction from the left side of the image collector to the coating film surface. The angle between the second direction and the plane where the coating film is located is 20°.

[0048] This embodiment is a preferred implementation method. By setting the first light source and the second light source, the grayscale value of the pixel corresponding to the negative side of the sag will be lower, and the grayscale value of the pixel corresponding to the positive side of the sag will be higher. This can increase the contrast between the positive side, the negative side and the smooth paint surface in the image, which is conducive to obtaining clearer sag areas and improving recognition accuracy.

[0049] Example 3

[0050] See also Figure 1 , a sag identification method, comprising the following steps:

[0051] S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source;

[0052] S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition;

[0053] S3. Compare the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag.

[0054] In S1, the first light source is a light source that irradiates the coating film from a first direction. The first direction refers to a direction from the right side of the image collector to the coating film surface. The angle between the first direction and the plane where the coating film is located is 60°.

[0055] In S1, the second light source is a light source that irradiates the coating film from a second direction. The second direction refers to a direction from the left side of the image collector to the coating film surface. The angle between the second direction and the plane where the coating film is located is 60°.

[0056] In S2, obtaining the target image through the processor refers to calculating the grayscale values ​​based on the first image and the second image, obtaining the grayscale values ​​corresponding to the first image and the grayscale values ​​corresponding to the second image, determining a first set that meets the first preset condition based on the grayscale values ​​corresponding to the first image, determining a second set that meets the first preset condition based on the grayscale values ​​corresponding to the second image, and determining a third set and a fourth set that meet the second preset condition based on the first set and the second set, respectively, and merging the pixels of the third set and the fourth set to generate the target image.

[0057] This embodiment is another preferred implementation manner, in which a first image under the illumination of a first light source and a second image under the illumination of a second light source are respectively acquired through an image collector, the first light source and the second light source are respectively arranged on both sides of the image collector, obliquely irradiating the paint coating, and pixels in the first image and the second image are classified based on grayscale values, thereby being able to determine a target image where sagging areas may exist.

[0058] Example 4

[0059] See also Figure 1 , a sag identification method, comprising the following steps:

[0060] S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source;

[0061] S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition;

[0062] S3. Compare the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag.

[0063] In S1, the first light source is a light source that irradiates the coating film from a first direction. The first direction refers to a direction from the right side of the image collector to the coating film surface. The angle between the first direction and the plane where the coating film is located is 88°.

[0064] In S1, the second light source is a light source that irradiates the coating film from a second direction. The second direction refers to a direction from the left side of the image collector to the coating film surface. The angle between the second direction and the plane where the coating film is located is 88°.

[0065] In S2, obtaining the target image through the processor refers to calculating the grayscale values ​​based on the first image and the second image, obtaining the grayscale values ​​corresponding to the first image and the grayscale values ​​corresponding to the second image, determining a first set that meets the first preset condition based on the grayscale values ​​corresponding to the first image, determining a second set that meets the first preset condition based on the grayscale values ​​corresponding to the second image, and determining a third set and a fourth set that meet the second preset condition based on the first set and the second set, respectively, and merging the pixels of the third set and the fourth set to generate the target image.

[0066] In S2, the first preset condition specifically refers to that the gray value of the pixel is less than a first preset threshold, and the first preset threshold is determined by the gray value statistical data of each pixel in the first image and the second image.

[0067] In S2, the second preset condition specifically refers to that the horizontal coordinates or vertical coordinates of the pixel points in the third set or the fourth set are continuous, and the difference between the horizontal coordinates or vertical coordinates of the first and last coordinate points of the pixel points with continuous horizontal coordinates or vertical coordinates in the third set or the fourth set is greater than the second preset threshold, and the value of the second preset threshold is 5mm.

[0068] The S2 also includes a third preset condition, and the pixel points in the third set and the fourth set that meet the third preset condition are merged to generate a target image.

[0069] The third preset condition specifically means that there is a pixel point in the third set that corresponds to a pixel point in the fourth set whose horizontal and vertical coordinate differences are both less than a third preset threshold, and the value of the third preset threshold is 10 mm.

[0070] This embodiment is another preferred implementation manner, which can eliminate the interference of irrelevant pixels in the first image and the second image by calculating the grayscale values ​​of the first image and the second image, and finally determining the target image based on the first preset condition, the second preset condition and the third preset condition, thereby greatly improving the accuracy of identifying sags.

[0071] Example 5

[0072] A sag recognition system comprises a processor, an electrically connected image collector for collecting images of aircraft surface coatings, a first acquisition module for acquiring a first image and a second image, a second acquisition module for acquiring a target image based on the first image and the second image, and a judgment module for judging whether the target image has sags, a first light source is arranged on one side of the image collector, a second light source is arranged on the other side of the image collector, the image collector is electrically connected to the processor, the first image and the second image are both collected by the image collector, and the illumination information of the first image and the second image is different.

[0073] The image collector is an infrared camera or a grayscale camera.

[0074] The first image and the second image are visible light images, infrared light images or grayscale images.

[0075] The first image is represented by a first vector, each element of the first vector is the gray value of each pixel, and the second image is represented by a second vector, each element of the second vector is the gray value of each pixel.

[0076] This embodiment is another preferred implementation mode. By judging whether there is sagging in the target image determined by the first image and the second image, the judgment scope is narrowed, thereby improving the efficiency and accuracy of judging the sagging position.

[0077] The merging and generating of the target image further includes registering the pixel points in the third set and the fourth set that meet the third preset condition. Pixel point registration refers to determining the correspondence between the pixel points in the third set and the fourth set based on the positions of the feature points in the pixel points in the third set and the fourth set that meet the third preset condition.

[0078] The feature points are pixel points at prominent positions of the shapes that meet the third preset condition in the third set and the fourth set, such as pixel points at the positions of the troughs or peaks in the curve. The feature points that meet the third preset condition in the third set and the fourth set appear in pairs, and the feature points that meet the third preset condition in the third set and the fourth set are directly determined manually using a point-to-point method.

[0079] The processor establishes a mathematical transformation model of the pixel points in the third set and the fourth set that meet the third preset condition based on the correspondence between the feature points.

[0080] Based on the established mathematical conversion model, the processor converts the pixel points in the third set and the fourth set that meet the third preset condition into the same coordinate system and completes the coordinate transformation. The same coordinate system is the coordinate system of the first image or the coordinate system of the second image.

[0081] The processor places the pixel points in the third set and the fourth set after coordinate transformation that meet the third preset condition in one image at the same time to generate a target image, or directly superimposes the pixel points in the third set and the fourth set after coordinate transformation that meet the third preset condition to generate a target image.

[0082] Machine learning models are trained using supervised learning:

[0083] The historical illumination information and the historical target images under the illumination are used as training samples, and the training samples are used as a data set for training the machine learning model. The historical illumination information refers to the relevant information of the first light source and the second light source when the historical target image is obtained, such as the light source intensity and the illumination direction angle. The label of the historical target image is a parameter indicating whether it sags or not, including sag and no sag, which are represented by "0" and "1" or "Y" and "N" respectively. The label of the historical target image is obtained by manual annotation or based on historical data.

Claims

1. A sag identification method, characterized in that: The following steps are involved: S1, respectively acquiring a first image and a second image through an image collector, wherein the first image is an image of the coating surface acquired when the coating is irradiated by a first light source, and the second image is an image of the coating surface acquired when the coating is irradiated by a second light source; S2. Acquire a target image through a processor based on the first image and the second image, where the target image is an image synthesized by pixels in the first image and the second image that meet the first preset condition and the second preset condition; S3, comparing the target image with the sag images in the processor sag database through a machine learning model to determine whether the target image has sag; In the S2, obtaining the target image through the processor means calculating the grayscale values ​​based on the first image and the second image, obtaining the grayscale values ​​corresponding to the first image and the grayscale values ​​corresponding to the second image, determining the first set that meets the first preset condition based on the grayscale values ​​corresponding to the first image, determining the second set that meets the first preset condition based on the grayscale values ​​corresponding to the second image, and determining the third set and the fourth set that meet the second preset condition based on the first set and the second set, respectively, and merging the pixels of the third set and the fourth set to generate the target image; the first preset condition specifically means that the grayscale value of the pixel is less than the first preset threshold, and the first preset threshold is determined by the statistical data of the grayscale values ​​of each pixel in the first image and the second image; the second preset condition specifically means that the horizontal coordinates or vertical coordinates of the pixel points in the third set or the fourth set are continuous, and the difference between the horizontal coordinates or vertical coordinates of the first and last coordinate points in the pixel points with continuous horizontal coordinates or vertical coordinates in the third set or the fourth set is greater than the second preset threshold, and the value of the second preset threshold is 5mm; The S2 also includes a third preset condition, which merges the pixel points in the third set and the fourth set that meet the third preset condition to generate a target image; the third preset condition specifically means that there is a pixel point in the third set that corresponds to a pixel point in the fourth set whose horizontal and vertical coordinate differences are both less than a third preset threshold, and the value of the third preset threshold is 10 mm.

2. A sag identification method according to claim 1, characterized in that: In S1, the first light source is a light source that irradiates the coating film from a first direction. The first direction refers to a direction from the right side of the image collector to the coating film surface. The angle between the first direction and the plane where the coating film is located is 20-88°.

3. A sagging identification method according to claim 1, characterized in that: In S1, the second light source is a light source that illuminates the coating from a second direction. The second direction refers to a direction from the left side of the image collector toward the coating surface. The angle between the second direction and the plane where the coating is located is 20-88°.

4. A sagging identification method according to claim 1, characterized in that: A sag recognition system is used, which includes a processor, an electrically connected image collector for collecting images of aircraft surface coatings, a first acquisition module for acquiring a first image and a second image, a second acquisition module for acquiring a target image based on the first image and the second image, and a judgment module for judging whether there is sag in the target image. A first light source is provided on one side of the image collector, and a second light source is provided on the other side of the image collector. The image collector is electrically connected to the processor, and the first image and the second image are both collected by the image collector, and the illumination information of the first image and the second image is different.

5. A sagging identification method according to claim 4, characterized in that: The image collector is an infrared camera or a grayscale camera.