Method, device, equipment and medium for optimizing inkjet printer waveform

Through machine vision system and algorithms, the jet points and satellite points are identified, and the online optimization of the drive waveform of inkjet printers is solved, which solves the problems of large deviations and low manual adjustment efficiency in the prior art, and achieves efficient and accurate waveform adjustment.

CN119399109BActive Publication Date: 2025-08-22BEIJING BOYUAN HENGXIN TECH CO LTD

Patent Information

Application Number
CN202411352767.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-08-22
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

The existing inkjet printer driver waveform optimization methods have problems such as deviations and high manual adjustment work intensity and low efficiency.

Method used

The machine vision system is used to collect target patterns, identify injection points and satellite points through machine vision algorithms, perform online waveform optimization, and use edge contour extraction algorithm and least squares method to adjust the driving waveform.

Benefits of technology

Accurate optimization of the drive waveform of inkjet printers, improve efficiency, reduce labor intensity, and improve print quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119399109B_ABST
    Figure CN119399109B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment, and medium for optimizing an inkjet printer waveform, relating to the technical field of industrial inkjet printing control software, to address the problems of existing drive waveform adjustment methods, high manual adjustment labor intensity, and low efficiency. The method comprises: acquiring a target pattern; calibrating a machine vision system to obtain coordinate conversion parameters; extracting target ink dots using an edge contour extraction algorithm to obtain the centroid coordinates and contour area of ​​the target ink dots; based on the coordinate conversion parameters and centroid coordinates, determining the target ink dots closest to the ink dots to be observed and whose contour areas meet preset conditions as target ejection ink dots, and the remaining target ink dots as satellite dots; and adjusting the initial drive waveform based on the target ejection ink dots and satellite dots to obtain a target drive waveform. The method, device, equipment, and medium for optimizing an inkjet printer waveform provided by the present invention are used to improve the efficiency of drive waveform optimization, reduce labor intensity, and improve print quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial inkjet printing control software, and in particular to a method, device, equipment and medium for optimizing the waveform of an inkjet printer. Background Art

[0002] The driving waveform of an inkjet printer is a key element in inkjet printing technology, which directly affects the ink droplet ejection effect, print quality, and print speed. Existing methods for optimizing the driving waveform usually use an ink droplet observer to take pictures of the ink droplet ejection process, and then analyze and adjust the waveform offline. Since the observation is performed on an ink droplet observer rather than an actual industrial inkjet printer, different nozzles and negative pressure ink paths will affect the sampling and cause certain deviations. Another method is usually for waveform debugging personnel to manually adjust the waveform based on the actual printing effect. Since it is a manual operation, the work intensity is high, the efficiency is low, and it is heavily dependent on the operator's experience. Summary of the Invention

[0003] The purpose of the present invention is to provide a method, device, equipment and medium for optimizing the waveform of an inkjet printer, which is used to solve the problems that the existing drive waveform adjustment method has deviations and the manual adjustment work is labor-intensive and inefficient.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] In a first aspect, the present application provides a method for optimizing an inkjet printer waveform, comprising:

[0006] Control the machine vision system to collect target patterns;

[0007] Calibrate the machine vision system according to the intersection coordinates of the grid lines of the target pattern and the intersection coordinates of the corresponding preset grid lines to obtain coordinate conversion parameters;

[0008] Extracting target ink dots in the target pattern using an edge contour extraction algorithm to obtain centroid coordinates and contour areas of the target ink dots;

[0009] Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ejection ink dot, and target ink dots other than the target ejection ink dot are determined as satellite dots;

[0010] An initial driving waveform is adjusted based on the target ejection ink dot and the satellite dot to obtain a target driving waveform.

[0011] Compared with the prior art, the present application provides a method for optimizing an inkjet printer waveform. By using a machine vision system to capture a target pattern, the method can achieve online optimization of the inkjet printer's drive waveform. The machine vision system is calibrated according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of preset grid lines to obtain coordinate conversion parameters. The setting of the preset grid lines can achieve accurate positioning of the ink dots to be observed, making the determined target ink dots more accurate, and thus making the drive waveform adjusted based on the target ink dots more accurate. Then, an edge contour extraction algorithm is used to extract the target ink dots in the target pattern to obtain the centroid coordinates and contour area of ​​the target ink dots. Based on the coordinate conversion parameters and centroid coordinates, the target ink dot closest to the ink dot to be observed and whose contour area meets preset conditions is determined as the target ink dot, and target ink dots other than the target ink dot are determined as satellite dots. Rapid identification of target ink dots and satellite dots can be achieved, and the determination of the target ink dot requires satisfying two restrictions: the closest distance and the contour area meeting preset conditions. This improves the accuracy of the determined target ink dots, and thus the target drive waveform can be quickly obtained, which is efficient, reduces labor intensity, and improves printing quality.

