Spreading flatness judgment method and system based on image edge detection and machine learning

Through image edge detection and machine learning, the flatness of ceramic 3D printing paving materials is automatically determined, which solves the problem of high resource consumption of manual inspection in ceramic 3D printing, and achieves efficient and accurate paving material defect judgment and automated control.

CN118608477AInactive Publication Date: 2024-09-06TECH & ENG CENT FOR SPACE UTILIZATION CHINESE ACAD OF SCI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410709434.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN118608477A
    Figure CN118608477A
Patent Text Reader

Abstract

The invention discloses a spreading flatness judgment method and system based on image edge detection and machine learning. The method comprises the following steps: S1, collecting a manufacturing surface image of ceramic additive manufacturing equipment after spreading; detecting traces on the image through an edge detection algorithm; s2, acquiring a surface slice image of the paving material of the ceramic additive manufacturing equipment, and acquiring edge information of a curing area by adopting the edge detection algorithm; s3, carrying out expansion operation on the solidified edge by adopting an expansion convolution kernel, wherein the solidified edge is obviously thickened after expansion; s4, subtracting the edge trace of the slice from the edge trace of the spread material, and setting an element smaller than 0 in an obtained two-dimensional matrix as 0; s5, dividing the image according to a certain grid; and S6, judging the defect type of the trace in the image. According to the method, the features are manually designed based on the image processing method, the early-stage data accumulation process can be greatly reduced, the features are extracted from a small amount of spreading defect data, and resource consumption is reduced.
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 edge detection, and in particular to a method and system for judging the flatness of paving materials based on image edge detection and machine learning. Background Art

[0002] With the development of 3D printing technology in my country, the research on online monitoring technology of the printing process has gradually received more attention. Existing technical means mainly judge whether there is an abnormality in the 3D printing process by collecting sound signals, thermal signals and optical signals. In the process of ceramic 3D printing, due to the high viscosity of the slurry used, various paving defects are prone to occur. In order to improve the yield of ceramic blanks, it is necessary to timely judge the flatness of the paving surface, and take compensation measures in time when the uneven surface of the paving is detected, so as to form a closed-loop control of the printing process.

[0003] In the process of ceramic additive manufacturing, the viscosity of ceramic slurry is high, and it is easy for the surface flatness of the paving to be poor. In current engineering applications, this situation is generally detected by manual visual inspection. There are three main types of uneven paving surfaces: surface scratches, surface material shortages, and body collapse. Among these three situations, surface scratches have relatively little impact on the molding process, while surface material shortages and body collapse will directly lead to failure of the molding process. Therefore, it is necessary to judge the paving surface conditions that may lead to these two different consequences. Existing technologies require a large number of images of the paving surface to be collected when making judgments, and manual marking of paving defects in the images requires a lot of manpower and material resources. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for judging the flatness of paving materials based on image edge detection and machine learning, so as to solve the above-mentioned problems existing in the prior art.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for judging the flatness of paving materials based on image edge detection and machine learning comprises the following steps:

[0007] S1. Collect the manufacturing surface image of the ceramic additive manufacturing equipment after paving, divide the image into several image blocks, and classify each image block; detect the traces on the image through the edge detection algorithm;

[0008] S2, obtaining a surface slice image of the material laid by the ceramic additive manufacturing equipment, and also using an edge detection algorithm to obtain edge information of the solidified area;

[0009] S3, using the dilated convolution kernel to dilate the solidified edge. After dilation, the solidified edge becomes significantly thicker, which can more accurately cover the solidification trace information in the paving image.

[0010] S4, subtracting the edge trace of the slice from the edge trace of the paving material, and setting the elements less than 0 in the obtained two-dimensional matrix to 0, thereby eliminating the traces caused by the curing of the slurry in the paving material image;

[0011] S5, dividing the image into certain grids;

[0012] S6. Project the highlighted pixels in the image after edge detection onto the X-axis and the Y-axis respectively, and then concatenate the two projected vectors to generate a feature vector; input the generated feature vector into a classification model to determine the defect type of the trace in the image.

