A gravure coating image recognition system

By obtaining the material properties and reflective characteristics of the coating material, determining the color of the light source, and using an industrial camera to obtain the coating image for data fusion processing, the problem of unstable boundaries in gravure coating image recognition is solved, and accurate recognition and automatic light source are achieved adjust.

CN117994532BActive Publication Date: 2024-09-10TIMACO (JIANGSU) IND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Due to the influence of the coating material material in the existing gravure coating image recognition technology, the grayscale difference between the gravure area and the coating area is small during single-light gravure coating imaging, resulting in unclear dividing lines and unstable extraction boundaries, which affects the accuracy of recognition. Spend.

Method used

By obtaining the material properties and reflective characteristics of the coating material, determine the colors of the two sets of light sources, pre-deploy the industrial camera directly above the coating material, obtain two sets of coating images for image preprocessing, and perform data fusion processing based on edge data. Determine edge position data and verify it to achieve automatic light source adjustment and accurate identification.

Benefits of technology

It improves the recognition accuracy of gravure coating images, ensures the stability and accuracy of boundary extraction, and realizes automatic adjustment of the light source.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117994532B
    Figure CN117994532B
Patent Text Reader

Abstract

The invention provides a gravure coating image recognition system, which relates to the technical field of gravure coating. The system comprises: determining two groups of light source colors by acquiring material properties and reflective characteristics of a coating material; pre-deploying an industrial camera just above the coating material to acquire a first coating image and a second coating image of the coating material; performing image preprocessing, extracting a gravure region according to coating edge data and gravure edge data, and performing data fusion processing to determine edge position data of the coating image; verifying the edge position data of the coating image, and determining that the gravure coating image recognition is correct when it meets preset coating image recognition requirements; both automatic adjustment of a corresponding light source according to the coating material and accurate recognition of the gravure coating image are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The existing gravure coating image recognition technology uses the point where the coating material passes the roller as the camera monitoring point, and obtains the image of the coating material based on the camera and the light source. The grayscale value of the gravure area in the image is lower than the grayscale value of the coating area, which is convenient for image recognition processing; however, due to the influence of the material of the coating material, single-light source gravure coating imaging often shows a small grayscale difference between the gravure area and the coating area, resulting in unclear dividing lines, and then the extraction of the boundary between the gravure area and the coating area is unstable, resulting in dimensional errors, affecting the accuracy of gravure coating image recognition.

[0003] Therefore, the present invention provides a gravure coating image recognition system. Summary of the invention

[0004] The present invention provides a gravure coating image recognition system, which is used for determining two groups of light source colors by acquiring material properties and reflective characteristics of a coating material; pre-deploying an industrial camera just above the coating material to acquire a first coating image and a second coating image of the coating material; performing image pre-processing, extracting a gravure region according to coating edge data and gravure edge data, and performing data fusion processing to determine edge position data of the coating image; verifying the edge position data of the coating image, and determining that the gravure coating image recognition is correct when it meets preset coating image recognition requirements; and realizing both automatic adjustment of a corresponding light source according to the coating material and accurate recognition of the gravure coating image.

[0005] The present invention provides a gravure coating image recognition system, comprising:

[0006] Coating image light source module: obtains the material properties and reflective characteristics of the coating material, and determines two sets of light source colors based on the coating grayscale and gravure grayscale;

[0007] Coating image monitoring module: pre-deploy the industrial camera directly above the coating material, determine the corresponding light source pre-deployment position, and obtain the first coating image and the second coating image of the coating material;

[0008] Coating image recognition module: performs image preprocessing on the first coating image and the second coating image, extracts the gravure area according to the coating edge data and the gravure edge data, performs data fusion processing, and determines the edge position data of the coating image;

[0009] Coating image verification module: Verify the edge position data of the coating image. When it meets the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct.

[0010] Preferably, the coated image light source module comprises:

[0011] A coating material acquisition unit, used to acquire the material properties and reflective characteristics of the current coating material according to the historical coating material database. If the current coating material data does not exist in the historical coating database, the current coating material is analyzed and the historical coating database is updated;

[0012] The coating grayscale experimental unit is used to illuminate the coating material with light sources of different colors and obtain the color light source coating image of the corresponding color light source;

[0013] Convert each color coating image into a corresponding color light source grayscale image, analyze and process the grayscale value of each pixel, construct a grayscale histogram and perform grayscale statistics, and determine the coating grayscale and gravure grayscale of each color light source grayscale image;

[0014] The coating light source acquisition unit is used to select two groups of light source colors with the largest difference between the coating grayscale and the gravure grayscale according to the coating grayscale and gravure grayscale of the grayscale images of each color light source as the preset light source colors for the current coating material.

[0015] Preferably, the coating image monitoring module comprises:

[0016] The industrial camera deployment unit is used to pre-deploy the industrial camera just above the coating material, determine the pre-deployment height of the industrial camera according to the actual operating environment data of the gravure coating and the imaging quality of the industrial camera, and determine the pre-deployment quantity of the industrial camera according to the preset light source color quantity of the current coating material;