[0012] Optionally, before calibrating the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain the coordinate conversion parameters, the method further includes:

[0013] Using the Canny edge detection algorithm to determine the edges of the grid lines in the target pattern;

[0014] Performing a Hough transform on the edges of the grid lines in the target pattern to obtain point set coordinates of the grid lines in the target pattern;

[0015] The intersection coordinates of the grid lines of the target pattern are determined according to the point set coordinates.

[0016] Optionally, the determining, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as a target ejection ink dot, and determining target ink dots other than the target ejection ink dot as satellite dots includes:

[0017] According to the coordinate conversion parameters, the centroid coordinates of the target ink dot whose contour area meets the preset conditions are converted into coordinates in a preset pattern coordinate system to obtain the target centroid coordinates;

[0018] The target ink point corresponding to the target centroid coordinate closest to the ink point to be observed is determined as the target ejection ink point, and the target ink points other than the target ejection ink point are determined as satellite points.

[0019] Optionally, the adjusting the initial driving waveform based on the target ejection ink dot and the satellite point to obtain the target driving waveform includes:

[0020] Calculating the roundness, ink volume and landing error of the target ink jet point;

[0021] The least square method is used to fit multiple target inkjet dots into straight lines;

[0022] Determine the straightness based on the fitted straight line;

[0023] The initial driving waveform is adjusted according to the number of satellite dots, the area of ​​satellite dots, the roundness of the target ink jet dots, the ink volume, the landing error and the straightness to obtain the target driving waveform.

[0024] Optionally, calculating the roundness, ink volume, and landing error of the target ejected ink dot includes:

[0025] extracting the contour of the target inkjet point using an edge detection algorithm and fitting the contour of the target inkjet point into a circle;

[0026] Determining the roundness and ink volume of the target ink jetting dot according to the fitted circle;

[0027] The distance difference between the target centroid coordinates of the target ejected ink dot and the ink dot to be observed is determined as the landing point error.

[0028] Optionally, after adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot, the method further includes:

[0029] Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern;

[0030] The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target condition, thereby obtaining a target driving waveform.

[0031] Optionally, calibrating the machine vision system according to the intersection coordinates of the grid lines of the target pattern and the corresponding intersection coordinates of the preset grid lines to obtain the coordinate conversion parameters includes:

[0032] The coordinates of the nine intersection points in the grid lines of the target pattern and the coordinates of the corresponding nine intersection points in the preset grid lines are affine transformed to obtain coordinate transformation parameters.

[0033] In a second aspect, the present application provides a device for optimizing an inkjet printer waveform, comprising:

[0034] A target pattern acquisition module is used to control the machine vision system to acquire the target pattern;

[0035] a calibration module, configured to calibrate the machine vision system according to the intersection coordinates of the grid lines of the target pattern and the intersection coordinates of the corresponding preset grid lines to obtain coordinate conversion parameters;

[0036] An extraction module, configured to extract a target ink dot from the target pattern using an edge contour extraction algorithm to obtain the centroid coordinates and contour area of ​​the target ink dot;

[0037] a target ink dot and satellite point determination module, configured to determine, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as the target ink dot, and to determine target ink dots other than the target ink dot as satellite points;

[0038] The driving waveform adjustment module is used to adjust the initial driving waveform based on the target ink jetting point and the satellite point to obtain a target driving waveform.

[0039] In a third aspect, the present application provides a device for optimizing an inkjet printer waveform, comprising: a communication unit / communication interface for controlling a machine vision system to acquire a target pattern;

[0040] a processing unit / processor, configured to calibrate the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain coordinate conversion parameters;

[0041] Extracting target ink dots in the target pattern using an edge contour extraction algorithm to obtain centroid coordinates and contour areas of the target ink dots;

[0042] Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ejection ink dot, and target ink dots other than the target ejection ink dot are determined as satellite dots;

[0043] An initial driving waveform is adjusted based on the target ejection ink dot and the satellite dot to obtain a target driving waveform.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored therein. When the instructions are executed, the above-mentioned method for optimizing the waveform of an inkjet printer is implemented.

[0045] The technical effects achieved by the device-type solution provided in the second aspect, the equipment-type solution provided in the third aspect, and the computer-readable storage medium solution provided in the fourth aspect are the same as those of the method-type solution provided in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0047] Figure 1 A flow chart of the method for optimizing the inkjet printer waveform provided by the present invention;

[0048] Figure 2 A schematic diagram of a preset pattern provided by the present invention;

[0049] Figure 3 A schematic diagram of the drive waveform optimization provided by the present invention;

[0050] Figure 4 A schematic diagram of the structure of the device for optimizing the inkjet printer waveform provided by the present invention;

[0051] Figure 5 Schematic diagram of the device structure for inkjet printer waveform optimization provided by the present invention.

[0052] Reference numerals:

[0053] 1-Ink dot to be observed, 2-Intersection of preset grid lines, 3-Calibration point. DETAILED DESCRIPTION

[0054] To facilitate a clear description of the technical solutions of the embodiments of the present invention, the words "first" and "second" are used in the embodiments of the present invention to distinguish between identical or similar items with substantially the same functions and effects. For example, the first threshold and the second threshold are merely used to distinguish between different thresholds and do not limit their order. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.

[0055] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0056] In the present invention, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b, c can be single or multiple.

[0057] Current inkjet printer waveform adjustment involves two main steps. First, an ink droplet observation device is used to capture the ink droplet ejection process, analyze the waveform offline, and make adjustments. Because this is not an actual print job, there are certain deviations. This is primarily used for preliminary waveform analysis. Second, during actual printing, waveform adjustment personnel manually adjust the waveform based on the actual print results. This manual operation is labor-intensive, inefficient, and heavily reliant on operator experience.

[0058] To address the above issues, this application provides a method, device, equipment, and medium for optimizing inkjet printer waveforms. A machine vision system is used to capture a pre-designed pattern. A machine vision algorithm is used to identify the actual injection point and satellite points. Statistical analysis of the actual injection point and satellite points is performed to derive a method for improving the waveform, which is then adjusted. This application enables online waveform adjustment, improving efficiency and reducing labor intensity. This is described below with reference to the accompanying figures.

[0059] Figure 1 This is a flowchart of a method for optimizing an inkjet printer waveform provided by this application, such as Figure 1 As shown, the method includes the following steps:

[0060] Step 101: Control the machine vision system to capture the target pattern;

[0061] The target pattern is obtained by printing a preset pattern using an industrial inkjet printer, for example, Figure 2 The preset pattern shown includes a 6×6 grid of lines and an ink dot 1 to be observed located at the center of each grid line. The intersections 2 of the grid lines are used to locate the ink dot to be observed. When designing the preset pattern, the number of rows, columns, and spacing of the grid lines must be determined. After designing the preset pattern, the coordinates of the grid line intersections must be calculated and recorded.

[0062] Before step 102, a line detection algorithm is used to identify the grid lines of the printed target pattern and obtain the intersection coordinates of the grid lines of the target pattern;

[0063] As an optional method, the Canny edge detection algorithm is used to determine the edges of the grid lines in the target pattern;

[0064] Performing Hough transform on the edges of the grid lines in the target pattern to obtain the coordinates of a point set on the straight lines of the grid lines in the target pattern;

[0065] The intersection coordinates of the grid lines of the target pattern are determined according to the point set coordinates.

[0066] Specifically, the coordinates of the points in the point set coordinates are substituted into the straight line equation formula (1), and the two straight line equations are combined to obtain the intersection point of the two straight lines.

[0067] y=kx+b (1)

[0068] Among them, y is the vertical coordinate of the point, x is the horizontal coordinate of the point, k is the slope of the line, and b is the intercept on the vertical coordinate.

[0069] Step 102: calibrating the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain coordinate conversion parameters;

[0070] As an optional method, the nine-point calibration method can be used to perform affine transformation on the coordinates of the nine intersection points in the target pattern grid lines and the coordinates of the corresponding nine intersection points in the preset grid lines to obtain coordinate transformation parameters. Figure 2 , the nine calibration points 3 are the nine intersection points used in the nine-point calibration, and the nine calibration points 3 are Figure 2 The nine points are top left, top center, top right, center left, center, center right, bottom, bottom center, and bottom right. It should be noted that the number of calibration points 3 can be more than nine; additional points can be added. The nine-point calibration method is used to determine the conversion relationship between the camera pixel coordinate system and the real-world coordinate system. Through calibration, the camera's pixel coordinates can be converted into spatial coordinates. The nine-point calibration method is widely used in industrial automation, particularly in machine vision systems.

[0071] Step 103: extracting the target ink dot in the target pattern using an edge contour extraction algorithm to obtain the centroid coordinates and contour area of ​​the target ink dot;

[0072] Specifically, an edge contour extraction algorithm is used to extract the edge contour of the target ink dot in the target pattern, and the contour is fitted into a circle. The center of the circle is the centroid coordinate of the target ink dot, and the contour area is calculated based on the fitted circle.

[0073] The target ink dot is obtained by printing the observed ink dot by the inkjet printer. Ideally, each observed ink dot corresponds to one target ink dot. However, due to the ejection of ink droplets, each observed ink dot will have multiple corresponding target ink dots when printed. The purpose of this application is to adjust the driving waveform to make the printed target ink dot as small as possible.

[0074] Step 104: Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ink dot, and target ink dots other than the target ink dot are determined as satellite dots.

[0075] Specifically, according to the coordinate conversion parameters, the centroid coordinates of the target ink dot whose contour area meets the preset conditions are converted into coordinates in a preset pattern coordinate system to obtain the target centroid coordinates;

[0076] The target ink point corresponding to the target centroid coordinate closest to the ink point to be observed is determined as the target ejection ink point, and the target ink points other than the target ejection ink point are determined as satellite points.

[0077] It can be understood that the target ink dot is the actual inkjet landing point; the contour area that meets the preset conditions is the point with a relatively large contour area among the target ink dots. The preset conditions can be set according to actual conditions to a contour area greater than a preset area threshold or a contour area that is the contour area of ​​the top N target ink dots after all target ink dots are sorted from large to small, where N is a positive integer.

[0078] Step 105: adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot to obtain a target driving waveform.

[0079] Specifically, step 105 includes step S1: calculating the roundness, ink volume and landing error of the target ink jetting point;

[0080] Step S2: fitting multiple target inkjet dots into a straight line using the least squares method;

[0081] Step S3: determining the straightness based on the fitted straight line;

[0082] Step S4: adjusting the initial driving waveform according to the number of satellite dots, the area of ​​satellite dots, the roundness, ink volume, landing error and straightness of the target ejected ink dots to obtain the target driving waveform.

[0083] In step S1 above, the ink volume can be directly replaced by the area of ​​the contour. The landing point error is the difference in the coordinates of the circle center point. The errors of multiple points are fitted using the least squares method to obtain the best approximation of the straight line. The straightness is evaluated based on the mean square error of the fit. Step S1 specifically comprises: using an edge detection algorithm to extract the contour of the target ink dot and fitting the contour of the target ink dot to a circle;

[0084] Determine the roundness and ink volume of the target ink jet point based on the fitted circle;

[0085] The distance difference between the target centroid coordinates of the target ejected ink dot and the ink dot to be observed is determined as the landing point error.

[0086] The roundness calculation formula is shown in formula (1):

[0087] Roundness=4πArea / (L*L) (1)

[0088] Among them, Roundness is the roundness, Area is the area of ​​the fitted circle, π is the pi, and L is the circumference of the fitted circle.

[0089] In the above step S4, when adjusting the driving waveform, the machine vision system comprehensively analyzes the obtained parameters such as the number of satellite points, the area of ​​satellite points, the roundness of the target ink dot, the ink volume, the landing error and the straightness, and combines the influence relationship between these parameters and the driving waveform parameters with reference to the existing waveform to adjust the driving waveform parameters to form a new waveform. The influence relationship between the driving waveform parameters and the number of satellite points, the area of ​​satellite points, the roundness of the target ink dot, the ink volume, the landing error and the straightness, etc., is exemplified as follows: Figure 3 The drive waveform of the printhead shown in Figure 1 shows the slope of the rising edge of the drive waveform. The voltage of band L2 represents the maximum voltage of the drive waveform. The width of band L3 represents the peak-to-peak spacing of the drive waveform. The maximum voltage of the drive waveform is related to the number of satellite dots. A higher maximum voltage increases the likelihood of satellite dots. The peak-to-peak spacing is related to the amount of ink. A larger peak-to-peak spacing increases the likelihood of ink volume. The rising edge slope of the drive waveform is related to roundness and straightness. A larger rising edge slope indicates poor roundness but good straightness. The initial drive waveform is the drive waveform used by the inkjet printer to print a preset pattern to obtain the target pattern. In actual application, parameters such as the number of satellite dots, the area of ​​satellite dots, the roundness of the target ejected ink dots, the ink volume, the placement error, and the straightness are determined. These parameters are then used to evaluate the actual ejected ink dot quality. For example, straightness is the mean square error (MSE) of the best straight line obtained by fitting the collected ink dots using the least squares method. The smaller the MSE, the better the quality. The fewer the number of satellite dots and the smaller their area, the better the quality. The closer the size of the actual ejected ink dots is to the actual size of the ink dots required to be ejected, the better; the rounder the roundness of the actual ejected ink dots is, the better; and the smaller the landing error is, the better.

[0090] In actual application, adjusting the driving waveform once may not result in the optimal driving waveform. Therefore, it is necessary to adjust the driving waveform multiple times until the optimal driving waveform is obtained. Specifically, after adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot, the following steps are further performed:

[0091] updating the driving waveform of the inkjet printer to the adjusted driving waveform;

[0092] Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern;

[0093] The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target conditions, thereby obtaining a target driving waveform. It is understood that adjusting the driving waveform based on the new target pattern involves repeating steps 102 to 105. The resulting target driving waveform is the optimal driving waveform. The optimal driving waveform must meet the following target conditions: the number of satellite dots, the area of ​​the satellite dots, the roundness of the target ejected ink dots, the ink volume, the landing error, and the straightness are all within corresponding preset thresholds.

[0094] The present application can use a machine vision system to collect patterns printed by an inkjet printer online, and identify the collected patterns based on a machine vision algorithm to obtain the actual jet landing point and satellite points. Based on this, the driving waveform is optimized, and then the waveform is updated to continue the collection and analysis process repeatedly until the optimal waveform is obtained. The entire process is completely completed by the machine vision system, avoiding the problems of high labor intensity and low efficiency of manual operation and heavy reliance on the operator's experience. The invention uses a machine vision system to capture a target pattern, thereby enabling online optimization of the inkjet printer's drive waveform. The machine vision system is calibrated based on the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of preset grid lines to obtain coordinate conversion parameters. The preset grid lines can accurately locate the target ink dots, making the determination of the target ink dots more accurate, thereby making the drive waveform adjusted based on the target ink dots more accurate. An edge contour extraction algorithm is then used to extract the target ink dots in the target pattern, obtaining the centroid coordinates and contour area of ​​the target ink dots. Based on the coordinate conversion parameters and centroid coordinates, the target ink dots closest to the target ink dots and whose contour area meets preset conditions are determined as target ink dots, while target ink dots other than the target ink dots are determined as satellite dots. This allows for rapid identification of target ink dots and satellite dots, and the determination of target ink dots requires two conditions: the closest distance and the contour area meeting preset conditions. This improves the accuracy of the target ink dots, thereby enabling the rapid determination of the target drive waveform, with high efficiency and improved print quality. Furthermore, waveform modification can produce inconsistent effects on the target. Our goal is to achieve an overall optimal solution, which can be classified as a multi-objective optimization problem. This application uses the above method to calculate the number of satellite points, the area of ​​the satellite points, the roundness of the target ink dot, the ink volume, the landing error, and the straightness. These parameters are then comprehensively considered to adjust the waveform parameters. This results in an optimal driving waveform solution that balances multiple parameters, including the number of satellite points, the target ink dot roundness, straightness, and landing error.

[0095] The embodiments of the present invention can be divided into functional modules according to the above method. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present invention is illustrative and is only a logical functional division. In actual implementation, other division methods may be used.

[0096] In the case of dividing each functional module into corresponding functional modules, Figure 4 The figure shows a schematic diagram of the device structure for optimizing the inkjet printer waveform provided by the present invention. Figure 4 As shown, the device includes:

[0097] The target pattern acquisition module 401 is used to control the machine vision system to acquire the target pattern;

[0098] a calibration module 402 for calibrating the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain coordinate conversion parameters;

[0099] An extraction module 403 is configured to extract a target ink dot from the target pattern using an edge contour extraction algorithm to obtain the centroid coordinates and contour area of ​​the target ink dot;

[0100] a target ink dot and satellite point determination module 404 for determining, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as a target ink dot, and determining target ink dots other than the target ink dot as satellite points;

[0101] The driving waveform adjustment module 405 is configured to adjust the initial driving waveform based on the target ejection ink dot and the satellite dot to obtain a target driving waveform.

[0102] Optionally, the device further comprises a module for calculating the intersection coordinates of the grid lines of the target pattern, for determining the edges of the grid lines in the target pattern using a Canny edge detection algorithm;

[0103] Performing a Hough transform on the edges of the grid lines in the target pattern to obtain point set coordinates of the grid lines in the target pattern;

[0104] The intersection coordinates of the grid lines of the target pattern are determined according to the point set coordinates.

[0105] Optionally, the target ink jetting point and satellite point determination module 404 may include:

[0106] A target centroid coordinate determination unit, configured to convert the centroid coordinates of a target ink dot whose contour area satisfies a preset condition into coordinates in a preset pattern coordinate system according to the coordinate conversion parameters, to obtain the target centroid coordinates;

[0107] The target ink dot determination unit determines a target ink dot corresponding to the target centroid coordinate closest to the ink dot to be observed as the target ink dot, and determines target ink dots other than the target ink dot as satellite dots.

[0108] Optionally, the driving waveform adjustment module 405 may include:

[0109] a roundness, ink volume, and landing point error calculation unit, configured to calculate the roundness, ink volume, and landing point error of the target ink jetted ink point;

[0110] A fitting unit, for fitting a plurality of target inkjet dots into a straight line using a least square method;

[0111] a straightness determination unit, for determining straightness according to the fitted straight line;

[0112] The waveform adjustment unit is used to adjust the initial driving waveform according to the number of satellite points, the area of ​​satellite points, the roundness, ink volume, landing error and straightness of the target ink jet point to obtain the target driving waveform.

[0113] Optionally, the roundness, ink volume, and landing point error calculation unit may be specifically used for:

[0114] extracting the contour of the target inkjet point using an edge detection algorithm and fitting the contour of the target inkjet point into a circle;

[0115] Determining the roundness and ink volume of the target ink jetting dot according to the fitted circle;

[0116] The distance difference between the target centroid coordinates of the target ejected ink dot and the ink dot to be observed is determined as the landing point error.

[0117] Optionally, the device can also be used for:

[0118] Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern;

[0119] The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target condition, thereby obtaining a target driving waveform.

[0120] Optionally, the calibration module 402 may be specifically configured to:

[0121] The coordinates of the nine intersection points in the grid lines of the target pattern and the coordinates of the corresponding nine intersection points in the preset grid lines are affine transformed to obtain coordinate transformation parameters.

[0122] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the interaction between various network elements. It can be understood that in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0123] In the case of using the corresponding integrated unit, Figure 5 The schematic diagram of the device structure of the inkjet printer waveform optimization provided by the present invention is shown. Figure 5 As shown, the device includes: a communication unit / communication interface for controlling the machine vision system to capture the target pattern;

[0124] a processing unit / processor, configured to calibrate the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain coordinate conversion parameters;

[0125] Extracting target ink dots in the target pattern using an edge contour extraction algorithm to obtain centroid coordinates and contour areas of the target ink dots;

[0126] Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ejection ink dot, and target ink dots other than the target ejection ink dot are determined as satellite dots;

[0127] An initial driving waveform is adjusted based on the target ejection ink dot and the satellite dot to obtain a target driving waveform.

[0128] Among them, the processing unit can be a processor or controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor can also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module can be a transceiver, a transceiver circuit or a communication interface, and the like. The storage module can be a memory.

[0129] The processor may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. The communication interface may be one or more. The communication interface may utilize any device, such as a transceiver, for communicating with other devices or a communication network.

[0130] like Figure 5 As shown, the terminal device may further include a communication line. The communication line may include a path for transmitting information between the components.

[0131] Optional, such as Figure 5 As shown, the terminal device may further include a memory. The memory is used to store computer-executable instructions for executing the solution of the present invention, and the execution is controlled by the processor. The processor is used to execute the computer-executable instructions stored in the memory, thereby implementing the method provided by the embodiment of the present invention.

[0132] like Figure 5 As shown, the memory can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor through a communication line. The memory can also be integrated with the processor.

[0133] Optionally, the computer-executable instructions in the embodiment of the present invention may also be referred to as application program codes, which is not specifically limited in the embodiment of the present invention.

[0134] In a specific implementation, as an embodiment, Figure 5 As shown, the processor may include one or more CPUs, such as Figure 5 CPU0 and CPU1 in.

[0135] In a specific implementation, as an embodiment, Figure 5 As shown, the terminal device may include multiple processors, such as Figure 5 Each of these processors can be a single-core processor or a multi-core processor.

[0136] On the one hand, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed, the above-mentioned method for performing an inkjet printer waveform optimization is implemented.

[0137] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer programs or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disc (DVD); or a semiconductor medium, such as a solid-state drive (SSD).

[0138] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0139] Although the present invention has been described with reference to specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent that various modifications and variations may be made to the present invention by those skilled in the art without departing from the spirit and scope of the invention. Thus, the present invention is intended to include such modifications and variations as fall within the scope of the claims of the present invention and their equivalents.

Claims

1. A method for optimizing an inkjet printer waveform, characterized in that: include: Controlling a machine vision system to capture a target pattern, wherein the target pattern is obtained by printing a preset pattern using an industrial inkjet printer, wherein the preset pattern includes preset grid lines and ink dots to be observed located at the center of each grid line; Calibrate the machine vision system according to the intersection coordinates of the grid lines of the target pattern and the intersection coordinates of the corresponding preset grid lines to obtain coordinate conversion parameters; Before calibrating the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain the coordinate conversion parameters, the method further includes: Using the Canny edge detection algorithm to determine the edges of the grid lines in the target pattern; Performing a Hough transform on the edges of the grid lines in the target pattern to obtain point set coordinates of the grid lines in the target pattern; Determining the intersection coordinates of the grid lines of the target pattern according to the point set coordinates; The machine vision system is calibrated according to the intersection coordinates of the grid lines of the target pattern and the corresponding intersection coordinates of the preset grid lines to obtain the coordinate conversion parameters, which includes: Performing an affine transformation on the coordinates of the nine intersection points of the target pattern's grid lines and the corresponding nine intersection points of the preset grid lines to obtain coordinate transformation parameters; Extracting target ink dots in the target pattern using an edge contour extraction algorithm to obtain centroid coordinates and contour areas of the target ink dots; Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ejection ink dot, and target ink dots other than the target ejection ink dot are determined as satellite dots; The step of determining, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as a target ink jetting dot, and determining target ink dots other than the target ink jetting dot as satellite dots comprises: According to the coordinate conversion parameters, the centroid coordinates of the target ink dot whose contour area meets the preset conditions are converted into coordinates in a preset pattern coordinate system to obtain the target centroid coordinates; The target ink point corresponding to the target centroid coordinate closest to the ink point to be observed is determined as the target ink point to be ejected, and the target ink points other than the target ink point to be ejected are determined as satellite points; Adjusting the initial driving waveform based on the target ejection ink point and the satellite point to obtain a target driving waveform; The adjusting the initial driving waveform based on the target ejection ink dot and the satellite point to obtain the target driving waveform includes: Calculating the roundness, ink volume and landing error of the target ink jet point; Calculating the roundness, ink volume, and landing error of the target ink jetting dots includes: extracting the contour of the target inkjet point using an edge detection algorithm and fitting the contour of the target inkjet point into a circle; Determining the roundness and ink volume of the target ink jetting dot according to the fitted circle; Determine the distance difference between the target centroid coordinates of the target jetted ink dot and the ink dot to be observed as the landing error; The least square method is used to fit multiple target inkjet dots into straight lines; Determine straightness based on the fitted straight line; The initial driving waveform is adjusted according to the number of satellite points, the area of ​​satellite points, the roundness of the target ink jet point, the ink volume, the landing error and the straightness to obtain the target driving waveform; The initial driving waveform is adjusted according to the number of satellite dots, the area of ​​satellite dots, the roundness, ink volume, landing error and straightness of the target ejected ink dots to obtain the target driving waveform, including: Based on the relationship between the number of satellite points, the area of ​​satellite points, the roundness of the target ink dot, the ink volume, the landing error and the straightness and the driving waveform parameters, the driving waveform parameters are adjusted with reference to the existing waveform to form a new waveform. Among them, the maximum voltage of the driving waveform is related to the number of satellite points, the peak spacing is related to the ink volume, and the rising edge slope of the driving waveform is related to the roundness and straightness. After adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot, the method further includes: Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern; The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target condition, thereby obtaining a target driving waveform.

2. A device for optimizing inkjet printer waveforms, characterized in that: include: a target pattern acquisition module, configured to control the machine vision system to acquire a target pattern, wherein the target pattern is obtained by printing a preset pattern using an industrial inkjet printer, and the preset pattern includes preset grid lines and ink dots to be observed located at the center of each grid line; A module for calculating the intersection coordinates of the target pattern's grid lines, configured to determine the edges of the target pattern's grid lines using a Canny edge detection algorithm; Performing a Hough transform on the edges of the grid lines in the target pattern to obtain point set coordinates of the grid lines in the target pattern; Determining the intersection coordinates of the grid lines of the target pattern according to the point set coordinates; a calibration module, configured to calibrate the machine vision system according to the intersection coordinates of the grid lines of the target pattern and the intersection coordinates of the corresponding preset grid lines to obtain coordinate conversion parameters; The calibration module is specifically used for: Performing an affine transformation on the coordinates of the nine intersection points in the grid lines of the target pattern and the coordinates of the corresponding nine intersection points in the preset grid lines to obtain coordinate transformation parameters; An extraction module, configured to extract a target ink dot from the target pattern using an edge contour extraction algorithm to obtain the centroid coordinates and contour area of ​​the target ink dot; a target ink dot and satellite point determination module, configured to determine, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as the target ink dot, and to determine target ink dots other than the target ink dot as satellite points; The target ink jetting point and satellite point determination module includes: A target centroid coordinate determination unit, configured to convert the centroid coordinates of a target ink dot whose contour area satisfies a preset condition into coordinates in a preset pattern coordinate system according to the coordinate conversion parameters, to obtain the target centroid coordinates; a target ink dot determination unit, which determines a target ink dot corresponding to the target centroid coordinates closest to the ink dot to be observed as the target ink dot, and determines target ink dots other than the target ink dot as satellite dots; a driving waveform adjustment module, configured to adjust an initial driving waveform based on the target ejection ink dot and the satellite point to obtain a target driving waveform; The driving waveform adjustment module includes: a roundness, ink volume, and landing point error calculation unit, configured to calculate the roundness, ink volume, and landing point error of the target ink jetted ink point; The roundness, ink volume and landing point error calculation unit is specifically used for: extracting the contour of the target inkjet point using an edge detection algorithm and fitting the contour of the target inkjet point into a circle; Determining the roundness and ink volume of the target ink jetting dot according to the fitted circle; Determine the distance difference between the target centroid coordinates of the target ejected ink dot and the ink dot to be observed as the landing point error; A fitting unit, for fitting a plurality of target inkjet dots into a straight line using a least square method; a straightness determination unit, for determining straightness according to the fitted straight line; A waveform adjustment unit is used to adjust the initial driving waveform according to the number of satellite dots, the area of ​​the satellite dots, the roundness of the target ink dots, the ink volume, the landing error and the straightness to obtain the target driving waveform; The initial driving waveform is adjusted according to the number of satellite dots, the area of ​​satellite dots, the roundness, ink volume, landing error and straightness of the target ejected ink dots to obtain the target driving waveform, including: Based on the relationship between the number of satellite points, the area of ​​satellite points, the roundness of the target ink dot, the ink volume, the landing error and the straightness and the driving waveform parameters, the driving waveform parameters are adjusted with reference to the existing waveform to form a new waveform. Among them, the maximum voltage of the driving waveform is related to the number of satellite points, the peak spacing is related to the ink volume, and the rising edge slope of the driving waveform is related to the roundness and straightness. After adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot, the method further includes: Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern; The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target condition, thereby obtaining a target driving waveform.