[0013] In some specific embodiments, the edge detection algorithm is specifically:

[0014] For a three-channel image, it is first grayed out; then the grayed image is Gaussian filtered, and the filtered image uses an operator to detect the gradient of each pixel and its neighboring pixels. If the gradient is greater than the threshold, the pixel is judged to be an edge point; finally, the output edge Figure 2 The pixel value of edge pixels is 255, and the pixel value of background and internal pixels is 0.

[0015] In some specific embodiments, the grayscale formula is:

[0016] I gray =0.299×I R +0.587×I G +0.114×I B

[0017] Among them, I gray Represents the grayscale pixel value, I R ,I G ,I B Respectively represent the red, green and blue channel pixel values ​​in the original image.

[0018] In some specific embodiments, Gaussian filtering is performed with the formula:

[0019]

[0020] Where G(x, y) represents the Gaussian function and σ represents the filter standard deviation.

[0021] In some specific embodiments, the operators include: Sobel, Laplace operator and deep learning edge detection method.

[0022] In some specific embodiments, the image grid division in step S5 is specifically as follows: the image is divided equally along the X-axis and the Y-axis; after the equal division, the image is projected along the X-axis and the Y-axis, and each edge pixel point is accumulated in the corresponding grid axis to generate a one-dimensional vector of a certain length.

[0023] A material flatness judgment system based on image edge detection and machine learning based on the same concept includes: an industrial camera, a light source, a host computer, a projection optical machine, a power supply and an image acquisition card;

[0024] The storage battery is connected to the industrial camera to provide electric energy for the industrial battery. The image acquisition card is arranged inside the host computer to acquire monitoring images and transmit the images to the host computer.

[0025] The host computer collects and stores the data collected by the image acquisition card and performs data analysis and processing.

[0026] In some specific embodiments, it also includes: a manufacturing platform; an industrial camera is arranged above the manufacturing platform.

[0027] In some specific embodiments, after the industrial camera acquires the monitoring image of the optical system, the image processing technology is used to correct the image, and the side view exposure image is corrected to the front view angle.

[0028] In some specific embodiments, the specific method of image processing technology to correct the image is: calculate the correction matrix between the side view image and the front view image through a pair of standard images. According to the properties of plane projective mapping, a plane projective transformation is a linear transformation of its homogeneous vectors in 3D. This linear transformation relationship can be represented by a non-singular 3x3 matrix:

[0029]

[0030] This method uses optical projection to mark the printing area, and then uses image processing methods to calculate the coordinates of the four corner points of the exposure area. These four coordinate values ​​are combined with the corner point coordinates of the true image to establish a set of equations to calculate the transformation matrix. The transformation matrix is ​​then applied to the original side view image to complete the correction from the side view image to the front view image.

[0031] The beneficial effects of the present invention are:

[0032] The present invention discloses a method and system for judging the flatness of paving materials based on image edge detection and machine learning, comprising the following steps: collecting a manufacturing surface image after paving of ceramic additive manufacturing equipment, dividing the image into a number of image blocks, and classifying each image block; detecting traces on the image by an edge detection algorithm; obtaining a surface slice image of paving materials of ceramic additive manufacturing equipment, and also adopting an edge detection algorithm to obtain edge information of a solidified area; using an expansion convolution kernel to expand the solidified edge, after which the solidified edge becomes significantly thicker, and the solidified trace information in the paving material image can be more accurately covered; subtracting the slice edge trace from the paving material edge trace, and setting the elements less than 0 in the obtained two-dimensional matrix to 0, thereby eliminating the traces generated by the solidification of the slurry in the paving material image; dividing the image according to a certain grid; inputting the generated feature vector into a classification model to determine the defect type of the trace in the image. The artificial design feature based on the image processing method proposed by the method can greatly reduce the process of early data accumulation, extract features from a small amount of paving material defect data, and reduce resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of a method for judging the flatness of paving materials based on image edge detection and machine learning of the present invention;

[0034] Figure 2 It is a simplified algorithm flow chart of a paving material flatness judgment method based on image edge detection and machine learning of the present invention;

[0035] Figure 3 It is a schematic diagram of correction from a side view image to a front view image of a paving material flatness judgment method based on image edge detection and machine learning of the present invention;

[0036] Figure 4 It is a structural schematic diagram of a paving material flatness judgment system based on image edge detection and machine learning of the present invention. DETAILED DESCRIPTION

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

[0038] In the process of ceramic photocuring additive manufacturing, different paving defects will leave different traces on the manufacturing surface, which can be captured and classified by a visible light camera. In the manufacturing process, the traces on the manufacturing surface can be divided into two categories: traces caused by normal solidification of the slurry and traces caused by defects. In the present invention, it is necessary to first use the sliced ​​graphics of the manufacturing model to remove the solidification traces on the image, and the remaining traces are random traces caused by defects on the paving surface. In the present invention, these random traces are projected along the X-axis and Y-axis of the image respectively, and the projected vectors are spliced ​​into a one-dimensional vector, and then each feature vector is classified by a machine learning classification method to determine the type of defect. In summary, the technical route given by the present invention is as follows:

[0039] Reference Figure 1 , Figure 2 , Figure 3 and Figure 4 A method for judging the flatness of paving materials based on image edge detection and machine learning is shown, comprising the following steps:

[0040] S1. Collect the manufacturing surface image of the ceramic additive manufacturing equipment after paving, divide the image into several image blocks, classify each image block, and detect the traces on the image through the edge detection algorithm. It should be noted here that the image is divided into several image blocks. (The edge detection algorithm includes but is not limited to the Canny operator, Sobel operator, deep learning edge detection method, etc.).

[0041] S2. Obtain a surface slice image of the material laid by the ceramic additive manufacturing equipment, and also use an edge detection algorithm to obtain edge information of the solidified area.

[0042] S3. Use the dilated convolution kernel to dilate the solidified edge. After dilation, the solidified edge becomes significantly thicker, which can more accurately cover the solidification trace information in the paving image.

[0043] S4. Subtract the slicing edge trace from the paving edge trace, and set the elements less than 0 in the obtained two-dimensional matrix to 0, so as to eliminate the traces caused by the slurry solidification in the paving image.

[0044] S5, dividing the image into certain grids;

[0045] S6. Project the highlighted pixels in the image after edge detection onto the X-axis and Y-axis respectively, and then concatenate the two projected vectors to generate a feature vector. Input the generated feature vector into a classification model (support vector machine, random model, deep learning, etc.) to determine the defect type of the trace in the image.

[0046] In some specific embodiments, the edge detection algorithm is specifically:

[0047] For a three-channel image, it is first grayed out. Then the grayed image is Gaussian filtered. The filtered image uses an operator to detect the gradient between each pixel and the neighboring pixels. If the gradient is greater than the threshold, the pixel is judged as an edge point. Alternatively, the edge in the image is detected through deep learning methods (such as HED, pidinet and other deep learning networks).

[0048] Finally, the output edge Figure 2 The pixel value of edge pixels is 255, and the pixel value of background and internal pixels is 0.

[0049] In some specific embodiments, the grayscale formula is:

[0050] I gray =0.299×I R +0.587×I G +0.114×I B

[0051] Among them, I gray Represents the grayscale pixel value, I R ,I G ,I B Respectively represent the pixel values ​​of the red, green and blue channels in the original image. For a single-channel grayscale image, the grayscale process can be omitted.

[0052] In some specific embodiments, Gaussian filtering is performed with the formula:

[0053]

[0054] Where G(x, y) represents the Gaussian function and σ represents the filter standard deviation.

[0055] In some specific embodiments, the operators include: Sobel, Laplace operator and deep learning edge detection method. The traces on the image are detected by various edge detection algorithms (including but not limited to Canny operator, Sobel operator, deep learning edge detection method, etc.).

[0056] In some specific embodiments, the image grid division in step S5 is specifically as follows: the image is divided equally along the X-axis and the Y-axis; after the equal division, the image is projected along the X-axis and the Y-axis, and each edge pixel point is accumulated in the corresponding grid axis to generate a one-dimensional vector of a certain length.

[0057] In this embodiment, the image grid division in step S5 is specifically as follows: the image is divided into 80 equal parts along the X-axis and the Y-axis. After the equal division, the image is projected along the X-axis and the Y-axis, and each edge pixel point is accumulated in the corresponding grid axis to generate a one-dimensional vector with a length of 160. In this embodiment, the image is divided into a certain grid, for example, the image is divided into 80 equal parts along the X-axis and the Y-axis at the same time. After the equal division, the image is projected along the X-axis and the Y-axis, and each edge pixel point is accumulated in the corresponding grid axis to generate a one-dimensional vector with a length of 160.

[0058] A paving flatness judgment system based on image edge detection and machine learning based on the same concept includes: an industrial camera, a light source, a host computer, a projection optical machine, a power supply and an image acquisition card. The power supply is connected to the industrial camera to provide power to the industrial battery. The image acquisition card is arranged inside the host computer for collecting monitoring images and transmitting the images to the host computer. The host computer collects and stores the data collected by the image acquisition card and performs data analysis and processing. In some specific embodiments, it also includes: a manufacturing platform; the industrial camera is arranged above the manufacturing platform.

[0059] In some specific embodiments, after the industrial camera acquires the monitoring image of the optical system, the image processing technology is used to correct the image, and the side view exposure image is corrected to the front view angle.

[0060] In some specific embodiments, the specific method of correcting an image using image processing technology is: after the monitoring camera acquires the monitoring image of the optical system, the image processing technology is used to correct the image, and the side view exposure image is corrected to the front view angle.

[0061] Image correction is to calculate the correction matrix between the side view image and the front view image through a standard image. According to the properties of plane projection mapping, a plane projection transformation is a linear transformation of its homogeneous vectors in 3D. This linear transformation relationship can be expressed by a non-singular 3x3 matrix:

[0062]

[0063] This method uses optical projection to mark the printing area, and then uses image processing methods to calculate the coordinates of the four corner points of the exposure area. These four coordinate values ​​are combined with the corner point coordinates of the true image to establish a set of equations to calculate the transformation matrix. The transformation matrix is ​​then applied to the original side view image to complete the correction from the side view image to the front view image.

[0064] The beneficial effects of the present invention are:

[0065] The present invention discloses a method and system for judging the flatness of paving materials based on image edge detection and machine learning, comprising the following steps: collecting a manufacturing surface image of ceramic additive manufacturing equipment after paving, dividing the image into several image blocks, and classifying each image block; detecting traces on the image by an edge detection algorithm; obtaining a surface slice image of the paving material of the ceramic additive manufacturing equipment, and also adopting an edge detection algorithm to obtain edge information of the solidified area; using an expansion convolution kernel to expand the solidified edge, and the solidified edge becomes significantly thicker after expansion, which can more accurately cover the solidification trace information in the paving material image; subtracting the slice edge trace from the paving material edge trace, and setting the elements less than 0 in the obtained two-dimensional matrix to 0, thereby eliminating the traces generated by the slurry solidification in the paving material image; dividing the image according to a certain grid; inputting the generated feature vector into a classification model to determine the defect type of the trace in the image. The artificial design feature based on the image processing method proposed by the method can greatly reduce the process of early data accumulation, extract features from a small amount of paving material defect data, and reduce resource consumption.

Claims

1. A method for judging the flatness of paving materials based on image edge detection and machine learning, characterized in that: The following steps are involved: S1, collecting a manufacturing surface image of a ceramic additive manufacturing equipment after paving, dividing the image into a plurality of image blocks, and classifying each of the image blocks; detecting traces on the image by an edge detection algorithm; S2, obtaining a surface slice image of the material paved by the ceramic additive manufacturing equipment, and also using the edge detection algorithm to obtain edge information of the solidified area; S3, using a dilated convolution kernel to dilate the solidified edge, after which the solidified edge becomes significantly thicker, and the solidification trace information in the paving image can be more accurately covered; S4, subtracting the edge trace of the slice from the edge trace of the paving material, and setting the elements less than 0 in the obtained two-dimensional matrix to 0, thereby eliminating the traces caused by the curing of the slurry in the paving material image; S5, dividing the image into certain grids; S6. Project the highlighted pixels in the image after edge detection onto the X-axis and the Y-axis respectively, and then concatenate the two projected vectors to generate a feature vector; input the generated feature vector into a classification model to determine the defect type of the trace in the image.