[0017] The light source deployment unit is used to obtain the collection point of the industrial camera and adjust the light source position. When the industrial camera imaging quality is optimal, the corresponding light source position is used as the light source pre-deployment position;

[0018] The coating image acquisition unit is used to acquire the first coating image and the second coating image of the current coating material according to the pre-deployed industrial camera and the corresponding pre-deployed light source, wherein the first coating image is imaged according to the light source with the largest difference between the coating grayscale and the gravure grayscale.

[0019] Preferably, the coating image recognition module comprises:

[0020] A coating image conversion unit, used to convert the first coating image and the second coating image into a first grayscale image and a second grayscale image respectively;

[0021] A coating image cutting and noise reduction unit, used for cutting the first grayscale image and the second grayscale image according to a preset image size, moving them to an image processing area, and performing image noise reduction on the first grayscale image and the second grayscale image;

[0022] A coating image binarization unit, used to obtain the grayscale value of each pixel of the first grayscale image and the second grayscale image, construct a grayscale histogram, determine the coating grayscale and the gravure grayscale of the first grayscale image and the second grayscale image, and perform binarization processing;

[0023] The coating image tilt correction unit is used to perform tilt correction on the first grayscale image and the second grayscale image after binarization according to the historical coating image recognition angle to complete image preprocessing.

[0024] Preferably, the coating image recognition module further includes:

[0025] A coating image region extraction unit, for performing region pixel extraction on the preprocessed first coating image and the preprocessed second coating image according to a preset coating image extraction region, and obtaining a corresponding first region image and a second region image;

[0026] A data fusion processing unit, used to perform data fusion processing on the first area image and the second area image to obtain the gray value of each pixel;

[0027] The area image belongs to the determination unit, which is used to obtain a pixel point at the current shooting moment and a corresponding pixel point at the next shooting moment after all pixel points of the area image are subjected to data fusion processing according to the shooting cycle of the industrial camera;

[0028] When the grayscale value of the one pixel is consistent with the grayscale value of the corresponding pixel, it is determined that the one pixel does not belong to the gravure edge area or the coating edge area;

[0029] When the grayscale value of the one pixel point is inconsistent with the grayscale value of the corresponding pixel point, if the grayscale value of the one pixel point is greater than the grayscale value of the corresponding pixel point and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel point belongs to the gravure edge area;

[0030] When the grayscale value of the one pixel is inconsistent with the grayscale value of the corresponding pixel, if the grayscale value of the one pixel is less than the grayscale value of the corresponding pixel and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel belongs to the coating edge area;

[0031] Otherwise, it is determined that the pixel point does not belong to the gravure edge area or the coating edge area;

[0032] An edge straight line determination unit is used to connect the pixel points of the gravure edge area and the coating edge area, and use the pixel points with the same gray value as a line segment to determine the edge straight line;

[0033] When the total length of the line segment does not meet the preset edge straight line length range, it is determined that the line segment cannot be an edge straight line and is removed;

[0034] The remaining line segments are judged as edge lines. When the line similarity is not higher than the preset line threshold, they are eliminated for the second time.

[0035] The edge straight line correction unit is used to obtain the mean and variance of the gravure edge area and the coating edge area, perform binarization processing, and perform binary morphological expansion filtering;

[0036] Perform pixel grayscale value accumulation processing on the line segment after the second elimination, and replace the pixel value of the corresponding line segment with the accumulation processing result to obtain the first processing result of the edge line;

[0037] An edge straight line gradient processing unit is used to perform median filtering on the gravure edge area and the coating edge area and determine the gradient size;

[0038] According to the mean value and the gradient scale, edge straight lines in the gravure edge area and the coating edge area are respectively extracted, and interference is eliminated to obtain secondary processing results of the edge straight lines;

[0039] An edge position data determination unit is used to perform a fusion analysis on the primary processing result and the secondary processing result of the edge straight line to determine the edge straight line;

[0040] Three consecutive pixel points are randomly selected from the edge line, and the boundary belonging probability of each point is calculated. When the boundary belonging probability of each pixel point of the edge line meets the preset boundary probability, the edge line is determined to be the edge position data of the gravure area and the coating area.

[0041] Preferably, the edge position data determination unit includes:

[0042] A boundary probability calculation subunit, configured to calculate the boundary belonging probability of each pixel point by selecting three consecutive pixel points from the edge straight line;

[0043] ; Wherein, P(xi1) is the probability of the i1th pixel point xi1 in the edge line belonging to the boundary; xi1xi2 is the pixel distance between the i1th pixel point and the i2th pixel point in the edge line; xi1xi3 is the pixel distance between the i1th pixel point and the i3th pixel point in the edge line; xi2xi3 is the pixel distance between the i2th pixel point and the i3th pixel point in the edge line; pixel points xi1, xi2 and xi3 are three consecutive pixel points in the edge line; a is the preset angle threshold; arcos() is the angle of the pixel point; is a step function. When the pixel angle is greater than the preset angle threshold, the value is 1, otherwise the value is 0. n1 is the total number of pixels on the edge line.

