Printing method, apparatus, equipment, and storage medium based on real-time image correction

By collecting and analyzing the deviation values ​​of printed images in real time and adjusting the printing parameters, the problems of blank images, overlaps, and misalignment at the ends in inkjet printing were solved, and high-quality image printing was achieved.

CN116766806BActive Publication Date: 2026-03-13SENDA SHENZHEN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing inkjet printing technology, reciprocating scanning printing is prone to problems such as blank spaces, overlaps, and misalignment at the ends of images, which affect image quality.

Method used

By acquiring printed images in real time, obtaining a preset deviation threshold, performing image analysis, determining the deviation value, and adjusting printing parameters based on the deviation value and the preset threshold, real-time image correction is achieved.

Benefits of technology

Quickly identify and optimize printing parameters to avoid image quality issues and ensure the alignment and integrity of the final printed image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116766806B_ABST
    Figure CN116766806B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of industrial inkjet printing technology and solves the image quality problems caused by blank spaces, overlaps, and misalignment of image ends in existing printed images. It provides a printing method, apparatus, device, and storage medium based on real-time image correction. The method includes: real-time acquisition of the currently printed image in a printing task to generate an acquired image; obtaining a preset deviation threshold corresponding to the printing task; comparing the deviation value of the acquired image with the preset deviation threshold, where the preset deviation threshold corresponds to the pass number of the acquired image; adjusting the current printing parameters based on the comparison result and continuing to print the remaining image of the task to be printed; by comparing the deviation value of the acquired image with the preset deviation threshold, determining whether printing parameters need adjustment and the amount of adjustment, it can quickly determine whether there are white lines and / or black lines or image misalignment problems in the printed image, optimize printing parameters in a timely manner, and ensure the quality of the printed image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial inkjet printing technology, and in particular to a printing method, apparatus, device, and storage medium based on real-time image correction. Background Technology

[0002] Inkjet printing technology involves a printer controlling the movement of the printhead according to the printing task corresponding to the image to be printed. As the printhead moves, the nozzles of the printhead spray colored liquid ink into tiny particles onto the printing medium to form images or text.

[0003] In existing technologies, reciprocating scanning printing utilizes an inkjet mechanism (printhead) that reciprocates along the length of a printing beam to obtain a printed image on the printing medium. After the printhead completes printing of one area, the printing beam moves in a stepping motion relative to the printing medium along a direction perpendicular to the length of the printing beam, thus starting the printhead to print a new area. This process is repeated to complete the printing task. During the printing process, problems such as blank areas, image overlap, and misalignment of the printed images often occur. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a printing method, apparatus, device and storage medium based on real-time image correction, to solve the image quality problems caused by blanking, overlapping and misalignment of image ends in the prior art.

[0005] The technical solution adopted in this invention is:

[0006] This invention provides a printing method based on real-time image correction, the method comprising:

[0007] S1: Real-time acquisition of the currently printing image in the task to be printed to generate an acquisition image, and obtain a preset deviation threshold corresponding to the task to be printed;

[0008] S2: Perform image analysis on the acquired image to determine the deviation value of the acquired image;

[0009] S3: Adjust the current printing parameters of the task to be printed based on the comparison result between the deviation value and the preset deviation threshold to obtain the target printing parameters;

[0010] S4: Continue printing the images to be printed in the print job using the target printing parameters, wherein the print job includes printed images and images to be printed that have not yet been printed.

[0011] Preferably, S1 includes:

[0012] S11: Get the total number of passes n for scanning and printing completed tasks;

[0013] S12: Set a preset deviation threshold that corresponds one-to-one with the number of passes contained in each image region according to the total number of passes n;

[0014] Where n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.

[0015] Preferably, S2 includes:

[0016] S21: Obtain the binarization threshold for binarizing each pixel of the acquired image;

[0017] S22: Binarize each pixel of the acquired image according to the binarization threshold to obtain a binarized image;

[0018] S23: Obtain the deviation value of the acquired image based on the binarized image;

[0019] The deviation in the acquired image can be characterized by at least one of the following: misalignment of endpoints between ink lines, white lines, and pixel rows in the binarized image.

[0020] Preferably, S2 includes:

[0021] S24: Obtain the reference image corresponding to the acquired image;

[0022] S25: Obtain the deviation value based on the pixel information of each pixel in the acquired image and each pixel in the reference image;

[0023] The pixel information includes at least one of the following: pixel position, the area of ​​the ink dot of the pixel, and the pixel value of the pixel.

[0024] Preferably, S2 includes:

[0025] S26: Obtain the actual size information, corresponding actual number of passes, and printing parameters of the acquired image;

[0026] S27: Based on the actual number of passes and the printing parameters, obtain the theoretical size information of the acquired image;

[0027] S28: Obtain the deviation value based on the actual size information and the theoretical size information.

[0028] Preferably, the current printing parameters are adjusted in a single adjustment manner, wherein S3 includes:

[0029] S31: Obtain the actual number of passes for the acquired image and the remaining number of passes for the image to be printed;

[0030] S32: Based on the actual number of passes and the remaining number of passes, determine the target number of passes required to adjust the printing parameters, wherein the target number of passes is less than or equal to the actual number of passes;

[0031] S33: Based on the target number of passes and the deviation value, adjust the current printing parameters once to obtain the target printing parameters.

[0032] Preferably, the current printing parameters are adjusted at least once, and step S3 includes:

[0033] S34: Obtain the actual number of passes of the acquired image, the remaining number of passes of the image to be printed, and the total number of parameter adjustments;

[0034] S35: Based on the actual number of passes and the remaining number of passes, determine the total number of adjustments and the single error adjustment amount for adjusting the current printing parameters;

[0035] S36: Adjust the current printing parameters according to the total number of adjustments and the single error adjustment amount to obtain the target printing parameters for each adjustment.

[0036] The present invention also provides a printing apparatus, comprising:

[0037] Data acquisition module: used to acquire the currently printing image of the task to be printed in real time, generate the acquired image, and obtain the preset deviation threshold corresponding to the task to be printed;

[0038] Data processing module: used to perform image analysis on the acquired images and determine the deviation value of the acquired images;

[0039] Data analysis module: used to adjust the current printing parameters of the task to be printed based on the comparison result between the deviation value and the preset deviation threshold, so as to obtain the target printing parameters;

[0040] Data calibration module: used to continue printing the images to be printed in the print job using the target printing parameters, wherein the print job includes printed images and images to be printed that have not yet been printed.

[0041] The present invention also provides a printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions, when executed by the processor, implement the method described in any of the preceding embodiments.

[0042] The present invention also provides a storage medium having stored thereon computer program instructions that, when executed by a processor, implement the method described in any of the preceding claims.

[0043] In summary, the beneficial effects of the present invention are as follows:

[0044] This invention provides a printing method, apparatus, device, and storage medium based on real-time image correction. It involves real-time acquisition of the currently printing image in a print job to generate an acquired image, obtaining a preset deviation threshold corresponding to the print job, analyzing the acquired image to determine its deviation value, comparing the deviation value with the preset deviation threshold, adjusting the current printing parameters based on the comparison result, and continuing to print the print job using the target printing parameters. The print job includes both the printed image and unprinted images. By comparing the deviation value of the acquired image with the preset deviation threshold, it directly determines whether the current deviation value needs adjustment, quickly identifies white and / or black lines in the printed image, and addresses image misalignment issues, allowing for timely optimization of printing parameters and ensuring the quality of the final printed image. Attached Figure Description

[0045] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0046] Figure 1 This is a flowchart illustrating the printing method based on real-time image correction in Embodiment 1 of the present invention.

[0047] Figure 2 This is a schematic diagram of the process for obtaining the preset deviation threshold in Embodiment 1 of the present invention;

[0048] Figure 3 This is a schematic diagram of the process of obtaining the deviation value through binarized image in Embodiment 1 of the present invention;

[0049] Figure 4 This is a schematic diagram of the process for obtaining deviation values ​​through image comparison in Embodiment 1 of the present invention;

[0050] Figure 5 This is a schematic diagram of the process for determining the deviation value by comparing dimensional information in Embodiment 1 of the present invention;

[0051] Figure 6 This is a schematic diagram of the process of obtaining the target printing parameters through a single adjustment in Embodiment 1 of the present invention;

[0052] Figure 7 This is a schematic diagram of the process of obtaining the target printing parameters through multiple adjustments in Embodiment 1 of the present invention;

[0053] Figure 8 This is a schematic diagram of the printing device in Embodiment 2 of the present invention;

[0054] Figure 9 This is a schematic diagram of the printing device in Embodiment 3 of the present invention. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Where there is no conflict, the various features of this invention and its embodiments can be combined with each other, all of which are within the scope of protection of this invention.

[0056] Example 1

[0057] Please see Figure 1 , Figure 1 This is a flowchart illustrating a printing method based on real-time image correction provided in Embodiment 1 of the present invention. The method includes:

[0058] S1: Real-time acquisition of the currently printing image in the task to be printed to generate an acquisition image, and obtain a preset deviation threshold corresponding to the task to be printed;

[0059] S2: Perform image analysis on the acquired image to determine the deviation value of the acquired image;

[0060] S3: Adjust the current printing parameters of the task to be printed based on the comparison result between the deviation value and the preset deviation threshold to obtain the target printing parameters;

[0061] S4: Continue printing the images to be printed in the print job using the target printing parameters, wherein the print job includes printed images and images to be printed that have not yet been printed.

[0062] Specifically, the image acquisition device captures images of the current printable image according to preset rules. These rules define the image area contained within the captured image, with the size of the image area represented by the number of passes in the inkjet printer. Specifically, the same scanning area corresponding to the printhead's reciprocating motion along the printhead beam is recorded as 1 pass. When the printhead moves to the next area along the printhead beam, it scans and prints a new 1 pass image, and so on. Each step adds a new scanning area, increasing the printable image area by 1 pass. Based on the number of passes in the captured image, corresponding image deviation thresholds are preset. For example, when the captured image contains 2 passes, the preset deviation threshold is D1; ​​when it contains 3 passes, the preset deviation threshold is D2; when it contains 4 passes, the preset deviation threshold is D3, and so on. When the captured image contains K passes, the preset deviation threshold is D... k-1 K is a positive integer greater than or equal to 2, and D1 is preferred. <D2<D3<…<D k-1<(k-1)D1, k is a positive integer greater than 2. The deviation value of the acquired image is compared with the corresponding image deviation threshold. If it is greater than the image deviation threshold, the printing parameters are adjusted. The unfinished printing task is continued to be printed with the adjusted target printing parameters. Setting multiple preset deviation thresholds can avoid the problem of not being able to measure due to a small number of printing passes. After printing a sufficient number of passes, the error can be amplified by error accumulation, so that it can be detected and the printing parameters can be adjusted. By setting multiple preset deviation thresholds, it can also ensure that the error can be detected as soon as it can be detected, ensuring the timeliness of printing parameter adjustment and avoiding excessive error expansion that affects printing quality. For example, a print job requires 16 passes to complete. The image deviation threshold for 2 passes is 0.3d, for 3 passes it is 0.5d, and for 4 passes it is 0.75d, where d is the unit distance, which is the distance between two pixels. When the image acquisition device captures the image corresponding to 2 passes, due to ink diffusion or shooting angle issues, it is impossible to locate the position of the pixels, thus making it impossible to determine the deviation value. Therefore, after the printing device completes 3 passes, the deviation value of the captured image corresponding to 3 passes needs to be determined, and so on. In the captured image corresponding to 4 passes, the deviation value of 4 passes is determined to be 0.9d, which is greater than the image deviation threshold. Based on this deviation value and the corresponding number of passes, the current printing parameters are adjusted to obtain the adjusted target printing parameters. Printing continues with these target printing parameters. During the printing process, the above operation continues until the 16 passes of the print job are completed. By synchronously analyzing the printed image and adjusting the printing parameters in real time, the quality of the printed image is ensured, avoiding the impact of installation differences or environmental differences on the quality of the printed image.

[0063] In one embodiment, please refer to Figure 2 S1 includes:

[0064] S11: Get the total number of passes n for scanning and printing completed tasks;

[0065] S12: Set a preset deviation threshold that corresponds one-to-one with the number of passes contained in each image region according to the total number of passes n;

[0066] Where n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.

[0067] Specifically, when printing a task, the image acquisition device is first set to acquire the image area of ​​the current image based on the total number of passes required to complete the printing task. A corresponding preset deviation threshold is also set for each acquired image area. For example, if the image to be printed requires 16 passes to complete printing, the acquisition method of the image acquisition device is set to a 4-pass cycle. That is, the image area acquired for 2 passes (i.e., the image areas of the 1st and 2nd passes) is analyzed first, with a corresponding preset deviation threshold of D1. If the deviation value cannot be obtained, then the image area acquired for 3 passes (i.e., the image areas of the 1st, 2nd, and 3rd passes) is acquired, with a corresponding preset deviation threshold of D2. If the deviation value still cannot be determined for the image area acquired for 3 passes, then the image area acquired for 4 passes (i.e., the image areas of the 1st, 2nd, 3rd, and 4th passes) is acquired to determine the deviation value of the current image, with a corresponding preset deviation threshold of D3.

[0068] In one embodiment, please refer to Figure 3 S2 includes:

[0069] S21: Obtain the binarization threshold for binarizing each pixel of the acquired image;

[0070] S22: Binarize each pixel of the acquired image according to the binarization threshold to obtain a binarized image;

[0071] S23: Obtain the deviation value of the acquired image based on the binarized image;

[0072] The deviation in the acquired image can be characterized by at least one of the following: misalignment of endpoints between ink lines, white lines, and pixel rows in the binarized image.

[0073] Specifically, the acquired image is binarized to convert each pixel into an ink dot and a blank dot (a blank dot is a pixel where no ink has been sprayed). The deviation value of the acquired image is determined by the binarized image. An ink line is defined as at least two rows of pixels overlapping to form a single pixel area, or the image area corresponding to multiple rows of pixels is at least one row less than the theoretical number of pixel areas. A white line is defined as at least one blank pixel area between two rows of pixels, or the image area corresponding to multiple rows of pixels is at least one row more than the theoretical number of pixel areas. Endpoint misalignment is defined as the phenomenon where the start and end points of each pixel row are not on the same straight line when there are no blank dots or the number and position of ink dots are the same.

[0074] In one embodiment, please refer to Figure 4 S2 includes:

[0075] S24: Obtain the reference image corresponding to the acquired image;

[0076] S25: Obtain the deviation value based on the pixel information of each pixel in the acquired image and each pixel in the reference image;

[0077] The pixel information includes at least one of the following: pixel position, the area of ​​the ink dot of the pixel, and the pixel value of the pixel.

[0078] Specifically, the processor generates an original theoretical image based on the dot matrix data of the image to be printed. The printing device performs inkjet printing based on the dot matrix data of the printed image to obtain the actual image. The actual image of the image to be printed in this application includes an image with multiple printing stages. The image between two adjacent adjustments of printing parameters is recorded as a printing stage. The printing parameters corresponding to each printing stage are the target printing parameters optimized based on the deviation value corresponding to the previous printing stage. Therefore, the reference image corresponding to each printing stage (excluding the first stage) differs from the original theoretical image. The image of the current printed image acquired by the image acquisition device is compared with the corresponding reference image to determine the deviation value of the current acquired image. Specifically, this is done by comparing the pixel information of each pixel in the acquired image and the reference image. The pixel information includes the pixel position, the ink dot area corresponding to the pixel, and the pixel value. In this embodiment, the pixel position and the ink dot area of ​​the pixel are mainly compared.

[0079] In one embodiment, please refer to Figure 5 S2 includes:

[0080] S26: Obtain the actual size information, corresponding actual number of passes, and printing parameters of the acquired image;

[0081] S27: Based on the actual number of passes and the printing parameters, obtain the theoretical size information of the acquired image;

[0082] S28: Obtain the deviation value based on the actual size information and the theoretical size information.

[0083] Specifically, the total number of rows of pixels in the acquired image is determined based on the actual number of passes corresponding to the acquired image, thereby obtaining the theoretical size of the acquired image. Then, by comparing the actual size of the acquired image with the theoretical size, it is determined whether there are any abnormalities such as white lines or black lines in the acquired image.

[0084] In one embodiment, the current printing parameters are adjusted in a single adjustment manner; please refer to [link to previous document]. Figure 6S3 includes:

[0085] S31: Obtain the actual number of passes for the acquired image and the remaining number of passes for the image to be printed;

[0086] S32: Based on the actual number of passes and the remaining number of passes, determine the target number of passes required to adjust the printing parameters, wherein the target number of passes is less than or equal to the actual number of passes;

[0087] S33: Based on the target number of passes and the deviation value, adjust the current printing parameters once to obtain the target printing parameters.

[0088] Specifically, when the deviation value of the acquired image exceeds the preset deviation threshold, an adjustment is performed to eliminate the error. This determines the current stage of the printing task and thus how many passes remain to be printed, thereby determining the number of passes required to adjust the current deviation value. For example, if the image to be printed requires 16 passes, and the image acquisition method is set to a 4-pass cycle, and the current acquired image is the first 4 passes of the image to be printed with a deviation value of 0.9d, then 12 passes remain to be printed. Therefore, the printing parameters can be adjusted in the next 3 passes, such as setting the step distance of the 5th pass to the original step distance. The step distance is increased by 0.1d. For the 6th pass, the step distance is increased by 0.2d from the original step distance, and for the 7th pass, the step distance is increased by 0.3d. This ensures that the spacing between images printed in each pass starting from the 7th pass meets the printing requirements. Furthermore, using this method, the image acquisition device begins the next image acquisition of the current printed image from the last pass image after the printing parameter adjustment is completed. That is, the fourth acquired image is the image area corresponding to the 7th and 8th passes, and the fifth acquired image is the image area corresponding to the 7th, 8th, and 9th passes, or the image area corresponding to the 8th and 9th passes. After the adjustment is completed, the step distance in the target printing parameters for subsequent passes will all be 1.3d.

[0089] In one embodiment, the current printing parameters are adjusted at least once; please refer to [link to relevant documentation]. Figure 7 S3 includes:

[0090] S34: Obtain the actual number of passes of the acquired image, the remaining number of passes of the image to be printed, and the total number of parameter adjustments;

[0091] S35: Based on the actual number of passes and the remaining number of passes, determine the total number of adjustments and the single error adjustment amount for adjusting the current printing parameters;

[0092] S36: Adjust the current printing parameters according to the total number of adjustments and the single error adjustment amount to obtain the target printing parameters for each adjustment.

[0093] Specifically, when the deviation value of the acquired image exceeds a preset deviation threshold, at least one adjustment is performed to eliminate the error. This determines the current stage of the printing task and thus how many passes remain to be printed. The maximum number of adjustments that can be made is determined based on the remaining passes. The deviation value corresponding to each pass in the current printable image is determined based on the actual number of passes, thereby determining the error amount for a single adjustment. For example, if the image to be printed requires 16 passes to complete printing, and the image acquisition device is set to a 4-pass cycle, the current acquired image is the image of the first 4 passes of the image to be printed, with a deviation value of 0.8. If d, then 12 passes remain to be printed. If each adjustment is 4 passes, then it can be divided into a maximum of three adjustments. The final image printed using the adjusted target printing parameters will be consistent with the theoretical image. Assuming that the printing parameter adjustment corresponding to the deviation value is completed in two steps, and the corresponding printing image deviation value decreases by 0.4d after each adjustment, then the image size printed in the last 4 passes will be consistent with the theoretical image size. Furthermore, in each adjustment, the step distance adjustment value corresponding to the printing parameter of each pass is the same. That is, after one adjustment, the deviation value decreases by 0.4d, and the step distance corresponding to the printing parameter of each pass changes by 0.1d compared to the step distance of the first 4 passes.

[0094] In one embodiment, the deviation value is greater than a preset deviation threshold, and step S3 includes:

[0095] S37: Obtain the diffusion coefficient of the ink relative to the printing medium;

[0096] S38: Based on the diffusion coefficient, obtain the ink dot region of each ink dot;

[0097] S38: Determine the first retreat distance in the opposite direction to the stepping direction based on the ink dot area;

[0098] In one embodiment, S38 includes:

[0099] S381: Determine a distance critical point based on the ink dot region, wherein the distance critical point divides the unit distance into a first distance and a second distance;

[0100] S382: Determine the back-off distance based on the deviation value, the second distance, and the actual number of passes of the acquired image, wherein the back-off distance is less than or equal to the second distance.

[0101] Specifically, the first distance is the distance from the center point of the ink dot to the edge of the ink dot, and the second distance is the interval distance between the edges of adjacent ink dots. The distance threshold is determined based on the ink dot area. When printing the next image area through the distance threshold, after backing up the corresponding back distance, the two adjacent ink dot areas will not overlap. This can both optimize the poor quality problem caused by blank areas and avoid new image quality problems caused by the overlap of adjacent ink dot areas.

[0102] S39: Adjust the current printing parameters according to the backtracking distance, the deviation value, and the actual number of passes to obtain the target printing parameters.

[0103] Specifically, if a comparison between the captured image and the reference image shows that the step distance of the current printed image is greater than that of the reference image, the spacing between adjacent printed areas increases, meaning there are blank spaces between the images. Ink has fluidity, varying across different printing media. By obtaining the ink diffusion coefficient on the printing medium corresponding to the image to be printed, the final ink dot area on the printing medium can be determined, thus determining the minimum distance between the next printed area and the current printed area. This can be understood as: determining the step distance for each step in the next printed area using the deviation value and the actual number of passes. Based on this, a backtracking can be performed according to the ink dot area, making the starting position of the next printed area closer to the initial preset position, i.e., according to... The backtracking distance is used to optimize the step distance of the next pass. For example, if the second distance is 0.5d, the step distance of each pass is reduced by 0.3d based on the deviation value and the actual number of passes. Since the backtracking distance is 0.15d, the actual step distance from the current printed image area to the next printed area is reduced by 0.45d. If the second distance is 0.4d, the backtracking distance can be distributed among each pass. For example, if the step distance of each pass is reduced by 0.3d, the nearest three consecutive step distances can be adjusted to reduce by 0.35d. Alternatively, the step distance can be reduced to continuously optimize the target printing parameters corresponding to the starting position and step distance of each printed area during the printing process of the image to be printed, thus ensuring the image quality of the final printed image.

[0104] The real-time image correction printing method provided in Embodiment 1 of this invention acquires the currently printing image in a printing task in real time to generate an acquisition image, obtains a preset deviation threshold corresponding to the printing task, analyzes the acquisition image to determine the deviation value of the acquisition image, compares the deviation value with the preset deviation threshold, adjusts the current printing parameters according to the comparison result, and continues to print the images to be printed in the printing task using the target printing parameters. The printing task includes the printed image and the images to be printed that have not yet been printed. By comparing the deviation value of the acquisition image with the preset deviation threshold, it is possible to directly determine whether the current deviation value needs to be adjusted. This allows for quick identification of white and / or black lines in the printed image, image misalignment issues, and timely optimization of printing parameters to ensure the quality of the final printed image.

[0105] Example 2

[0106] Embodiment 2 of the present invention provides a printing device, please refer to... Figure 8 ,include:

[0107] Data acquisition module: used to acquire the currently printing image of the task to be printed in real time, generate the acquired image, and obtain the preset deviation threshold corresponding to the task to be printed;

[0108] Data processing module: used to perform image analysis on the acquired images and determine the deviation value of the acquired images;

[0109] Data analysis module: used to adjust the current printing parameters of the task to be printed based on the comparison result between the deviation value and the preset deviation threshold, so as to obtain the target printing parameters;

[0110] Data calibration module: used to continue printing the images to be printed in the print job using the target printing parameters, wherein the print job includes printed images and images to be printed that have not yet been printed.

[0111] The printing device provided in Embodiment 2 of the present invention acquires the currently printed image in a print job in real time to generate an acquired image, obtains a preset deviation threshold corresponding to the print job, analyzes the acquired image to determine the deviation value of the acquired image, compares the deviation value with the preset deviation threshold, adjusts the current printing parameters according to the comparison result, and continues to print the print job in the print job using the target printing parameters. The print job includes the print image and the print image that has not yet been printed. By comparing the deviation value of the acquired image with the preset deviation threshold, it can directly determine whether the current deviation value needs to be adjusted. It can quickly determine whether there are white lines and / or black lines or misalignment problems in the print image, and optimize the printing parameters in a timely manner to ensure the quality of the final printed image.

[0112] In one embodiment, the data acquisition module includes:

[0113] Data acquisition unit: Obtains the total number of passes n for scanning and printing completed tasks;

[0114] Preset deviation threshold unit: Set a preset deviation threshold that corresponds one-to-one with the number of passes contained in each image region according to the total number of passes n;

[0115] Where n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.

[0116] In one embodiment, the data processing module includes:

[0117] Binarization data acquisition unit: acquires the binarization threshold for binarizing each pixel of the acquired image;

[0118] Image binarization unit: Binarizes each pixel of the acquired image according to the binarization threshold to obtain a binarized image;

[0119] Error statistics unit: Based on the binarized image, obtain the deviation value of the acquired image;

[0120] The deviation value includes at least one of the following: the binarized image has misaligned endpoints between ink lines, white lines, and pixel rows.

[0121] In one embodiment, the data processing module includes:

[0122] Reference image unit: Acquires a reference image corresponding to the acquired image;

[0123] Image comparison unit: Obtains the deviation value based on the pixel information of each pixel in the acquired image and each pixel in the reference image;

[0124] The pixel information includes the pixel position, the area of ​​the ink dot of the pixel, and the pixel value.

[0125] In one embodiment, the data processing module includes:

[0126] Parameter acquisition unit: acquires the actual size information, corresponding actual number of passes, and printing parameters of the acquired image;

[0127] Size unit: Based on the actual number of passes and the printing parameters, the theoretical size information of the acquired image is obtained;

[0128] Size comparison unit: Based on the actual size information and the theoretical size information, the deviation value is obtained.

[0129] In one embodiment, the data analysis module includes:

[0130] Image data unit: acquires the actual number of passes of the acquired image and the remaining number of passes of the image to be printed;

[0131] Target Pass Count Unit: Based on the actual pass count and the remaining pass count, determine the target pass count required to adjust the printing parameters, wherein the target pass count is less than or equal to the actual pass count;

[0132] Parameter adjustment unit: Adjusts the current printing parameters once based on the target number of passes and the deviation value to obtain the target printing parameters.

[0133] In one embodiment, the data analysis module includes:

[0134] Adjustment count unit: obtains the actual number of passes of the acquired image, the remaining number of passes of the image to be printed, and the total number of adjustments performed on the parameters;

[0135] Adjustment unit: Based on the actual number of passes and the remaining number of passes, determine the total number of adjustments and the single error adjustment amount for adjusting the current printing parameters;

[0136] Adjustment parameter unit: Adjusts the current printing parameters according to the total number of adjustments and the single error adjustment amount to obtain the target printing parameters for each adjustment.

[0137] The printing device provided in Embodiment 2 of the present invention acquires the currently printed image in a print job in real time to generate an acquired image, obtains a preset deviation threshold corresponding to the print job, analyzes the acquired image to determine the deviation value of the acquired image, compares the deviation value with the preset deviation threshold, adjusts the current printing parameters according to the comparison result, and continues to print the print job in the print job using the target printing parameters. The print job includes the print image and the print image that has not yet been printed. By comparing the deviation value of the acquired image with the preset deviation threshold, it can directly determine whether the current deviation value needs to be adjusted. It can quickly determine whether there are white lines and / or black lines or misalignment problems in the print image, and optimize the printing parameters in a timely manner to ensure the quality of the final printed image.

[0138] Example 3

[0139] Embodiment 3 of the present invention discloses a printing device, please refer to... Figure 9 It includes at least one processor, at least one memory, and computer program instructions stored in the memory.

[0140] Specifically, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.

[0141] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0142] The processor reads and executes computer program instructions stored in the memory to implement any of the inkjet printer partial power supply abnormality detection methods in Embodiment 1 above.

[0143] In one example, the printing device may also include a communication interface and a bus. The processor, memory, and communication interface are connected via the bus and communicate with each other.

[0144] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0145] A bus, including hardware, software, or both, couples components of a printing device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0146] In summary, the real-time image-based printing method, apparatus, device, and storage medium provided in this invention real-time acquires the currently printing image in a printing task to generate an acquired image, obtains a preset deviation threshold corresponding to the printing task, analyzes the acquired image to determine the deviation value of the acquired image, compares the deviation value with the preset deviation threshold, adjusts the current printing parameters based on the comparison result, and continues printing the images to be printed in the printing task using the target printing parameters. The printing task includes the printed image and images not yet printed. By comparing the deviation value of the acquired image with the preset deviation threshold, it directly determines whether the current deviation value needs adjustment, quickly identifies whether there are white and / or black lines or image misalignment problems in the printed image, and optimizes the printing parameters in a timely manner to ensure the quality of the final printed image.

