CN116766806A - Printing method, device, equipment and storage medium based on image real-time deviation correction - Google Patents

Printing method, device, equipment and storage medium based on image real-time deviation correction Download PDF

Info

Publication number
CN116766806A
CN116766806A CN202210239801.8A CN202210239801A CN116766806A CN 116766806 A CN116766806 A CN 116766806A CN 202210239801 A CN202210239801 A CN 202210239801A CN 116766806 A CN116766806 A CN 116766806A
Authority
CN
China
Prior art keywords
image
printed
printing
pass number
printing parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210239801.8A
Other languages
Chinese (zh)
Inventor
刘衍科
邬海林
陈艳
黄中琨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Senda Shenzhen Technology Co Ltd
Original Assignee
Senda Shenzhen Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Senda Shenzhen Technology Co Ltd filed Critical Senda Shenzhen Technology Co Ltd
Priority to CN202210239801.8A priority Critical patent/CN116766806A/en
Publication of CN116766806A publication Critical patent/CN116766806A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/21Ink jet for multi-colour printing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

Abstract

The application belongs to the technical field of industrial inkjet printing, solves the problems of image quality caused by white left, overlapping and misalignment of image ends in the prior art, and provides a printing method, device, equipment and storage medium based on real-time correction of images. Acquiring a printing image currently being printed in a to-be-printed task in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the to-be-printed task; comparing the deviation value of the acquired image with a preset deviation threshold value, wherein the preset deviation threshold value corresponds to the Pass number corresponding to the acquired image, and continuing to print the residual image of the image to be printed after the current printing parameters are adjusted according to the comparison result; by comparing the deviation value of the acquired image with a preset deviation threshold value to determine whether the printing parameters are adjusted and the adjustment amount, whether the printing image has the problems of white line and/or black line and image misalignment can be rapidly judged, the printing parameters are timely optimized, and the quality of the printing image is ensured.

Description