[0044] Preferably, the coating image verification module comprises:

[0045] A requirement acquisition unit, used to acquire preset coating identification requirements of the current coating material according to a historical database;

[0046] The coating image verification unit is used to verify the edge position data of the coating image. When the average recognition time and recognition accuracy of the edge position data meet the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct.

[0047] Preferably, the coating image verification module further includes:

[0048] An automatic adjustment unit, used to automatically adjust the colors of the two light sources according to a preset gravure coating image recognition correction strategy when it is determined that the gravure coating image recognition is incorrect;

[0049] When a change in the coating material is detected, the coating grayscale and the gravure grayscale of the grayscale image of each color light source of the new coating material are obtained, and the current light source color is automatically adjusted.

[0050] Compared with the prior art, the beneficial effects of this application are as follows:

[0051] By acquiring the material properties and reflective characteristics of the coating material, the colors of the two groups of light sources are determined; the industrial camera is pre-deployed directly above the coating material to acquire the first coating image and the second coating image of the coating material; image pre-processing is performed, the gravure area is extracted according to the coating edge data and the gravure edge data respectively, and data fusion processing is performed to determine the edge position data of the coating image; the edge position data of the coating image is verified, and when it meets the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct; this realizes both automatic adjustment of the corresponding light source according to the coating material and accurate recognition of the gravure coating image.

[0052] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0053] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0055] Figure 1 It is a structural diagram of a gravure coating image recognition system in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0057] The embodiment of the present invention provides a gravure coating image recognition system, such as Figure 1 As shown, including:

[0058] Coating image light source module: obtains the material properties and reflective characteristics of the coating material, and determines two sets of light source colors based on the coating grayscale and gravure grayscale;

[0059] Coating image monitoring module: pre-deploy the industrial camera directly above the coating material, determine the corresponding light source pre-deployment position, and obtain the first coating image and the second coating image of the coating material;

[0060] Coating image recognition module: performs image preprocessing on the first coating image and the second coating image, extracts the gravure area according to the coating edge data and the gravure edge data, performs data fusion processing, and determines the edge position data of the coating image;

[0061] Coating image verification module: Verify the edge position data of the coating image. When it meets the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct.

[0062] In this embodiment, the material properties and reflective characteristics of the coating material affect the coating grayscale and the gravure grayscale. For example, light source c1 and coating material a1 correspond to gravure grayscale b1 and coating grayscale b2. Coating material a2 corresponds to gravure grayscale b3 and coating grayscale b4.

[0063] In this embodiment, the two groups of light source colors determined are the two groups of light sources with the largest difference between the coating grayscale and the gravure grayscale.

[0064] In this embodiment, the coating image is formed by presetting the camera acquisition point at the point where the coating material passes the roller, and deploying the camera and the light source at the same angle and distance on both sides of the roller normal where the roller passing point is located, thereby achieving the optimal imaging effect of the coating image.

[0065] In this embodiment, the industrial camera is pre-deployed directly above the coating material to facilitate determination of the corresponding light source position and corresponding adjustment.

[0066] In this embodiment, when the industrial camera is pre-deployed directly above the coating material, the grayscale value of the gravure area illuminated by the light source is greatly different from the grayscale value of the coating area.

[0067] In this embodiment, the first coating image refers to the coating image obtained according to the light source with the largest difference between the coating grayscale and the gravure grayscale, for example, the light sources c1, c2, and c3, and the corresponding coating grayscale and gravure grayscale differences from large to small are light sources c2, c1, and c3. Therefore, the coating image obtained by light source c2 is the first coating image.

[0068] In this embodiment, the second coating image refers to a coating image obtained by a light source having the second largest difference between coating grayscale and gravure grayscale. For example, the coating image obtained by light source c1 is the second coating image.

[0069] In this embodiment, the coating edge data and the gravure edge data refer to data in the coating area and the gravure area for determining the boundary line between the gravure area and the coating area.

[0070] In this embodiment, the edge position data of the coating image refers to the data of the boundary position of the coating area and the gravure area.

[0071] In this embodiment, a coating image recognition requirement is preset, for example, the edge position data error of the coating image is less than 0.1.

[0072] The beneficial effects of the above technical solution are: by obtaining the material properties and reflective characteristics of the coating material, the two groups of light source colors are determined; the industrial camera is pre-deployed directly above the coating material to obtain the first coating image and the second coating image of the coating material; image preprocessing is performed, the gravure area is extracted according to the coating edge data and the gravure edge data, and data fusion processing is performed to determine the edge position data of the coating image; the edge position data of the coating image is verified, and when it meets the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct; it is realized that the corresponding light source is automatically adjusted according to the coating material, and the accurate recognition of the gravure coating image is realized.

[0073] The embodiment of the present invention provides a gravure coating image recognition system, a coating image light source module, including:

[0074] A coating material acquisition unit, used to acquire the material properties and reflective characteristics of the current coating material according to the historical coating material database. If the current coating material data does not exist in the historical coating database, the current coating material is analyzed and the historical coating database is updated;

[0075] The coating grayscale experimental unit is used to illuminate the coating material with light sources of different colors and obtain the color light source coating image of the corresponding color light source;

[0076] Convert each color coating image into a corresponding color light source grayscale image, analyze and process the grayscale value of each pixel, construct a grayscale histogram and perform grayscale statistics, and determine the coating grayscale and gravure grayscale of each color light source grayscale image;

[0077] The coating light source acquisition unit is used to select two groups of light source colors with the largest difference between the coating grayscale and the gravure grayscale according to the coating grayscale and gravure grayscale of the grayscale images of each color light source as the preset light source colors for the current coating material.

[0078] In this embodiment, the material properties and reflective characteristics of the current coating material are obtained according to the historical coating material database. For example, the material properties and reflective characteristics a1 of the current coating material are obtained according to the historical coating material database, and light sources b1 and b3 are selected accordingly.

[0079] In this embodiment, the historical coating database is updated to facilitate automatic adjustment of the light source.

[0080] In this embodiment, the coating grayscale and gravure grayscale of the grayscale image of each color light source are determined. For example, the difference between the coating grayscale and the gravure grayscale corresponding to the grayscale image of the color light source b1 is d1, the difference between the coating grayscale and the gravure grayscale corresponding to the grayscale image of the color light source b2 is d2, and the difference between the coating grayscale and the gravure grayscale corresponding to the grayscale image of the color light source b3 is d3, and d1>d3>d2.

[0081] In this embodiment, two groups of light source colors with the largest difference between coating grayscale and gravure grayscale are selected as the preset light source colors of the current coating material. For example, color light source b1 and color light source b3 are selected as the preset light source colors of the current coating material.

[0082] The beneficial effect of the above technical solution is: by obtaining the material properties and reflective characteristics of the coating material and conducting a grayscale experiment, it is convenient to select two groups of light sources to illuminate the coating material, thereby improving the recognition accuracy of the gravure coating image. At the same time, it is conducive to automatically adjusting the light source according to the material properties and reflective characteristics of the coating material.

[0083] The embodiment of the present invention provides a gravure coating image recognition system, a coating image monitoring module, including:

[0084] The industrial camera deployment unit is used to pre-deploy the industrial camera just above the coating material, determine the pre-deployment height of the industrial camera according to the actual operating environment data of the gravure coating and the imaging quality of the industrial camera, and determine the pre-deployment quantity of the industrial camera according to the preset light source color quantity of the current coating material;

[0085] The light source deployment unit is used to obtain the collection point of the industrial camera and adjust the light source position. When the industrial camera imaging quality is optimal, the corresponding light source position is used as the light source pre-deployment position;

[0086] The coating image acquisition unit is used to acquire the first coating image and the second coating image of the current coating material according to the pre-deployed industrial camera and the corresponding pre-deployed light source, wherein the first coating image is imaged according to the light source with the largest difference between the coating grayscale and the gravure grayscale.

[0087] In this embodiment, the industrial camera is pre-deployed directly above the coating material to determine the corresponding pre-deployment position of the light source, at which time the lighting effect of the light source is optimal.

[0088] In this embodiment, the pre-deployment height of the industrial camera is determined. For example, the pre-deployment height a1 of the industrial camera is determined according to the actual operating environment data of the gravure coating and the imaging quality of the industrial camera.

[0089] In this embodiment, the distance between the industrial camera and the collection point is consistent with the distance between the light source and the collection point.

[0090] In this embodiment, the collection point of the industrial camera is obtained and the position of the light source is adjusted. For example, when the position of the light source is adjusted to the normal angle b1 of the roller corresponding to the collection point, the imaging quality of the industrial camera is optimal. The corresponding pre-deployment position of the light source is the normal angle b1 of the collection point and the distance a1 from the collection point.

[0091] The beneficial effect of the above technical solution is: pre-deploying the industrial camera just above the coating material and determining the pre-deployment position of the light source is conducive to lighting the light source and improving the accuracy of image recognition. At the same time, it is conducive to automatically adjusting the light source according to the coating material.

[0092] The embodiment of the present invention provides a gravure coating image recognition system, a coating image recognition module, including:

[0093] A coating image conversion unit, used to convert the first coating image and the second coating image into a first grayscale image and a second grayscale image respectively;

[0094] A coating image cutting and noise reduction unit, used for cutting the first grayscale image and the second grayscale image according to a preset image size, moving them to an image processing area, and performing image noise reduction on the first grayscale image and the second grayscale image;

[0095] A coating image binarization unit, used to obtain the grayscale value of each pixel of the first grayscale image and the second grayscale image, construct a grayscale histogram, determine the coating grayscale and the gravure grayscale of the first grayscale image and the second grayscale image, and perform binarization processing;

[0096] The coating image tilt correction unit is used to perform tilt correction on the first grayscale image and the second grayscale image after binarization according to the historical coating image recognition angle to complete image preprocessing.

[0097] In this embodiment, the first grayscale image refers to a grayscale image obtained by grayscale conversion of the first coated image, and the second grayscale image refers to a grayscale image obtained by grayscale conversion of the second coated image.

[0098] In this embodiment, the preset image size refers to an optimal image size for image processing.

[0099] In this embodiment, the image processing area refers to the area where the image noise reduction processing is performed, and the image processing areas of the first grayscale image and the second grayscale image are different to avoid interference and affect the noise reduction effect.

[0100] In this embodiment, tilt correction is performed on the first grayscale image and the second grayscale image after binarization. For example, based on analyzing the binarized images, the tilt angle a1 of the first grayscale image and the tilt angle a2 of the second grayscale image are obtained, and corresponding tilt correction is performed.

[0101] The beneficial effects of the above technical solution are: converting the coated image into a grayscale image, and performing cropping and noise reduction processing, which is conducive to determining the coated area and the gravure area; binarizing and tilt correcting the coated image, which clarifies the coated area and the gravure area and improves the image processing speed.

[0102] The embodiment of the present invention provides a gravure coating image recognition system, a coating image recognition module, and further includes:

[0103] A coating image region extraction unit, for performing region pixel extraction on the preprocessed first coating image and the preprocessed second coating image according to a preset coating image extraction region, and obtaining a corresponding first region image and a second region image;

[0104] A data fusion processing unit, used to perform data fusion processing on the first area image and the second area image to obtain the gray value of each pixel;

[0105] The area image belongs to the determination unit, which is used to obtain a pixel point at the current shooting moment and a corresponding pixel point at the next shooting moment after all pixel points of the area image are subjected to data fusion processing according to the shooting cycle of the industrial camera;

[0106] When the grayscale value of the one pixel is consistent with the grayscale value of the corresponding pixel, it is determined that the one pixel does not belong to the gravure edge area or the coating edge area;

[0107] When the grayscale value of the one pixel point is inconsistent with the grayscale value of the corresponding pixel point, if the grayscale value of the one pixel point is greater than the grayscale value of the corresponding pixel point and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel point belongs to the gravure edge area;

[0108] When the grayscale value of the one pixel is inconsistent with the grayscale value of the corresponding pixel, if the grayscale value of the one pixel is less than the grayscale value of the corresponding pixel and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel belongs to the coating edge area;

[0109] Otherwise, it is determined that the pixel point does not belong to the gravure edge area or the coating edge area;

[0110] An edge straight line determination unit is used to connect the pixel points of the gravure edge area and the coating edge area, and use the pixel points with the same gray value as a line segment to determine the edge straight line;

[0111] When the total length of the line segment does not meet the preset edge straight line length range, it is determined that the line segment cannot be an edge straight line and is removed;

[0112] The remaining line segments are judged as edge lines. When the line similarity is not higher than the preset line threshold, they are eliminated for the second time.

[0113] The edge straight line correction unit is used to obtain the mean and variance of the gravure edge area and the coating edge area, perform binarization processing, and perform binary morphological expansion filtering;

[0114] Perform pixel grayscale value accumulation processing on the line segment after the second elimination, and replace the pixel value of the corresponding line segment with the accumulation processing result to obtain the first processing result of the edge line;

[0115] An edge straight line gradient processing unit is used to perform median filtering on the gravure edge area and the coating edge area and determine the gradient size;

[0116] According to the mean value and the gradient scale, edge straight lines in the gravure edge area and the coating edge area are respectively extracted, and interference is eliminated to obtain secondary processing results of the edge straight lines;

[0117] An edge position data determination unit is used to perform a fusion analysis on the primary processing result and the secondary processing result of the edge straight line to determine the edge straight line;

[0118] Three consecutive pixel points are randomly selected from the edge line, and the boundary belonging probability of each point is calculated. When the boundary belonging probability of each pixel point of the edge line meets the preset boundary probability, the edge line is determined to be the edge position data of the gravure area and the coating area.

[0119] In this embodiment, a coating image extraction area is preset, for example, a coating image extraction area a1 is preset, and all pixel points corresponding to the area a1 of the preprocessed first coating image and the preprocessed second coating image are extracted.

[0120] In this embodiment, the first area image refers to the area image obtained by performing pixel extraction on the first coated area after preprocessing according to the preset coated area extraction area; the second area image refers to the area image obtained by performing pixel extraction on the second coated area after preprocessing according to the preset coated area extraction area.

[0121] In this embodiment, pixel extraction verification is performed on the regional image, and when the number of pixels of the regional image is consistent with the number of pixels of the corresponding coating image pixel extraction area, it is determined that the pixel extraction operation is correct.

[0122] In this embodiment, performing data fusion processing on the first region image and the second region image refers to performing grayscale uniform processing on the region images to determine the grayscale value of each pixel.

[0123] In this embodiment, the shooting cycle of the industrial camera refers to the time period of one gravure coating imaging by the camera. For example, if the shooting cycle of the industrial camera is t1, then the next gravure coating image is acquired after time t1.

[0124] In this embodiment, when the grayscale values ​​of each pixel of the first region image and the second region image are determined, the data fusion processing is completed for all the pixels of the determination region image.

