Calibration method of printing equipment, electronic equipment, printing system and medium

By printing the reference and target patterns in the inkjet printing device, acquiring calibration images, and determining error parameters to calibrate the motor, the problem of inaccurate motor stepping is solved and the printing accuracy and effect are improved.

CN120386498APending Publication Date: 2025-07-29SHENZHEN MAKER WORKS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510342810.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

The motor that transmits the printing medium in the inkjet printing equipment is prone to step loss during operation, resulting in inaccurate printing accuracy, and excessive or small motor current affects the step accuracy, making it impossible to accurately control the movement of the printing medium.

Method used

By controlling the nozzle of the print head to print the reference pattern and the target pattern, the calibration image is obtained, the error parameters are determined based on the line segment position relationship in the image, and the motor that transmits the printing medium is calibrated.

Benefits of technology

Improves the printing accuracy of the printing equipment, improves the printing effect, simplifies the calibration process, and reduces the dependence of manual intervention and external measurement equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386498A_ABST
    Figure CN120386498A_ABST
Patent Text Reader

Abstract

The invention discloses a calibration method of printing equipment, electronic equipment, a printing system and a medium, and relates to the technical field of ink-jet printing, and the calibration method of the printing equipment comprises the steps that a first target nozzle of a printing head of the printing equipment is controlled to print a reference pattern, and the reference pattern comprises a plurality of first line segments parallel in the moving direction of the printing medium; controlling the printing medium to move based on the target stepping distance; controlling a second target nozzle of the printing head to print a target pattern, wherein the target pattern comprises at least one second line segment; acquiring a calibration image including the reference pattern and the target pattern; and determining an error parameter between the target stepping distance and an actual stepping distance of the printing medium based on a position relationship between the at least one second line segment and the plurality of first line segments in the calibration image, so as to calibrate a motor for conveying the printing medium based on the error parameter. The printing precision of the printing equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of inkjet printing technology, and particularly to a calibration method for a printing device, an electronic device, a printing system, and a medium. Background Art

[0002] In the field of inkjet printing, during the printing process, a printing device needs to precisely control the movement of a printing medium to accurately print a pattern on the printing medium, so as to avoid quality problems related to inaccurate stepping, such as image ghosting and misalignment.

[0003] If the motor that conveys the printing medium experiences a step loss during operation, it will cause the movement distance of the printing medium to be inaccurate, thereby affecting the calibration accuracy. Or, if the current of the motor is too large, it will cause the motor to overheat, thereby affecting the stepping accuracy. If the current of the motor is too small, it may cause insufficient power of the motor and be unable to precisely control the movement of the printing medium. Therefore, in order to ensure the printing accuracy of the printing device, it is necessary to calibrate the motor that conveys the printing medium. Summary of the Invention

[0004] The main purpose of this application is to provide a calibration method for a printing device, an electronic device, a printing system, and a medium, aiming to solve the technical problem of calibrating the motor that conveys the printing medium.

[0005] To achieve the above object, this application proposes a calibration method for a printing device, and the method includes:

[0006] Controlling a first target nozzle of a print head of the printing device to print a reference pattern, where the reference pattern includes a plurality of first line segments parallel to the moving direction of the printing medium;

[0007] Controlling the movement of the printing medium based on a target step distance;

[0008] Controlling a second target nozzle of the print head to print a target pattern, where the target pattern includes at least one second line segment;

[0009] Obtaining a calibration image including the reference pattern and the target pattern;

[0010] Based on the positional relationship between the at least one second line segment and the plurality of first line segments in the calibration image, determining an error parameter between the target step distance and the actual step distance of the printing medium, so as to calibrate the motor that conveys the printing medium based on the error parameter.

[0011] In one embodiment, there are multiple second line segments, the second target nozzles are nozzles with preset numbers, there are multiple preset numbers, and at least some of the second target nozzles corresponding to the multiple preset numbers are spaced in the moving direction of the printing medium, so that the multiple second line segments are parallel along the moving direction of the printing medium;

[0012] And / or, along the direction perpendicular to the movement of the printing medium, the multiple second line segments are divided into M first line segment groups, each first line segment group includes N first line segments arranged at intervals along the moving direction of the printing medium, and there is at least one nozzle pitch difference between the first line segments corresponding to two adjacent first line segment groups, so that the multiple first line segments in the M first line segment groups are in a stepped shape.

[0013] In one embodiment, the target step distance is the preset distance / the number of printing passes of the print head.

[0014] In one embodiment, the step of determining the error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the at least one second line segment and the multiple first line segments in the calibration image includes:

[0015] Obtain the target line segment in the calibration image, where the target line segment is the first line segment aligned with the second line segment in the calibration image;

[0016] Obtain the actual line number corresponding to the target line segment and the theoretical line number of the first line segment that the second line segment should correspond to;

[0017] Determine the error parameter between the target step distance and the actual step distance of the printing medium according to the actual line number and the theoretical line number.

[0018] In one embodiment, the step of obtaining the theoretical line number of the first line segment that the second line segment should correspond to includes:

[0019] Obtain the number of the second target nozzle;

[0020] Determine the theoretical line number based on the target step distance and the number of the second target nozzle.

[0021] In one embodiment, determining the error parameter between the target step distance and the actual step distance of the printing medium according to the actual line number and the theoretical line number includes:

[0022] Calculate the line number difference between the actual line number and the theoretical line number;

[0023] Determine the error parameter according to the line number difference and the distance between adjacent nozzles.

[0024] In one embodiment, there are multiple second line segments arranged in parallel along the moving direction of the printing medium. The multiple second line segments correspond to multiple target line segments. The step of determining the error parameter between the target step distance and the actual step distance of the printing medium according to the actual line number and the theoretical line number includes:

[0025] Obtain the median or average value of the multiple theoretical line numbers corresponding to the multiple second line segments;

[0026] Obtain the median or average value of the multiple actual line numbers corresponding to the multiple target line segments;

[0027] Calculate the error parameter based on the median or average value of the multiple theoretical line numbers and the median or average value of the multiple actual line numbers.

[0028] In one embodiment, the step of controlling the first target nozzle of the print head of the printing device to print the reference pattern includes:

[0029] Group the first target nozzles based on a preset interval into M nozzle groups, each nozzle group includes N nozzles, and the adjacent nozzles in different nozzle groups are separated by the preset interval. The first target nozzles in the M nozzle groups are arranged at intervals along the moving direction of the printing medium;

[0030] Control the first target nozzles in the first nozzle group to print the first part of the first line segment;

[0031] After controlling the print head to move, control the first target nozzles in the second nozzle group to print the second part of the first line segment;

[0032] Sequentially control the print head to move and control the remaining nozzle groups to print in a preset order to obtain a reference pattern with the multiple first line segments in a stepped shape.

[0033] In one embodiment, before the step of determining the error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the at least one second line segment and the multiple first line segments in the calibration image, the method further includes:

[0034] Determine the nozzles with blocked holes based on the reference pattern;

[0035] If there are blocked holes in the second target nozzles, complete the missing second line segments in the calibration image according to the information of the nozzles with blocked holes.

[0036] In one embodiment, after the step of calibrating the motor for conveying the printing medium according to the distance difference between the target step distance and the actual step distance, the method further includes:

[0037] After calibrating the motor for conveying the printing medium, controlling the printing device to print the reference pattern and the target pattern again;

[0038] Obtaining a verification image corresponding to the reference pattern and the target pattern printed again, and determining an error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the first line segment and the second line segment in the verification image;

[0039] If the error determined according to the error parameter is less than a preset difference, saving the error parameter and stopping the calibration.

[0040] In one embodiment, the first line segment is a solid line and the second line segment is a dashed line; or, the first line segment is a dashed line and the second line segment is a solid line.

[0041] In addition, to achieve the above object, the present application further provides an electronic device, where the electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the calibration method of the printing device as described above.

[0042] In addition, to achieve the above object, the present application further provides a printing system, where the printing system includes a terminal device and a printing device, and the terminal device is communicatively connected to the printing device;

[0043] The printing device is configured to print a reference pattern and a target pattern, and collect an image including the reference pattern and the target pattern;

[0044] The terminal device is configured to: control the printing device based on the calibration method of the printing device as described in any one of the above, and obtain the error parameter.

[0045] In addition, to achieve the above object, the present application further provides a storage medium, where the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the calibration method of the printing device as described above are implemented.

[0046] In addition, to achieve the above object, the present application further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the calibration method of the printing device as described above are implemented.

[0047] One or more technical solutions proposed in this application have at least the following technical effects:

[0048] By comparing the positions of the first line segment and the second line segment printed by different nozzles in the calibration image, and accurately determining the error parameters of the motor for conveying the printing medium according to the positional relationship, and then calibrating the motor, thereby improving the printing accuracy of the printing device and enhancing the printing effect of the printing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with this application and, together with the specification, are used to explain the principles of this application.

[0050] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other accompanying drawings can also be obtained based on these accompanying drawings without creative efforts.

[0051] Figure 1 Schematic structural diagram of the printing device in the calibration method of the printing device of this application;

[0052] Figure 2 Schematic flow chart provided by Embodiment 1 of the calibration method of the printing device of this application;

[0053] Figure 3 Schematic diagram of the reference pattern and the target pattern in the calibration method of the printing device of this application;

[0054] Figure 4 Schematic brief flow chart provided by Embodiment 1 of the calibration method of the printing device of this application;

[0055] Figure 5 Schematic flow chart provided by Embodiment 2 of the calibration method of the printing device of this application;

[0056] Figure 6 Schematic flow chart provided by Embodiment 3 of the calibration method of the printing device of this application;

[0057] Figure 7 Schematic flow chart provided by Embodiment 4 of the calibration method of the printing device of this application;

[0058] Figure 8 Schematic structural diagram of the device of the hardware operating environment involved in the calibration method of the printing device in the embodiments of this application;

[0059] Figure 9 Schematic structural diagram of the printing system in the embodiments of this application.

[0060] The realization of the purpose, functional features and advantages of this application will be further described with reference to the accompanying drawings in combination with embodiments. Detailed implementation manners

[0061] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.

[0062] To better understand the technical solutions of this application, the following will be described in detail in combination with the drawings of the specification and specific implementation manners.

[0063] The main solution of the embodiment of this application is: controlling a first target nozzle of a print head of a printing device to print a reference pattern, the reference pattern including a plurality of first line segments parallel to the moving direction of a printing medium; controlling the movement of the printing medium based on a target step distance; controlling a second target nozzle of the print head to print a target pattern, the target pattern including at least one second line segment; obtaining a calibration image including the reference pattern and the target pattern; determining an error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between at least one second line segment and the plurality of first line segments in the calibration image, so as to calibrate a motor for conveying the printing medium based on the error parameter.

[0064] In this embodiment, for the convenience of description, an electronic device is used as the execution subject for elaboration below.

[0065] In the field of inkjet printing, during the printing process, a printing device needs to precisely control the movement of a printing medium to accurately print a pattern on the printing medium, so as to avoid quality problems related to inaccurate stepping such as image ghosting and misalignment.

[0066] If the motor for conveying the printing medium experiences a step loss during operation, it will cause the moving distance of the printing medium to be inaccurate, thereby affecting the calibration accuracy. Or, if the current of the motor is too large, it will cause the motor to overheat, thereby affecting the stepping accuracy. If the current of the motor is too small, it may cause insufficient power of the motor and unable to precisely control the movement of the printing medium. Therefore, in order to ensure the printing accuracy of the printing device, it is necessary to calibrate the motor for conveying the printing medium.

[0067] This application provides a solution. By comparing the positions of the first line segments and the second line segments printed by different nozzles in the calibration image and accurately determining the error parameter of the motor for conveying the printing medium according to the positional relationship, the motor is further calibrated, thereby improving the printing accuracy of the printing device and enhancing the printing effect of the printing device.

[0068] It should be noted that the execution entity of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a printing device that can implement the above functions. Hereinafter, an electronic device will be taken as an example to illustrate this embodiment and the following embodiments.

[0069] The printing device 200 includes an inkjet printing device, etc. Referring to Figure 1 , the printing device 200 includes a carriage 210, and the carriage 210 is provided with a camera 212 and a print head 211. The number of print heads 211 can be one or more. The printing device 200 can be a direct-to-film (DTF) printing device or other inkjet printing devices, where Figure 1 a DTF printer is taken as an example for illustration. A polyethylene terephthalate (PET) film is used as the printing medium, and the PET film has the characteristics of soft feel and ink-absorbing printing. The image is directly printed on the printing medium 220, such as a PET film, by the printing device 200, and then the pattern can be transferred to various substrates, such as fabrics, water cups, hats, etc., by means of hot pressing or the like.

[0070] The printing device 200 includes: a print head 211, a carriage mechanism, a paper feeding mechanism, and a control circuit, etc. Among them, the print head is one of the key components in the printer and is usually composed of many tiny inkjet nozzles. The carriage mechanism is responsible for controlling the lateral movement of the print head on the printing medium. The paper feeding mechanism is responsible for the paper feeding and paper walking processes of the printing medium. The control circuit includes a main control circuit, a driving circuit, an input / output interface circuit, a detection circuit, etc., and is responsible for coordinating and controlling the mechanical devices of the printer (such as the print head, the carriage mechanism, the paper feeding mechanism, etc.).

[0071] The printing device 200 can be an inkjet printing device, which sprays ink onto the printing medium through the tiny nozzles in the print head 211 to form an image or text. The print head 211 of the inkjet printer is composed of hundreds or thousands of extremely tiny ink channels, and the number of these channels directly determines the printing accuracy of the inkjet printer. Optionally, the printing medium 220 includes, but is not limited to, film paper (such as PET film), paper, clothes, cloth and other materials.

[0072] The moving direction of the print head 211 is usually perpendicular to the feeding direction. In the inkjet printer, the print head 211 moves in the X-axis direction of the printing medium 220, while the printing medium 220 moves in the Y-axis direction. Such cooperation can achieve full-page printing.

[0073] The print head 211 includes a plurality of nozzles that work together to achieve printing. Among them, during the printing process, the printing device 200 can first use the first set of nozzles to print a reference pattern, then control the movement of the printing medium, and then use the second set of nozzles to print a target pattern. The first set of nozzles includes the second set of nozzles, so that the printed image can better reflect the distance error of the conveyed printing medium 220.

[0074] A camera 212 is provided on the trolley mechanism 210. After the two sets of nozzles finish printing, a calibration pattern including the reference pattern and the target pattern is obtained through the camera 212, so as to facilitate subsequent determination and calibration of the error of the motor for conveying the printing medium 220.

[0075] Based on this, an embodiment of the present application provides a calibration method for a printing device, referring to Figure 2 , Figure 2 which is a schematic flowchart of the first embodiment of the calibration method for the printing device of the present application.

[0076] In this embodiment, the calibration method for the printing device includes steps S10 to S50:

[0077] Step S10, controlling the first target nozzles of the print head of the printing device to print a reference pattern, where the reference pattern includes a plurality of first line segments parallel to the moving direction of the printing medium.

[0078] It should be noted that the moving direction of the printing medium is perpendicular to the moving direction of the print head, and the moving direction of the printing medium is perpendicular to the first line segment.

[0079] As an optional embodiment, the first target nozzles are all the nozzles of the print head. Exemplarily, for Figure 3 the reference pattern, controlling each nozzle to print the first line segment in sequence, and the plurality of first line segments are parallel to the moving direction of the printing medium, and the first line segments are in a stepped pattern.

[0080] In an optional embodiment, the step of controlling the first target nozzles of the print head of the printing device to print a reference pattern includes: grouping the first target nozzles based on a preset interval into M nozzle groups, each nozzle group including N nozzles, and the adjacent nozzles in different nozzle groups differ by the preset interval, and the first target nozzles in the M nozzle groups are arranged at intervals along the moving direction of the printing medium; controlling the first target nozzles in the first nozzle group to print the first part of the first line segment; after controlling the print head to move, controlling the first target nozzles in the second nozzle group to print the second part of the first line segment; sequentially controlling the print head to move and controlling the remaining nozzle groups to print in a preset order to obtain the reference pattern with the plurality of first line segments in a stepped shape.

[0081] In one embodiment, the print head includes a plurality of print nozzles arranged along the moving direction of the print medium. Then, the plurality of print nozzles can be divided into multiple groups at a preset interval (for example, an interval of 10 nozzles), and each time printing is performed on one of the groups of nozzles. Exemplarily, as Figure 3 shown, there are 400 nozzles in the print head of the printing device, which can be divided into 10 groups, with 40 nozzles in each group. Among them, the 400 nozzles are located in a column, and the print head can move from left to right and / or from right to left. Select 10 first target nozzles as the first nozzle group to print the first line segment of column 0. For example, nozzles numbered 0, 10, 20... 390. Then, sequentially select another 10 first target nozzles as the second nozzle group to print the first line segment of column 1. For example, nozzles numbered 1, 11, 21... 391. Then, sequentially select 10 first target nozzles as the third nozzle group to print the first line segment of column 2. For example, nozzles numbered 2, 12, 22... 392......., and finally, sequentially select 10 first target nozzles as the tenth nozzle group to print the first line segment of column 9. For example, nozzles numbered 9, 19, 29... 399. Finally, obtain Figure 3 the first line segment in, that is, the solid line segment, so as to print a pattern in which 400 first line segments are distributed in 40 rows × 10 columns as shown in Figure 3 . Among them, after each nozzle group finishes printing, the print head moves a preset distance to the left or right, and then controls the nozzles of the next nozzle group to print. In this way, multiple first line segments in the reference pattern can be made to be in a stepped shape.

[0082] As an alternative embodiment, the first target nozzles can be some of the nozzles of the print head. Control each nozzle to print in sequence to obtain the first line segment. Multiple first line segments are parallel to the moving direction of the print medium, and the distance between the first first line segment and the last first line segment parallel to the moving direction of the print medium is greater than the minimum step distance of the movement of the print medium.