[0147] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0148] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A printing method based on real-time image correction, characterized in that, The method comprises: S1: real-time acquisition of a printing image currently being printed in a to-be-printed task to generate an acquisition image, and acquisition of a preset deviation threshold corresponding to the to-be-printed task; S2: image analysis of the acquisition image to determine a deviation value of the acquisition image; S3: adjustment of a current printing parameter of the to-be-printed task according to a comparison result of the deviation value and the preset deviation threshold to obtain a target printing parameter; S4: continuous printing of a to-be-printed image in the to-be-printed task using the target printing parameter, wherein the to-be-printed task comprises a printing image and a to-be-printed image that has not been printed; wherein S1 comprises: S11: acquisition of a total number n of passes for scanning and printing a completed to-be-printed task; S12: setting a preset deviation threshold corresponding to the number of Passes contained in each image region according to the total number of Passes n, wherein a plurality of corresponding image deviation thresholds are set in advance according to different numbers of Passes contained in the collected image, and when the collected image contains K Pass images, the preset deviation threshold is , K is a positive integer greater than 2, wherein n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.​​​​ 2. The image-based real-time print misregistration correction method of claim 1, wherein, S2 comprises: S21: acquisition of a binary threshold for binarizing each pixel point of the acquisition image; S22: binarization of each pixel point of the acquisition image according to the binary threshold to obtain a binary image; S23: obtaining of the deviation value of the acquisition image according to the binary image; wherein the acquisition image has a deviation represented by at least one of the following: ink lines, white lines, and misaligned endpoints between pixel rows in the binary image.

3. The image-based real-time print misregistration correction method of claim 1, wherein, S2 comprises: S24: acquisition of a reference image corresponding to the acquisition image; S25: obtaining of the deviation value according to pixel point information of each pixel point of the acquisition image and each pixel point of the reference image; wherein the pixel point information comprises at least one of the following: a pixel point position, an ink dot area of the pixel point, and a pixel value of the pixel point.

4. The image-based real-time print misregistration correction method of claim 1, wherein, S2 comprises: S26: acquisition of actual size information of the acquisition image, a corresponding actual number of passes, and a printing parameter; S27: obtaining of theoretical size information of the acquisition image according to the actual number of passes and the printing parameter; S28: obtaining of the deviation value according to the actual size information and the theoretical size information.

5. The image-based real-time print misregistration correction method of claim 1, wherein, The current printing parameter is adjusted using a one-time adjustment mode, and S3 comprises: S31: acquisition of an actual number of passes of the acquisition image and a remaining number of passes of the to-be-printed image; S32: determination of a target number of passes required for adjusting the printing parameter according to the actual number of passes and the remaining number of passes, wherein the target number of passes is less than or equal to the actual number of passes; S33: one-time adjustment of the current printing parameter according to the target number of passes and the deviation value to obtain the target printing parameter.

6. The image-based real-time print misregistration correction method of claim 1, wherein, The current printing parameter is adjusted using at least one adjustment mode, and S3 comprises: S34: acquisition of an actual number of passes of the acquisition image, a remaining number of passes of the to-be-printed image, and a total number of adjustments for parameter adjustment; S35: determination of a total number of adjustments for adjusting the current printing parameter and a single error adjustment amount according to the actual number of passes and the remaining number of passes; S36: adjustment of the current printing parameter according to the total number of adjustments and the single error adjustment amount to obtain the target printing parameter of each adjustment.

7. A printing device, characterized by ​ The data acquisition module is configured to acquire a total Pass number n of scanning and printing of the to-be-printed task, and set a preset deviation threshold corresponding to the Pass number of each image region according to the total Pass number n, wherein a plurality of corresponding image deviation thresholds are set in advance according to different Pass numbers contained in the acquired image, when the acquired image contains K Pass images, the preset deviation threshold is , K is a positive integer greater than 2, wherein n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.​​​​ The data processing module is configured to perform image analysis on the collected image and determine a deviation value of the collected image. The data analysis module is configured to adjust a current printing parameter of the to-be-printed task according to a comparison result of the deviation value and the preset deviation threshold value, and obtain a target printing parameter. The data calibration module is configured to continue printing a to-be-printed image in the to-be-printed task by using the target printing parameter, wherein the to-be-printed task includes a printed image and a to-be-printed image that has not been printed.

8. A printing apparatus characterized by comprising: The computer program instructions, when executed by the processor, implement the method according to any one of claims 1-6. The computer program instructions, when executed by the processor, implement the method according to any one of claims 1-6.

9. A storage medium having stored thereon computer program instructions, characterized in that, ​

Citation Information

Patent Citations

  • Printing control method and device

    CN106696482A

  • Dimension error compensation method, apparatus, device, and storage medium for printing image output

    CN109062520A

  • Printing calibration method and device of manicure machine, manicure machine and storage medium

    CN109766063A

  • Printing and overprinting monitoring system and monitoring method thereof

    CN110875996A