2. The method for determining the flatness of paving materials based on image edge detection and machine learning according to claim 1, characterized in that: The edge detection algorithm is specifically: For a three-channel image, it is first grayscaled; then the grayscale image is Gaussian filtered, and the filtered image uses an operator to detect the gradient of each pixel with the neighboring pixels. If the gradient is greater than the threshold, the pixel is judged to be an edge point; finally, the output edge map is binarized, the pixel value of the edge pixel is 255, and the pixel value of the background and internal pixel is 0.

3. The method for determining the flatness of paving materials based on image edge detection and machine learning according to claim 2, characterized in that: The grayscale formula is: I gray =0.299×I R +0.587×I G +0.114×I B Among them, I gray Represents the pixel value after grayscale conversion, I R ,I G ,I B Respectively represent the red, green and blue channel pixel values ​​in the original image.

4. The method for determining the flatness of paving materials based on image edge detection and machine learning according to claim 2, characterized in that: The Gaussian filtering formula is: Where G(x,y) represents the Gaussian function and σ represents the filter standard deviation.

5. The method for determining the flatness of paving materials based on image edge detection and machine learning according to claim 2, characterized in that: The operators include: Sobel, Laplace operator and deep learning edge detection method.

6. The method for determining the flatness of paving materials based on image edge detection and machine learning according to claim 1, characterized in that: The image grid division in step S5 is specifically as follows: the image is divided equally along the X-axis and the Y-axis; after the equal division, the image is projected along the X-axis and the Y-axis, and each edge pixel point is accumulated in the corresponding grid axis to generate a one-dimensional vector of a certain length.

7. A material flatness judgment system based on image edge detection and machine learning, characterized in that: include: Industrial cameras, light sources, host computers, projector optical machines, power supplies and image acquisition cards; The power supply is connected to the industrial camera to provide power to the industrial battery. The image acquisition card is arranged inside the host computer to acquire monitoring images and transmit the images to the host computer. The host computer collects and stores the data collected by the image acquisition card and performs data analysis and processing.

8. The paving material flatness judgment system based on image edge detection and machine learning according to claim 7 is characterized in that: Also includes: Manufacturing platform; The industrial camera is arranged above the manufacturing platform.

9. The paving material flatness judgment system based on image edge detection and machine learning according to claim 7 is characterized in that: After the industrial camera acquires the monitoring image of the optical system, the image is corrected using image processing technology to correct the side view exposure image to the front view angle.

10. The paving material flatness judgment system based on image edge detection and machine learning according to claim 9, characterized in that: The specific method of image correction by the image processing technology is: calculate the correction matrix between the side view image and the front view image through a pair of standard images. According to the properties of plane projective mapping, a plane projective transformation is a linear transformation of its homogeneous vectors in 3D. This linear transformation relationship can be expressed by a non-singular 3x3 matrix: This method uses optical projection to mark the printing area, and then uses image processing methods to calculate the coordinates of the four corner points of the exposure area. These four coordinate values ​​are combined with the corner point coordinates of the true image to establish a set of equations to calculate the transformation matrix. The transformation matrix is ​​then applied to the original side view image to complete the correction from the side view image to the front view image.

Citation Information

Patent Citations

  • Bearing surface defect detection system based on statistical projection training and detection method

    CN109975307A

  • Image segmentation method suitable for webpage long image and webpage wide image

    CN111179289A

  • Switch defect detection method based on LabVIEW deep learning

    CN114140373A

  • Method for monitoring spreading defects of ceramic photocuring additive manufacturing process on line

    CN117274158A

  • Visual inspection method for surface defects of injection mold

    CN118071753A