[0083] As an alternative embodiment of printing a reference pattern, if the preset printing conditions are met, control the first target nozzles of the print head of the printing device to print the reference pattern; where meeting the preset printing conditions includes at least one of the following: receiving a calibration instruction input by the user in the printing device; receiving a calibration instruction sent by the terminal device; the cumulative printing duration of the printing device is greater than a preset duration threshold; detecting that the printing device has replaced the print head. When the cumulative printing duration is relatively long, the printing device is prone to printing deviations, so calibration is required. When it is detected that the printing device has replaced the print head, it may result in different printing effects with the same control parameters, so calibration is also required. To improve the flexibility of calibration, when receiving a calibration instruction input by the user in the printing device or receiving a calibration instruction sent by the terminal device, control the printing device to print a calibration pattern for subsequent parameter calibration.

[0084] Step S20, control the movement of the printing medium based on the target step distance.

[0085] It should be noted that the target step distance is the movement distance of the printing medium. As an alternative embodiment, the target step distance = preset distance / number of printing passes of the print head.

[0086] It should be noted that the number of passes usually refers to the number of times the print head moves back and forth on the printing material during the printing process. Exemplarily, assuming the preset distance is 400 mm, and the distance between adjacent nozzles is 1 mm. If single-pass printing is performed, the target step distance can be 400 mm. If two-pass printing is performed, the target step distance can be 200 mm.

[0087] Optionally, the preset distance is less than or equal to the distance between the first nozzle and the last nozzle on the print head in the moving direction of the printing medium. For example, if the sum of the distances of 400 nozzle spacings is 399 mm, the preset distance can be 300 mm, 200 mm, etc.

[0088] Step S30, control the second target nozzle of the print head to print a target pattern, where the target pattern includes at least one second line segment.

[0089] As an alternative embodiment, obtain the number and positions of the nozzles in the print head; select the second target nozzle from all the nozzles of the print head according to the number and positions of the nozzles.

[0090] Optionally, the second target nozzle is a part of the nozzles in the print head, and the first target nozzle includes the second target nozzle, where the number of the second target nozzles is less than the number of the first target nozzles. The number of the second target nozzles is a preset number, and the number of nozzles between each two second target nozzles is a fixed number.

[0091] As an alternative embodiment, there are multiple second line segments, the second target nozzle is a nozzle with a preset number, the preset number is multiple, and at least some of the second target nozzles corresponding to the multiple preset numbers are spaced in the moving direction of the printing medium, so that the multiple second line segments are parallel in the moving direction of the printing medium.

[0092] Optionally, the numerical value difference between the preset numbers of the second target nozzles is a preset value, so they are not consecutive nozzles. For example, the difference between the preset numbers of the nozzles is 10. Exemplarily, referring to Figure 3 , the number of the second target nozzles is 5, and the number difference between each two second target nozzles is 10. For example, the second target nozzles include nozzle No. 10, nozzle No. 20, nozzle No. 30, nozzle No. 40, and nozzle No. 50.

[0093] As an alternative embodiment, along the direction perpendicular to the movement of the printing medium, the plurality of second line segments are divided into M first line segment groups, each first line segment group includes N first line segments arranged at intervals along the movement direction of the printing medium, and there is a difference of at least one nozzle pitch between the corresponding second line segments of two adjacent first line segment groups, so that the plurality of first line segments in the M first line segment groups are in a stepped shape.

[0094] As Figure 3 shown, there are a total of 400 first line segments, which are divided into 10 groups, arranged in 40 rows × 10 columns. Each group includes 40 first line segments, arranged in a column. The distance between two adjacent first line segments in each group is 10 times the distance between the first line segments. The projections of the 40 first line segments in each group coincide in the movement direction of the printing medium. The 10 groups of first line segments are arranged along the direction perpendicular to the movement direction of the printing medium. In the column direction, there is a difference of one nozzle pitch between the 40 first line segments in two adjacent first line segment groups, so that the 10 groups of first line segments are arranged in a stepped shape.

[0095] It should be noted that the first line segment and the second line segment are different line segments, which are used to distinguish the positions of the reference pattern and the target pattern and determine the positional relationship between the reference pattern and the target pattern. Optionally, the first line segment and the second line segment are line segments with different lengths. For example, the length of the second line segment is greater than that of the first line segment. Optionally, the first line segment and the second line segment are line segments with different styles. For example, the first line segment is a solid line segment and the second line segment is a dotted line segment. Another example is that the first line segment is a solid line segment and the second line segment is a wavy line segment. Optionally, the first line segment and the second line segment are line segments with different colors. For example, the first line segment is orange and the second line segment is black.

[0096] As an alternative embodiment, the first line segment is a solid line and the second line segment is a dotted line; or, the first line segment is a dotted line and the second line segment is a solid line. Different first line segments and second line segments are set to identify the positional relationship between the reference pattern and the target pattern. Exemplarily, the print head includes 400 columns of nozzles. The first target nozzles print a plurality of solid line segments, and the solid line segments are in a stepped pattern. The second target nozzles include the 10th nozzle, the 20th nozzle, the 30th nozzle, the 40th nozzle, and the 50th nozzle. Each second target nozzle prints five dotted line segments, and the length of the solid line segment is less than the length of the dotted line segment. The length of the dotted line segment can be greater than or equal to the length of all the first line segments in the direction ( Figure 3 in the row direction) perpendicular to the movement direction of the printing medium. For example, as Figure 3 shown, the length of the dotted line (i.e., the second line segment) printed by the 10th nozzle is greater than the length of 10 first line segments, so as to facilitate identifying which first line segment the second line segment overlaps with.

[0097] Step S40, obtaining a calibration image including the reference pattern and the target pattern.

[0098] Optionally, after the printing device has printed both the reference pattern and the target pattern, a calibration image is acquired using a camera. Exemplarily, as Figure 1 shown, the camera is disposed on the printhead of the printing device.

[0099] Optionally, after the camera captures the calibration image, the calibration image is sent to the printing device or the terminal device to facilitate subsequent identification of the positional relationship between the reference pattern and the target pattern by the printing device and the terminal device.

[0100] Step S50: Based on the positional relationship between the at least one second line segment and the multiple first line segments in the calibration image, determine the error parameter between the target step distance and the actual step distance of the print medium, so as to calibrate the motor for conveying the print medium based on the error parameter.

[0101] It should be noted that the positional relationship is used to determine the error parameter between the target step distance and the actual step distance of the motor. The error parameter includes a line number difference or a distance difference, and the distance difference is determined by the product of the line number difference and the distance between adjacent nozzles. Among them, the line number difference is the difference between the actual line number and the theoretical line number of the first line segment aligned with the second line segment.

[0102] In this embodiment, the automated calibration method reduces the complexity and time consumption of manual calibration, simplifies and automatically calibrates the printing device, and requires no external measuring device and complex manual calibration process.

[0103] Optionally, determine the x-axis coordinate comparison result and the y-axis coordinate comparison result between the reference pattern and the target pattern. According to the x-axis coordinate comparison result and the y-axis coordinate comparison result, determine the first line segment aligned with the position of the second line segment in the calibration image as the target line segment. Determine the actual line number according to the line number of the target line segment, and determine the positional relationship according to the line number difference between the actual line number and the theoretical line number.

[0104] In one embodiment, referring to Figure 4 , the terminal device sends a calibration instruction to the printing device. Processors such as the MCU (Microcontroller Unit) in the printing device modify the calibration pattern according to the calibration parameters, and send data to the printhead to control the printhead to move and print the calibration pattern. The camera acquires the calibration image, and the MCU or the terminal device analyzes the calibration image to obtain the calibration parameters, that is, the calibrated control parameters, and writes the obtained calibration parameters into the calibration file. If the calibration parameters are not written, the verification result is sent to the terminal device, and the calibration ends.

[0105] In the technical solution of this embodiment, the first target nozzle of the print head of the printing device is controlled to print a reference pattern, and the reference pattern includes a plurality of first line segments parallel to the moving direction of the printing medium; the printing medium is controlled to move based on the target step distance; the second target nozzle of the print head is controlled to print a target pattern, and the target pattern includes at least one second line segment; a calibration image including the reference pattern and the target pattern is obtained; based on the positional relationship between at least one second line segment and the plurality of first line segments in the calibration image, an error parameter between the target step distance and the actual step distance of the printing medium is determined, so as to calibrate the motor for conveying the printing medium based on the error parameter. By comparing the positions of the first line segments and the second line segments printed by different nozzles in the calibration image, and accurately determining the error parameter of the motor for conveying the printing medium according to the positional relationship, and then calibrating the motor, thereby improving the printing accuracy of the printing device and enhancing the printing effect of the printing device.

[0106] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as the above embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 5 , step S50 includes:

[0107] Step S51, obtaining a target line segment in the calibration image, where the target line segment is the first line segment aligned with the second line segment in the calibration image;

[0108] Step S52, obtaining the actual line number corresponding to the target line segment and the theoretical line number of the first line segment that the second line segment should correspond to;

[0109] Step S53, determining an error parameter between the target step distance and the actual step distance of the printing medium according to the actual line number and the theoretical line number.

[0110] Optionally, the calibration image is recognized based on an image recognition algorithm to obtain the position alignment part of the first line segment and the second line segment, and the first line segment aligned with the second line segment in the calibration pattern is determined as the target line segment according to the position alignment part. Among them, in the position alignment part, the x-axis position information and the y-axis position information of the first line segment and the second line segment are the same.

[0111] Exemplarily, such as Figure 3As shown, the dashed line segment corresponding to nozzle No. 10 is aligned with the solid line segment corresponding to nozzle No. 110, and the actual line number corresponding to the target line segment is No. 110. The dashed line segment corresponding to nozzle No. 20 is aligned with the solid line segment corresponding to nozzle No. 120, and the actual line number corresponding to the target line segment is No. 120. The dashed line segment corresponding to nozzle No. 30 is aligned with the solid line segment corresponding to nozzle No. 130, and the actual line number corresponding to the target line segment is No. 130. The dashed line segment corresponding to nozzle No. 40 is aligned with the solid line segment corresponding to nozzle No. 140, and the actual line number corresponding to the target line segment is No. 140. The dashed line segment corresponding to nozzle No. 50 is aligned with the solid line segment corresponding to nozzle No. 150, and the actual line number corresponding to the target line segment is No. 150.

[0112] As an alternative embodiment for determining the theoretical line number, obtain the number of the second target nozzle; based on the target step distance and the number of the second target nozzle, determine the theoretical line number.

[0113] It should be noted that the theoretical line number is the theoretical line number of the first line segment aligned with the second line segment, that is, the theoretical line number of the target line segment. If there is a step error in the motor for transporting the printing medium, there will be a difference between the actual line number and the theoretical line number. If there is no step error in the motor for transporting the printing medium, the actual line number and the theoretical line number will be the same. Among them, the theoretical line number can be determined based on the second target nozzle sequence number, the target step distance, and the distance between nozzles.

[0114] Optionally, based on the target step distance and the number of the second target nozzle, determine a theoretical line number that is aligned with the same second line segment position. For example, if based on the target step distance and the number of the second target nozzle, it is determined that the first line segment theoretically aligned with the second line segment is the first line segment corresponding to nozzle No. 117, then the obtained theoretical line number is 117.

[0115] As an alternative embodiment for determining the error parameter, according to the actual line number and the theoretical line number, determine the error parameter between the target step distance and the actual step distance of the printing medium, including: calculating the line number difference between the actual line number and the theoretical line number; according to the line number difference and the distance between adjacent nozzles, determine the error parameter.

[0116] Optionally, determine the error distance according to the product of the line number difference and the distance between nozzles. The error parameter includes error distance / target step distance. Exemplarily, when the line number difference is 1, the deviation distance is the distance of one adjacent nozzle. When the line number difference is 2, the error parameter is the distance of two adjacent nozzles. Exemplarily, the actual line number is nozzle No. 117, the theoretical line number is nozzle No. 116, the sequence number difference is 1, the distance between adjacent nozzles is 1 mm, and the target step distance is 100 mm, then the error is +1 mm, and the error parameter is 1 / 100 = 0.01.

[0117] As another alternative embodiment for determining the error parameter, the second line segments are multiple and arranged in parallel along the moving direction of the printing medium. The multiple second line segments correspond to multiple target line segments. The method for determining the error parameter between the target step distance and the actual step distance of the printing medium according to the actual line number and the theoretical line number includes: obtaining the median or average value of the multiple theoretical line numbers corresponding to the multiple second line segments; obtaining the median or average value of the multiple actual line numbers corresponding to the multiple target line segments; calculating the error parameter based on the median or average value of the multiple theoretical line numbers and the median or average value of the multiple actual line numbers.

[0118] Optionally, identify the calibration image to determine at least two first line segments (i.e., target line segments) aligned with the same second line segment position; determine the median or average value of the actual line numbers of the target line segments.

[0119] Exemplarily, as Figure 3 shown, the dotted line segment (i.e., the second line segment) corresponding to the nozzle No. 10 is aligned with the solid line segment (i.e., the first line segment) corresponding to the nozzle No. 110, then the actual line number corresponding to the target line segment is No. 110. The dotted line segment (i.e., the second line segment) corresponding to the nozzle No. 20 is aligned with the solid line segment (i.e., the first line segment) corresponding to the nozzle No. 120, and the actual line number corresponding to the target line segment is No. 120. The dotted line segment (i.e., the second line segment) corresponding to the nozzle No. 30 is aligned with the solid line segment (i.e., the first line segment) corresponding to the nozzle No. 130, and the actual line number corresponding to the target line segment is No. 130. The dotted line segment (i.e., the second line segment) corresponding to the nozzle No. 40 is aligned with the solid line segment (i.e., the first line segment) corresponding to the nozzle No. 140, and the actual line number corresponding to the target line segment is No. 140. The dotted line segment (i.e., the second line segment) corresponding to the nozzle No. 50 is aligned with the solid line segment (i.e., the first line segment) corresponding to the nozzle No. 150, and the actual line number corresponding to the target line segment is No. 150. Then, the median or average value of the actual line numbers can be calculated as 130. In this way, the influence caused by the blockage of the second target nozzle can be avoided as much as possible.

[0120] Assume that the dotted line segment corresponding to nozzle No. 10 (i.e., the second line segment) should be aligned with the solid line segment corresponding to nozzle No. 108 (i.e., the first line segment), so the theoretical line number is 108. The dotted line segment corresponding to nozzle No. 20 (i.e., the second line segment) is aligned with the solid line segment corresponding to nozzle No. 118 (i.e., the first line segment), so the theoretical line number is 118. The dotted line segment corresponding to nozzle No. 30 (i.e., the second line segment) is aligned with the solid line segment corresponding to nozzle No. 128 (i.e., the first line segment), and the theoretical line number corresponding to the target line segment is 128. The dotted line segment corresponding to nozzle No. 40 (i.e., the second line segment) is aligned with the solid line segment corresponding to nozzle No. 138 (i.e., the first line segment), and the theoretical line number corresponding to the target line segment is 138. The dotted line segment corresponding to nozzle No. 50 (i.e., the second line segment) is aligned with the solid line segment corresponding to nozzle No. 148 (i.e., the first line segment), and the theoretical line number corresponding to the target line segment is 148. Then, the median or average value of the actual line numbers can be calculated as 128.

[0121] Then the difference between the actual line number and the theoretical line number is 130 - 128 = 2. Assume the distance between nozzles is 1 mm and the target step distance is 100 mm, then the error is 2 * 1 = 2 mm, and the error parameter is 2 / 100 = 0.02.

[0122] In the technical solution of this embodiment, by accurately comparing the aligned parts of the first line segment and the second line segment and determining the corresponding relationship between the theoretical line number and the actual line number, the error parameter of the stepper motor can be measured more accurately, improving the positioning accuracy of the printing device.

[0123] Based on the first or second embodiment of this application, in the third embodiment of this application, for the same or similar content as the above embodiments, reference can be made to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 6 , before step S50, it further includes:

[0124] Step S60, determining the nozzles with blocked holes based on the reference pattern;

[0125] Step S70, if there are blocked holes in the second target nozzles, then according to the information of the nozzles with blocked holes, the missing second line segments are filled in the calibration image.

[0126] Optionally, using image edge detection and missing part repair techniques can effectively restore the integrity of the image, which is crucial for subsequent position comparison and determination of error parameters.

[0127] Optionally, according to the position of the missing line segment of the reference pattern, determine the first position of the first target nozzles with blocked holes; according to the preset interpolation algorithm, fill in the first line segment at the first position to ensure the integrity of the reference pattern for subsequent position comparison and analysis.

[0128] Optionally, according to the position of the missing line segment of the target pattern, determine the second position of the second target nozzle with a blocked hole; according to the preset interpolation algorithm, complete the second line segment at the second position to determine the integrity of the target pattern, facilitating subsequent position comparison and analysis.

[0129] In the technical solution of this embodiment, by identifying the missing first line segment in the reference pattern and determining the nozzle with a blocked hole according to the missing first line segment in the reference pattern, when there is a nozzle with a blocked hole in the second target nozzle, complete the second line segment corresponding to the nozzle with a blocked hole, remove the error caused by the blocked hole, improve the printing accuracy, and solve the error problem caused by the blocked hole.

[0130] Based on any one of the first to third embodiments of the present application, in the fourth embodiment of the present application, the same or similar content as the above embodiments can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 7 , after step S50, it further includes:

[0131] Step S80, after calibrating the motor for transporting the printing medium, control the printing device to print the reference pattern and the target pattern again;

[0132] Step S90, obtain a verification image including the reference pattern and the target pattern printed again, and based on the positional relationship between the first line segment and the second line segment in the verification image, determine the error parameter between the target stepping distance and the actual stepping distance of the printing medium;

[0133] Step S100, if the error determined according to the error parameter is less than the preset difference, save the error parameter and stop calibration.

[0134] It should be noted that the verification image includes a reference pattern and a target pattern. Among them, the reference pattern includes the first line segment printed by the first target nozzle on the print head, and the target pattern includes the second line segment printed again by the second target nozzle on the print head. Among them, the printing processes of the reference pattern and the target pattern are the same as those in the previous calibration process and will not be repeated here.

[0135] As an optional embodiment for determining the error parameter, obtain the target line segment in the verification image, where the target line segment is the first line segment aligned with the second line segment in the verification image; obtain the actual line number corresponding to the target line segment and the theoretical line number of the first line segment that the second line segment should correspond to; according to the actual line number and the theoretical line number, determine the error parameter between the target stepping distance and the actual stepping distance of the printing medium.

[0136] As an alternative embodiment for determining the theoretical line number, obtain the number of the second target nozzle; based on the target step distance and the number of the second target nozzle, determine the theoretical line number.

[0137] It should be noted that the theoretical line number is the theoretical line number of the first line segment aligned with the second line segment, that is, the theoretical line number of the target line segment. If there is a step error in the motor for transporting the printing medium, there will be a difference between the actual line number and the theoretical line number. If there is no step error in the motor for transporting the printing medium, the actual line number and the theoretical line number will be the same.

[0138] As an alternative embodiment for determining the error parameter, according to the actual line number and the theoretical line number, determine the error parameter between the target step distance and the actual step distance of the printing medium, including: calculating the line number difference between the actual line number and the theoretical line number; according to the line number difference and the distance between adjacent nozzles, determine the error parameter.

[0139] Optionally, determine the error distance according to the product of the line number difference and the distance between nozzles. The error parameter includes error distance / target step distance. Exemplarily, when the line number difference is 1, the deviation distance is the distance of one adjacent nozzle. When the line number difference is 2, the error parameter is the distance of two adjacent nozzles. Exemplarily, the actual line number corresponds to the 117th nozzle, the theoretically corresponding line number is the 116th nozzle, the serial number difference is 1, the distance between adjacent nozzles is 1 mm, and the target step distance is 100 mm, then the error is +1 mm, and the error parameter is 1 / 100 = 0.01.

[0140] As another alternative embodiment for determining the error parameter, there are multiple second line segments arranged in parallel along the moving direction of the printing medium, and the multiple second line segments correspond to multiple target line segments. According to the actual line number and the theoretical line number, determine the error parameter between the target step distance and the actual step distance of the printing medium, including: obtaining the median or average value of the multiple theoretical line numbers corresponding to the multiple second line segments; obtaining the median or average value of the multiple actual line numbers corresponding to the multiple target line segments; calculating the error parameter based on the median or average value of the multiple theoretical line numbers and the median or average value of the multiple actual line numbers.

[0141] Optionally, identify the verification image to determine at least two first line segments, i.e., target line segments, aligned with the same second line segment position; determine the median or average value of the actual line numbers of the target line segments.

[0142] As an alternative embodiment, when the error determined according to the error parameter is greater than or equal to a preset difference, the motor is continuously calibrated according to the subsequently determined error parameter. When the error determined according to the error parameter is less than the preset difference, the error parameter is saved and the calibration is stopped.

[0143] In the technical solution of this embodiment, the motor for conveying the printing medium is calibrated, and the calibrated motor is used for actual printing, and the calibration effect is evaluated by verifying the positional relationship of the image, forming a feedback loop, which improves the accuracy and reliability of the printing device.

[0144] It should be noted that the above examples are only for understanding the present application and do not constitute a limitation on the calibration method of the printing device of the present application. Based on this technical concept, more forms of simple transformation are within the protection scope of the present application.

[0145] In some embodiments, the present application provides a calibration device for a printing device, and the calibration device includes:

[0146] A first control module for controlling a first target nozzle of the print head of the printing device to print a reference pattern, where the reference pattern includes a plurality of first line segments parallel to the moving direction of the printing medium;

[0147] A second control module for controlling the movement of the printing medium based on a target step distance;

[0148] A third control module for controlling a second target nozzle of the print head to print a target pattern, where the target pattern includes at least one second line segment;

[0149] An acquisition module for acquiring a calibration image including the reference pattern and the target pattern;

[0150] A determination module for determining an error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the at least one second line segment and the plurality of first line segments in the calibration image, so as to calibrate the motor for conveying the printing medium based on the error parameter.

[0151] The specific content of each of the above modules can refer to the embodiments of the corresponding steps of the above calibration method, which will not be elaborated here.

[0152] The present application provides an electronic device, and the electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the calibration method of the printing device in the first embodiment above.

[0153] Next, refer to Figure 8, which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), etc., and fixed terminals such as digital TVs, desktop computers, etc., as well as devices such as printing devices. Figure 8 The electronic device shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.

[0154] As Figure 8 shown, the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or had alternatively.

[0155] Specifically, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.

[0156] The electronic device provided by this application adopts the calibration method of the printing device in the above embodiment, which can solve the technical problem of calibrating the motor for conveying the printing medium. Compared with the prior art, the beneficial effects of the electronic device provided by this application are the same as those of the calibration method of the printing device provided in the above embodiment, and other technical features in this electronic device are the same as those disclosed in the method of the previous embodiment, which will not be elaborated here.

[0157] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0158] As mentioned above, it is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0159] Refer to Figure 9 , this application provides a printing system 1000, the printing system 1000 includes a terminal device 100 and a printing device 200, and the terminal device 100 is communicatively connected to the printing device 200;

[0160] The printing device 200 is used to print a reference pattern and a target pattern, and collect an image including the reference pattern and the target pattern;

[0161] The terminal device 100 is used to: control the printing device 200 based on the calibration method of the printing device as described in the above embodiment, and obtain the error parameters of the printing device.

[0162] The terminal device 100 can be a device such as a mobile phone, a computer, a tablet, etc. The specific content of the printing device 200 can refer to the above embodiment, which will not be elaborated here.

[0163] This application provides a computer-readable storage medium, having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the calibration method of the printing device in the above embodiment.

[0164] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.

[0165] The above computer-readable storage medium can be included in an electronic device; or it can exist separately without being assembled into an electronic device.

[0166] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by an electronic device, the electronic device: compares the positions of the first line segment and the second line segment printed by different nozzles in a calibration image, and accurately determines the error parameters of the motor for transporting the printing medium based on the positional relationship, and then calibrates the motor, thereby improving the printing accuracy of the printing device and enhancing the printing effect of the printing device.

[0167] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0168] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutively represented blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0169] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.

[0170] The readable storage medium provided by this application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned calibration method of the printing device, and can solve the technical problem of calibrating the motor for transporting the printing medium. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the calibration method of the printing device provided by the above embodiments, and will not be elaborated here.

[0171] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the calibration method of the printing device as described above.

[0172] The computer program product provided by the present application can solve the technical problem of calibrating the motor for conveying the printing medium. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the calibration method of the printing device provided in the above embodiments, and will not be elaborated herein.

[0173] The above are only partial embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or direct / indirect application in other relevant technical fields, is included in the patent protection scope of the present application.

Claims

1. A calibration method for a printing device, characterized in that, The method includes: Controlling a first target nozzle of a print head of the printing device to print a reference pattern, where the reference pattern includes a plurality of first line segments parallel to the moving direction of the print medium; Controlling the movement of the print medium based on a target step distance; Controlling a second target nozzle of the print head to print a target pattern, where the target pattern includes at least one second line segment; Obtaining a calibration image including the reference pattern and the target pattern; Based on the positional relationship between the at least one second line segment and the plurality of first line segments in the calibration image, determining an error parameter between the target step distance and the actual step distance of the print medium, so as to calibrate a motor for transporting the print medium based on the error parameter.

2. The calibration method of the printing device according to claim 1, characterized in that, There are multiple second line segments, the second target nozzles are nozzles with preset numbers, the preset numbers are multiple, and at least some of the second target nozzles corresponding to the multiple preset numbers are spaced in the moving direction of the print medium, so that the multiple second line segments are parallel to the moving direction of the print medium; And / or Along the direction perpendicular to the movement of the print medium, the plurality of first line segments are divided into M first line segment groups, each of the first line segment groups includes N first line segments arranged at intervals in the moving direction of the print medium, and the first line segments corresponding to adjacent two of the second line segment groups differ by at least one nozzle pitch, so that the plurality of first line segments in the M first line segment groups are in a stepped shape.

3. The calibration method of the printing device according to claim 1, characterized in that, The target step distance is a preset distance / the number of print passes of the print head.

4. The calibration method of the printing device according to claim 1, characterized in that, The step of determining an error parameter between the target step distance and the actual step distance of the print medium based on the positional relationship between the at least one second line segment and the plurality of first line segments in the calibration image includes: Obtaining a target line segment in the calibration image, where the target line segment is a first line segment aligned with the second line segment in the calibration image; Obtaining the actual line number corresponding to the target line segment and the theoretical line number of the first line segment that the second line segment should correspond to; Based on the actual line number and the theoretical line number, determining an error parameter between the target step distance and the actual step distance of the print medium.

5. The calibration method of the printing device according to claim 4, characterized in that, The step of obtaining the theoretical line number of the first line segment that the second line segment should correspond to includes: Obtaining the number of the second target nozzle; Based on the target step distance and the number of the second target nozzle, determining the theoretical line number.

6. The calibration method of the printing device according to claim 4, characterized in that, Based on the actual line number and the theoretical line number, determining an error parameter between the target step distance and the actual step distance of the print medium includes: Calculating a line number difference between the actual line number and the theoretical line number; Based on the line number difference and the pitch between adjacent nozzles, determining the error parameter.

7. The calibration method of the printing device according to claim 6, characterized in that, There are multiple second line segments and they are arranged parallel to the moving direction of the print medium, the multiple second line segments correspond to multiple target line segments, and based on the actual line number and the theoretical line number, determining an error parameter between the target step distance and the actual step distance of the print medium includes: Obtain the median or average value of the multiple theoretical line numbers corresponding to the multiple second line segments; Obtain the median or average value of the multiple actual line numbers corresponding to the multiple target line segments; Calculate the error parameter based on the median or average value of the multiple theoretical line numbers and the median or average value of the multiple actual line numbers.

8. The calibration method of the printing device according to claim 1, characterized in that, The step of controlling the first target nozzle of the print head of the printing device to print the reference pattern includes: Group the first target nozzles based on a preset interval into M nozzle groups, each nozzle group includes N nozzles, and the adjacent nozzles in different nozzle groups are separated by the preset interval, and the first target nozzles in the M nozzle groups are arranged at intervals along the moving direction of the printing medium; Control the first target nozzles in the first nozzle group to print the first part of the first line segment; After controlling the print head to move, control the first target nozzles in the second nozzle group to print the second part of the first line segment; Sequentially control the print head to move and control the remaining nozzle groups to print in a preset order to obtain a reference pattern with the multiple first line segments in a stepped shape.

9. The calibration method of the printing device according to claim 1, characterized in that, Before the step of determining the error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the at least one second line segment and the multiple first line segments in the calibration image, the method further includes: Determine the nozzles with blocked holes based on the reference pattern; If the second target nozzle has a blocked hole, complete the missing second line segment in the calibration image according to the information of the nozzles with blocked holes.

10. The calibration method of the printing device according to claim 1, characterized in that, After the step of calibrating the motor for transporting the printing medium according to the distance difference between the target step distance and the actual step distance, it further includes: After calibrating the motor for transporting the printing medium, control the printing device to print the reference pattern and the target pattern again; Obtain a verification image corresponding to the reference pattern and the target pattern printed again, and determine the error parameter between the target step distance and the actual step distance of the printing medium based on the positional relationship between the first line segment and the second line segment in the verification image; If the error determined according to the error parameter is less than a preset difference, save the error parameter and stop the calibration.

11. The calibration method of a printing device according to any one of claims 1 to 10, characterized in that, The first line segment is a solid line and the second line segment is a dotted line; or, the first line segment is a dotted line and the second line segment is a solid line.

12. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the calibration method of the printing device according to any one of claims 1 to 11.

13. A printing system, characterized in that, The printing system includes a terminal device and a printing device, and the terminal device is communicatively connected to the printing device; The printing device is used to print a reference pattern and a target pattern, and collect an image including the reference pattern and the target pattern; The terminal device is used to: control the printing device based on the calibration method of the printing device according to any one of claims 1 to 11, and obtain the error parameter.

14. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the calibration method of the printing device according to any one of claims 1 to 11 are implemented.