Printing method, device, equipment and storage medium based on image real-time deviation correction
Technical Field
The application relates to the technical field of industrial inkjet printing, in particular to a printing method, device and equipment based on real-time correction of images and a storage medium.
Background
The ink jet printing technology is that the printer controls the nozzle to move according to the print job corresponding to the image to be printed, and the nozzle of the nozzle changes the color liquid ink into fine particles through the nozzle to spray onto the printing medium to form image or text.
In the prior art, in reciprocating scanning printing, an ink jet mechanism (a nozzle) is utilized to reciprocate along the length direction of a printing beam so as to obtain a printing image on a printing medium, after the nozzle finishes printing of an area, the printing beam performs stepping motion relative to the printing medium along the length direction perpendicular to the printing beam so as to start the nozzle to print a new area, and the process is repeated to finish a printing task; problems of blank, overlapping of images and misalignment of end images of printed images often occur during printing.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a printing method, apparatus, device and storage medium based on real-time correction of images, so as to solve the problem of image quality caused by white, overlapping and misalignment of image ends in the prior art.
The technical scheme adopted by the application is as follows:
the application provides a printing method based on image real-time correction, which comprises the following steps:
s1: acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
s2: performing image analysis on the acquired image to determine a deviation value of the acquired image;
s3: according to the comparison result of the deviation value and the preset deviation threshold value, the current printing parameters of the to-be-printed task are adjusted, and target printing parameters are obtained;
s4: and continuing to print the images to be printed in the tasks to be printed by utilizing the target printing parameters, wherein the tasks to be printed comprise the printed images and the images to be printed which are not printed yet.
Preferably, the S1 includes:
s11: acquiring a total Pass number n for completing a to-be-printed task to perform scanning printing;
s12: setting a preset deviation threshold value corresponding to the Pass number contained in each image area one by one according to the total Pass number n;
wherein n is greater than or equal to 2, and the number of the preset deviation thresholds is n-1.
Preferably, the S2 includes:
s21: acquiring a binarization threshold value for binarizing each pixel point of the acquired image;
s22: binarizing each pixel point of the acquired image according to the binarization threshold value to obtain a binarized image;
s23: obtaining the deviation value of the acquired image according to the binarized image;
wherein the acquired image is characterized by at least one of: the ink lines, white lines, and the end points between the pixel rows present in the binarized image are not aligned.
Preferably, the S2 includes:
s24: acquiring a reference image corresponding to the acquired image;
s25: obtaining the deviation value according to the pixel information of each pixel of the acquired image and each pixel of the reference image;
wherein the pixel point information includes at least one of: pixel position, ink dot area of the pixel and pixel value of the pixel.
Preferably, the S2 includes:
s26: acquiring the actual size information of the acquired image, the corresponding actual Pass number and the printing parameters;
s27: obtaining theoretical size information of the acquired image according to the actual Pass number and the printing parameters;
s28: and obtaining the deviation value according to the actual size information and the theoretical size information.
Preferably, the current printing parameters are adjusted by adopting a one-time adjustment mode, and the step S3 includes:
s31: acquiring the actual Pass number of the acquired image and the residual Pass number of the image to be printed;
s32: determining a target Pass number required for adjusting the printing parameters according to the actual Pass number and the residual Pass number, wherein the target Pass number is smaller than or equal to the actual Pass number;
s33: and adjusting the current printing parameters once according to the target Pass number and the deviation value to obtain the target printing parameters.
Preferably, the current printing parameters are adjusted at least once, and the step S3 includes:
s34, acquiring the actual Pass number of the acquired image, the residual Pass number of the image to be printed and the total adjustment times for parameter adjustment;
s35: determining the total adjustment times and the single error adjustment amount for adjusting the current printing parameters according to the actual Pass number and the residual Pass number;
s36: and adjusting the current printing parameters according to the total adjustment times and the single error adjustment quantity to obtain the target printing parameters adjusted each time.
The application also provides a printing device, comprising:
and a data acquisition module: the method comprises the steps of acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
and a data processing module: the method comprises the steps of performing image analysis on the acquired image and determining a deviation value of the acquired image;
and a data analysis module: the current printing parameters of the task to be printed are adjusted according to the comparison result of the deviation value and the preset deviation threshold value, and target printing parameters are obtained;
and a data calibration module: and continuing to print the images to be printed in the tasks to be printed by using the target printing parameters, wherein the tasks to be printed comprise the printed images and the images to be printed which are not printed yet.
The present application also provides a printing apparatus including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any of the above.
The application also provides a storage medium having stored thereon computer program instructions which when executed by a processor implement a method as claimed in any preceding claim.
In summary, the beneficial effects of the application are as follows:
the application provides a printing method, device, equipment and storage medium based on real-time correction of images, which are used for collecting currently printed images in a to-be-printed task in real time to generate collected images, acquiring a preset deviation threshold corresponding to the to-be-printed task, analyzing the collected images, determining a deviation value of the collected images, comparing the deviation value with the preset deviation threshold, adjusting current printing parameters according to a comparison result, and continuing to print the to-be-printed images in the to-be-printed task by utilizing the target printing parameters, wherein the to-be-printed task comprises the printed images and the to-be-printed images which are not yet printed; by comparing the deviation value of the acquired image with a preset deviation threshold value, whether the current deviation value needs to be adjusted or not is directly determined, whether the printed image has the problems of white line and/or black line and image misalignment or not can be rapidly judged, printing parameters are timely optimized, and the quality of the final printed image is guaranteed.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described, and it is within the scope of the present application to obtain other drawings according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a printing method based on image real-time correction in embodiment 1 of the present application;
fig. 2 is a flow chart of acquiring a preset deviation threshold in embodiment 1 of the present application;
FIG. 3 is a flow chart of obtaining a deviation value by binarizing an image in embodiment 1 of the present application;
FIG. 4 is a flow chart of obtaining an offset value by image contrast in embodiment 1 of the present application;
FIG. 5 is a flow chart of determining the deviation value of the comparative dimension information in embodiment 1 of the present application;
FIG. 6 is a flow chart of obtaining target printing parameters by one adjustment in embodiment 1 of the present application;
FIG. 7 is a flow chart of obtaining target printing parameters through multiple adjustments in embodiment 1 of the present application;
fig. 8 is a schematic diagram showing the structure of a printing apparatus according to embodiment 2 of the present application;
fig. 9 is a schematic structural view of a printing apparatus in embodiment 3 of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. In the description of the present application, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate describing the present application and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element. The various features of the application and of the embodiments may be combined with one another without conflict, and are within the scope of the application.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a printing method based on image real-time correction provided in embodiment 1 of the present application, where the method includes:
s1: acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
s2: performing image analysis on the acquired image to determine a deviation value of the acquired image;
s3: according to the comparison result of the deviation value and the preset deviation threshold value, the current printing parameters of the to-be-printed task are adjusted, and target printing parameters are obtained;
s4: and continuing to print the images to be printed in the tasks to be printed by utilizing the target printing parameters, wherein the tasks to be printed comprise the printed images and the images to be printed which are not printed yet.
Specifically, the image acquisition device is controlled to shoot the current printing image to obtain an acquisition image, and the image acquisition device shoots the current printing image according to a preset rule, wherein the preset rule is an acquisition image corresponding to the current image acquired by the image acquisition deviceThe image area is represented by the Pass number of the ink-jet printer, wherein the same corresponding scanning area is recorded as 1Pass in the process that the spray head reciprocates along the printing cross beam, when the spray head moves to the next area along the printing cross beam in a stepping way, when the spray head scans and prints a new printing area in the process that the spray head reciprocates along the printing cross beam, a new 1Pass image is obtained, and the like, and when one new scanning area is added every step, the image area of 1Pass is added to the printing image; according to the difference of Pass numbers contained in the acquired images, a corresponding image deviation threshold value is preset; such as: when the acquired image contains a 2Pass image, the preset deviation threshold is D 1 When the acquired image contains a 3Pass image, the preset deviation threshold is D 2 When the acquired image contains a 4Pass image, the preset deviation threshold is D 3 And so on, when the acquired image contains KPass images, the preset deviation threshold is D k-1 K is a positive integer of 2 or more, preferably D 1 <D 2 <D 3 <…<D k-1 <(k-1)D 1 K is a positive integer greater than 2, the deviation value of the acquired image is compared with a corresponding image deviation threshold value, if the deviation value is greater than the image deviation threshold value, the printing parameters are adjusted, the unfinished printing task is continuously printed by the adjusted target printing parameters, a plurality of preset deviation threshold values are set, the problem that the printing Pass number is less and cannot be measured can be avoided, and therefore the error can be enlarged in an error accumulation mode after the printing Pass number is enough, so that the deviation value is detected, the printing parameters can be adjusted, the first time when the error can be detected can be ensured, the timeliness of the adjustment of the printing parameters is ensured, and the phenomenon that the printing quality is influenced by excessive expansion of the error is avoided. For example: the printing task can be finished only by 16Pass, the image deviation threshold corresponding to 2Pass is 0.3d, the image deviation threshold corresponding to 3Pass is 0.5d, the image deviation threshold corresponding to 4Pass is 0.75d, d is a unit distance, and the unit distance is the distance between two pixel points; when the image acquired by the image acquisition device is the image corresponding to 2Pass, the position of the pixel point cannot be aligned due to the problems of ink diffusion or shooting angleThe method comprises the steps of positioning the device, judging the deviation value of an acquired image corresponding to 3Pass after the printing equipment finishes 3Pass printing, and by analogy, determining that the deviation value of the image corresponding to 4Pass is 0.9d in the acquired image corresponding to 4Pass, wherein the deviation value is larger than an image deviation threshold value, adjusting current printing parameters according to the deviation value and the corresponding Pass number to obtain adjusted target printing parameters, continuing printing by the target printing parameters, continuing the operation in the printing process until 16Pass printing of a task to be printed is finished, analyzing the printed image synchronously, and adjusting the printing parameters in real time to ensure the quality of the printed image, so that the quality of the printed image is prevented from being influenced by installation differences or environmental differences.
In one embodiment, referring to fig. 2, the step S1 includes:
s11: acquiring a total Pass number n for completing a to-be-printed task to perform scanning printing;
s12: setting a preset deviation threshold value corresponding to the Pass number contained in each image area one by one according to the total Pass number n;
wherein n is greater than or equal to 2, and the number of the preset deviation thresholds is n-1.
Specifically, when printing a job to be printed, an image area where the image acquisition device acquires a current image is set according to the total Pass number required for completing the job to be printed, and a corresponding preset deviation threshold is set for each acquired image area, for example: the image to be printed can be printed only by 16Pass, and the acquisition mode of the image acquisition device is set to be 4Pass for one cycle, namely: firstly, collecting and analyzing image areas of 2Pass (namely image areas of 1Pass and 2 Pass), wherein the corresponding preset deviation threshold value is D 1 If the deviation value cannot be obtained, then collecting 3Pass (namely the image areas of the 1 st Pass, the 2 nd Pass and the 3 rd Pass) on the basis, wherein the corresponding preset deviation threshold value is D 2 If the deviation value cannot be determined in the image area of 3Pass, determining the deviation value of the current image in the image area of 4Pass (i.e. the image areas of 1 st Pass, 2 nd Pass, 3 rd Pass and 4 th Pass), wherein the corresponding preset deviation threshold value isD 3
In one embodiment, referring to fig. 3, the step S2 includes:
s21: acquiring a binarization threshold value for binarizing each pixel point of the acquired image;
s22: binarizing each pixel point of the acquired image according to the binarization threshold value to obtain a binarized image;
s23: obtaining the deviation value of the acquired image according to the binarized image;
wherein the acquired image is characterized by at least one of: the ink lines, white lines, and the end points between the pixel rows present in the binarized image are not aligned.
Specifically, binarization processing is performed on the collected image collected by the image collecting device, so that each pixel point of the collected image is converted into an ink point and a null point (the null point is the position of the pixel point without ink jet), and the deviation value of the collected image is determined through the binarization image; the ink lines are image areas corresponding to at least two rows of pixel points and are overlapped into an image area corresponding to one pixel point, or the image area corresponding to the whole of a plurality of rows of pixel points is at least one row of pixel point less than the image area corresponding to the theoretical pixel line number; the white line is an image area corresponding to at least one row of blank pixel points, or an image area corresponding to the whole of a plurality of rows of pixel points is at least one row of pixel points more than an image area corresponding to the theoretical pixel line number, and the end points are not aligned: and when the number and the positions of the empty dots or the ink dots are the same in each row of pixel dots, the starting point and the end point of each pixel row are not on the same straight line.
In one embodiment, referring to fig. 4, the step S2 includes:
s24: acquiring a reference image corresponding to the acquired image;
s25: obtaining the deviation value according to the pixel information of each pixel of the acquired image and each pixel of the reference image;
wherein the pixel point information includes at least one of: pixel position, ink dot area of the pixel and pixel value of the pixel.
Specifically, the processor generates an original theoretical image according to dot matrix data of an image to be printed, the printing equipment performs inkjet printing according to the dot matrix data of the printed image to obtain an actual image, the actual image of the image to be printed is an image comprising a plurality of printing stages, the image between two adjacent adjustment printing parameters is recorded as a printing stage, and the printing parameters corresponding to each printing stage are target printing parameters optimized according to deviation values corresponding to the previous printing stage, so that the reference image corresponding to each printing stage (not the first stage) is different from the original theoretical image; comparing the acquired image of the current printed image acquired by the image acquisition device with a corresponding reference image to determine the deviation value of the current acquired image, specifically by comparing the pixel point information of each pixel point of the acquired image and the reference image; the pixel information includes a pixel position, a corresponding ink dot area of the pixel, and a pixel value of the pixel.
In one embodiment, referring to fig. 5, the step S2 includes:
s26: acquiring the actual size information of the acquired image, the corresponding actual Pass number and the printing parameters;
s27: obtaining theoretical size information of the acquired image according to the actual Pass number and the printing parameters;
s28: and obtaining the deviation value according to the actual size information and the theoretical size information.
Specifically, the total line number of the pixel points contained in the collected image is determined according to the actual Pass number corresponding to the collected image, so that the theoretical size corresponding to the collected image is obtained, and then whether the collected image has abnormal conditions such as white lines or ink lines or not is determined according to the comparison between the actual size and the theoretical size of the collected image.
In an embodiment, the current printing parameters are adjusted by one adjustment, please refer to fig. 6, and the step S3 includes:
s31: acquiring the actual Pass number of the acquired image and the residual Pass number of the image to be printed;
s32: determining a target Pass number required for adjusting the printing parameters according to the actual Pass number and the residual Pass number, wherein the target Pass number is smaller than or equal to the actual Pass number;
s33: and adjusting the current printing parameters once according to the target Pass number and the deviation value to obtain the target printing parameters.
Specifically, when the deviation value of the acquired image is larger than a preset deviation threshold, one-time adjustment is adopted to eliminate errors, and the current acquired image is determined to belong to the stage where the print job is located, so that the number of Pass which are left for the print job and are not printed is determined, and the number of Pass required for completing the current deviation value adjustment is determined; such as: the image to be printed can be printed by 16Pass, the acquisition mode of the image acquisition device is set to be 4Pass for one cycle, the current acquired image is the image of the previous 4Pass of the image to be printed, the deviation value is 0.9d, and then 12Pass is left for unprinted, so that the image acquisition device can be set to finish printing parameter adjustment in the next 3Pass, for example, the step distance of the 5 th Pass is increased by 0.1d on the original step distance, the step distance of the 6 th Pass is increased by 0.2d on the original step distance, the step distance of the 7 th Pass is increased by 0.3d on the original step distance, namely, the image interval of each Pass printed by the 7 th Pass meets the printing requirement, further, the image acquisition device starts to acquire the image of the current printed image next time when the last 1Pass image of the printing parameter adjustment is finished, namely, the image acquired in the fourth time is the image area corresponding to the 7 th Pass and 8 th Pass, the image acquired in the fifth time is the image area corresponding to the 7 th Pass, the 8 th Pass and the image area corresponding to the 8 th Pass, and the 9 th Pass. After the adjustment is completed, the step distance in the target print parameters for each Pass will be 1.3d.
In an embodiment, the current printing parameters are adjusted at least once, please refer to fig. 7, and the step S3 includes:
s34, acquiring the actual Pass number of the acquired image, the residual Pass number of the image to be printed and the total adjustment times for parameter adjustment;
s35: determining the total adjustment times and the single error adjustment amount for adjusting the current printing parameters according to the actual Pass number and the residual Pass number;
s36: and adjusting the current printing parameters according to the total adjustment times and the single error adjustment quantity to obtain the target printing parameters adjusted each time.
Specifically, when the deviation value of the acquired image is larger than a preset deviation threshold, at least one adjustment is performed to eliminate errors, the current acquired image is determined to belong to the stage where the print job is located, so that the number of Pass left by the print job is determined, the maximum number of times that adjustment can be performed is determined according to the number of remaining Pass, the deviation value corresponding to each Pass in the current printed image is determined according to the number of actual Pass, and the error amount of single adjustment is determined; such as: the method comprises the steps that an image to be printed can be printed only by 16Pass, the acquisition mode of an image acquisition device is set to be 4Pass for one cycle, the current acquired image is the image of the front 4Pass of the image to be printed, the deviation value is 0.8d, 12Pass is left for no printing, if the 4Pass is used for one-time adjustment, the adjustment can be divided into three times at most, the image which is finally printed by adopting the adjusted target printing parameters is consistent with a theoretical image, the printing parameter adjustment corresponding to the deviation value is completed by adopting two times, the deviation value of the corresponding printing image after each adjustment is reduced by 0.4d, and the size of the image printed by the last 4Pass is consistent with the size of the theoretical image; further, in one adjustment, the adjustment value of the stepping distance corresponding to the printing parameter of each Pass is the same, that is, the deviation value is reduced by 0.4d after one adjustment, and then the stepping distance corresponding to the printing parameter of each Pass is changed by 0.1d compared with the stepping distance of the previous 4 Pass.
In an embodiment, the deviation value is greater than a preset deviation threshold, and the S3 includes:
s37: acquiring a diffusion coefficient of the ink compared with a printing medium;
s38: obtaining ink dot areas of all the ink dots according to the diffusion coefficient;
s38: determining a first retreating distance retreating along the direction opposite to the stepping direction according to the ink dot area;
in one embodiment, the step S38 includes:
s381: determining a distance critical point according to the ink dot area, wherein the distance critical point divides the unit distance into a first distance and a second distance;
s382: and determining the rollback distance according to the deviation value, the second distance and the actual Pass number of the acquired image, wherein the rollback distance is smaller than or equal to the second distance.
Specifically, the first distance is the distance from the center point of the ink dot to the edge of the ink dot, the second distance is the interval distance between the edges of the adjacent ink dots, the distance critical point is determined according to the ink dot area, and when the next image area is printed by the distance critical point, the adjacent two ink dot areas are not overlapped after the corresponding rollback distance is retracted, so that the poor quality problem caused by the blank area can be optimized, and the new image quality problem caused by the overlapping of the adjacent ink dot areas can be avoided.
S39: and adjusting the current printing parameters according to the rollback distance, the deviation value and the actual Pass number to obtain the target printing parameters.
Specifically, if the acquired image of the current printed image is compared with the reference image and displayed, and the stepping distance corresponding to the current printed image is greater than the stepping distance corresponding to the reference image, the distance between the images of the adjacent printed areas is increased, namely a blank exists between the images; the mobility of the ink is different on different printing media, and the final ink dot area of the ink on the printing media can be determined by acquiring the diffusion coefficient of the ink on the printing media corresponding to the image to be printed, so that the minimum distance between the next printing area and the current printing area can be determined, and the method can be understood as follows: the stepping distance of each step of the next printing area is determined through the deviation value and the actual Pass number, and on the basis, the next printing area can be backed according to the ink dot area, so that the starting position of the next printing area is closer to the original preset position, namely, the stepping distance of the next Pass is optimized according to the backing distance, such as: the second distance is 0.5d, the stepping distance of each Pass is reduced by 0.3d according to the deviation value and the actual Pass number, and the actual stepping distance from the current printing image area to the next printing area is reduced by 0.45d due to the 0.15d rollback distance, if the second distance is 0.4d, the rollback distance can be shared among the Pass, such as: the stepping distance of each Pass is reduced by 0.3d, the stepping distance which is nearly three times continuously can be adjusted to be reduced by 0.35d, and the stepping distance can be reduced, so that the starting position of each printing area and the target printing parameters corresponding to the stepping distance are continuously optimized in the printing process of the image to be printed, and the image quality of the finally obtained printed image is ensured.
The printing method based on image real-time deviation correction provided by the embodiment 1 of the application is characterized in that an acquisition image is generated by acquiring a printing image currently being printed in a to-be-printed task in real time, a preset deviation threshold corresponding to the to-be-printed task is acquired, the acquisition image is analyzed, a deviation value of the acquisition image is determined, the deviation value is compared with the preset deviation threshold, current printing parameters are regulated according to the comparison result, and the to-be-printed image in the to-be-printed task is continuously printed by utilizing the target printing parameters, wherein the to-be-printed task comprises the printing image and the to-be-printed image which is not printed yet; by comparing the deviation value of the acquired image with a preset deviation threshold value, whether the current deviation value needs to be adjusted or not is directly determined, whether the printed image has the problems of white line and/or black line and image misalignment or not can be rapidly judged, printing parameters are timely optimized, and the quality of the final printed image is guaranteed.
Example 2
Embodiment 2 of the present application provides a printing apparatus, please refer to fig. 8, including:
and a data acquisition module: the method comprises the steps of acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
and a data processing module: the method comprises the steps of performing image analysis on the acquired image and determining a deviation value of the acquired image;
and a data analysis module: the current printing parameters of the task to be printed are adjusted according to the comparison result of the deviation value and the preset deviation threshold value, and target printing parameters are obtained;
and a data calibration module: and continuing to print the images to be printed in the tasks to be printed by using the target printing parameters, wherein the tasks to be printed comprise the printed images and the images to be printed which are not printed yet.
The printing device provided by the embodiment 2 of the application acquires a currently printed image in a to-be-printed task in real time to generate an acquired image, acquires a preset deviation threshold corresponding to the to-be-printed task, analyzes the acquired image, determines a deviation value of the acquired image, compares the deviation value with the preset deviation threshold, adjusts current printing parameters according to a comparison result, and continuously prints the to-be-printed image in the to-be-printed task by utilizing the target printing parameters, wherein the to-be-printed task comprises the printed image and the to-be-printed image which is not yet printed; by comparing the deviation value of the acquired image with a preset deviation threshold value, whether the current deviation value needs to be adjusted or not is directly determined, whether the printed image has the problems of white line and/or black line and image misalignment or not can be rapidly judged, printing parameters are timely optimized, and the quality of the final printed image is guaranteed.
In one embodiment, the data acquisition module comprises:
a data acquisition unit: acquiring a total Pass number n for completing a to-be-printed task to perform scanning printing;
presetting a deviation threshold unit: setting a preset deviation threshold value corresponding to the Pass number contained in each image area one by one according to the total Pass number n;
wherein n is greater than or equal to 2, and the number of preset deviation thresholds is n-1.
In one embodiment, the data processing module comprises:
binarization data acquisition unit: acquiring a binarization threshold value for binarizing each pixel point of the acquired image;
an image binarization unit: binarizing each pixel point of the acquired image according to the binarization threshold value to obtain a binarized image;
error statistics unit: obtaining the deviation value of the acquired image according to the binarized image;
wherein the deviation value comprises at least one of: the binarized image has ink lines, white lines, and misalignment of end points between pixel rows.
In one embodiment, the data processing module comprises:
reference picture element: acquiring a reference image corresponding to the acquired image;
image contrast unit: obtaining the deviation value according to the pixel information of each pixel of the acquired image and each pixel of the reference image;
the pixel point information comprises a pixel point position, an ink point area of the pixel point and a pixel value of the pixel point.
In one embodiment, the data processing module comprises:
parameter acquisition unit: acquiring the actual size information of the acquired image, the corresponding actual Pass number and the printing parameters;
size unit: obtaining theoretical size information of the acquired image according to the actual Pass number and the printing parameters;
size contrast unit: and obtaining the deviation value according to the actual size information and the theoretical size information.
In one embodiment, the data analysis module comprises:
image data unit: acquiring the actual Pass number of the acquired image and the residual Pass number of the image to be printed;
target Pass number unit: determining a target Pass number required for adjusting the printing parameters according to the actual Pass number and the residual Pass number, wherein the target Pass number is smaller than or equal to the actual Pass number;
parameter adjustment unit: and adjusting the current printing parameters once according to the target Pass number and the deviation value to obtain the target printing parameters.
In one embodiment, the data analysis module comprises:
the adjusting frequency unit is used for acquiring the actual Pass number of the acquired image, the residual Pass number of the image to be printed and the total adjusting frequency for parameter adjustment;
and an adjustment amount unit: determining the total adjustment times and the single error adjustment amount for adjusting the current printing parameters according to the actual Pass number and the residual Pass number;
and a parameter adjusting unit: and adjusting the current printing parameters according to the total adjustment times and the single error adjustment quantity to obtain the target printing parameters adjusted each time.
The printing device provided by the embodiment 2 of the application acquires a currently printed image in a to-be-printed task in real time to generate an acquired image, acquires a preset deviation threshold corresponding to the to-be-printed task, analyzes the acquired image, determines a deviation value of the acquired image, compares the deviation value with the preset deviation threshold, adjusts current printing parameters according to a comparison result, and continuously prints the to-be-printed image in the to-be-printed task by utilizing the target printing parameters, wherein the to-be-printed task comprises the printed image and the to-be-printed image which is not yet printed; by comparing the deviation value of the acquired image with a preset deviation threshold value, whether the current deviation value needs to be adjusted or not is directly determined, whether the printed image has the problems of white line and/or black line and image misalignment or not can be rapidly judged, printing parameters are timely optimized, and the quality of the final printed image is guaranteed.
Example 3
Embodiment 3 of the present application discloses a printing apparatus, please refer to fig. 9, including at least one processor, at least one memory, and computer program instructions stored in the memory.
In particular, the processor may comprise a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
The memory may include mass storage for data or instructions. By way of example, and not limitation, the memory may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is a non-volatile solid state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor reads and executes the computer program instructions stored in the memory to implement any one of the detection methods of the local power supply abnormality of the inkjet printer of embodiment 1 described above.
In one example, the printing device may also include a communication interface and a bus. The processor, the memory and the communication interface are connected through a bus and complete communication with each other.
The communication interface is mainly used for realizing communication among the modules, the devices, the units and/or the equipment in the embodiment of the application.
The bus includes hardware, software, or both, that couple components of the printing device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel 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 bus, or a combination of two or more of the above. The bus may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
In summary, the printing method, device, equipment and storage medium based on real-time deviation correction of images provided by the embodiment of the application acquire the currently printed images in the to-be-printed task in real time to generate the acquired images, acquire the preset deviation threshold corresponding to the to-be-printed task, analyze the acquired images, determine the deviation value of the acquired images, compare the deviation value with the preset deviation threshold, adjust the current printing parameters according to the comparison result, and continue to print the to-be-printed images in the to-be-printed task by utilizing the target printing parameters, wherein the to-be-printed task comprises the printed images and the to-be-printed images which are not yet printed; by comparing the deviation value of the acquired image with a preset deviation threshold value, whether the current deviation value needs to be adjusted or not is directly determined, whether the printed image has the problems of white line and/or black line and image misalignment or not can be rapidly judged, printing parameters are timely optimized, and the quality of the final printed image is guaranteed.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (10)

