CN110530895B - Method and device for detecting printing quality - Google Patents

Method and device for detecting printing quality Download PDF

Info

Publication number
CN110530895B
CN110530895B CN201910655755.8A CN201910655755A CN110530895B CN 110530895 B CN110530895 B CN 110530895B CN 201910655755 A CN201910655755 A CN 201910655755A CN 110530895 B CN110530895 B CN 110530895B
Authority
CN
China
Prior art keywords
dot pattern
nominal position
data point
nominal
detecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910655755.8A
Other languages
Chinese (zh)
Other versions
CN110530895A (en
Inventor
刘燕
刘春祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huiyan Zhixing Technology Co ltd
Original Assignee
Beijing Huiyan Zhixing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huiyan Zhixing Technology Co ltd filed Critical Beijing Huiyan Zhixing Technology Co ltd
Priority to CN201910655755.8A priority Critical patent/CN110530895B/en
Publication of CN110530895A publication Critical patent/CN110530895A/en
Application granted granted Critical
Publication of CN110530895B publication Critical patent/CN110530895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41FPRINTING MACHINES OR PRESSES
    • B41F33/00Indicating, counting, warning, control or safety devices
    • B41F33/0036Devices for scanning or checking the printed matter for quality control
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • G01N21/95607Inspecting patterns on the surface of objects using a comparative method
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • G01N21/95607Inspecting patterns on the surface of objects using a comparative method
    • G01N2021/95615Inspecting patterns on the surface of objects using a comparative method with stored comparision signal

Abstract

The invention discloses a method and a device for detecting printing quality, comprising the following steps: acquiring a data point group of the dot pattern from the dot pattern to be detected; extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern; detecting the printing index of the dot pattern according to the code points, the nominal positions and the preset coding rules of the dot pattern; and determining the printing quality of the dot pattern according to the printing index. Therefore, the automatic detection of the printing quality of the dot patterns is realized, manual intervention is not needed, and even a technician who does not know the dot pattern generation rule can adopt the method of the embodiment to detect the quality of the dot patterns.

Description

Method and device for detecting printing quality
Technical Field
The invention relates to the field of image processing, in particular to a method and a device for detecting printing quality.
Background
With the development of graphic coding technology, in recent years, optical geometric figures for recording characteristic data, which are generally formed by blocks of different colors or by sparse dot matrixes, on which characteristic data symbol information can be recorded, have appeared on various printing media in a regular arrangement, wherein the figures formed by the sparse dot matrixes are dot patterns.
In the process of printing the dot pattern, the dot pattern may be distorted, and the printing result may be wrong due to some environments or improper operations, but the dot pattern has too many dots, so that the problem is difficult to be distinguished by naked eyes, and for some technicians who do not know the dot pattern rule, the root cause of the problem cannot be found.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for detecting printing quality, which implement automatic detection of dot pattern printing quality.
The embodiment of the invention discloses a method for detecting printing quality, which comprises the following steps:
acquiring a data point group of the dot pattern from the dot pattern to be detected;
extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern;
detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern;
and determining the printing quality of the dot pattern according to the printing index.
Optionally, the detecting the printing index of the dot pattern according to the data point group of the dot pattern includes:
detecting the straightness of the nominal position according to the nominal position of the dot pattern;
Detecting the consistency degree of the distance between the nominal positions according to the nominal positions of the dot patterns;
detecting satisfaction of the dot pattern angle based on the nominal position and the data point group in the dot pattern;
detecting the purity of data points contained in a data point group in the point graph;
the number of stains in the dot pattern is detected.
Optionally, the detecting the straightness of the nominal position according to the nominal position of the dot pattern includes:
determining the row and the column of each nominal position according to the coordinates of each nominal position;
determining a straight line where nominal positions in the same row or the same column are located;
the number of nominal positions in each row and column that are not on the line on which the nominal position lies is counted.
Optionally, the detecting the consistency degree of the nominal position interval according to the nominal position of the dot pattern includes:
calculating the distance between each adjacent nominal position;
calculating the mean value of the distances between adjacent nominal positions;
the number of the distances between adjacent nominal positions not being equal to the mean is counted.
Optionally, the detecting the satisfaction degree of the dot pattern angle according to the nominal position and the data dot group in the dot pattern includes:
sequentially judging whether the angle of each data point group is within a preset angle range;
And counting the number of the angles of the data point groups which are not in the preset angle range.
Optionally, the purity of the data points included in the data point group in the detected point graph includes:
determining each dot-pattern sub-block in the dot pattern from the nominal position;
judging whether each point graph subblock contains miscellaneous points except the data point group and the reference point group;
and counting the number of the graph subblocks containing the miscellaneous points in the point graph.
Optionally, the detecting the number of the stains in the dot pattern includes:
acquiring a connected domain in a dot pattern;
comparing a connected domain in the dot pattern with a preset upper limit of a dot threshold;
and counting the number of connected domains larger than the upper limit of the preset point threshold.
Optionally, the determining the printing quality of the dot pattern according to the printing index includes:
determining a first level of print quality based on the straightness of the detected nominal position;
determining a second level of print quality based on a degree of conformity of the spacing of the nominal positions of the dot pattern;
determining a third level of print quality based on the satisfaction of the detected dot pattern angle;
determining a fourth level of print quality based on the purity of the data points in the dot pattern;
Determining a fifth level of print quality based on the number of blotches in the dot pattern;
and analyzing the first level, the second level, the third level, the fourth level and the fifth level to determine the level of the dot pattern printing quality.
The embodiment of the invention discloses a device for detecting printing quality, which comprises:
the acquisition unit is used for acquiring a data point group of the dot pattern from the dot pattern to be detected;
the extraction unit is used for extracting the information of each nominal position in the dot pattern according to the data point group in the dot pattern;
the detection unit is used for detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern;
a print quality determination unit configured to determine a print quality of the dot pattern based on the print index.
Optionally, the detecting unit includes:
the straightness detection subunit is used for detecting the straightness of the nominal position according to the nominal position of the point graph;
a consistency degree detection subunit, configured to detect a consistency degree of the nominal position interval according to the nominal position of the dot pattern;
the angle satisfaction degree detection subunit is used for detecting the satisfaction degree of the dot pattern angle according to the nominal position and the data dot group in the dot pattern;
The data purity detection subunit is used for detecting the purity of data points contained in the data point group in the point diagram;
a stain number detecting subunit for detecting the number of stains in the dot pattern.
The embodiment of the invention discloses a method and a device for detecting printing quality, which comprises the following steps: acquiring a data point group of the dot pattern from the dot pattern to be detected; extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern; detecting the printing index of the dot pattern according to the code points, the nominal position and the preset coding rule of the dot pattern; determining the printing quality of the dot pattern according to the printing index. Thus, the automatic detection of the printing quality of the dot pattern is realized, manual intervention is not needed, and even a technician who does not know the dot pattern generation rule can adopt the method of the embodiment to detect the quality of the dot pattern.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for detecting print quality according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a dot pattern provided by an embodiment of the present invention;
FIG. 3 is a diagram illustrating a nominal position in a dot pattern provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating an apparatus for detecting printing quality according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flow diagram of a method for detecting print quality according to an embodiment of the present invention is shown, in which the method includes:
s101: acquiring a data point group of the dot pattern from the dot pattern to be detected;
in this embodiment, the process of detecting the data point group may include:
carrying out binarization processing on the region where the code point is located to obtain a binary image containing a plurality of connected domains;
Acquiring the number of pixel points contained in each connected domain;
screening connected domains with the number of pixel points within a preset first range;
taking two connected domains with the nearest distance as a group, calculating the distance value of the two connected domains in each group, and calculating the average value of all the distance values;
if the distance value of the two connected domains in each group is smaller than the average value of the distance values, taking the connected domain of the group as a code point;
if the connected domain is larger than a preset third threshold value, taking the connected domain as two code points;
the two closest code points are taken as a data point group.
In the present embodiment, each data point group in the dot pattern appears in pairs, and the distance between the two data point groups is the closest, and in the present embodiment, the data point group can be determined by the distance from the code point used for pairing.
Firstly, code points available for pairing are searched for the first time, including: counting the number of pixel points contained in each connected domain, and screening out target connected domains with the number of the pixel points larger than a preset first range; and aiming at any one target connected domain, calculating the distance between the target connected domain and other target connected domains, screening out the target connected domain with the closest distance, and taking the two connected domains with the closest distance as a group. The distance values for each set of connected components are calculated, and the average of all the distance values is calculated.
Then, according to the screened connected domain, determining all code points in the region where the code points are located, including: judging the relation between the size of each connected domain and a preset third threshold, taking the connected domain larger than the third threshold as two code points, for example, dividing the connected domain into two parts, each part being a connected domain, for example, dividing the connected domain into an upper part and a lower part, or dividing the connected domain into a left part and a right part; and judging the relation between the distance of the two connected domains in each group and the average value of the distance value, and if the distance of the two connected domains in each group is smaller than the average value of the distance value, taking the two connected domains in the group as a code point.
The center distance of each code point from other code points is calculated, wherein the center distance can be understood as the distance from the center of one code point to the center of another code point.
For any code point, the center distance between the code point and other code points is calculated, the code point corresponding to the minimum center distance is used as a matched code point of the code point, the two code points are used as a data point group, namely, for any code point, one other code point closest to the code point is found, and the two code points are used as a data point group.
S102, extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern;
in this embodiment, the dot pattern includes: a plurality of sub-elements, each sub-element comprising a group of data points and a nominal position, etc.
For example, the following steps are carried out: as shown in fig. 2, dot pattern block 100 includes a plurality of subunits 101, each subunit including a nominal data point position 102, two code points on either side of the nominal data point position, represented as a set of data points 103, and a set of reference points 104 directly above the nominal reference point position 104.
And, all nominal positions have a first geometric relationship therebetween, each nominal position of a data point includes a second geometric relationship with a corresponding set of data points, and each nominal position of a reference point includes a third geometric relationship with a set of reference points.
Thus, based on the geometrical relationship between the set of data points and the nominal positions, position information for all nominal positions can be extracted.
S103: detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern;
in this embodiment, there may be many problems involved in printing the dot pattern, and the existing problems need to be represented by some indexes, and the quality of the indexes represents the quality of the printing quality, where the printing indexes may include: straightness of the nominal position, consistency of the spacing of the nominal position, satisfaction of dot pattern angle, purity of code dots and number of stains.
The calculation process of the printing index comprises the following steps:
detecting the straightness of the nominal position according to the nominal position of the dot pattern;
detecting the consistency degree of the distance between the nominal positions according to the nominal positions of the dot patterns;
detecting satisfaction of the dot pattern angle based on the nominal position and the data point group in the dot pattern;
detecting the purity of data points contained in a data point group in the point graph;
the number of stains in the dot pattern is detected.
The straightness index may include, for example:
determining the row and the column of each nominal position according to the coordinates of each nominal position;
determining a straight line where nominal positions in the same row or the same column are located;
the number of nominal positions in each row and column that are not on the line on which the nominal position lies is counted.
In this embodiment, the process of determining the row and column at each nominal position includes:
calculating three nominal positions closest to the nominal position of the reference point, and calculating the width and height of the dot-pattern sub-blocks according to the three nominal positions; calculating the distance between each nominal position and the nominal position of the reference point, expressed as a reference distance; calculating a first multiple relation between the reference distance and the width of the dot pattern sub-block, and calculating a second multiple relation between the reference distance and the height of the dot pattern sub-block; and determining the row and the column of the nominal position according to the first multiple relation and the second multiple relation.
By way of example: as shown in fig. 3, point D is the nominal position of the reference point and A, C, B is the three nominal positions closest to the nominal position of the reference point, then
Figure BDA0002136825710000061
The difference between the y coordinate of a and the y coordinate of C is equal to high.
In this embodiment, the nominal positions in the same row and column should be in a straight line, but due to the influence of the printing process, the calculated nominal position is also inaccurate due to problems in printing the data point groups, and the nominal position may deviate from the original position.
The determination of the straight line on which the nominal position lies may, for example, comprise:
for any row or any column, if the number of nominal positions on a certain straight line is greater than the number of nominal positions on other straight lines, the straight line is taken as the position of the straight line at the nominal position of the row or the column.
Then, the number of nominal positions of the straight line deviated from the nominal position in each row and each column is counted, and the straightness is represented by the counted number of nominal positions.
The detecting of the consistency degree of the nominal position spacing may include:
calculating the distance between each adjacent nominal position;
calculating the mean value of the distances between adjacent nominal positions;
The number of the distances between adjacent nominal positions not being equal to the mean is counted.
Wherein, the detecting of the satisfaction degree of the dot pattern angle may include:
sequentially judging whether the angle of each data point group is within a preset angle range;
and counting the number of the angles of the data point groups which are not in the preset angle range.
In this embodiment, as can be seen from fig. 2, the angles of the dot pattern include: 0 degree, 45 degrees, 90 degrees and 135 degrees, each angle corresponds to a range interval, for example, 0 degree corresponds to [0,2] degree, 45 degrees corresponds to [35,45] degree, 90 degrees corresponds to [85,95], 135 degrees corresponds to [120,140] degree, it should be understood that the angle range of the above example is only used for explanation, and the range interval corresponding to each angle can be set according to actual needs.
And calculating data point groups contained on two sides of the nominal position of each subunit data, wherein the data point groups comprise two code points, and the angle between the two code points is the angle of the data point group.
The detecting of the purity of the data points in the point graph may include:
determining each dot pattern sub-block in the dot pattern according to the nominal position;
judging whether each point graph subblock contains miscellaneous points except the data point group and the reference point group;
And counting the number of the graph subblocks containing the miscellaneous points in the point graph.
In this embodiment, the width and the height of each graph sub-block are calculated according to the nominal position of the reference point and the nominal position of the data point, so as to determine the positions of all the graph sub-blocks included in the dot graph, and as shown in fig. 2, each graph sub-block includes a nominal position, each nominal position corresponds to one data point group or one reference point group, and if the dot graph sub-block includes other code points besides the data point group and the reference point group, the code point is a hybrid point.
Wherein, the detecting the number of the stains in the spot pattern may include:
acquiring a connected domain in a dot pattern;
comparing a connected domain in the dot pattern with a preset upper limit of a dot threshold;
and counting the number of connected domains larger than the upper limit of the preset point threshold.
In this embodiment, each connected domain included in the dot pattern may be obtained by performing binarization processing on the image and performing binarization processing on the image.
In this embodiment, the preset upper limit of the point threshold may be calculated by the following formula 1):
Figure BDA0002136825710000081
in the interim, the number of pixels in the dot pattern is x, and the number of pixels of the corresponding module in the acquired picture is y, that is, the upper limit of the threshold is y.
S104, determining the printing quality of the dot pattern according to the printing index;
in this embodiment, the printing index may reflect a problem in the printing quality, and the severity of the problem may reflect the printing quality of the dot pattern.
In the interim, S104 may include:
determining a first level of print quality based on the detected straightness of the nominal position;
determining a second level of print quality based on a degree of conformity of the spacing of the nominal positions of the dot pattern;
determining a third level of print quality based on the satisfaction of the detected dot pattern angle;
determining a fourth level of print quality based on the purity of the data points in the dot pattern;
determining a fifth level of print quality based on the number of blotches in the dot pattern;
and analyzing the first level, the second level, the third level, the fourth level and the fifth level to determine the level of the dot pattern printing quality.
In this embodiment, the first level, the second level, the third level, the fourth level, and the fifth level respectively represent different levels of printing quality, and the higher the level is, the better the printing quality is, and the lower the level is, the worse the printing quality is.
Wherein, by analyzing the first level, the second level, the third level, the fourth level and the fifth level, the method for determining the printing quality can comprise a plurality of methods, for example, can comprise:
setting a weight for each index, and determining the printing quality according to the weight of each index and the grade of each index;
in the second method, the lowest grade is selected from the grades corresponding to each index, and the lowest grade is used as the printing quality.
In this embodiment, a first level of printing quality is determined for the straightness according to the nominal positions, where it can be understood that the smaller the counted number of nominal positions on the straight line not located at the nominal position in each row and each column, the higher the printing quality is; conversely, the greater the number of nominal positions in each row and column that are counted that are not on the line on which the nominal position lies, the poorer the print quality.
In this embodiment, a second level of print quality is determined for the degree of conformity of the pitch based on the nominal position of the dot pattern: the counted number of the distances between the adjacent nominal positions unequal to the mean value can represent the consistency degree, and the consistency degree can reflect the quality of the printing. For example, the smaller the counted number of the distances between the adjacent nominal positions being unequal to the mean value, the better the printing quality, and the higher the grade of the printing quality; the larger the counted number of the distances between adjacent nominal positions being unequal to the mean value, the worse the print quality, the lower the grade of the print quality.
In the present embodiment, the third level of print quality is determined for the degree of satisfaction based on the detected dot pattern angle: the counted number of the angles of the data point groups, which are not in the preset angle range, can reflect the satisfaction degree of the dot pattern angle, and the satisfaction degree of the dot pattern angle can reflect the quality of printing quality. For example, the smaller the counted number of angles of the data point group not within the preset angle range, the better the printing quality is, and the higher the grade of the printing quality is; the more the counted number of the angles of the data point group which is not within the preset angle range is, the worse the printing quality is, the lower the grade of the printing quality is.
In this embodiment, for the purity based on the data points in the dot pattern, the fourth grade of the printing quality is determined: the counted number of the dot pattern subblocks containing the miscellaneous dots in the dot pattern can reflect the purity of the data points in the dot pattern, and the purity of the data points in the dot pattern can reflect the quality of printing. For example, the smaller the number of the dot pattern subblocks including the miscellaneous dots in the counted dot pattern is, the better the printing quality is, and the higher the level of the printing quality is; the counted larger the number of dot pattern sub-blocks including the mottle in the dot pattern, the worse the printing quality, and the lower the rank of the printing quality.
In the present embodiment, a fifth level of print quality is determined based on the number of stains in the dot pattern: the number of stains in the dot pattern can reflect the quality of printing. For example, the smaller the number of stains in the dot pattern, the better the print quality, and the higher the rank of the print quality; the larger the number of stains in the dot pattern, the worse the printing quality, and the lower the rank of the printing quality.
The embodiment of the invention provides a method and a device for detecting printing quality, which comprises the following steps: acquiring a data point group of the dot pattern from the dot pattern to be detected; extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern; detecting the printing index of the dot pattern according to the code points, the nominal position and the preset coding rule of the dot pattern; determining the printing quality of the dot pattern according to the printing index. Thus, the automatic detection of the printing quality of the dot pattern is realized, manual intervention is not needed, and even a technician who does not know the dot pattern generation rule can adopt the method of the embodiment to detect the quality of the dot pattern.
Referring to fig. 4, a schematic diagram of a structure of an apparatus for detecting printing quality according to an embodiment of the present invention is shown, in this embodiment, the apparatus includes:
An acquiring unit 401, configured to acquire a data point group of a dot pattern from the dot pattern to be detected;
an extracting unit 402, configured to extract information of each nominal position in the dot pattern according to the data point group in the dot pattern;
a detecting unit 403, configured to detect a printing index of the dot pattern according to a preset encoding rule of the dot group, the nominal position, and the dot pattern of the dot pattern;
a print quality determination unit 404 configured to determine a print quality of the dot pattern according to the print index.
Optionally, the detection unit includes:
the straightness detection subunit is used for detecting the straightness of the nominal position according to the nominal position of the point graph;
a consistency degree detection subunit, configured to detect a consistency degree of the nominal position interval according to the nominal position of the dot pattern;
the angle satisfaction degree detection subunit is used for detecting the satisfaction degree of the dot pattern angle according to the nominal position and the data dot group in the dot pattern;
the data purity detection subunit is used for detecting the purity of the data points contained in the data point group in the point graph;
a stain number detecting subunit for detecting the number of stains in the dot pattern.
Optionally, the detecting the straightness of the nominal position according to the nominal position of the dot pattern includes:
Determining the row and the column of each nominal position according to the coordinates of each nominal position;
determining a straight line where nominal positions in the same row or the same column are located;
the number of nominal positions in each row and column that are not on the line on which the nominal position lies is counted.
Optionally, the detecting the consistency degree of the nominal position interval according to the nominal position of the dot pattern includes:
calculating the distance between each adjacent nominal position;
calculating the mean value of the distances between adjacent nominal positions;
the number of the distances between adjacent nominal positions not being equal to the mean is counted.
Optionally, the detecting the satisfaction degree of the dot pattern angle according to the nominal position and the data dot group in the dot pattern includes:
sequentially judging whether the angle of each data point group is within a preset angle range;
and counting the number of the angles of the data point groups which are not in the preset angle range.
Optionally, the purity of the data points included in the data point group in the detected point graph includes:
determining each dot pattern sub-block in the dot pattern according to the nominal position;
judging whether each point graph subblock contains miscellaneous points except the data point group and the reference point group;
And counting the number of the graph subblocks containing the miscellaneous points in the point graph.
Optionally, the detecting the number of the stains in the dot pattern includes:
acquiring a connected domain in a dot pattern;
comparing a connected domain in the dot pattern with a preset upper limit of a dot threshold;
and counting the number of connected domains larger than the upper limit of the preset point threshold.
The print quality determination unit includes:
determining a first level of print quality based on the straightness of the detected nominal position;
determining a second level of print quality based on a degree of conformity of the spacing of the nominal positions of the dot pattern;
determining a third level of print quality based on the satisfaction of the detected dot pattern angle;
determining a fourth level of print quality based on the purity of the data points in the dot pattern;
determining a fifth level of print quality based on the number of stains in the dot pattern;
and analyzing the first level, the second level, the third level, the fourth level and the fifth level to determine the level of the dot pattern printing quality.
By the device of the embodiment, the automatic detection of the printing quality of the dot patterns is realized, manual intervention is not needed, and even a technician who does not know the dot pattern generation rule can detect the quality of the dot patterns by adopting the method of the embodiment.
It should be noted that, in this specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same as and similar to each other in each embodiment may be referred to.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of detecting print quality, comprising:
acquiring a data point group of the dot pattern from the dot pattern to be detected;
extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern;
detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern;
Determining the printing quality of the dot pattern according to the printing index;
wherein, the data point group for acquiring the dot pattern from the dot pattern to be detected comprises:
carrying out binarization processing on an area where a code point in the point graph is located to obtain a binary image containing a plurality of connected domains;
acquiring the number of pixel points contained in each connected domain;
screening out connected domains with the number of the pixel points within a preset first range;
taking two connected domains with the shortest distance as a group, calculating the distance value of the two connected domains in each group, and calculating the average value of all the distance values;
if the distance value of the two connected domains in each group is smaller than the average value of all the distance values, taking the two connected domains in the group as a code point;
if each connected domain is larger than a preset third threshold value, taking the connected domain as two code points;
taking two closest code points as a data point group;
wherein extracting information for each nominal position in the dot pattern according to the set of data points in the dot pattern comprises:
the dot pattern comprises a plurality of subunits, each subunit comprises a nominal position, each nominal position corresponds to a data point group or a reference point group, each subunit comprises a data point nominal position or a reference point nominal position, two sides of each data point nominal position comprise two code points, the two code points on the two sides of each data point nominal position are represented as the data point groups, and a reference point group is arranged right above the reference point nominal position;
A first geometric relationship exists between all the nominal positions, a second geometric relationship exists between each nominal position of the data point and the corresponding data point group, a third geometric relationship exists between each nominal position of the reference point and the reference point group, and the position information of all the nominal positions is extracted according to the geometric relationship between the data point group and the nominal positions;
wherein, the detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern comprises:
detecting the straightness of the nominal position according to the nominal position of the dot pattern;
detecting the consistency degree of the distance between the nominal positions according to the nominal positions of the dot patterns;
detecting satisfaction of the dot pattern angle based on the nominal position and the data point group in the dot pattern;
detecting the purity of data points contained in a data point group in the point graph;
the number of stains in the dot pattern is detected.
2. The method of claim 1, wherein said detecting the straightness of the nominal position based on the nominal position of the dot pattern comprises:
determining the row and the column of each nominal position according to the coordinates of each nominal position;
determining a straight line where nominal positions in the same row or the same column are located;
The number of nominal positions in each row and each column that are not on the line on which the nominal position lies is counted.
3. The method of claim 1, wherein detecting a degree of conformity of the spacing of nominal positions based on the nominal positions of the dot pattern comprises:
calculating the distance between each adjacent nominal position;
calculating the mean value of the distances between adjacent nominal positions;
the number of the distances between adjacent nominal positions not being equal to the mean is counted.
4. The method of claim 1, wherein detecting the satisfaction of the dot pattern angle from the nominal position in the dot pattern and the set of data points comprises:
sequentially judging whether the angle of each data point group is within a preset angle range;
and counting the number of the angles of the data point groups which are not in the preset angle range.
5. The method of claim 1, wherein detecting the purity of the data points contained in the set of data points in the dot pattern comprises:
determining each dot pattern sub-block in the dot pattern according to the nominal position;
judging whether each point graph subblock contains miscellaneous points except the data point group and the reference point group;
And counting the number of the graph subblocks containing the miscellaneous points in the point graph.
6. The method of claim 1, wherein said detecting the number of blotches in the dot pattern comprises:
acquiring a connected domain in a dot pattern;
comparing a connected domain in the dot pattern with a preset upper limit of a dot threshold;
counting the number of connected domains larger than a preset point threshold upper limit;
the preset upper limit of the point threshold may be calculated by the following formula:
Figure FDA0003482225500000031
the number of pixels in the dot pattern is x, the number of pixels of the corresponding module in the collected picture is y, and namely the upper limit of the threshold is y.
7. The method of claim 1, wherein said determining a print quality of the dot pattern based on the print index comprises:
determining a first level of print quality based on the straightness of the detected nominal position;
determining a second level of print quality based on a degree of conformity of the spacing of the nominal positions of the dot pattern;
determining a third level of print quality based on the satisfaction of the detected dot pattern angle;
determining a fourth level of print quality based on the purity of the data points in the dot pattern;
determining a fifth level of print quality based on the number of stains in the dot pattern;
And analyzing the first level, the second level, the third level, the fourth level and the fifth level to determine the level of the dot pattern printing quality.
8. An apparatus for detecting print quality, comprising:
the acquisition unit is used for acquiring a data point group of the dot pattern from the dot pattern to be detected;
an extraction unit for extracting information of each nominal position in the dot pattern according to the data point group in the dot pattern;
the detection unit is used for detecting the printing index of the dot pattern according to the data point group, the nominal position and the preset coding rule of the dot pattern;
a print quality determination unit configured to determine print quality of the dot pattern based on the print index;
wherein, the detection unit includes:
a straightness detecting subunit configured to detect a straightness of the nominal position based on the nominal position of the dot pattern;
a consistency degree detection subunit, configured to detect a consistency degree of the nominal position interval according to the nominal position of the dot pattern;
an angle satisfaction detecting subunit, configured to detect satisfaction of the dot pattern angle based on the nominal position in the dot pattern and the data point group;
The data purity detection subunit is used for detecting the purity of the data points contained in the data point group in the point graph;
a stain number detection subunit for detecting the number of stains in the dot pattern;
wherein the acquiring of the data point group of the dot pattern from the dot pattern to be detected comprises:
carrying out binarization processing on an area where a code point in the point graph is located to obtain a binary image containing a plurality of connected domains;
acquiring the number of pixel points contained in each connected domain;
screening out connected domains with the number of the pixel points within a preset first range;
taking two connected domains with the shortest distance as a group, calculating the distance value of the two connected domains in each group, and calculating the average value of all the distance values;
if the distance value of the two connected domains in each group is smaller than the average value of all the distance values, taking the two connected domains in the group as a code point;
if each connected domain is larger than a preset third threshold value, taking the connected domain as two code points;
taking two closest code points as a data point group;
wherein extracting information for each nominal position in the dot pattern according to the set of data points in the dot pattern comprises:
the dot pattern comprises a plurality of subunits, each subunit comprises a nominal position, each nominal position corresponds to a data point group or a reference point group, each subunit comprises a data point nominal position or a reference point nominal position, two sides of each data point nominal position comprise two code points, the two code points on the two sides of each data point nominal position are represented as the data point groups, and a reference point group is arranged right above the reference point nominal position;
And extracting the position information of all the nominal positions according to the geometric relationship between the data point group and the nominal positions.
CN201910655755.8A 2019-07-19 2019-07-19 Method and device for detecting printing quality Active CN110530895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910655755.8A CN110530895B (en) 2019-07-19 2019-07-19 Method and device for detecting printing quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910655755.8A CN110530895B (en) 2019-07-19 2019-07-19 Method and device for detecting printing quality

