A high-speed printed product quality online detection method
By analyzing the pixel distribution and gradient trend in the grayscale image of printed matter, screening ink spot defective pixels and constructing a grayscale histogram, it solves the problem of difficulty in distinguishing ink spots and fonts in traditional methods, and improves the accuracy of print quality detection. and efficiency.
Patent Information
- Application Number
- CN202410451862.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-04-16
AI Technical Summary
The traditional local histogram equalization algorithm cannot effectively distinguish the ink spot area and the font area when processing printed images, resulting in low accuracy and low efficiency in ink spot defect detection.
By analyzing the grayscale distribution and gradient trend of pixels in printed grayscale images, we screen out ink-spot defective pixels, construct a grayscale histogram for quality inspection, and adaptively divide image blocks for image enhancement processing.
It improves the identification accuracy of ink spot defective areas and print quality detection efficiency, enhances the image enhancement effect, and clearly distinguishes ink spots from normal areas.
Smart Images

Figure CN118247259B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a high-speed printed product quality online detection method. Background Art
[0002] During the printing process, the ink tank inside the printing device will be affected by the temperature, humidity and ink concentration of the surrounding environment when the ink is discharged, which will cause ink spots on the printed product and quality problems of the printed product. In order to accurately detect the quality of the printed product of the printing press, it is necessary to perform image enhancement processing on the printed product image.
[0003] Traditional methods usually use local histogram equalization algorithms to enhance printed images; however, the grayscale distribution of some ink spots and fonts is relatively similar. Traditional local histogram equalization algorithms will only perform enhancement processing through divided image blocks, which will enhance both the ink spot area and the font area, reducing the accuracy of detecting ink spot defect areas, reducing the detection precision of printed quality, and reducing the detection efficiency of printed quality. Summary of the invention
[0004] The present invention provides a high-speed online detection method for printed product quality to solve the existing problem that the grayscale distribution of some ink spots and fonts is relatively similar, and the traditional local histogram equalization algorithm only performs enhancement processing through the divided image blocks, and cannot effectively distinguish the ink spot area from the font area.
[0005] A high-speed online detection method for printed product quality of the present invention adopts the following technical scheme:
[0006] The following steps are involved:
[0007] Collecting printed grayscale images of a number of printed materials;
[0008] According to the gray content distribution of each pixel in the gray image of the printed product, a number of initial defective pixels are screened out from all the pixels; according to the difference in pixel content between different initial defective pixels around the initial defective pixel and the distribution of the gray trend law, the ink spot defect possibility of each initial defective pixel is obtained; according to the ink spot defect possibility of the initial defective pixel, a number of ink spot defective pixels are screened out from all the initial defective pixels;
[0009] A grayscale histogram is constructed based on all ink spot defect pixels, and quality inspection is performed based on the grayscale histogram.
[0010] Preferably, the method of selecting a number of initial defective pixels from all pixels according to the gray content distribution of each pixel in the gray image of the printed product includes the following specific methods:
[0011] For any printed grayscale image, a cluster number K is preset, and the grayscale values between different pixels are used as the distance metric. According to K and the distance metric, all pixels in the printed grayscale image are clustered by k-means to obtain several clusters. The cluster with the smallest cumulative grayscale value is recorded as the ink spot font pixel cluster, and each pixel in the ink spot font pixel cluster is recorded as the initial defective pixel.
[0012] Preferably, the method of obtaining the ink spot defect possibility of each initial defective pixel point according to the difference in pixel content between different initial defective pixels around the initial defective pixel point and the distribution of grayscale trend law includes the following specific methods:
[0013] According to the grayscale distribution difference between the ith initial defective pixel and other initial defective pixels, and the pixel content difference between the ith initial defective pixel and other initial defective pixels, the initial ink spot possibility of the ith initial defective pixel is obtained;
[0014] The Sobel operator is used to obtain the gradient amplitude and gradient direction degree of each pixel point; the neighborhood change confusion factor of the i-th initial defective pixel point is obtained according to the difference in gradient amplitude and gradient direction degree between the i-th initial defective pixel point and its surrounding pixels; the neighborhood change confusion factors of all initial defective pixels are linearly normalized, and each normalized neighborhood change confusion factor is recorded as the neighborhood change confusion degree;
[0015] According to the density distribution of initial defective pixels around the i-th initial defective pixel, a distribution density weight of the i-th initial defective pixel is obtained;
[0016] The product of the distribution density weight of the ith initial defective pixel, the degree of neighborhood change disorder of the ith initial defective pixel, and the initial possibility of the ink spot of the ith initial defective pixel is taken as the ink spot defect possibility of the ith initial defective pixel.
[0017] Preferably, the method of obtaining the initial ink spot possibility of the i-th initial defective pixel point according to the grayscale distribution difference between the i-th initial defective pixel point and other initial defective pixel points, and the pixel content difference between the i-th initial defective pixel point and other initial defective pixel points, includes the following specific methods:
[0018] According to the difference in grayscale values between the i-th initial defective pixel and other initial defective pixels, a comparative grayscale distribution difference coefficient of the i-th initial defective pixel is obtained;
[0019] According to the difference in the number of pixels between the i-th initial defective pixel and other initial defective pixels, a comparative pixel content coefficient of the i-th initial defective pixel is obtained;
[0020]
[0021] Where P i represents the initial probability of the ink spot of the i-th initial defective pixel; h i represents the gray value of the i-th initial defect pixel; α represents the preset denominator hyperparameter; θ i It represents the contrast grayscale distribution difference coefficient of the i-th initial defective pixel; exp() represents an exponential function with a natural constant as the base.
[0022] Preferably, the grayscale distribution difference coefficient of the i-th initial defective pixel is obtained according to the difference in grayscale values between the i-th initial defective pixel and other initial defective pixels, including the specific method of:
[0023]
[0024] Where M i represents the number of all initial defective pixels except the i-th initial defective pixel; h1 i,m represents the gray value of the mth initial defective pixel except the ith initial defective pixel; || represents the absolute value.
[0025] Preferably, the method of obtaining the contrast pixel content coefficient of the i-th initial defective pixel point according to the difference in the number of pixels between the i-th initial defective pixel point and other initial defective pixels includes the following specific methods:
[0026] The number of pixels having the same grayscale value as the i-th initial defective pixel is recorded as the first number, the number of all initial defective pixels except the i-th initial defective pixel is recorded as the second number, and the ratio of the first number to the second number is recorded as the contrast pixel content coefficient of the i-th initial defective pixel.
[0027] Preferably, the neighborhood change confusion factor of the i-th initial defective pixel is obtained according to the difference in gradient amplitude and gradient direction degree between the i-th initial defective pixel and its surrounding pixels, including the specific method of:
[0028]
[0029] In the formula, β i represents the neighborhood change confusion factor of the i-th initial defect pixel; F i A represents the number of all pixels in the eight-neighborhood of the i-th initial defective pixel; i,f represents the gradient amplitude of the f-th pixel in the eight-neighborhood of the i-th initial defective pixel; represents the mean value of the gradient amplitude of all pixels in the eight-neighborhood of the i-th initial defect pixel; θ i,f Represents the gradient direction degree of the f-th pixel in the eight-neighborhood of the i-th initial defective pixel; It represents the mean of the gradient direction degrees of all pixels in the eight-neighborhood of the i-th initial defective pixel; || represents the absolute value.
[0030] Preferably, the method of obtaining the distribution density weight of the i-th initial defective pixel point according to the dense distribution of initial defective pixels around the i-th initial defective pixel point includes the following specific methods:
[0031] The inversely proportional normalized value of the number of all initial defective pixels in the eight neighborhoods of the i-th initial defective pixel is taken as the first inversely proportional value; and the difference between 1 and the first inversely proportional value is recorded as the distribution density weight of the i-th initial defective pixel.
[0032] Preferably, the method of selecting a number of ink spot defective pixels from all initial defective pixels according to the ink spot defect possibility of the initial defective pixels includes the following specific methods:
[0033] A ink spot defect possibility threshold T1 is preset; and initial defective pixels whose ink spot defect possibility is greater than T1 are recorded as ink spot defective pixels.
[0034] Preferably, the grayscale histogram is constructed according to all the ink spot defective pixels, and quality inspection is performed according to the grayscale histogram, including the specific method of:
[0035] A grayscale histogram is constructed according to all ink spot defective pixels, and the grayscale histogram is equalized to obtain a balanced grayscale histogram; the printed product grayscale image corresponding to the equalized grayscale histogram is recorded as an enhanced printed product grayscale image; a number of ink spot defective pixels T2 is preset, and if the number of ink spot defective pixels in the enhanced printed product grayscale image is greater than T2, the enhanced printed product grayscale image is regarded as a printed product image with quality problems.
[0036] The beneficial effects of the technical solution of the present invention are as follows: the present invention obtains several possibilities of ink spot defects by analyzing the differences in pixel content between different pixels around a pixel point and the distribution of grayscale trend laws, and then screens out several ink spot defective pixels; firstly, according to the differences in pixel content between different pixels around a pixel point and the distribution of grayscale trend laws, several possibilities of ink spot defects are obtained, wherein the possibilities of ink spot defects are used to describe the degree of distribution concentration and disorder of similar characteristic pixels around a pixel point, thereby strengthening the differentiation between ink spot defect areas that are highly similar to normal areas; according to the possibilities of ink spot defects, the present invention adaptively divides the image area occupied by several pixels into new image blocks for image enhancement processing, thereby improving the effect of image enhancement, improving the accuracy of identifying ink spot defect areas, and improving the detection efficiency of printed quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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 or the description of the prior art 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 work.
[0038] Figure 1 A flowchart of the steps of a high-speed online printing quality detection method of the present invention;
[0039] Figure 2 is a schematic diagram of a grayscale image of a printed product of the present invention;
[0040] Figure 3 It is a schematic diagram of the enhanced grayscale image of the printed matter according to the present invention. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a high-speed online detection method for printed product quality proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0043] The specific scheme of a high-speed online detection method for printed product quality provided by the present invention is described in detail below with reference to the accompanying drawings.
[0044] See also Figure 1 , which shows a flowchart of a method for high-speed online detection of printed product quality provided by an embodiment of the present invention, the method comprising the following steps:
[0045] Step S001: collecting grayscale images of a number of printed products.
[0046] It should be noted that traditional methods usually use local histogram equalization algorithms to enhance printed images; however, the grayscale distribution of some ink spots and fonts is relatively similar. Traditional local histogram equalization algorithms will only perform enhancement processing through divided image blocks, which will enhance both the ink spot area and the font area, reducing the accuracy of detecting ink spot defect areas, reducing the detection accuracy of printed quality, and reducing the detection efficiency of printed quality.
[0047] Specifically, we first need to collect grayscale images of several printed products. The specific process is: use an industrial camera to take 50 printed product images; perform grayscale processing on each printed product image to obtain several printed product grayscale images. Figure 2 , which shows a schematic diagram of a grayscale image of a print.
[0048] It should be noted that the number of printed materials in this embodiment may be determined according to specific implementation conditions; grayscale processing is a well-known technology and will not be described in detail in this embodiment.
[0049] So far, the grayscale images of all printed products have been obtained through the above method.
[0050] Step S002: According to the gray content distribution of each pixel in the gray image of the printed product, a number of initial defective pixels are screened out from all the pixels; according to the difference in pixel content between different initial defective pixels around the initial defective pixel and the distribution of gray trend rules, the ink spot defect possibility of each initial defective pixel is obtained; according to the ink spot defect possibility of the initial defective pixel, a number of ink spot defective pixels are screened out from all the initial defective pixels.
[0051] It should be noted that in the actual printing process, the color of the printed paper is usually a solid color background with bright tones, while the pattern or text printed on the paper is usually a solid color foreground with dark tones. When the printer is printing, due to the influence of factors such as the temperature, humidity and ink concentration of the surrounding environment, the printer may leak ink during printing, resulting in ink spots on the paper. The sizes, positions and shapes of these ink spots are randomly distributed, and each ink spot is a completely closed area with a low corresponding grayscale value; the image area occupied by the printed font is usually small and is also a completely closed area with a low corresponding grayscale value; resulting in ink spots of similar size to the printed font being unable to be effectively identified. However, since the size, position and shape of the printed font are relatively fixed and show a certain regularity, this embodiment can obtain the degree of printing defects of each pixel by analyzing the difference distribution of image features between the printed font and the ink spot for subsequent enhancement processing.
[0052] Preferably, in one embodiment of the present invention, a number of initial defective pixels are screened out from all pixels according to the gray content distribution of each pixel, and the specific method includes:
[0053] Taking any printed grayscale image as an example, a number of clusters K is preset, wherein this embodiment is described by taking K=2 as an example, and this embodiment is not specifically limited, wherein K can be determined according to the specific implementation situation; the grayscale values between different pixels are used as distance metrics; according to K and the distance metric, all pixels in the printed grayscale image are k-means clustered to obtain a number of clusters; the cluster with the smallest cumulative grayscale value is recorded as the ink spot font pixel cluster, and each pixel in the ink spot font pixel cluster is recorded as the initial defective pixel. The process of clustering according to K and the distance metric is a well-known content of the k-means clustering algorithm, and will not be repeated in this embodiment.
[0054] Preferably, in one embodiment of the present invention, the ink spot defect possibility of each initial defective pixel is obtained according to the difference in pixel content between different initial defective pixels around the initial defective pixel and the distribution of grayscale trend rules, including the specific method of:
[0055] According to the grayscale distribution difference between the ith initial defective pixel and other initial defective pixels, and the pixel content difference between the ith initial defective pixel and other initial defective pixels, the ink spot initial possibility of the ith initial defective pixel is obtained. As an example, the ink spot initial possibility of the ith initial defective pixel can be calculated by the following formula:
[0056]
[0057] Where Pi represents the initial probability of the ink spot of the i-th initial defective pixel; h i Represents the gray value of the i-th initial defective pixel; N i represents the number of pixels with the same grayscale value as the i-th initial defective pixel; M i represents the number of all initial defective pixels except the i-th initial defective pixel; h1 i,m represents the grayscale value of the mth initial defective pixel except the ith initial defective pixel; || represents taking the absolute value; α represents a preset denominator hyperparameter, and this embodiment presets α=1 to prevent the denominator from being 0; exp() represents an exponential function with a natural constant as the base, and the embodiment adopts the exp(-x) model to present the inverse proportional relationship and normalization processing, x is the input of the model, and the implementer can select the inverse proportional function and normalization function according to the actual situation.
[0058] It should be noted that represents the distribution content difference between the i-th initial defective pixel and other initial defective pixels; The gray weight coefficient representing the initial possibility of the ink spot of the i-th initial defective pixel; It indicates the grayscale distribution difference between the ith initial defective pixel and other initial defective pixels; if the initial ink spot possibility of the ith initial defective pixel is greater, it means that the ith initial defective pixel is closer to the image features represented by the ink spot defect area and the font area, which means that the ith initial defective pixel is less likely to be effectively identified.
[0059] Furthermore, the Sobel operator is used to obtain the gradient amplitude and gradient direction degree of each pixel point; according to the difference in gradient amplitude and gradient direction degree between the i-th initial defective pixel point and its surrounding pixels, the neighborhood change confusion factor of the i-th initial defective pixel point is obtained. The process of obtaining the gradient amplitude and gradient direction degree is a well-known content of the Sobel operator, and will not be repeated in this embodiment. As an example, the neighborhood change confusion factor of the i-th initial defective pixel point can be calculated by the following formula:
[0060]
[0061] In the formula, β i represents the neighborhood change confusion factor of the i-th initial defect pixel; F i A represents the number of all pixels in the eight-neighborhood of the i-th initial defective pixel; i,f represents the gradient amplitude of the f-th pixel in the eight-neighborhood of the i-th initial defective pixel; represents the mean value of the gradient amplitude of all pixels in the eight-neighborhood of the i-th initial defect pixel; θ i,fRepresents the gradient direction degree of the f-th pixel in the eight-neighborhood of the i-th initial defective pixel; It represents the mean of the gradient direction degrees of all pixels in the eight-neighborhood of the i-th initial defective pixel; || represents the absolute value.
[0062] It should be noted that if the neighborhood change chaos factor of the i-th initial defect pixel point is larger, it means that the change pattern of the pixels around the i-th initial defect pixel point is more chaotic, reflecting that the change characteristics of the pixels around the i-th initial defect pixel point are closer to the change characteristics of the ink spot defect area.
[0063] Furthermore, the neighborhood change confusion factors of all initial defective pixels are linearly normalized, and each normalized neighborhood change confusion factor is recorded as the neighborhood change confusion degree. According to the neighborhood change confusion degree of the i-th initial defective pixel and the ink spot initial possibility of the i-th initial defective pixel, the ink spot defect possibility of the i-th initial defective pixel is obtained. As an example, the ink spot defect possibility of the i-th initial defective pixel can be calculated by the following formula:
[0064] γ i =β1 i ×P i ×{α1+[1-exp(-F1 i )]}
[0065] In the formula, γ i Indicates the probability of ink spot defect of the i-th initial defective pixel; β1 i P represents the degree of disorder of the neighborhood change of the i-th initial defect pixel; i F1 represents the initial probability of the ink spot of the i-th initial defective pixel; i represents the number of all initial defective pixels in the eight neighborhoods of the i-th initial defective pixel; α1 represents the preset ink spot defect hyperparameter, and in this embodiment, α1=1 is preset to prevent γ i Too small; exp() represents an exponential function with a natural constant as the base. The embodiment adopts the exp(-x) model to present the inverse proportional relationship and normalization processing. x is the input of the model. The implementer can select the inverse proportional function and the normalization function according to the actual situation. Obtain the ink spot defect possibility of all initial defective pixels.
[0066] It should be noted that α1+[1-exp(-F1 i)] represents the distribution density weight quantified based on the density of the distribution of initial defective pixels around the ith initial defective pixel; wherein, if the ink spot defect possibility of the ith initial defective pixel is greater, it means that the distribution of pixels with similar characteristics around the ith initial defective pixel is more concentrated, and the distribution change pattern is more chaotic; it reflects that the ith initial defective pixel is more likely to belong to the ink spot defect area.
[0067] Preferably, in one embodiment of the present invention, according to the ink spot defect possibility of the initial defective pixel point, a number of ink spot defective pixel points are screened out from all the initial defective pixel points, including the specific method of:
[0068] A ink spot defect possibility threshold T1 is preset, wherein this embodiment is described by taking T1=0.65 as an example, and this embodiment is not specifically limited, wherein T1 may be determined according to the specific implementation situation; initial defective pixels whose ink spot defect possibility is greater than T1 are recorded as ink spot defective pixels; and all ink spot defective pixels are obtained.
[0069] So far, all the ink spot defective pixels are obtained through the above method.
[0070] Step S003: construct a grayscale histogram based on all the ink spot defect pixels, and perform quality inspection based on the grayscale histogram.
[0071] Preferably, in one embodiment of the present invention, a grayscale histogram is constructed according to all the ink spot defective pixels, and quality detection is performed according to the grayscale histogram, including the specific method of:
[0072] A grayscale histogram is constructed based on all the ink spot defect pixels, and the grayscale histogram is equalized to obtain a balanced grayscale histogram; the printed grayscale image corresponding to the equalized grayscale histogram is recorded as an enhanced printed grayscale image; a number of ink spot defect pixels T2 is preset, wherein this embodiment is described using T2=15 as an example, and this embodiment is not specifically limited, wherein T2 may be determined according to specific implementation circumstances; if the number of ink spot defect pixels in the enhanced printed grayscale image is greater than T2, the enhanced printed grayscale image is regarded as a printed image with quality problems. The process of constructing a grayscale histogram is a well-known technique, and the process of equalizing a grayscale histogram is a well-known content of a local histogram equalization algorithm, which will not be described in detail in this embodiment. Please refer to Figure 3 , which shows a schematic diagram of an enhanced grayscale image of a printed product.
[0073] It should be noted that the enhanced grayscale image of the printed product only enhances the display of the ink spot defect area, making the difference between the ink spot defect area and other normal areas more obvious; and the content of the ink spot defect area contained in each enhanced grayscale image of the printed product is different. In the actual printing process, a grayscale image of a printed product with a certain amount of ink spot defect area is allowed to be a normal printed product image.
[0074] At this point, this embodiment is completed.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A high-speed printed product quality online detection method, characterized in that: The method comprises the following steps: Collecting printed grayscale images of a number of printed materials; According to the gray content distribution of each pixel in the gray image of the printed product, a number of initial defective pixels are screened out from all the pixels; according to the difference in pixel content between different initial defective pixels around the initial defective pixel and the distribution of the gray trend law, the ink spot defect possibility of each initial defective pixel is obtained; according to the ink spot defect possibility of the initial defective pixel, a number of ink spot defective pixels are screened out from all the initial defective pixels; Construct a grayscale histogram based on all the ink spot defect pixels, and perform quality inspection based on the grayscale histogram; The method of obtaining the ink spot defect possibility of each initial defective pixel point according to the difference in pixel content between different initial defective pixels around the initial defective pixel point and the distribution of grayscale trend law includes: According to The grayscale distribution difference between the initial defective pixel and other initial defective pixels, and the The difference in pixel content between the initial defective pixel and other initial defective pixels is obtained. Initial probability of ink spots with initial defective pixels; Use the Sobel operator to obtain the gradient magnitude and gradient direction degree of each pixel; according to the The difference in gradient amplitude and gradient direction between the initial defective pixel and its surrounding pixels is obtained. The neighborhood change confusion factors of the initial defective pixels are linearly normalized, and each neighborhood change confusion factor after normalization is recorded as the neighborhood change confusion degree; According to The density of initial defective pixels around the initial defective pixel is obtained. The distribution density weight of the initial defective pixels; The first The distribution density weight of the initial defect pixel point, The degree of disorder of the neighborhood change of the initial defective pixel and the The product of the initial probability of the ink spot of the initial defective pixel is taken as the first The probability of ink spot defect for each initial defective pixel; The obtained The initial probability of ink spots of initial defective pixels includes the following specific methods: According to The difference in grayscale value between the initial defective pixel and other initial defective pixels is obtained. The contrast grayscale distribution difference coefficient of the initial defective pixels; According to The difference in the number of pixels between the initial defective pixel and other initial defective pixels is obtained. The contrast pixel content coefficient of the initial defective pixels; In the formula, Indicates Initial probability of ink spots with initial defective pixels; Indicates Gray value of the initial defective pixel; represents the preset denominator hyperparameter; Indicates The contrast grayscale distribution difference coefficient of the initial defective pixels; represents an exponential function with a natural constant as base; Indicates The contrast pixel content coefficient of the initial defective pixels; The obtained The contrast grayscale distribution difference coefficient of the initial defective pixel points includes the following specific methods: In the formula, Indicates that except The number of all initial defective pixels except the initial defective pixels; Indicates that except The first defective pixel Gray value of the initial defective pixel; Indicates taking the absolute value; The obtained The comparison pixel content coefficient of the initial defective pixel point includes the following specific methods: Will be with The number of pixels with the same grayscale value as the first defective pixel is recorded as the first number, except for the The number of all initial defective pixels other than the initial defective pixels is recorded as the second number, and the ratio of the first number to the second number is recorded as the The contrast pixel content coefficient of the initial defective pixels; The obtained The neighborhood change confusion factor of the initial defective pixel point includes the following specific methods: In the formula, Indicates Neighborhood change confusion factor of the initial defect pixel; Indicates The number of all pixels in the eight-neighborhood of the initial defective pixel; Indicates The first The gradient amplitude of each pixel; Indicates The mean of the gradient amplitudes of all pixels in the eight neighborhoods of the initial defective pixel; Indicates The first The gradient direction degree of each pixel; Indicates The average value of the gradient direction degree of all pixels in the eight neighborhoods of the initial defective pixel; Indicates taking the absolute value; The obtained The distribution density weight of the initial defective pixel points includes the following specific methods: The first The inverse proportional normalized value of the number of all initial defective pixels in the eight neighborhoods of the initial defective pixel is taken as the first inverse proportional value; the difference between 1 and the first inverse proportional value is recorded as the The distribution density weight of the initial defective pixels.
2. A high-speed printed product quality online detection method according to claim 1, characterized in that: The specific method of selecting a number of initial defective pixels from all pixels according to the gray content distribution of each pixel in the gray image of the printed product includes: For any printed grayscale image, preset a cluster number , taking the grayscale value between different pixels as the distance metric; according to Based on the distance metric, k-means clustering is performed on all pixels in the grayscale image of the printed product to obtain several clusters; the cluster with the smallest cumulative grayscale value is recorded as the ink spot font pixel cluster, and each pixel in the ink spot font pixel cluster is recorded as the initial defective pixel.
3. The high-speed online detection method for printed product quality according to claim 1, characterized in that: The method of selecting a number of ink spot defective pixels from all the initial defective pixels according to the ink spot defect possibility of the initial defective pixels includes: Preset a threshold for the probability of ink spot defects ; The probability of ink spot defect is greater than The initial defective pixel point is recorded as the ink spot defective pixel point.
4. The high-speed online detection method for printed product quality according to claim 1, characterized in that: The grayscale histogram is constructed according to all the ink spot defect pixels, and quality inspection is performed according to the grayscale histogram, including the following specific methods: A grayscale histogram is constructed based on all the ink spot defect pixels, and the grayscale histogram is equalized to obtain a balanced grayscale histogram; the printed grayscale image corresponding to the equalized grayscale histogram is recorded as the enhanced printed grayscale image; a number of ink spot defect pixels is preset , if the number of defective pixels in the enhanced grayscale image of the printed product is greater than , the enhanced printed grayscale image is used as a printed image with quality problems.
Citation Information
Cited By
Printing quality online detection method based on artificial intelligence
CN119444721A
An online printing quality detection method based on artificial intelligence
CN119444721B