1. The printing method based on the real-time correction of the image is characterized by comprising the following steps of:
s1: acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
s2: performing image analysis on the acquired image to determine a deviation value of the acquired image;
s3: according to the comparison result of the deviation value and the preset deviation threshold value, the current printing parameters of the to-be-printed task are adjusted, and target printing parameters are obtained;
s4: and continuing to print the images to be printed in the tasks to be printed by utilizing the target printing parameters, wherein the tasks to be printed comprise the printed images and the images to be printed which are not printed yet.
2. The printing method based on image real-time correction according to claim 1, wherein S1 comprises:
s11: acquiring a total Pass number n for completing a to-be-printed task to perform scanning printing;
s12: setting a preset deviation threshold value corresponding to the Pass number contained in each image area one by one according to the total Pass number n;
wherein n is greater than or equal to 2, and the number of the preset deviation thresholds is n-1.
3. The printing method based on image real-time correction according to claim 1 or 2, wherein S2 comprises:
s21: acquiring a binarization threshold value for binarizing each pixel point of the acquired image;
s22: binarizing each pixel point of the acquired image according to the binarization threshold value to obtain a binarized image;
s23: obtaining the deviation value of the acquired image according to the binarized image;
wherein the acquired image is characterized by at least one of: the ink lines, white lines, and the end points between the pixel rows present in the binarized image are not aligned.
4. The printing method based on image real-time correction according to claim 1 or 2, wherein S2 comprises:
s24: acquiring a reference image corresponding to the acquired image;
s25: obtaining the deviation value according to the pixel information of each pixel of the acquired image and each pixel of the reference image;
wherein the pixel point information includes at least one of: pixel position, ink dot area of the pixel and pixel value of the pixel.
5. The printing method based on image real-time correction according to claim 1 or 2, wherein S2 comprises:
s26: acquiring the actual size information of the acquired image, the corresponding actual Pass number and the printing parameters;
s27: obtaining theoretical size information of the acquired image according to the actual Pass number and the printing parameters;
s28: and obtaining the deviation value according to the actual size information and the theoretical size information.
6. The printing method based on image real-time correction according to claim 1, wherein the current printing parameters are adjusted by one-time adjustment, and S3 comprises:
s31: acquiring the actual Pass number of the acquired image and the residual Pass number of the image to be printed;
s32: determining a target Pass number required for adjusting the printing parameters according to the actual Pass number and the residual Pass number, wherein the target Pass number is smaller than or equal to the actual Pass number;
s33: and adjusting the current printing parameters once according to the target Pass number and the deviation value to obtain the target printing parameters.
7. The printing method based on image real-time correction according to claim 1, wherein the current printing parameters are adjusted by at least one adjustment mode, and S3 comprises:
s34, acquiring the actual Pass number of the acquired image, the residual Pass number of the image to be printed and the total adjustment times for parameter adjustment;
s35: determining the total adjustment times and the single error adjustment amount for adjusting the current printing parameters according to the actual Pass number and the residual Pass number;
s36: and adjusting the current printing parameters according to the total adjustment times and the single error adjustment quantity to obtain the target printing parameters adjusted each time.
8. A printing apparatus, comprising:
and a data acquisition module: the method comprises the steps of acquiring a printing image currently being printed in a task to be printed in real time to generate an acquisition image, and acquiring a preset deviation threshold corresponding to the task to be printed;
and a data processing module: the method comprises the steps of performing image analysis on the acquired image and determining a deviation value of the acquired image;
and a data analysis module: the current printing parameters of the task to be printed are adjusted according to the comparison result of the deviation value and the preset deviation threshold value, and target printing parameters are obtained;
and a data calibration module: and continuing to print the image to be printed in the task to be printed by utilizing the target printing parameters, wherein the task to be printed comprises the image to be printed and the image to be printed which is not printed yet.
9. A printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-7.
10. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-7.
CN202210239801.8A 2022-03-09 2022-03-09 Printing method, device, equipment and storage medium based on image real-time deviation correction Pending CN116766806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210239801.8A CN116766806A (en) 2022-03-09 2022-03-09 Printing method, device, equipment and storage medium based on image real-time deviation correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210239801.8A CN116766806A (en) 2022-03-09 2022-03-09 Printing method, device, equipment and storage medium based on image real-time deviation correction

Publications (1)

Publication Number Publication Date
CN116766806A true CN116766806A (en) 2023-09-19

Family

ID=87988334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210239801.8A Pending CN116766806A (en) 2022-03-09 2022-03-09 Printing method, device, equipment and storage medium based on image real-time deviation correction

Country Status (1)

Country Link
CN (1) CN116766806A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117392471A (en) * 2023-12-12 2024-01-12 深圳市智能派科技有限公司 3D printing monitoring method and system based on multi-parameter cooperation
CN117472303A (en) * 2023-12-28 2024-01-30 珠海芯烨电子科技有限公司 Image filling method and related device for thermal printer
CN117472303B (en) * 2023-12-28 2024-04-26 珠海芯烨电子科技有限公司 Image filling method and related device for thermal printer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117392471A (en) * 2023-12-12 2024-01-12 深圳市智能派科技有限公司 3D printing monitoring method and system based on multi-parameter cooperation
CN117392471B (en) * 2023-12-12 2024-03-26 深圳市智能派科技有限公司 3D printing monitoring method and system based on multi-parameter cooperation
CN117472303A (en) * 2023-12-28 2024-01-30 珠海芯烨电子科技有限公司 Image filling method and related device for thermal printer
CN117472303B (en) * 2023-12-28 2024-04-26 珠海芯烨电子科技有限公司 Image filling method and related device for thermal printer