Publications (2)

Publication Number Publication Date
CN110530895A CN110530895A (en) 2019-12-03
CN110530895B true CN110530895B (en) 2022-05-27

Family

ID=68660814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910655755.8A Active CN110530895B (en) 2019-07-19 2019-07-19 Method and device for detecting printing quality

Country Status (1)

Country Link
CN (1) CN110530895B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100908897B1 (en) * 2004-10-15 2009-07-23 켄지 요시다 Medium on which dot pattern is printed
US8090184B2 (en) * 2008-07-23 2012-01-03 Seiko Epson Corporation Fault detection of a printed dot-pattern bitmap
CN201628690U (en) * 2010-03-15 2010-11-10 深圳市天朗时代科技有限公司 Print detecting system
JP5966277B2 (en) * 2011-08-19 2016-08-10 大日本印刷株式会社 Barcode appearance inspection system, barcode appearance inspection method, image processing apparatus
CN103164723B (en) * 2011-12-13 2016-04-06 北京慧眼智行科技有限公司 Coding method and equipment, coding/decoding method and equipment and printing process
CN108693194B (en) * 2018-06-22 2021-07-16 湖南大学 Dot matrix code spraying machine vision automatic detection system for steel plate production line

Also Published As

Publication number Publication date
CN110530895A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN101408937B (en) Method and apparatus for locating character row
JP6900164B2 (en) Information processing equipment, information processing methods and programs
US9367782B2 (en) High capacity 2D color barcode and method for decoding the same
CN106846298B (en) Optical fiber flat cable identification method and device
CN110348266B (en) Method and device for recognizing and reading dot matrix code image
CN107730521B (en) Method for rapidly detecting ridge type edge in image
CN106909869B (en) Sampling grid division method and device for matrix type two-dimensional code
CN105469384B (en) The integrated evaluating method of license plate image quality
CN110569845A (en) test paper image correction method and related device
JP6364565B1 (en) Analysis device, crack detection processing device, and analysis program
CN110889304A (en) Two-dimensional code quality evaluation method and device, storage medium, electronic device and system
CN110530895B (en) Method and device for detecting printing quality
CN1363911A (en) Image processor and method for producing binary image by multi-stage image
CN112016565B (en) Segmentation method for fuzzy numbers at account number of financial bill
CN108629308A (en) A kind of orbit generation method based on dot matrix image
CN101131733A (en) Self-adapting objective locating method
CN110543798B (en) Two-dimensional code identification method and device
CN110321751B (en) Steel ladle number identification method
CN116842976A (en) DataMatrix two-dimensional code identification method and system based on coarse positioning of images
CN115620333A (en) Test paper automatic error correction method based on artificial intelligence
CN112446912B (en) Financial bill width calculation method
CN115761468A (en) Water level detection system and method based on image segmentation and target detection technology
CN112528895B (en) Calculation method for detecting change of financial bill image and bill number
KR101635804B1 (en) CHT based automatic go recording system and the method
JP2008276311A (en) Character recognition device, appearance inspection device, and character recognition method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant