CN111300987B - Ink jet interval time determining method, device, computer equipment and storage medium - Google Patents

Ink jet interval time determining method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111300987B
CN111300987B CN202010123045.3A CN202010123045A CN111300987B CN 111300987 B CN111300987 B CN 111300987B CN 202010123045 A CN202010123045 A CN 202010123045A CN 111300987 B CN111300987 B CN 111300987B
Authority
CN
China
Prior art keywords
gray
ink
determining
test
test area
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
CN202010123045.3A
Other languages
Chinese (zh)
Other versions
CN111300987A (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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN202010123045.3A priority Critical patent/CN111300987B/en
Publication of CN111300987A publication Critical patent/CN111300987A/en
Application granted granted Critical
Publication of CN111300987B publication Critical patent/CN111300987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control

Landscapes

  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses an ink-jet interval time determining method, which comprises the steps of scanning a plurality of test samples obtained by printing with different ink-jet intervals to obtain a plurality of scanning images; carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images; determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points; determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area; acquiring a preset convergence threshold; determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and a preset convergence threshold value; the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval is determined as the target ink jet interval time, so that the ink jet printing quality is improved, and the automatic determination of the ink jet interval time is realized.

Description

Ink jet interval time determining method, device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a device for determining ink jet interval time, computer equipment and a storage medium.
Background
The ink-jet technology is a new printing technology without contact, pressure and printing plate, and the information stored in the electronic computer can be printed by inputting the information into an ink-jet printer, for example, an ink-jet printing submodule in a financial machine bill module is used for printing information such as bill receipt. The hardware characteristic parameters of the ink-jet ink box have certain discreteness due to batch, process and other reasons, particularly, the subsequent ink-jet ink marks are scattered in a splashing mode and cannot be concentrated to the expected printing position due to the arrangement of the ink-jet interval time, and the printing effect is reduced. However, in the prior art, the proper ink-jet time interval is determined by detecting the supplied materials of all the supplied ink cartridges, a large number of ink cartridges are consumed by the one-to-one test scheme, and the ink-jet time interval is determined by artificially comparing the printing effect, so that the accuracy and the objectivity are difficult to ensure. Or the ABC row ink-jet time interval calculated by theory does not necessarily coincide with the actual time interval, so that the overall printing effect is poor.
Disclosure of Invention
In view of the above, it is desirable to provide an inkjet interval time determination method, apparatus, computer device, and storage medium capable of improving printing effect.
An inkjet interval time determination method, the method comprising:
scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images;
determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points;
determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area;
acquiring a preset convergence threshold;
determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value;
and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
An ink ejection interval time determination apparatus, the apparatus comprising:
the image acquisition module is used for scanning a plurality of test samples which are obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
the gray processing module is used for respectively carrying out gray processing on each scanned image to obtain a corresponding ink mark gray image;
the area determining module is used for determining a test area corresponding to each printing test point, and each test area comprises a plurality of pixel points;
the matrix determining module is used for determining a splattering distribution matrix corresponding to each ink mark gray level image according to the gray levels of a plurality of pixel points in each test area;
the threshold value obtaining module is used for obtaining a preset convergence threshold value;
the interval determining module is used for determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold;
and the interval determining module is used for determining the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval as the target ink jet interval time.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images;
determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points;
determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area;
acquiring a preset convergence threshold;
determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value;
and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images;
determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points;
determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area;
acquiring a preset convergence threshold;
determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value;
and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
According to the ink-jet interval time determining method, the ink-jet interval time determining device, the computer equipment and the storage medium, a plurality of scanning images are obtained by scanning a plurality of test samples which are obtained by printing at different ink-jet intervals; carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images; determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points; determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area; acquiring a preset convergence threshold; determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and a preset convergence threshold value; the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval is determined as the target ink jet interval time, so that the ink jet printing quality is improved, and the automatic determination of the ink jet interval time is realized.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart of an ink ejection interval time determination method in one embodiment;
FIG. 2 is a flow diagram of a method for test area determination in one embodiment;
FIG. 3 is a flow diagram of a method for determining a splatter distribution matrix in one embodiment;
FIG. 4 is a flow diagram of a method for gray reference value determination in one embodiment;
FIG. 5 is a flow chart of a method for determining a splatter distribution matrix in another embodiment;
FIG. 6 is a flowchart of a splatter distribution matrix determination method in yet another embodiment;
FIG. 7 is a flow diagram of a method for convergence interval determination in one embodiment;
FIG. 8 is a block diagram showing the structure of an ink ejection interval determining apparatus according to an embodiment;
FIG. 9 is a block diagram of a computer device in one embodiment.
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.
As shown in fig. 1, in one embodiment, an ink ejection interval time determination method is provided, which can be applied to both a terminal and a server, and the embodiment is exemplified as being applied to the server. The inkjet interval time determination method specifically includes the steps of:
step 102, scanning a plurality of test samples obtained by printing with different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals.
The ink jet time interval is the interval between two times of ink jet of the ink box, and is a printing parameter of the ink jet of the ink box, and the setting of the printing parameter can influence the printing quality, so in order to improve the printing quality, the ink jet time interval is an important printing parameter, so the setting of the appropriate ink jet time interval can greatly improve the printing quality. In order to select a proper ink jet time interval for the ink box, a plurality of test samples are obtained by respectively printing with different ink jet time intervals, and each test sample corresponds to a different ink jet time interval. In one embodiment, the test sample refers to a sample paper that is ink jet printed. Scanning is performed on a plurality of test samples printed at different ink jetting time intervals to obtain a scanned image, and the ink jetting time intervals corresponding to the scanned images obtained by scanning different test samples are different due to the fact that the ink jetting time intervals corresponding to the plurality of test samples are different, and the ink jetting time intervals can be 100 μ s (microseconds), 140 μ s, 180 μ s.
And 104, respectively carrying out gray level processing on each scanned image to obtain a corresponding ink mark gray level image.
The gray processing refers to an operation process of gray conversion of an image, namely, the RGB values of each pixel point are unified into the same value. The grayed image is changed from three channels into a single channel, and the data processing of the single channel is simple and convenient. Specifically, the method of the gradation processing includes, but is not limited to, a component method, a maximum value method, an average value method, or a weighted average method. The ink gray image is obtained by performing gray processing on a scanned image, and understandably, the ink gray image is a single-channel image, so that the efficiency of analyzing and processing the ink gray image is improved subsequently.
It should be noted that before performing the gray scale processing on the scanned image, the scanned image needs to be subjected to size clipping and rotation correction, so that the ink mark gray scale image is taken as a frame according to the set printing frame line, and the accuracy of the printing test point position (such as a coordinate) can be ensured.
And 106, determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points.
The test area is a sub-area of the ink mark gray level image, which contains the printing test points, and is used as a test area for evaluating the ink mark printing quality of the ink mark gray level image, specifically, the position of the printing test points is used as a selection standard of pixel points, and the area is obtained by frame selection according to a preset size, namely, the test area is a local image of the ink mark gray level image and contains abundant characteristic information of ink jet points. In one embodiment, the test area may be a square having a size of 1.5mm x 1.5mm centered on the central coordinate value of the printed test point. It can be understood that the ink mark gray level image is formed by actually printed ink jet dots, ink jet splashes may exist, the ink jet dots splashed by ink jet need to be analyzed, and therefore analysis needs to be performed based on the ink mark gray level image, if the whole ink mark gray level image is directly analyzed, the image processing efficiency is affected due to the interference factors existing in the blank background area, and therefore, in this embodiment, the ink mark gray level image test area is determined according to the print test point, so that the subsequent analysis processing of the ink mark gray level image is realized based on the test area, the image processing efficiency is improved, and the accuracy of the print quality evaluation is further improved.
And 108, determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of the plurality of pixel points in each test area.
The splash distribution matrix is a distribution matrix corresponding to an image for reflecting the ink jet splash degree, and the gray value of the image corresponding to the splash distribution matrix is more divergent, the ink jet splash degree is higher, and the printing quality is lower. Specifically, the gray value of each test area can be determined by calculating the gray variation value, the gray average value and the like of each pixel point of each test area according to a set calculation mode, and then the ink mark gray image is determined according to the gray value of each test area. Preferably, the calculation method is set to calculate the gradation change value, so that the degree of the splattering distribution of the ink ejection dots from which the ink is splashed can be more objectively reflected, and the accuracy of the splattering distribution matrix can be improved.
Step 110, obtaining a preset convergence threshold.
The preset convergence threshold refers to a critical gray value in a splatter distribution matrix preset to detect whether the ink mark gray image splatters, for example, the preset convergence threshold may be 200 gray levels.
And 112, determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and a preset convergence threshold value.
The convergence interval refers to a distribution interval of pixel points corresponding to the gray value meeting a preset convergence threshold, that is, a distribution interval of pixel points with a low degree of scattering in the ink mark gray image.
And step 114, determining the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval as the target ink jet interval time.
The target ink-jet interval time refers to the ink-jet interval of the ink box, and the target ink-jet interval time is set as the ink-jet interval parameter of the ink box, so that the printing quality can be improved. The smaller the convergence interval is, the more concentrated the ink ejection points of the ink mark gray level image are, the smaller the scattering degree is, and the better the printing quality is. Specifically, the size of the convergence interval may be determined by calculating a distribution area of pixel points in the convergence interval, and the smaller the distribution area, the smaller the corresponding convergence area, for example, coordinates of two pixel points in one convergence interval are (0, 22) and (1, 22), respectively, the corresponding convergence interval is [0:22,1:22], and the distribution area is (22-0) × (22-1). The smaller the convergence interval is, the better the printing quality of the corresponding ink mark gray level image is, so that the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval is determined as the target ink jet interval time, the ink jet printing quality is improved, and the automatic determination of the ink jet interval time is realized.
According to the ink-jet interval time determining method, a plurality of scanning images are obtained by scanning a plurality of test samples which are obtained by printing at different ink-jet intervals; carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images; determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points; determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area; acquiring a preset convergence threshold; determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and a preset convergence threshold value; the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval is determined as the target ink jet interval time, so that the ink jet printing quality is improved, and the automatic determination of the ink jet interval time is realized.
As shown in fig. 2, in an embodiment, determining a test area corresponding to each printed test point, where each test area includes a plurality of pixel points, includes:
step 106A, obtaining a coordinate corresponding to each printing test point;
step 106B, acquiring the shape and the area of a preset test region;
and 106C, determining a test area corresponding to each printing test point according to the shape and the area of the preset test area by taking the coordinates corresponding to the printing test points as the center.
In this embodiment, the printing test points refer to each ink jet point in the test sample, and the coordinates corresponding to each printing test point are first obtained, for example, the coordinates may be the center coordinates of the corresponding printing test point, and then the test area may be framed and selected according to the preset shape and area of the test area with the center coordinates as the center. The shape and the area of the preset test area can be set according to the ink of the ink gray level image, for example, the preset shape can be a circle, a rectangle or a square, and the like, so that the test area is ensured to contain ink jet splashed ink jet dots, the ink around the printed test point is ensured to be processed, a scattering distribution matrix is determined based on the test area, further, the test area is determined, the ink processing of the ink gray level image is more targeted, the calculated amount is reduced, and the accuracy of analyzing the ink gray level image is improved.
As shown in fig. 3, in an embodiment, determining a splatter distribution matrix corresponding to each ink trace grayscale image according to grayscale values of a plurality of pixel points in each test region includes:
step 108A, determining a gray reference value corresponding to each test area;
step 108B, calculating to obtain a gray relative value corresponding to each pixel point according to the gray reference value and the gray value of each pixel point in the test area;
and 108C, calculating to obtain a splattering distribution matrix corresponding to the corresponding ink mark gray level image according to the gray level relative value of each pixel point in each test area.
The gray reference value is a gray value obtained by calculating the gray value of the test area according to a set calculation mode, and is used as a reference value for processing the ink mark gray image and further used as a standard gray value for detecting whether the ink mark is scattered or not. The set calculation method may be based on the maximum value or the average value of the gray-scale values of the test area. The gray relative value refers to a gray variation value of the gray value of the ink mark gray image and the gray reference value of the corresponding pixel point. Then, the gray relative value of each test area is counted, and a splatter distribution matrix corresponding to the corresponding ink mark gray image is obtained through calculation.
As shown in fig. 4, in one embodiment, determining the gray reference value corresponding to each test area includes:
step 108A1, acquiring an average gray value of a blank area in the ink mark gray image, and taking the average gray value as a first reference value;
step 108A2, acquiring the gray value of each pixel point in the test area, and taking the maximum gray value in the test area as a second reference value;
and step 108A3, determining the corresponding gray reference value of the corresponding test area according to the first reference value and the second reference value.
Specifically, the gray reference value of the test area is determined according to the average gray value of the blank area in the ink gray image and the maximum gray value in the test area in a set calculation mode. As a preferable example of the present embodiment, Vm ═ Min (V1, V2) is set as the calculation formula;
Vr=Vm-Va;
in the formula, Vr refers to a gray reference value, V1 refers to a first reference value, V2 refers to a second reference value, Min refers to the minimum value of V1 and V2, and Va refers to the average gray value of the test area. The gray reference value is determined according to the average gray value of the hollow area in the ink mark gray image and the maximum gray value in the test area, so that the gray value variation in the test area is reflected, the scattering distribution characteristic of the ink mark is reflected, the scattering distribution matrix is determined according to the gray reference value, and the accuracy of the scattering distribution matrix is guaranteed.
As shown in fig. 5, in an embodiment, the obtaining of the splatter distribution matrix corresponding to the corresponding ink gray image according to the gray relative value of each pixel point in each test area includes:
step 108C1, calculating to obtain a gray distribution matrix corresponding to each test area according to the gray relative value of each pixel point in each test area;
and step 108C2, calculating a splattering distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area.
In this embodiment, a gray distribution matrix corresponding to each test area is obtained by calculating a gray relative value of each pixel point in each test area, and then comprehensive analysis is performed according to each gray distribution matrix to obtain a splattering distribution matrix of the ink mark gray image. The method has the advantages that the ink mark gray level image comprises a plurality of test areas, so that the gray level distribution matrix of each test area is used as a parameter for calculating the splattering distribution matrix, the splattering distribution characteristic of the whole ink mark gray level image can be comprehensively and accurately reflected, and the accuracy of the splattering distribution matrix is improved.
As shown in fig. 6, in an embodiment, the calculating the splatter distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area includes:
step 108C21, accumulating and summing the relative gray values at the corresponding pixel points of each gray distribution matrix to obtain the accumulated relative gray values at the corresponding pixel points;
and step 108C22, determining a splatter distribution matrix corresponding to the ink gray image according to each pixel point and the accumulated gray relative value of the pixel point.
Specifically, each gray scale distribution matrix is accumulated, so that an accumulated gray scale relative value corresponding to each pixel point in the test area one to one is obtained, that is, the accumulated gray scale relative value at each pixel point is the sum of the gray scale relative values of each gray scale distribution matrix, and then, the splattering distribution matrix can be obtained according to each pixel point in the test area and the corresponding accumulated gray scale relative value.
As shown in fig. 7, in an embodiment, determining a convergence interval corresponding to a corresponding ink gray image according to a splatter distribution matrix and a preset convergence threshold includes:
step 112A, acquiring target pixel points corresponding to the accumulated gray relative value in the splattering distribution matrix which is greater than or equal to the preset convergence threshold value;
and step 112B, determining a corresponding convergence interval of the ink mark gray level image according to the target pixel point.
In this embodiment, the cumulative gray-scale relative value in the splattering distribution matrix is compared with the preset convergence threshold, and the pixel point corresponding to the cumulative gray-scale relative value greater than or equal to the preset convergence threshold is selected as the target pixel point.
As shown in fig. 8, in one embodiment, there is provided an ink ejection interval determining apparatus including:
an image obtaining module 802, configured to scan a plurality of test samples obtained by printing at different inkjet time intervals to obtain a plurality of scanned images, where each test sample includes a plurality of printing test points, and different scanned images correspond to different inkjet time intervals;
the gray processing module 804 is configured to perform gray processing on each scanned image to obtain a corresponding ink mark gray image;
a region determining module 806, configured to determine a test region corresponding to each printing test point, where each test region includes a plurality of pixel points;
the matrix determining module 808 is configured to determine a splatter distribution matrix corresponding to each ink trace grayscale image according to the grayscale values of the plurality of pixel points in each test region;
a threshold obtaining module 810, configured to obtain a preset convergence threshold;
an interval determining module 812, configured to determine a convergence interval corresponding to the corresponding ink mark grayscale image according to the splattering distribution matrix and the preset convergence threshold;
and an interval determining module 814, configured to determine the ink ejection interval time corresponding to the ink mark grayscale image with the smallest convergence interval as the target ink ejection interval time.
In one embodiment, the region determination module comprises:
the coordinate acquisition unit is used for acquiring the corresponding coordinates of each printing test point;
the size acquisition unit is used for acquiring the shape and the area of a preset test region;
and the area determining unit is used for determining the testing area corresponding to each printing testing point according to the shape and the area of the preset testing area by taking the coordinate corresponding to the printing testing point as a center.
In one embodiment, the matrix determination module includes:
the gray level determining submodule is used for determining a gray level reference value corresponding to each test area;
the gray level calculation submodule is used for determining a gray level relative value corresponding to each pixel point obtained by calculation according to the gray level reference value and the gray level value of each pixel point in the test area;
and the matrix determining submodule is used for determining a splatter distribution matrix corresponding to the ink gray level image obtained by calculation according to the gray level relative value of each pixel point in each test area.
In one embodiment, the gray level determination sub-module includes:
the first acquisition unit is used for acquiring the average gray value of a white area in the ink mark gray image and taking the average gray value as a first reference value;
the second acquisition unit is used for acquiring the gray value of each pixel point in the test area and taking the maximum gray value in the test area as a second reference value;
and the gray level determining unit is used for determining the corresponding gray level reference value of the corresponding test area according to the first reference value and the second reference value.
In one embodiment, the matrix determination sub-module comprises:
the matrix calculation unit is used for calculating a gray level distribution matrix corresponding to each test area according to the gray level relative value of each pixel point in each test area;
and the result acquisition unit is used for calculating a splattering distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area.
In one embodiment, the result obtaining unit includes:
the gray scale operation subunit is used for accumulating and summing the gray scale relative values at the corresponding pixel points of each gray scale distribution matrix to obtain the accumulated gray scale relative values at the corresponding pixel points;
and the matrix calculation subunit is used for determining a splatter distribution matrix corresponding to the ink mark gray level image according to each pixel point and the accumulated gray level relative value at the pixel point.
In one embodiment, the interval determination module comprises:
a pixel point obtaining unit, configured to obtain a target pixel point corresponding to the accumulated gray scale relative value in the splattering distribution matrix being greater than or equal to the preset convergence threshold;
and the interval determining unit is used for determining the convergence interval corresponding to the corresponding ink mark gray level image according to the target pixel point.
FIG. 9 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server including, but not limited to, a high performance computer and a cluster of high performance computers. As shown in fig. 9, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the inkjet interval time determination method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a method of determining an ink ejection interval. Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the inkjet interval time determination method provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 9. The memory of the computer device may store therein respective program templates constituting the ink ejection interval time determination means. For example, the image obtaining module 802, the gray processing module 804, the region determining module 806, the matrix determining module 808, the threshold obtaining module 810, the interval determining module 812, and the interval determining module 814.
A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals; carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images; determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points; determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area; acquiring a preset convergence threshold; determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value; and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
In one embodiment, determining a test area corresponding to each printed test point, where each test area includes a plurality of pixel points, includes: acquiring a coordinate corresponding to each printing test point; acquiring the shape and the area of a preset test region; and determining a test area corresponding to each printing test point according to the shape and the area of the preset test area by taking the coordinate corresponding to the printing test point as a center.
In one embodiment, determining a splatter distribution matrix corresponding to each ink trace grayscale image according to the grayscale values of the plurality of pixel points in each test region includes: determining a gray reference value corresponding to each test area; calculating to obtain a gray relative value corresponding to each pixel point according to the gray reference value and the gray value of each pixel point in the test area; and calculating to obtain a splatter distribution matrix corresponding to the corresponding ink gray image according to the gray relative value of each pixel point in each test area.
In one embodiment, determining the gray reference value corresponding to each test area comprises: acquiring an average gray value of a hollow white area in the ink mark gray image, and taking the average gray value as a first reference value; acquiring the gray value of each pixel point in the test area, and taking the maximum gray value in the test area as a second reference value; and determining a gray reference value corresponding to the corresponding test area according to the first reference value and the second reference value.
In one embodiment, the obtaining of the splatter distribution matrix corresponding to the ink gray image according to the gray relative value of each pixel point in each test area includes: calculating to obtain a gray level distribution matrix corresponding to each test area according to the gray level relative value of each pixel point in each test area; and calculating to obtain a splattering distribution matrix corresponding to the ink mark gray level image according to the gray level distribution matrix corresponding to each test area.
In one embodiment, the step of calculating a splatter distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area includes: accumulating and summing the relative gray values at the corresponding pixel points of each gray distribution matrix to obtain the accumulated relative gray values at the corresponding pixel points; and determining a splatter distribution matrix corresponding to the ink gray level image according to each pixel point and the accumulated gray level relative value at the pixel point.
In one embodiment, determining a convergence interval corresponding to the corresponding ink mark gray image according to the splatter distribution matrix and the preset convergence threshold includes: acquiring a target pixel point corresponding to the accumulated gray relative value in the splattering distribution matrix which is greater than or equal to the preset convergence threshold value; and determining the convergence interval corresponding to the corresponding ink mark gray level image according to the target pixel point.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals; carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images; determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points; determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area; acquiring a preset convergence threshold; determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value; and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
In one embodiment, determining a test area corresponding to each printed test point, where each test area includes a plurality of pixel points, includes: acquiring a coordinate corresponding to each printing test point; acquiring the shape and the area of a preset test region; and determining a test area corresponding to each printing test point according to the shape and the area of the preset test area by taking the coordinate corresponding to the printing test point as a center.
In one embodiment, determining a splatter distribution matrix corresponding to each ink trace grayscale image according to the grayscale values of the plurality of pixel points in each test region includes: determining a gray reference value corresponding to each test area; calculating to obtain a gray relative value corresponding to each pixel point according to the gray reference value and the gray value of each pixel point in the test area; and calculating to obtain a splatter distribution matrix corresponding to the corresponding ink gray image according to the gray relative value of each pixel point in each test area.
In one embodiment, determining the gray reference value corresponding to each test area comprises: acquiring an average gray value of a hollow white area in the ink mark gray image, and taking the average gray value as a first reference value; acquiring the gray value of each pixel point in the test area, and taking the maximum gray value in the test area as a second reference value; and determining a gray reference value corresponding to the corresponding test area according to the first reference value and the second reference value.
In one embodiment, the obtaining of the splatter distribution matrix corresponding to the ink gray image according to the gray relative value of each pixel point in each test area includes: calculating to obtain a gray level distribution matrix corresponding to each test area according to the gray level relative value of each pixel point in each test area; and calculating to obtain a splattering distribution matrix corresponding to the ink mark gray level image according to the gray level distribution matrix corresponding to each test area.
In one embodiment, the step of calculating a splatter distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area includes: accumulating and summing the relative gray values at the corresponding pixel points of each gray distribution matrix to obtain the accumulated relative gray values at the corresponding pixel points; and determining a splatter distribution matrix corresponding to the ink gray level image according to each pixel point and the accumulated gray level relative value at the pixel point.
In one embodiment, determining a convergence interval corresponding to the corresponding ink mark gray image according to the splatter distribution matrix and the preset convergence threshold includes: acquiring a target pixel point corresponding to the accumulated gray relative value in the splattering distribution matrix which is greater than or equal to the preset convergence threshold value; and determining the convergence interval corresponding to the corresponding ink mark gray level image according to the target pixel point.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An ink ejection interval time determination method, comprising:
scanning a plurality of test samples obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
carrying out gray level processing on each scanned image to obtain corresponding ink mark gray level images;
determining a test area corresponding to each printing test point, wherein each test area comprises a plurality of pixel points;
determining a splatter distribution matrix corresponding to each ink mark gray image according to the gray values of a plurality of pixel points in each test area;
acquiring a preset convergence threshold;
determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold value;
and determining the ink jet interval time corresponding to the ink track gray level image with the minimum convergence interval as the target ink jet interval time.
2. The method of claim 1, wherein the determining a test area corresponding to each printed test point, each test area including a plurality of pixels, comprises:
acquiring a coordinate corresponding to each printing test point;
acquiring the shape and the area of a preset test region;
and determining a test area corresponding to each printing test point according to the shape and the area of the preset test area by taking the coordinate corresponding to the printing test point as a center.
3. The method of claim 1, wherein determining a splatter distribution matrix corresponding to each ink gray image according to the gray values of the plurality of pixel points in each test area comprises:
determining a gray reference value corresponding to each test area;
calculating to obtain a gray relative value corresponding to each pixel point according to the gray reference value and the gray value of each pixel point in the test area;
and calculating to obtain a splatter distribution matrix corresponding to the corresponding ink gray image according to the gray relative value of each pixel point in each test area.
4. The method of claim 3, wherein determining the gray reference value for each test area comprises:
acquiring an average gray value of a hollow white area in the ink mark gray image, and taking the average gray value as a first reference value;
acquiring the gray value of each pixel point in the test area, and taking the maximum gray value in the test area as a second reference value;
and determining a gray reference value corresponding to the corresponding test area according to the first reference value and the second reference value.
5. The method of claim 3, wherein the obtaining of the splatter distribution matrix corresponding to the corresponding ink gray image according to the gray relative value of each pixel point in each test area comprises:
calculating to obtain a gray level distribution matrix corresponding to each test area according to the gray level relative value of each pixel point in each test area;
and calculating to obtain a splattering distribution matrix corresponding to the ink mark gray level image according to the gray level distribution matrix corresponding to each test area.
6. The method according to claim 5, wherein the calculating a splatter distribution matrix corresponding to the ink gray image according to the gray distribution matrix corresponding to each test area comprises:
accumulating and summing the relative gray values at the corresponding pixel points of each gray distribution matrix to obtain the accumulated relative gray values at the corresponding pixel points;
and determining a splatter distribution matrix corresponding to the ink gray level image according to each pixel point and the accumulated gray level relative value at the pixel point.
7. The method of claim 6, wherein the determining a convergence interval corresponding to the corresponding ink gray image according to the splatter distribution matrix and the preset convergence threshold comprises:
acquiring a target pixel point corresponding to the accumulated gray relative value in the splattering distribution matrix which is greater than or equal to the preset convergence threshold value;
and determining the convergence interval corresponding to the corresponding ink mark gray level image according to the target pixel point.
8. An ink ejection interval time determination device, characterized by comprising:
the image acquisition module is used for scanning a plurality of test samples which are obtained by printing at different ink jet time intervals to obtain a plurality of scanning images, wherein each test sample comprises a plurality of printing test points, and different scanning images correspond to different ink jet time intervals;
the gray processing module is used for respectively carrying out gray processing on each scanned image to obtain a corresponding ink mark gray image;
the area determining module is used for determining a test area corresponding to each printing test point, and each test area comprises a plurality of pixel points;
the matrix determining module is used for determining a splattering distribution matrix corresponding to each ink mark gray level image according to the gray levels of a plurality of pixel points in each test area;
the threshold value obtaining module is used for obtaining a preset convergence threshold value;
the interval determining module is used for determining a convergence interval corresponding to the corresponding ink mark gray level image according to the splattering distribution matrix and the preset convergence threshold;
and the interval determining module is used for determining the ink jet interval time corresponding to the ink mark gray level image with the minimum convergence interval as the target ink jet interval time.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method for determining an ink ejection interval as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for determining an ink ejection interval according to any one of claims 1 to 7.
CN202010123045.3A 2020-02-27 2020-02-27 Ink jet interval time determining method, device, computer equipment and storage medium Active CN111300987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010123045.3A CN111300987B (en) 2020-02-27 2020-02-27 Ink jet interval time determining method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010123045.3A CN111300987B (en) 2020-02-27 2020-02-27 Ink jet interval time determining method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111300987A CN111300987A (en) 2020-06-19
CN111300987B true CN111300987B (en) 2021-02-02

Family

ID=71153106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010123045.3A Active CN111300987B (en) 2020-02-27 2020-02-27 Ink jet interval time determining method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111300987B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114771120B (en) * 2022-06-18 2022-09-02 南通人民彩印有限公司 Pressure control method and device in micro-contact printing process and artificial intelligence system
CN116061563B (en) * 2023-03-07 2023-06-16 苏州希盟科技股份有限公司 Ink-jet printing method, device, equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7261396B2 (en) * 2004-10-14 2007-08-28 Eastman Kodak Company Continuous inkjet printer having adjustable drop placement
KR100717018B1 (en) * 2005-08-05 2007-05-10 삼성전자주식회사 Ink jet image forming apparatus, and method for detecting defect nozzle thereof
US10160206B2 (en) * 2013-01-31 2018-12-25 Hewlett-Packard Development Company, L.P. Accounting for oscillations with drop ejection waveforms
CN103530878B (en) * 2013-10-12 2016-01-13 北京工业大学 A kind of edge extracting method based on convergence strategy
KR102292676B1 (en) * 2013-12-12 2021-08-23 카티바, 인크. Ink-based layer fabrication using halftoning to control thickness
JP6102778B2 (en) * 2014-02-07 2017-03-29 株式会社村田製作所 Printing method and printing apparatus
CN104361096B (en) * 2014-11-20 2016-02-24 合肥工业大学 The image search method of a kind of feature based rich region set
CN106799894B (en) * 2015-11-26 2019-01-01 北大方正集团有限公司 Ink feeding system
JP2018153937A (en) * 2017-03-15 2018-10-04 キヤノンファインテックニスカ株式会社 Inkjet recording device and recording method
CN109484046B (en) * 2018-10-15 2020-08-11 广东宝莱特医用科技股份有限公司 Printing control method, control system and printing equipment
CN109823050B (en) * 2018-12-29 2019-12-24 华中科技大学 Multi-stage positioning error compensation method and device for liquid drop ejection for ink-jet printing

Also Published As

Publication number Publication date
CN111300987A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111300987B (en) Ink jet interval time determining method, device, computer equipment and storage medium
US6275600B1 (en) Measuring image characteristics of output from a digital printer
CN111753692B (en) Target object extraction method, product detection method, device, computer and medium
US20090066971A1 (en) Characterization of a Printed Droplet
CN104029510B (en) Ink jet printing concentration correction process, correcting device and ink jet printing method, equipment
US20060062441A1 (en) Device, program and method for generating a profile
US8194941B2 (en) Character noise eliminating apparatus, character noise eliminating method, and character noise eliminating program
JP5889727B2 (en) Electronic symbol marking apparatus and method thereof
CN110667254A (en) Nozzle health detection by means of neural networks
WO2020155485A1 (en) Image difference determination method and apparatus, computer device, and storage medium
CN112906529A (en) Face recognition light supplementing method and device, face recognition equipment and face recognition system
CN111783795B (en) Method, device, equipment and medium for converting image into laser scanning path
CN114764775A (en) Infrared image quality evaluation method, device and storage medium
JP6605222B2 (en) Method for automatically setting error identification parameters of an image inspection system by a computer
CN114771101A (en) Method, device and equipment for detecting color of paperboard color printing and storage medium
JP2020155128A (en) System and method for evaluating symbols
CN111488883A (en) Vehicle frame number identification method and device, computer equipment and storage medium
CN113256644A (en) Bill image segmentation method, device, medium, and apparatus
US8820880B2 (en) Defective nozzle detection mechanism
US10458923B2 (en) Print data processing method, print data processing device, and recording medium having recorded therein print data processing program
CN110895849A (en) Method and device for cutting and positioning crown word number, computer equipment and storage medium
CN111839580B (en) Dental film image generation method, device, electronic equipment and storage medium
CN102346849A (en) Image processing apparatus and image processing method
US10602020B2 (en) Dynamic threshold based error diffusion
Yam et al. Estimating degradation model parameters from character images

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