[0125] In this embodiment, the grayscale value of the gravure region is higher than the grayscale value of the coating region. For example, the grayscale value of the gravure region is 100 on average, and the grayscale value of the coating region is 50 on average.

[0126] In this embodiment, the gravure edge region refers to the region where the gravure region transitions to the coating region, and the coating edge region refers to the region where the coating region transitions to the gravure region. The sizes of the gravure edge region and the coating edge region are the same.

[0127] In this embodiment, the line segment is obtained by connecting the pixel points with the same gray value in the gravure edge region and the coating edge region. For example, the line segment b1 is obtained by connecting the pixel points with a gray value of 70.

[0128] In this embodiment, a preset edge straight line length range is set. For example, when the length range of the line segment b1 does not meet the preset edge straight line length range, it is determined that the line segment b1 does not belong to the boundary line between the gravure region and the boundary region, and one elimination is performed.

[0129] In this embodiment, when the straight line similarity is not higher than the preset straight line threshold, for example, the preset straight line threshold c1, and the straight line similarity c2 of the line segment b1 < c1, then a second elimination is performed on the line segment b1.

[0130] In this embodiment, the straight line similarity refers to the degree of similarity between the line segment and the straight line. The higher the straight line similarity of the line segment, the higher the probability that the line segment is determined to be at the edge position.

[0131] In this embodiment, one elimination and second elimination can effectively eliminate some interfering line segments and improve the image recognition processing efficiency.

[0132] In this embodiment, the mean and variance of the gravure edge region and the coating edge region are obtained, binarization processing is performed, and binary morphological dilation filtering is carried out to eliminate the too small regions in the edge region, and the line segments after the second elimination are corrected to facilitate image recognition processing.

[0133] In this embodiment, the first processing result of the edge straight line refers to the processing result obtained by replacing the pixel value with the accumulated pixel gray value of the line segment after the second elimination.

[0134] In this embodiment, the gradient size refers to the detection window size applied to detect the image gray value difference in the edge region. For example, when the gradient size is greater than d1, it is used to detect the region with more obvious edge in the edge region, and is used to detect the edge region with a gray value difference greater than e1; otherwise, it is used to detect the edge region with a gray value difference not greater than e1.

[0135] In this embodiment, the second processing result of the edge straight line refers to the processing result obtained according to the gray mean value and the gradient size.

[0136] In this embodiment, the edge straight line refers to the pending line segment of the boundary line between the gravure region and the coating region obtained after the processing result fusion analysis of the line segment.

[0137] In this embodiment, the boundary belonging probability of each pixel point refers to the possibility that each pixel point belongs to the boundary line between the gravure area and the coating area. For example, when the boundary belonging probability of each pixel point is greater than p1, the corresponding edge straight line is determined to be the edge position data between the gravure area and the coating area, and the recognition of the gravure coating image is completed.

[0138] The beneficial effect of the above technical solution is: by performing image preprocessing on the first coating image and the second coating image, extracting the gravure area according to the coating edge data and the gravure edge data respectively, and performing data fusion processing, the edge position data of the coating image is determined, thereby achieving accurate recognition of the gravure coating image.

[0139] An embodiment of the present invention provides a gravure coating image recognition system, wherein the edge position data determination unit comprises:

[0140] A boundary probability calculation subunit, configured to calculate the boundary belonging probability of each pixel point by selecting three consecutive pixel points from the edge straight line;

[0141] ;

[0142] Among them, P(xi1) is the probability that the i1th pixel point xi1 in the edge line belongs to the boundary; xi1xi2 is the pixel distance between the i1th pixel point and the i2th pixel point in the edge line; xi1xi3 is the pixel distance between the i1th pixel point and the i3th pixel point in the edge line; xi2xi3 is the pixel distance between the i2th pixel point and the i3th pixel point in the edge line; pixel points xi1, xi2 and xi3 are three consecutive pixel points in the edge line; a is the preset angle threshold; arcos() is the angle of the pixel point; is a step function. When the pixel angle is greater than the preset angle threshold, the value is 1, otherwise the value is 0. n1 is the total number of pixels on the edge line.

[0143] In this embodiment, selecting three consecutive pixel points from the edge straight line is a random selection.

[0144] In this embodiment, the pixel distance between three consecutive pixel points is a two-dimensional pixel distance, and the pixel height difference distance is not considered.

[0145] In this embodiment, the preset angle threshold is used to determine whether the edge line is a boundary. For example, the preset angle threshold a1, when the angle of three consecutive randomly selected pixel points is greater than the preset angle threshold a1, the corresponding pixel points are identified as boundaries and take the value of 1, otherwise the value is 0.

[0146] The beneficial effect of the above technical solution is: by selecting three consecutive pixel points from the edge straight line and determining the probability of each pixel point belonging to the boundary, it is helpful to clarify the boundary line between the gravure area and the coating area and improve the accuracy of gravure coating image recognition.

[0147] The embodiment of the present invention provides a gravure coating image recognition system, a coating image verification module, including:

[0148] A requirement acquisition unit, used to acquire preset coating identification requirements of the current coating material according to a historical database;