Similar Documents

Publication Publication Date Title
CN110421984B (en) Reciprocating scanning printing control method, device, equipment and storage medium
CN110561929B (en) Scanning type ink-jet printing control method, device, equipment and storage medium
CN110816082B (en) Method, device and equipment for obtaining alignment error value of spray head and storage medium
CN110515566B (en) Industrial ink-jet printing preview method, device, equipment and storage medium
CN110816087B (en) Method, device and equipment for acquiring printing alignment calibration value and storage medium
CN111845078B (en) Printing control method, device, equipment and medium with non-overlapping printing areas
US20170225499A1 (en) Determining an alignment characteristic
CN116766806A (en) Printing method, device, equipment and storage medium based on image real-time deviation correction
CN110757955B (en) Method, device and equipment for verifying nozzle alignment calibration value and storage medium
CN111645418B (en) Printer guide rail stroke calibration method, device, equipment and storage medium
CN115071286B (en) Automatic adjustment method, device and equipment for eclosion template and storage medium
CN113370677A (en) Ink solidification compensation method, device, equipment and medium
CN113829751A (en) Printing data processing method, device, equipment and medium for eliminating ink drop deviation
CN114385094B (en) Onepass printing abnormal nozzle compensation method, device, equipment and medium
CN117656666A (en) Spliced spray head calibration method, device, equipment and storage medium
CN114789605B (en) Image printing data processing method, device, equipment and storage medium
CN114055954B (en) Method, device and equipment for calibrating rotating speed of printing on surface of cylinder and storage medium
CN114516225B (en) Method, device, equipment and medium for splitting image data into different directions for printing
CN114683727B (en) Multi-step distance error calibration method, device, equipment and storage medium
CN113829758B (en) Print data correction method, device, equipment and storage medium
CN113306301B (en) Data processing method, apparatus, device, medium for eliminating image dot overlap
CN114103439B (en) Method, device and equipment for printing images with differentiated precision and storage medium
CN115503344B (en) Resident image printing method, device, equipment and storage medium
CN114379234B (en) Oneeglass printing abnormal nozzle compensation method, device, equipment and storage medium
CN113928011B (en) Ink-jet printing color difference adjusting method, device, equipment and storage medium

Legal Events

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