3. A device for optimizing inkjet printer waveforms, characterized in that: include: A communication unit / communication interface, configured to control a machine vision system to acquire a target pattern, wherein the target pattern is obtained by printing a preset pattern using an industrial inkjet printer, and the preset pattern includes preset grid lines and ink dots to be observed located at the center of each grid line; a processing unit / processor, configured to calibrate the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain coordinate conversion parameters; Before calibrating the machine vision system according to the intersection coordinates of the target pattern's grid lines and the corresponding intersection coordinates of the preset grid lines to obtain the coordinate conversion parameters, the method further includes: Using the Canny edge detection algorithm to determine the edges of the grid lines in the target pattern; Performing a Hough transform on the edges of the grid lines in the target pattern to obtain point set coordinates of the grid lines in the target pattern; Determining the intersection coordinates of the grid lines of the target pattern according to the point set coordinates; The machine vision system is calibrated according to the intersection coordinates of the grid lines of the target pattern and the intersection coordinates of the corresponding preset grid lines to obtain the coordinate conversion parameters, which includes: Performing an affine transformation on the coordinates of the nine intersection points of the target pattern's grid lines and the corresponding nine intersection points of the preset grid lines to obtain coordinate transformation parameters; Extracting target ink dots in the target pattern using an edge contour extraction algorithm to obtain centroid coordinates and contour areas of the target ink dots; Based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area meets a preset condition is determined as a target ejection ink dot, and target ink dots other than the target ejection ink dot are determined as satellite dots; The step of determining, based on the coordinate conversion parameters and the centroid coordinates, a target ink dot that is closest to the ink dot to be observed and whose contour area satisfies a preset condition as a target ink jetting dot, and determining target ink dots other than the target ink jetting dot as satellite dots comprises: According to the coordinate conversion parameters, the centroid coordinates of the target ink dot whose contour area meets the preset conditions are converted into coordinates in a preset pattern coordinate system to obtain the target centroid coordinates; The target ink point corresponding to the target centroid coordinate closest to the ink point to be observed is determined as the target ink point to be ejected, and the target ink points other than the target ink point to be ejected are determined as satellite points; Adjusting the initial driving waveform based on the target ejection ink point and the satellite point to obtain a target driving waveform; The adjusting the initial driving waveform based on the target ejection ink dot and the satellite point to obtain the target driving waveform includes: Calculating the roundness, ink volume and landing error of the target ink jet point; Calculating the roundness, ink volume, and landing error of the target ink jetting dots includes: extracting the contour of the target inkjet point using an edge detection algorithm and fitting the contour of the target inkjet point into a circle; Determining the roundness and ink volume of the target ink jetting dot according to the fitted circle; Determine the distance difference between the target centroid coordinates of the target jetted ink dot and the ink dot to be observed as the landing error; The least square method is used to fit multiple target inkjet dots into straight lines; Determine the straightness based on the fitted straight line; The initial driving waveform is adjusted according to the number of satellite dots, the area of ​​satellite dots, the roundness of the target ink jet dots, the ink volume, the landing error and the straightness to obtain the target driving waveform; The initial driving waveform is adjusted according to the number of satellite dots, the area of ​​satellite dots, the roundness, ink volume, landing error and straightness of the target ejected ink dots to obtain the target driving waveform, including: Based on the relationship between the number of satellite points, the area of ​​satellite points, the roundness of the target ink dot, the ink volume, the landing error and the straightness and the driving waveform parameters, the driving waveform parameters are adjusted with reference to the existing waveform to form a new waveform. Among them, the maximum voltage of the driving waveform is related to the number of satellite points, the peak spacing is related to the ink volume, and the rising edge slope of the driving waveform is related to the roundness and straightness. After adjusting the initial driving waveform based on the target ejection ink dot and the satellite dot, the method further includes: Using the adjusted driving waveform to inkjet print the preset pattern to obtain a new target pattern; The driving waveform is adjusted based on the new target pattern until the adjusted driving waveform meets the target condition, thereby obtaining a target driving waveform.

4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method for optimizing the inkjet printer waveform according to claim 1 is implemented.

Citation Information

Patent Citations

  • Method for adjusting driving waveforms at different temperatures based on printing image and printing equipment

    CN113407132A

  • Nozzle detection method, device and equipment and storage medium

    CN117268738A

Cited By

  • Printing optimization method and system based on UV flat digital printer

    CN122197462A