[0149] The coating image verification unit is used to verify the edge position data of the coating image. When the average recognition time and recognition accuracy of the edge position data meet the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct.

[0150] In this embodiment, the preset coating recognition requirements of different coating materials are inconsistent. For example, the preset coating recognition requirement of the current coating material a1 is b1.

[0151] In this embodiment, when the average recognition time and recognition accuracy of the edge position data meet the preset coating image recognition requirements, for example, the average recognition time is lower than t1 and the recognition accuracy is higher than p1, it is determined that the corresponding current coating material a1 meets the preset coating image recognition requirements.

[0152] The beneficial effect of the above technical solution is: by obtaining the preset coating recognition requirements of the current coating material, it is beneficial to verify the coating image recognition, ensuring the accuracy of the gravure coating image recognition, and at the same time, it is convenient to make corresponding adjustments to the light source etc. according to the preset coating recognition requirements.

[0153] The embodiment of the present invention provides a gravure coating image recognition system, a coating image verification module, and further includes:

[0154] An automatic adjustment unit, used to automatically adjust the colors of the two light sources according to a preset gravure coating image recognition correction strategy when it is determined that the gravure coating image recognition is incorrect;

[0155] When a change in the coating material is detected, the coating grayscale and the gravure grayscale of the grayscale image of each color light source of the new coating material are obtained, and the current light source color is automatically adjusted.

[0156] In this embodiment, the preset gravure coating image recognition correction strategy refers to a correction strategy for when the gravure coating image recognition is determined to be incorrect. For example, when the gravure coating image recognition of the current coating material a1 is incorrect using the light sources c1 and c2, the preset gravure coating image recognition correction strategy is adopted to automatically adjust the light sources c1 and c2, retain the light source c1 with the largest difference between the coating grayscale and the gravure grayscale, and automatically adjust the light source c2. When it is monitored that the gravure coating image recognition is correct, the corresponding automatically adjusted light source is recorded as the light source color of the current coating material a1, for example, the light source c5.

[0157] In this embodiment, when a change in the coating material is detected, for example, when the coating material changes from a1 to a2, the light sources corresponding to the coating material a1 are obtained from the historical coating database as c1 and c5, and the light sources corresponding to the coating material a2 are c1 and c2, and the light sources are automatically adjusted.

[0158] The beneficial effect of the above technical solution is: by automatically adjusting the light source color according to the preset gravure coating image recognition strategy when the gravure coating image recognition is determined to be incorrect and when the coating material changes, it is beneficial to ensure the accuracy of gravure coating image recognition and ensure stable gravure coating operation.

[0159] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A gravure coating image recognition system, characterized in that: include: Coating image light source module: obtains the material properties and reflective characteristics of the coating material, and determines two sets of light source colors based on the coating grayscale and gravure grayscale; Coating image monitoring module: pre-deploy the industrial camera directly above the coating material, determine the corresponding light source pre-deployment position, and obtain the first coating image and the second coating image of the coating material; Coating image recognition module: performs image preprocessing on the first coating image and the second coating image, extracts the gravure area according to the coating edge data and the gravure edge data, performs data fusion processing, and determines the edge position data of the coating image; Coating image verification module: Verify the edge position data of the coating image. When it meets the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct. Wherein, the coated image light source module includes: A coating material acquisition unit, used to acquire the material properties and reflective characteristics of the current coating material according to the historical coating material database. If the current coating material data does not exist in the historical coating database, the current coating material is analyzed and the historical coating database is updated; The coating grayscale experimental unit is used to illuminate the coating material with light sources of different colors and obtain the color light source coating image of the corresponding color light source; Convert each color coating image into a corresponding color light source grayscale image, analyze and process the grayscale value of each pixel, construct a grayscale histogram and perform grayscale statistics, and determine the coating grayscale and gravure grayscale of each color light source grayscale image; A coating light source acquisition unit is used to select two groups of light source colors with the largest difference between the coating grayscale and the gravure grayscale according to the coating grayscale and the gravure grayscale of the grayscale image of each color light source as the preset light source colors of the current coating material; Among them, the coating image monitoring module includes: The industrial camera deployment unit is used to pre-deploy the industrial camera just above the coating material, determine the pre-deployment height of the industrial camera according to the actual operating environment data of the gravure coating and the imaging quality of the industrial camera, and determine the pre-deployment quantity of the industrial camera according to the preset light source color quantity of the current coating material; The light source deployment unit is used to obtain the collection point of the industrial camera and adjust the light source position. When the industrial camera imaging quality is optimal, the corresponding light source position is used as the light source pre-deployment position; The coating image acquisition unit is used to acquire the first coating image and the second coating image of the current coating material according to the pre-deployed industrial camera and the corresponding pre-deployed light source, wherein the first coating image is imaged according to the light source with the largest difference between the coating grayscale and the gravure grayscale.

