Quality inspection method, system and computer readable storage medium for ceramic spraying process
By analyzing the grayscale deviation and gradient difference between the ceramic detecting images and the standard images and adjusting the shooting points of the industrial camera, the problem of ceramic image acquisition being affected by the brightness and reflection of the light source is solved, and the accurate quality inspection of the ceramic spraying process is achieved.
Patent Information
- Application Number
- CN202110117294.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-01-28
AI Technical Summary
During the ceramic manufacturing process, the acquisition of ceramic surface images is affected by the brightness and reflection of the light source, resulting in distortion of the quality inspection of the spraying process.
By controlling the industrial camera to acquire ceramic detection images, and compare them with pre-stored standard images, calculate the grayscale deviation and grayscale gradient difference values, adjust the shooting point until the grayscale deviation is within the preset threshold range, ensuring image accuracy.
Accurate quality inspection of ceramic spraying process is achieved to ensure the accurate expression of ceramic images and the reliability of quality inspection conclusions.
Smart Images

Figure CN112883825B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ceramic quality inspection, and in particular to a quality inspection method, system and computer-readable storage medium for a ceramic spraying process. Background Art
[0002] In the ceramic manufacturing process, it is usually necessary to capture images containing ceramics, and then determine whether the ceramic spraying process meets the factory standards by identifying the images. When capturing images of ceramics, the brightness of the light source, the reflection of the ceramic surface, etc. often cause interference to the captured ceramic surface images, making it impossible to accurately express the ceramic spraying process, resulting in distortion in the quality inspection of the ceramic images. Summary of the invention
[0003] The present invention provides a quality inspection method, system and computer-readable storage medium for a ceramic spraying process to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A quality inspection method for a ceramic spraying process, the method comprising the following steps:
[0006] Step S100, controlling the industrial camera at the initial shooting point to collect a detection image containing at least one piece of ceramic;
[0007] Step S200, comparing the detection image with a pre-stored standard image, determining a grayscale deviation between the detection image and the standard image, and determining whether the grayscale deviation exceeds a preset threshold;
[0008] Step S300: If the grayscale deviation exceeds a preset threshold, the shooting point of the industrial camera is adjusted until the grayscale deviation between the detection image captured by the industrial camera and the standard image is within a preset threshold range;
[0009] Step S400: When the grayscale deviation is within a preset threshold range, extract the ceramic area in the detection image, and determine whether the surface spraying process of the ceramic is qualified based on the image of the ceramic area.
[0010] Further, the step S200 includes:
[0011] Calculate the difference between the average grayscale value of the detection image and the average grayscale value of the standard image to obtain the grayscale difference between the detection image and the standard image;
[0012] Calculating the difference between the grayscale gradient value of the detection image and the grayscale gradient value of the standard image to obtain the grayscale gradient difference between the detection image and the standard image;
[0013] If the grayscale difference exceeds a preset threshold and / or the grayscale gradient difference exceeds a preset threshold, determining that the grayscale deviation exceeds the preset threshold;
[0014] If the grayscale difference exceeds the preset threshold and the grayscale gradient difference is within the preset threshold, it is determined that the grayscale deviation is within the preset threshold.
[0015] Furthermore, the grayscale gradient value is determined by any one of the following methods: Roberts gradient, Sobel gradient, Prewitt gradient, Laplacian gradient.
[0016] Further, the step S300 includes:
[0017] If the grayscale deviation exceeds the preset threshold, the industrial camera is controlled to sequentially collect detection images along the shooting points on the planned shooting path, and it is determined in real time whether the grayscale deviation of the detection image exceeds the preset threshold;
[0018] When the grayscale deviation between the detection image collected by the industrial camera and the standard image is within a preset threshold range, the shooting point where the industrial camera is located is taken as the final shooting point.
[0019] Furthermore, the planned shooting path is determined by:
[0020] An industrial camera running track is set at the inspection point of the ceramic production line. The running track is located above the ceramic production line. The running track is rectangular. Shooting points are set at the four turning points of the running track and the midpoint of each side bar. The shooting point where the industrial camera is currently located is taken as the initial shooting point, and all the shooting points on the running track are passed in sequence in a clockwise direction as the planned shooting path.
[0021] Furthermore, a control platform is provided on the running track, and the industrial camera is fixedly arranged at the bottom of the control platform. The control platform is used to drive the industrial camera to stop at various shooting points in sequence along the planned shooting path.
[0022] Furthermore, the industrial camera is a variable-magnification zoom camera, and step S400 includes:
[0023] While the control pan / tilt stays at the shooting point, the industrial camera is controlled to perform visual navigation, and a high-definition image of at least one ceramic at the shooting point is extracted from the collected detection image using an edge detection algorithm;
[0024] Whether the surface spraying process of the ceramic is qualified is determined based on the similarity between the high-definition image and the standard image.
[0025] A quality inspection system for a ceramic spraying process, the system comprising:
[0026] at least one processor;
[0027] at least one memory for storing at least one program;
[0028] When the at least one program is executed by the at least one processor, the at least one processor implements the quality inspection method of the ceramic spraying process described in any one of the above items.
[0029] A computer-readable storage medium stores a quality inspection program for a ceramic spraying process, and when the quality inspection program for the ceramic spraying process is executed by a processor, the steps of any one of the above-mentioned quality inspection methods for the ceramic spraying process are implemented.
[0030] The beneficial effects of the present invention are as follows: the present invention discloses a quality inspection method, system and computer-readable storage medium for a ceramic spraying process. The present invention judges the collected ceramic surface image based on the grayscale deviation, and ensures the accuracy of the ceramic image by adjusting the shooting points of the industrial camera, thereby being able to accurately express the ceramic spraying process and accurately obtain the quality inspection conclusion of the ceramic image. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 1 is a flow chart of a quality inspection method for a ceramic spraying process according to an embodiment of the present invention;
[0033] Figure 2 It is a schematic diagram of the scene when collecting the detection image of ceramics in the embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of this application, so as to fully understand the purpose, scheme and effect of this application. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0035] refer to Figure 1 ,like Figure 1 The present invention provides a method for quality inspection of a ceramic spraying process, which comprises the following steps:
[0036] Step S100, controlling the industrial camera at the initial shooting point to collect a detection image containing at least one piece of ceramic;
[0037] Step S200, comparing the detection image with a pre-stored standard image, determining a grayscale deviation between the detection image and the standard image, and determining whether the grayscale deviation exceeds a preset threshold;
[0038] Step S300: If the grayscale deviation exceeds a preset threshold, the shooting point of the industrial camera is adjusted until the grayscale deviation between the detection image captured by the industrial camera and the standard image is within a preset threshold range;
[0039] Step S400: When the grayscale deviation is within a preset threshold range, extract the ceramic area in the detection image, and determine whether the surface spraying process of the ceramic is qualified based on the image of the ceramic area.
[0040] In a preferred embodiment, the step S200 includes:
[0041] Calculate the difference between the average grayscale value of the detection image and the average grayscale value of the standard image to obtain the grayscale difference between the detection image and the standard image;
[0042] Calculating the difference between the grayscale gradient value of the detection image and the grayscale gradient value of the standard image to obtain the grayscale gradient difference between the detection image and the standard image;
[0043] If the grayscale difference exceeds a preset threshold and / or the grayscale gradient difference exceeds a preset threshold, determining that the grayscale deviation exceeds the preset threshold;
[0044] If the grayscale difference exceeds the preset threshold and the grayscale gradient difference is within the preset threshold, it is determined that the grayscale deviation is within the preset threshold.
[0045] It should be noted that, in this embodiment, when the grayscale difference is within the preset threshold, it indicates that the attenuation of the detection image is not obvious; when the grayscale gradient difference is within the preset threshold, it indicates that the grayscale value of the detection image does not change significantly and is not affected by light.
[0046] In a preferred embodiment, the grayscale gradient value is determined by any one of the following methods: Roberts gradient, Sobel gradient, Prewitt gradient, Laplacian gradient.
[0047] In a preferred embodiment, the step S300 includes:
[0048] If the grayscale deviation exceeds the preset threshold, the industrial camera is controlled to sequentially collect detection images along the shooting points on the planned shooting path, and it is determined in real time whether the grayscale deviation of the detection image exceeds the preset threshold;
[0049] When the grayscale deviation between the detection image collected by the industrial camera and the standard image is within a preset threshold range, the shooting point where the industrial camera is located is taken as the final shooting point.
[0050] When the grayscale deviations between the detection images collected by the industrial camera at all shooting points and the standard image exceed the preset threshold range, the industrial camera is controlled to run to the shooting point with the smallest grayscale deviation, and the detection image with the smallest grayscale deviation is supplemented with light to obtain the final detection image; the light supplementation of the detection image with the smallest grayscale deviation includes: adjusting the exposure value of the industrial camera so that the grayscale deviation between the detection image and the standard image is within the preset threshold range; or, counting the number of pixels of each grayscale value in the standard image, and taking the pixels with grayscale values arranged in the first 10% and the last 10% as the reference image. The grayscale mean value of the reference pixel is determined according to the formula aveGray=Gray / GrayNum, where aveGray is the grayscale mean value of the reference pixel, Gray is the total grayscale value of the reference pixel, and GrayNum is the total number of reference pixels; the illumination compensation coefficient is calculated according to the formula coe=255 / aveGray, where coe is the illumination compensation coefficient; grayscale deviation compensation is performed on the pixel value of each pixel in the detection image respectively, and then the pixel values after the grayscale deviation is compensated are multiplied by the illumination compensation coefficient respectively, as the pixel values after illumination compensation, to obtain the final detection image.
[0051] refer to Figure 2 In a preferred embodiment, the planned shooting path is determined by:
[0052] A running track 200 for the industrial camera 100 is set at the detection point of the ceramic production line. The running track 200 is located above the ceramic production line 300. The running track 200 is rectangular. The four turning points of the running track and the midpoint of each side bar are provided with shooting points 210. The shooting point where the industrial camera 100 is currently located is used as the initial shooting point, and all the shooting points on the running track 200 are passed in sequence in a clockwise direction as a planned shooting path.
[0053] In a preferred embodiment, a control platform 400 is provided on the running track, and the industrial camera 100 is fixedly arranged at the bottom of the control platform. The control platform 400 is used to drive the industrial camera 100 to stop at various shooting points in sequence along the planned shooting path.
[0054] In a preferred embodiment, the industrial camera is a variable-magnification zoom camera, and step S400 includes:
[0055] While the control pan / tilt stays at the shooting point, the industrial camera is controlled to perform visual navigation, and a high-definition image of at least one ceramic at the shooting point is extracted from the collected detection image using an edge detection algorithm;
[0056] Whether the surface spraying process of the ceramic is qualified is determined based on the similarity between the high-definition image and the standard image.
[0057] and Figure 1 Corresponding to the method, an embodiment of the present invention further provides a quality inspection system for a ceramic spraying process, the system comprising:
[0058] at least one processor;
[0059] at least one memory for storing at least one program;
[0060] When the at least one program is executed by the at least one processor, the at least one processor implements the quality inspection method for the ceramic spraying process described in any of the above embodiments.
[0061] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0062] and Figure 1 Corresponding to the method, an embodiment of the present invention further provides a computer-readable storage medium, on which a quality inspection program for a ceramic spraying process is stored. When the quality inspection program for a ceramic spraying process is executed by a processor, the steps of the quality inspection method for a ceramic spraying process as described in any of the above embodiments are implemented.
[0063] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the quality inspection system of the ceramic spraying process, and various interfaces and lines are used to connect the various parts of the operating device of the quality inspection system of the entire ceramic spraying process.
[0064] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the quality inspection system of the ceramic spraying process by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart-Media-Card, SMC), a secure digital (Secure-Digital, SD) card, a flash card (Flash-Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0065] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.
Claims
1. A quality inspection method for ceramic spraying process, characterized in that: The method comprises the following steps: Step S100, controlling the industrial camera at the initial shooting point to collect a detection image containing at least one piece of ceramic; Step S200, comparing the detection image with a pre-stored standard image, determining a grayscale deviation between the detection image and the standard image, and determining whether the grayscale deviation exceeds a preset threshold; Step S300: If the grayscale deviation exceeds a preset threshold, the shooting point of the industrial camera is adjusted until the grayscale deviation between the detection image captured by the industrial camera and the standard image is within a preset threshold range; Step S400, when the grayscale deviation is within a preset threshold range, extracting a ceramic area in the detection image, and determining whether the surface spraying process of the ceramic is qualified based on the image of the ceramic area; The step S200 includes: Calculate the difference between the average grayscale value of the detection image and the average grayscale value of the standard image to obtain the grayscale difference between the detection image and the standard image; Calculating the difference between the grayscale gradient value of the detection image and the grayscale gradient value of the standard image to obtain the grayscale gradient difference between the detection image and the standard image; If the grayscale difference exceeds a preset threshold and / or the grayscale gradient difference exceeds a preset threshold, determining that the grayscale deviation exceeds the preset threshold; If the grayscale difference exceeds the preset threshold and the grayscale gradient difference is within the preset threshold, it is determined that the grayscale deviation is within the preset threshold; The grayscale gradient value is determined by any of the following methods: Roberts gradient, Sobel gradient, Prewitt gradient, Laplacian gradient; The step S300 includes: If the grayscale deviation exceeds the preset threshold, the industrial camera is controlled to sequentially collect detection images along the shooting points on the planned shooting path, and it is determined in real time whether the grayscale deviation of the detection image exceeds the preset threshold; When the grayscale deviation between the detection image collected by the industrial camera and the standard image is within a preset threshold range, the shooting point where the industrial camera is located is taken as the final shooting point; When the grayscale deviations between the detection images collected by the industrial camera at all shooting points and the standard image exceed the preset threshold range, the industrial camera is controlled to run to the shooting point with the smallest grayscale deviation, and the detection image with the smallest grayscale deviation is supplemented with light to obtain the final detection image; The illumination supplement of the detection image with the smallest grayscale deviation includes: adjusting the exposure value of the industrial camera so that the grayscale deviation between the detection image and the standard image is within a preset threshold range; or, counting the number of pixels of each grayscale value in the standard image, taking the pixels whose grayscale values are arranged in the first 10% and the last 10% as reference pixels, and determining the grayscale mean of the reference pixels according to the formula aveGray=Gray / GrayNum, wherein aveGray is the grayscale mean of the reference pixels, Gray is the total grayscale value of the reference pixels, and GrayNum is the total number of reference pixels; calculating the illumination compensation coefficient according to the formula coe=255 / aveGray, wherein coe is the illumination compensation coefficient; performing grayscale deviation compensation on the pixel value of each pixel in the detection image respectively, and then multiplying the pixel values after the grayscale deviation is compensated by the illumination compensation coefficient respectively, as the pixel values after illumination compensation, to obtain the final detection image; The planned shooting path is determined by: An industrial camera running track is set at the inspection location of the ceramic production line. The running track is located above the ceramic production line. The running track is rectangular. The four turning points of the running track and the midpoint of each side strip are provided with shooting points. The shooting point where the industrial camera is currently located is used as the initial shooting point. All shooting points on the running track are passed in sequence in a clockwise direction as a planned shooting path. A control platform is provided on the running track, and the industrial camera is fixedly arranged at the bottom of the control platform. The control platform is used to drive the industrial camera to stop at various shooting points in sequence along the planned shooting path; The industrial camera is a variable-magnification zoom camera, and step S400 includes: While the control pan / tilt stays at the shooting point, the industrial camera is controlled to perform visual navigation, and a high-definition image of at least one ceramic at the shooting point is extracted from the collected detection image using an edge detection algorithm; Whether the surface spraying process of the ceramic is qualified is determined based on the similarity between the high-definition image and the standard image.
2. A quality inspection system for ceramic spraying process, characterized in that: The system comprises: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the quality inspection method for the ceramic spraying process as described in claim 1.
3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a quality inspection program for a ceramic spraying process, and when the quality inspection program for a ceramic spraying process is executed by a processor, the steps of the quality inspection method for a ceramic spraying process as claimed in claim 1 are implemented.
Citation Information
Patent Citations
Defect detection method, system and device and computer-readable storage medium
CN110687119A
Surface defect detection device and method
CN111896550A