2. A gravure coating image recognition system according to claim 1, characterized in that: Coating image recognition module, including: A coating image conversion unit, used to convert the first coating image and the second coating image into a first grayscale image and a second grayscale image respectively; A coating image cutting and noise reduction unit, used for cutting the first grayscale image and the second grayscale image according to a preset image size, moving them to an image processing area, and performing image noise reduction on the first grayscale image and the second grayscale image; A coating image binarization unit, used to obtain the grayscale value of each pixel of the first grayscale image and the second grayscale image, construct a grayscale histogram, determine the coating grayscale and the gravure grayscale of the first grayscale image and the second grayscale image, and perform binarization processing; The coating image tilt correction unit is used to perform tilt correction on the first grayscale image and the second grayscale image after binarization according to the historical coating image recognition angle to complete image preprocessing.

3. A gravure coating image recognition system according to claim 1, characterized in that: The coating image recognition module also includes: A coating image region extraction unit, for performing region pixel extraction on the preprocessed first coating image and the preprocessed second coating image according to a preset coating image extraction region, and obtaining a corresponding first region image and a second region image; A data fusion processing unit, used to perform data fusion processing on the first area image and the second area image to obtain the gray value of each pixel; The area image belongs to the determination unit, which is used to obtain a pixel point at the current shooting moment and a corresponding pixel point at the next shooting moment after all pixel points of the area image are subjected to data fusion processing according to the shooting cycle of the industrial camera; When the grayscale value of the one pixel is consistent with the grayscale value of the corresponding pixel, it is determined that the one pixel does not belong to the gravure edge area or the coating edge area; When the grayscale value of the one pixel point is inconsistent with the grayscale value of the corresponding pixel point, if the grayscale value of the one pixel point is greater than the grayscale value of the corresponding pixel point and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel point belongs to the gravure edge area; When the grayscale value of the one pixel is inconsistent with the grayscale value of the corresponding pixel, if the grayscale value of the one pixel is less than the grayscale value of the corresponding pixel and the grayscale value difference is greater than a preset grayscale threshold, it is determined that the one pixel belongs to the coating edge area; Otherwise, it is determined that the pixel point does not belong to the gravure edge area or the coating edge area; An edge straight line determination unit is used to connect the pixel points of the gravure edge area and the coating edge area, and use the pixel points with the same gray value as a line segment to determine the edge straight line; When the total length of the line segment does not meet the preset edge straight line length range, it is determined that the line segment cannot be an edge straight line and is removed; The remaining line segments are judged as edge lines. When the line similarity is not higher than the preset line threshold, they are eliminated for the second time. The edge straight line correction unit is used to obtain the mean and variance of the gravure edge area and the coating edge area, perform binarization processing, and perform binary morphological expansion filtering; Perform pixel grayscale value accumulation processing on the line segment after the second elimination, and replace the pixel value of the corresponding line segment with the accumulation processing result to obtain the first processing result of the edge line; An edge straight line gradient processing unit is used to perform median filtering on the gravure edge area and the coating edge area and determine the gradient scale; According to the mean value and the gradient scale, edge straight lines in the gravure edge area and the coating edge area are respectively extracted, and interference is eliminated to obtain secondary processing results of the edge straight lines; An edge position data determination unit is used to perform a fusion analysis on the primary processing result and the secondary processing result of the edge straight line to determine the edge straight line; Three consecutive pixel points are randomly selected from the edge line, and the boundary belonging probability of each point is calculated. When the boundary belonging probability of each pixel point of the edge line meets the preset boundary probability, the edge line is determined to be the edge position data of the gravure area and the coating area.

4. A gravure coating image recognition system according to claim 3, characterized in that: The edge position data determination unit comprises: A boundary probability calculation subunit, configured to calculate the boundary belonging probability of each pixel point by selecting three consecutive pixel points from the edge straight line; ; Wherein, P(xi1) is the probability of the i1th pixel point xi1 in the edge line belonging to the boundary; xi1xi2 is the pixel distance between the i1th pixel point and the i2th pixel point in the edge line; xi1xi3 is the pixel distance between the i1th pixel point and the i3th pixel point in the edge line; xi2xi3 is the pixel distance between the i2th pixel point and the i3th pixel point in the edge line; pixel points xi1, xi2 and xi3 are three consecutive pixel points in the edge line; a is the preset angle threshold; arcos() is the angle of the pixel point; is a step function. When the pixel angle is greater than the preset angle threshold, the value is 1, otherwise the value is 0. n1 is the total number of pixels on the edge line.

5. The gravure coating image recognition system according to claim 1, characterized in that: Coating image verification module, including: A requirement acquisition unit, used to acquire preset coating identification requirements of the current coating material according to a historical database; The coating image verification unit is used to verify the edge position data of the coating image. When the average recognition time and recognition accuracy of the edge position data meet the preset coating image recognition requirements, it is determined that the gravure coating image recognition is correct.

6. The gravure coating image recognition system according to claim 1, characterized in that: The coating image verification module also includes: An automatic adjustment unit, used to automatically adjust the colors of the two light sources according to a preset gravure coating image recognition correction strategy when it is determined that the gravure coating image recognition is incorrect; When a change in the coating material is detected, the coating grayscale and the gravure grayscale of the grayscale image of each color light source of the new coating material are obtained, and the current light source color is automatically adjusted.