Blockage compensation methods, devices, electronic equipment and storage media

By automatically identifying and compensating for print defects caused by nozzle clogging in Single-Pass inkjet printing technology, the problem of print defects caused by nozzle clogging is solved, achieving efficient nozzle clogging compensation, improving printing efficiency and reducing printhead usage costs.

CN122078064APending Publication Date: 2026-05-26GUANGDONG AROJET INKJET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG AROJET INKJET TECH CO LTD
Filing Date
2026-03-27
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In Single-Pass inkjet printing technology, the nozzles of the printhead are prone to clogging due to ink impurities, drying, air bubbles, nozzle tilt, etc., which affects the printing effect, leads to downtime and increases the cost of printhead use.

Method used

By automatically identifying clogged nozzle units and using adjacent nozzle units for compensation, a mapping relationship between intermediate pixels and nozzle units is established, and intermediate pixels are called in real time for compensation, avoiding real-time calculation.

Benefits of technology

It achieves automated compensation when nozzles become clogged, eliminating the need for downtime, thus improving printing efficiency and reducing printhead usage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122078064A_ABST
    Figure CN122078064A_ABST
Patent Text Reader

Abstract

This application discloses a clogging compensation method, apparatus, electronic device, and storage medium, relating to the field of inkjet printing technology. The clogging compensation method includes: acquiring an original pixel matrix; preprocessing the original pixel matrix to obtain an intermediate pixel matrix; constructing a mapping relationship between the intermediate pixels and nozzle units; controlling the nozzle units to print on paper to obtain ink-stained paper; identifying the ink-stained paper using a visual recognition module to determine the target nozzle unit experiencing clogging; determining the target intermediate pixel corresponding to the target nozzle unit based on the mapping relationship; and controlling the nozzle units adjacent to the target nozzle unit on both sides along a first direction to perform a compensation operation at the position where ink should have been sprayed from the target nozzle unit, thereby enabling timely compensation by the nozzle units adjacent to the target nozzle unit when clogging occurs, improving printing efficiency.
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 in particular to a clogging compensation method, apparatus, electronic device, and storage medium. Background Technology

[0002] In existing technologies, Single-Pass inkjet printing technology, with its high efficiency of completing printing in a single pass, is widely used in industrial production fields such as packaging, textiles, labels, and cartons. However, in continuous high-speed production processes, the hundreds to thousands of micron-sized nozzles of the printhead are prone to complete or partial blockage due to ink impurities, drying, air bubbles, nozzle tilting, clogging, and other reasons. This can lead to defects in the printed image, such as white lines, streaks, and stringing, affecting the printing effect. Consequently, it is necessary to stop the machine to deal with the blocked nozzles or replace the printhead, thus affecting printing efficiency and increasing the cost of printhead use. Summary of the Invention

[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a clogging compensation method, apparatus, electronic device, and storage medium, which can automatically identify the clogged target nozzle unit and perform compensation operations through the nozzle units on both sides adjacent to the target nozzle unit to improve printing efficiency.

[0004] The congestion compensation method according to the first aspect of this application includes: Obtain the print file of the preset target print image to obtain the original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with the multiple nozzle units; The original pixel matrix is ​​preprocessed to obtain an intermediate pixel matrix that is expanded by a preset multiple along a first direction, wherein the first direction is the direction of paper movement and the intermediate pixel matrix includes multiple intermediate pixels. A mapping relationship is established between the intermediate pixels and the nozzle units, such that each nozzle unit corresponds to a preset multiple of the intermediate pixels arranged along the first direction; The nozzle unit is controlled to print on the printing paper to obtain ink-stained paper; The visual recognition module identifies the ink stains on the paper to determine the target nozzle unit that is blocked in the nozzle unit. The target intermediate pixel corresponding to the target nozzle unit is determined according to the mapping relationship; Based on the target intermediate pixel, control the nozzle units located on opposite sides of the target nozzle unit along the first direction to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

[0005] The clogging compensation method according to the embodiments of this application has at least the following beneficial effects: First, a print file of the preset target print image to be printed is obtained to obtain an original pixel matrix. The original pixel matrix corresponds one-to-one with the nozzle unit to represent the pixels to be printed by the nozzle unit. The original pixels are expanded and preprocessed along the first direction to obtain an intermediate pixel matrix. The intermediate pixel matrix includes multiple intermediate pixels. A mapping relationship between the intermediate pixels and the nozzle unit is constructed, so that a nozzle unit is converted into a corresponding preset multiple of intermediate pixels. This allows the corresponding intermediate pixels to be called in real time for compensation in subsequent compensation without calculation, thereby improving the efficiency of clogging compensation. A printing operation is performed on the printing paper to obtain ink paper. The ink paper is identified by a visual recognition module. The target nozzle unit that is clogged is deduced from the defects such as white lines and missing ink in the ink paper. Then, the target intermediate pixels corresponding to the target nozzle unit are allocated to the nozzle units adjacent to both sides of the target nozzle unit to compensate the position where the target nozzle unit should have sprayed ink. This achieves automatic compensation when the nozzle is clogged without stopping the machine, thus ensuring printing efficiency.

[0006] According to some embodiments of this application, the target intermediate pixel includes a first pixel, and the step of controlling the nozzle units located on opposite sides of the target nozzle unit along the first direction based on the target intermediate pixel to compensate for the position where the target nozzle unit should originally spray ink includes: Determine the nozzle units located on opposite sides of the target nozzle unit along the first direction to obtain the first nozzle and the second nozzle; The compensation spacing is obtained based on the intermediate pixel matrix, wherein the compensation spacing is the spacing between two adjacent intermediate pixels along the first direction; Determine the original ink ejection time of the target nozzle unit to obtain the initial ink ejection time; The time compensation amount is obtained based on the paper's moving speed and the compensation interval. The first inkjet time and the second inkjet time are obtained based on the initial inkjet time and the time compensation amount. The first nozzle is controlled to print the first pixel corresponding to the target nozzle unit during the first inkjet time and the second nozzle is controlled to print the first pixel during the second inkjet time.

[0007] According to some embodiments of this application, each nozzle unit corresponds to an intermediate pixel including a second pixel, wherein the second pixel is the same as the original pixel corresponding to the nozzle unit. After identifying the ink paper through the visual recognition module to determine the target nozzle unit that is blocked, the method further includes: Determine the original ink ejection times of the first and second nozzles to obtain the first initial ink ejection time and the second initial ink ejection time. Control the first nozzle to print the second pixel corresponding to the first nozzle during the first initial inkjet time; Control the second nozzle to print the second pixel corresponding to the second nozzle during the second initial inkjet time.

[0008] According to some embodiments of this application, controlling the first nozzle at the first inkjet time and the second nozzle at the second inkjet time to print the first pixel corresponding to the target nozzle unit respectively includes: When the number of first pixels corresponding to the target nozzle unit is greater than one, the similarity between each first pixel corresponding to the target nozzle unit and the original pixel corresponding to the target nozzle unit is calculated, and the first pixel with the largest similarity is selected as the target first pixel. The first nozzle is controlled to print the target first pixel during the first inkjet time and the second nozzle is controlled to print the target first pixel during the second inkjet time.

[0009] According to some embodiments of this application, obtaining the first inkjet time and the second inkjet time based on the initial inkjet time and the time compensation amount includes: The first inkjet time is obtained by subtracting the initial inkjet time from the time compensation amount; The second inkjet time is obtained by summing the initial inkjet time with the time compensation amount.

[0010] According to some embodiments of this application, the preprocessing operation on the original pixel matrix to obtain an intermediate pixel matrix expanded by a preset multiple along a first direction includes: An interpolation algorithm is used to perform interpolation calculations on the original pixel matrix to generate interpolated pixels between two adjacent original pixels along the first direction. The intermediate pixel matrix is ​​obtained based on the original pixels and the interpolated pixels.

[0011] According to some embodiments of this application, the interpolation algorithm may be bicubic interpolation or Lanzos resampling.

[0012] According to a second aspect of this application, a clogging compensation device is applied to an inkjet printing device, the inkjet printing device including at least two printhead modules and a vision recognition module, the printhead module including a plurality of nozzle units; The device includes: A data processing module is configured to acquire a print file of a preset target print image to obtain an original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with multiple nozzle units; perform a preprocessing operation on the original pixel matrix to obtain an intermediate pixel matrix expanded by a preset multiple along a first direction, wherein the first direction is the movement direction of the printing paper, and the intermediate pixel matrix includes multiple intermediate pixels; and construct a mapping relationship between the intermediate pixels and the nozzle units, such that each nozzle unit corresponds to the preset multiple number of intermediate pixels arranged along the first direction. An image processing module is configured to control the nozzle unit to perform a printing operation on the printing paper to obtain ink-stained paper; and to identify the ink-stained paper through the vision recognition module to determine the target nozzle unit that is blocked in the nozzle unit. A clogging compensation module is configured to determine the target intermediate pixel corresponding to the target nozzle unit according to the mapping relationship; and control the nozzle units located on opposite sides of the target nozzle unit along the first direction according to the target intermediate pixel to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

[0013] An electronic device according to a third aspect of this application includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the congestion compensation method described in the first aspect of this application.

[0014] According to a fourth aspect embodiment of the present application, a computer-readable storage medium stores a computer program that, when executed by a processor, implements the congestion compensation method described in the first aspect embodiment of the present application.

[0015] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0016] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating the steps of the congestion compensation method according to an embodiment of this application; Figure 2 This is a schematic diagram of a specific process for step S102; Figure 3 A detailed flowchart of steps S301 to S303 is provided. Figure 4This is a schematic diagram of a specific process for step S107; Figure 5 This is a schematic diagram of a specific process for step S405; Figure 6 This is a schematic diagram of a specific process for step S406; Figure 7 This is a schematic diagram of the nozzle compensation device of this application; Figure 8 This is a schematic diagram of the result of an electronic device according to an embodiment of this application. Detailed Implementation

[0017] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0018] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0019] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0020] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.

[0021] Currently, among existing technologies, Single-Pass inkjet printing technology, with its high efficiency of completing printing in a single pass, is widely used in industrial production fields such as packaging, textiles, labels, and cartons. However, in continuous high-speed production processes, the hundreds to thousands of micron-sized nozzles of the printhead are prone to complete or partial blockage due to ink impurities, drying, air bubbles, nozzle tilting, clogging, etc., which can lead to defects such as white lines, streaks, and stringing in the printed image, affecting the printing effect. This necessitates stopping the machine to deal with the blocked nozzles or replacing the printhead, thus affecting printing efficiency and increasing printhead operating costs. Furthermore, calculating the required pixels for compensation in real time when blockage occurs would also significantly impact the efficiency of blockage compensation.

[0022] Based on this, this application proposes a clogging compensation method, apparatus, electronic device, and storage medium, which aims to automatically identify the clogging target nozzle unit and perform compensation operations through the nozzle units on both sides adjacent to the target nozzle unit, thereby improving printing efficiency and reducing printhead usage costs. At the same time, since the target intermediate pixel used for compensation has been calculated before printing, when compensation is needed, the target intermediate pixel can be directly called and allocated to the nozzle units adjacent to the target nozzle unit for compensation operations, without the need for real-time calculation, which greatly improves the efficiency of clogging compensation.

[0023] The clogging compensation method of this application is applied to a single-pass scanning inkjet printing device. The inkjet printing device includes at least two printhead modules, a transport module, a terminal module, and a vision recognition module. Each printhead module includes multiple nozzle units. The transport module is used to transport printing paper. The vision recognition module is located above the transport module to perform image recognition on the printing paper. The printhead modules are also located above the transport module. At least two printhead modules are arranged sequentially along the direction of paper movement, that is, the arrangement direction of the nozzle units on the same printhead module is perpendicular to the direction of paper movement. The terminal module is located on one side of the transport module and is used by the operator to input the print file of the target print image.

[0024] The first aspect of this application proposes a clogging compensation method based on an inkjet printing device. (Refer to...) Figure 1 , Figure 1 This is a flowchart illustrating the steps of the congestion compensation method according to an embodiment of this application. Figure 1 The illustrated process steps include, but are not limited to, steps S101 to S107.

[0025] Step S101: Obtain the print file of the preset target print image to obtain the original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with multiple nozzle units.

[0026] Step S102: Perform preprocessing operation on the original pixel matrix to obtain an intermediate pixel matrix that is expanded by a preset multiple along the first direction, wherein the first direction is the moving direction of the printing paper, and the intermediate pixel matrix includes multiple intermediate pixels.

[0027] Step S103: Construct a mapping relationship between intermediate pixels and nozzle units, such that each nozzle unit corresponds to a preset multiple of intermediate pixels arranged along the first direction.

[0028] Step S104: Control the nozzle unit to perform printing operation on the printing paper to obtain ink-stained paper.

[0029] Step S105: The ink paper is identified by the visual recognition module to determine the target nozzle unit that is blocked in the nozzle unit.

[0030] Step S106: Determine the target intermediate pixel corresponding to the target nozzle unit according to the mapping relationship.

[0031] Step S107: Based on the target middle pixel, control the nozzle units located on the opposite sides of the target nozzle unit along the first direction to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

[0032] The clogging compensation method according to the embodiments of this application has at least the following beneficial effects: First, a print file of the preset target print image to be printed is obtained to obtain an original pixel matrix. The original pixel matrix corresponds one-to-one with the nozzle unit to represent the pixels to be printed by the nozzle unit. The original pixels are expanded and preprocessed along the first direction to obtain an intermediate pixel matrix. The intermediate pixel matrix includes multiple intermediate pixels. A mapping relationship between the intermediate pixels and the nozzle unit is constructed, so that a nozzle unit is converted into a corresponding preset multiple of intermediate pixels. This allows the corresponding intermediate pixels to be called in real time for compensation in subsequent compensation without calculation, thereby improving the efficiency of clogging compensation. A printing operation is performed on the printing paper to obtain ink paper. The ink paper is identified by a visual recognition module. The target nozzle unit that is clogged is deduced from the defects such as white lines and missing ink in the ink paper. Then, the target intermediate pixels corresponding to the target nozzle unit are allocated to the nozzle units adjacent to both sides of the target nozzle unit to compensate the position where the target nozzle unit should have sprayed ink. This achieves automatic compensation when the nozzle is clogged without stopping the machine, thus ensuring printing efficiency.

[0033] In step S101 of some embodiments, the print file of the target print image input by the operator in the terminal control module is obtained to obtain the original pixel matrix. The original pixel matrix obtained from the print file can be one or more, and the original pixel matrix includes multiple original pixels. The multiple original pixels are assigned to multiple nozzle units, so that the multiple nozzle units correspond one-to-one with the multiple original pixels, that is, each nozzle unit knows the original pixels it is responsible for printing.

[0034] In some embodiments, refer to Figure 2 Step S102 may include, but is not limited to, steps S201 to S202.

[0035] Step S201: The original pixel matrix is ​​interpolated using an interpolation algorithm to generate interpolated pixels between two adjacent original pixels along the first direction. Step S202: Obtain the intermediate pixel matrix based on the original pixels and the interpolated pixels.

[0036] In step S201 of some embodiments, the preset expansion factor N is determined manually. N can be 2, 4, 6, etc. An interpolation algorithm is used to interpolate the original pixel matrix, generating N-1 interpolated pixels between two adjacent original pixels along a first direction, where the first direction is the direction of paper movement. For example, when the expansion factor N=2, the original pixel matrix with a resolution of 600×600 DPI is expanded into an intermediate pixel matrix of 600×1200 DPI.

[0037] In step S202 of some embodiments, an intermediate pixel matrix is ​​reassembled using the original pixels and the generated interpolated pixels. For ease of explanation, it is assumed that the first direction coincides with the Y-axis direction. The number of pixels in the intermediate pixel matrix in the Y-axis direction is N times the number of pixels in the original pixel matrix in the Y-axis direction. The number of pixels in the intermediate pixel matrix in the X-axis direction is the same as the number of pixels in the original pixel matrix in the X-axis direction.

[0038] In the embodiments of this application, steps S201 to S202 involve interpolating the original pixel matrix to obtain an intermediate pixel matrix that is expanded by a preset multiple N along the first direction. This allows for the direct use of interpolated pixels in the intermediate pixel matrix for subsequent congestion compensation.

[0039] It is understandable that the interpolation algorithm can be bicubic interpolation or Lanzos resampling.

[0040] For example, in this embodiment, bicubic interpolation or Lanzos resampling is used for interpolation calculation, which results in the intermediate pixel matrix having better characteristics in the frequency domain and can more effectively preserve the edge and texture information of the original pixel matrix, thereby reducing the blurring caused by interpolation and providing a high-quality data source for subsequent compensation.

[0041] In step S103 of some embodiments, a mapping relationship between intermediate pixels and nozzle units is established, such that one nozzle unit corresponds to a preset multiple N of intermediate pixels. The intermediate pixels corresponding to a nozzle unit are composed of the original pixel corresponding to the nozzle unit and the interpolated pixels generated by interpolation calculation between the original pixel and adjacent original pixels. For example, given original pixel A and original pixel B, and a nozzle unit corresponding to original pixel A, assuming the preset multiple N is 2, an interpolated pixel C is generated between original pixel A and original pixel B. In this case, original pixel A, original pixel B, and interpolated pixel C, after interpolation calculation, are all referred to as intermediate pixels, and the intermediate pixels that form the mapping relationship with the nozzle unit are the original pixel A and the interpolated pixel C.

[0042] In step S104 of some embodiments, a nozzle state table is constructed before printing. This table maps the states of the nozzle units. Initially, all nozzle units in the nozzle state table are in normal state. Each nozzle unit's intermediate pixel includes a first pixel and a second pixel. The second pixel is the same as the original pixel corresponding to the nozzle unit, and the first pixel is a set of interpolated pixels generated after interpolation calculation of the original pixel. For example, when the preset multiplier N is 3, if the intermediate pixels of a nozzle unit are original pixel A, interpolated pixel B, and interpolated pixel C, then interpolated pixel B and interpolated pixel C are used as the first pixel of that nozzle unit, and original pixel A is used as the second pixel. After the nozzle unit performs a complete printing cycle on the printing paper, ink-stained paper is obtained. The printing operation involves printing the corresponding second pixel for each nozzle unit.

[0043] In some embodiments, the intermediate pixel corresponding to each nozzle unit includes a second pixel, wherein the second pixel is the same as the original pixel corresponding to the corresponding nozzle unit, as shown in the figure. Figure 3 After step S104, steps S301 to S303 may be included, but are not limited to.

[0044] Step S301: Determine the original ink ejection times of the first and second nozzles to obtain the first initial ink ejection time and the second initial ink ejection time.

[0045] Step S302: Control the first nozzle to print the second pixel corresponding to the first nozzle during the first initial inkjet time.

[0046] Step S303: Control the second nozzle to print the second pixel corresponding to the second nozzle during the second initial inkjet time.

[0047] In step S301 of some embodiments, the original inkjet time of the first nozzle is determined to obtain the first initial inkjet time, and the original inkjet time of the second nozzle is determined to obtain the second initial inkjet time. The first initial inkjet time and the second initial inkjet time are the normal inkjet times when the first nozzle and the second nozzle do not perform clogging compensation. This is because in the case of clogging that requires compensation, the first nozzle and the second nozzle need to perform an additional inkjet for the clogging target nozzle unit to achieve compensation.

[0048] In step S302 of some embodiments, the first nozzle is controlled to print the second pixel corresponding to the first nozzle at the first initial inkjet time, that is, the pixel that is the same as the original pixel corresponding to the first nozzle.

[0049] In step S303 of some embodiments, the second nozzle is controlled to print the second pixel corresponding to the second nozzle at the second initial inkjet time, that is, the pixel that is the same as the original pixel corresponding to the second nozzle.

[0050] Steps S301 to S303 shown in the embodiments of this application confirm the original ink ejection time of the first and second nozzles, and print the same pixel as the original pixel corresponding to the nozzle at the corresponding time. In addition to the first and second nozzles, the other nozzle units are also like this. This is intended to show that the nozzle unit in a normal state without clogging will print the second pixel that is the same as its corresponding original pixel, so as to ensure that the printed image matches the target printed image.

[0051] In step S105 of some embodiments, the ink paper is identified by the visual recognition module. When defects such as white lines, stripes, or streaks are detected on the ink paper, it can be determined that there is a blockage in the nozzle unit. Since the nozzle unit corresponds to the printing position and the pixels to be printed, the target nozzle unit that is blocked can be deduced in reverse, and the nozzle status table is updated. The target nozzle unit changes from the normal state to the blocked state so that in the next printing cycle, the nozzle status table will be checked first. When a blocked nozzle unit is detected, the first and second nozzles adjacent to it are called to perform compensation operations.

[0052] In step S106 of some embodiments, the intermediate pixel corresponding to the target nozzle unit is determined as the target intermediate pixel according to the mapping relationship.

[0053] In some embodiments, the target intermediate pixel includes a first pixel, as referenced. Figure 4 Step S107 may include, but is not limited to, steps S401 to S406.

[0054] Step S401: Determine the nozzle units located on opposite sides of the target nozzle unit along the first direction to obtain the first nozzle and the second nozzle.

[0055] Step S402: Based on the intermediate pixel matrix, the compensation spacing is obtained, wherein the compensation spacing is the spacing between two adjacent intermediate pixels along the first direction.

[0056] Step S403: Determine the original ink ejection time of the target nozzle unit to obtain the initial ink ejection time.

[0057] Step S404: Obtain the time compensation amount based on the paper movement speed and compensation spacing.

[0058] Step S405: Based on the initial inkjet time and time compensation amount, obtain the first inkjet time and the second inkjet time.

[0059] Step S406: Control the first nozzle to print the first pixel corresponding to the target nozzle unit during the first inkjet time and the second nozzle to print the first pixel corresponding to the target nozzle unit during the second inkjet time.

[0060] In step S401 of some embodiments, since the position of the nozzle module is fixed and arranged sequentially along the first direction, the position of the nozzle unit included in the nozzle module is also fixed. Therefore, based on the determination of the target nozzle unit, the first nozzle and the second nozzle adjacent to each other on both sides of the target nozzle unit along the first direction can also be determined.

[0061] In step S402 of some embodiments, the distance between two adjacent intermediate pixels along the first direction in the intermediate pixel matrix is ​​the compensation distance. The compensation distance is also related to the preset multiple and the original pixel matrix. For example, when the distance between two adjacent original pixels along the first direction in the original pixel matrix is ​​d, and the preset multiple N is 2, the distance between two adjacent intermediate pixels along the first direction in the intermediate pixel matrix is ​​d / 2, and the compensation distance is d / 2. When the preset multiple N is 4, the compensation distance is d / 4. It can be seen that the compensation distance is the distance between two adjacent original pixels along the first direction divided by the preset multiple N.

[0062] In step S403 of some embodiments, the time when the blocked target nozzle unit should have been ejecting ink is determined.

[0063] In step S404 of some embodiments, the time compensation amount is obtained by dividing the compensation pitch by the paper's moving speed. For example, if the compensation pitch is d / 2 and the paper's moving speed is 0.5d / s, then the time compensation amount is calculated to be 1s.

[0064] In some embodiments, refer to Figure 5Step S405 may include, but is not limited to, steps S501 to S502.

[0065] Step S501: Subtract the initial inkjet time from the time compensation amount to obtain the first inkjet time.

[0066] Step S502: Sum the initial inkjet time with the time compensation amount to obtain the second inkjet time.

[0067] In step S501 of some embodiments, the difference between the initial inkjet time and the time compensation amount is used to obtain the first inkjet time, which is earlier than the initial inkjet time. For example, if the initial inkjet time is 3s and the time compensation amount is 1s, then the first inkjet time is 2s, which is equivalent to inkjet printing 1s earlier than the initial inkjet time.

[0068] In step S502 of some embodiments, the initial inkjet time is summed with the time compensation amount to obtain the second inkjet time, which is delayed relative to the initial inkjet time. For example, if the initial inkjet time is 3s and the time compensation amount is 1s, then the first inkjet time is 4s, which is equivalent to delaying the initial inkjet time by 1s for inkjet printing.

[0069] In the embodiments of this application, steps S501 to S502 are performed by calculating the first inkjet time and the second inkjet time. At the time point before and after the initial inkjet time, which is the time difference compensation amount, inkjet printing operations are performed through the first nozzle and the second nozzle respectively. This causes the inkjet positions of the first nozzle and the second nozzle to be d / 2 distances away from the original inkjet position of the target nozzle unit along the first direction. Then, through the diffusion and mixing of these two ink droplets, visual compensation is achieved for the original inkjet position of the target nozzle unit.

[0070] In some embodiments, refer to Figure 6 Step S406 may include, but is not limited to, steps S601 to S602.

[0071] Step S601: When the number of first pixels corresponding to the target nozzle unit is greater than one, calculate the similarity between each first pixel corresponding to the target nozzle unit and the original pixel corresponding to the target nozzle unit, and select the first pixel with the highest similarity as the target first pixel.

[0072] Step S602: Control the first nozzle to print the target first pixel during the first inkjet time and the second nozzle to print the target first pixel during the second inkjet time.

[0073] In step S601 of some embodiments, when there are multiple first pixels for the target nozzle unit, the first pixel with the highest similarity to the original pixel corresponding to the target nozzle unit is selected as the target first pixel. Euclidean distance can be used as the core metric for pixel similarity. The color distance between the original pixel corresponding to the target nozzle unit and each first pixel is calculated in the RGB color space. The smaller the distance, the greater the similarity. The candidate pixel with the smallest distance is selected as the target first pixel. For example: the RGB value of the original pixel P0 is (R0, G0, B0), and the first pixel P... i The RGB value is (R i G i B i ),but: ; In this formula, Distance(P) i P0) represents the color distance between the first pixel and the original pixel.

[0074] The distance metric ensures that the selected first pixel is the closest in color to the original pixel corresponding to the target nozzle unit, thus maximizing image consistency.

[0075] In step S602 of some embodiments, the first nozzle is controlled to print the target first pixel during the first inkjet time, and the second nozzle is controlled to print the target first pixel during the second inkjet time.

[0076] In the embodiments of this application, steps S601 to S602 involve comparing the similarity of the first pixel with the original pixel corresponding to the target nozzle unit to select the first pixel with the highest similarity, thereby ensuring the consistency of the image.

[0077] In other embodiments, the nozzle units may become continuously blocked along the first direction. In this case, the continuously blocked nozzle units form a blockage group, and the nozzle units located on both sides of the blockage group along the first direction perform a compensation operation on the blockage group. For example, nozzle units #257, #258, #259, #260, and #261 are arranged sequentially along the first direction. Nozzle units #258, #259, and #260 all become clogged, forming a clog group. The second pixels corresponding to #258, #259, and #260 are then assigned to nozzle units #257 and #261. This assignment method can be manually adjusted as needed. Assuming the preset multiplier N is 2, and the spacing between adjacent pixels in the original pixel matrix along the first direction is d / 2, nozzle unit #257, in addition to printing its own second pixel, also needs to print the first pixel corresponding to nozzle unit #258 at a position d / 2 away from nozzle unit #258 on the side of nozzle unit #257 closest to nozzle unit #257. Similarly, nozzle unit #261, in addition to printing its own second pixel, also needs to print the first pixel corresponding to nozzle unit #260 at a position d / 2 away from nozzle unit #260 on the side of nozzle unit #260 closest to nozzle unit #261, and the first pixel corresponding to nozzle unit #260 at a position d / 2 away from nozzle unit #260 on the side of nozzle unit #259 closest to nozzle unit #261, at a position d / 2 away from nozzle unit #259. Print the first pixel corresponding to nozzle unit #259 at position d / 2.

[0078] In other embodiments, the nozzle unit may be slightly tilted. In this case, the color weight of the second pixel corresponding to the nozzle unit will be reduced accordingly. When the blocked target nozzle unit is slightly tilted relative to the adjacent nozzles on both sides along the first direction, the slightly tilted nozzle unit will take over the compensation operation. For example, if the nozzle units arranged in sequence along the first direction are #257, #258 and #259, and nozzle unit #258 is blocked, nozzle unit #259 is in normal condition, but nozzle unit #257 is slightly tilted, then nozzle unit #259 will print its corresponding second pixel normally. In addition to printing its corresponding second pixel, nozzle unit #257 also needs to print the first pixel corresponding to nozzle unit #257 on the side of nozzle unit #258 close to nozzle unit #257, at a distance from the compensation spacing of nozzle unit #257, which is to say, it becomes asymmetric compensation.

[0079] In summary, the specific process of the congestion compensation method in this application is as follows: Assuming the preset multiplier N is 2, and the distance between adjacent original pixels in the original pixel matrix along the first direction is d, until the moving speed is 0.5d / s, before printing begins, the print file of the target print image is obtained to obtain the original image. Interpolation calculation is performed on the original image to obtain the intermediate pixel matrix. The mapping relationship between the intermediate pixels and the nozzle unit is constructed, and the nozzle state table is constructed. The distance between adjacent intermediate pixels in the intermediate pixel matrix along the first direction is d / 2. The nozzle state table, the mapping relationship, the original pixel matrix, and the intermediate pixel matrix are all stored in the terminal control module. At the start of printing, the paper is printed once to obtain ink-stained paper. A vision inspection module then inspects the ink-stained paper. If the image on the ink-stained paper is complete, the next printing cycle can continue. If defects such as white lines are found, a blocked nozzle unit is identified. Based on the defect location, the target blocked nozzle unit is deduced, and the nozzle status table is updated; that is, the nozzle status of the target nozzle unit is updated from normal to blocked. In the next printing cycle, the nozzle status table is first queried. If a blocked nozzle unit is detected, that nozzle unit is selected as the target nozzle unit, and the process is completed. The target nozzle unit is positioned along the first direction, with adjacent first and second nozzles on opposite sides. The first pixel corresponding to the target nozzle unit is retrieved and assigned to both the first and second nozzle units. The first nozzle unit prints the first pixel corresponding to the target nozzle unit 1 second before the initial inkjet time, while the second nozzle unit prints it 1 second after the initial inkjet time. On the printed paper, this appears as two ink droplets of the first pixel being printed at a distance d / 2 on either side of the original printing position of the target nozzle unit along the first direction. The two droplets diffuse and mix, ultimately compensating for the visually incorrect printing position of the target nozzle unit. This allows for automatic compensation when nozzles become clogged without requiring machine downtime, thus improving printing efficiency.

[0080] Refer to,7, Figure 7 This is a schematic diagram of the clogging compensation device according to a second aspect embodiment of this application; the clogging compensation device of this application embodiment is applied to an inkjet printing device. The clogging compensation device includes: The data processing module 701 is configured to acquire a print file of a preset target print image, obtain an original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with multiple nozzle units; perform preprocessing operations on the original pixel matrix to obtain an intermediate pixel matrix expanded by a preset multiple along a first direction, wherein the first direction is the movement direction of the printing paper, and the intermediate pixel matrix includes multiple intermediate pixels; and construct a mapping relationship between the intermediate pixels and the nozzle units, such that each nozzle unit corresponds to a preset multiple number of intermediate pixels arranged along the first direction. Image processing module 702 is configured to control the nozzle unit to perform printing operations on printing paper to obtain ink-stained paper; and to identify the ink-stained paper through a vision recognition module to determine the target nozzle unit in the nozzle unit that is blocked. The clogging compensation module 703 is configured to determine the target intermediate pixel corresponding to the target nozzle unit according to the mapping relationship; and control the nozzle units located on both sides of the target nozzle unit along the first direction according to the target intermediate pixel to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

[0081] In this embodiment, the data processing module 701 first obtains the print file of the preset target print image to be printed, so as to obtain the original pixel matrix. The original pixel matrix corresponds one-to-one with the nozzle unit to represent the pixels to be printed by the nozzle unit. The original pixels are expanded and preprocessed along the first direction to obtain the intermediate pixel matrix. The intermediate pixel matrix includes multiple intermediate pixels. The mapping relationship between the intermediate pixels and the nozzle unit is constructed, so that a nozzle unit is converted into a corresponding preset multiple of intermediate pixels. This allows the corresponding intermediate pixels to be called in real time for compensation in subsequent compensation without calculation, thereby improving the efficiency of clogging compensation. The image processing module 702 performs a printing operation on the printing paper to obtain ink paper. The visual recognition module identifies the ink paper and reverses the deduction of the target nozzle unit that is clogged by the defects such as white lines and missing ink in the ink paper. The clogging compensation module 703 allocates the target intermediate pixels corresponding to the target nozzle unit to the nozzle units adjacent to the two sides of the target nozzle unit so as to compensate the position where the target nozzle unit should have sprayed ink. This realizes automatic compensation when the nozzle is clogged without stopping the machine, so as to ensure printing efficiency.

[0082] An embodiment of the third aspect of this application also provides an electronic device, which includes a memory 802 and a processor 801. The memory 802 stores a computer program, and the processor 801 executes the computer program to implement the congestion compensation method of the first aspect embodiment described above. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0083] Reference Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device according to one embodiment. The electronic device includes: The processor 801 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 802 can be implemented as a read-only memory, static storage device, dynamic storage device, or random access memory (RAM). The memory 802 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 802 and is called and executed by the processor 801 using the television bezel laser etching method of the embodiments of this application. The 803 input / output interface is used to implement information input and output. The communication interface 804 is used to enable communication and interaction between this device and other devices. Communication can be achieved via wired or wireless means. Bus 805 transmits information between various components of the device; The processor 801, memory 802, input / output interface 803, and communication interface 804 are connected to each other within the device via bus 805.

[0084] A fourth aspect of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the congestion compensation method of the first aspect embodiment described above.

[0085] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0086] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0087] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0088] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0089] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0090] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0091] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0092] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0093] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0094] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0095] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0096] Furthermore, it should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent will be obtained first. Moreover, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. Additionally, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user will be obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent will the necessary user-related data for the proper functioning of these embodiments be acquired.

[0097] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A clogging compensation method applied to an inkjet printing device, the inkjet printing device comprising at least two printhead modules and a vision recognition module, the printhead module comprising a plurality of nozzle units; The method includes: Obtain the print file of the preset target print image to obtain the original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with the multiple nozzle units; The original pixel matrix is ​​preprocessed to obtain an intermediate pixel matrix that is expanded by a preset multiple along a first direction, wherein the first direction is the direction of paper movement and the intermediate pixel matrix includes multiple intermediate pixels. A mapping relationship is established between the intermediate pixels and the nozzle units, such that each nozzle unit corresponds to a preset multiple of the intermediate pixels arranged along the first direction; The nozzle unit is controlled to print on the printing paper to obtain ink-stained paper; The visual recognition module identifies the ink stains on the paper to determine the target nozzle unit that is blocked in the nozzle unit. The target intermediate pixel corresponding to the target nozzle unit is determined according to the mapping relationship; Based on the target intermediate pixel, control the nozzle units located on opposite sides of the target nozzle unit along the first direction to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

2. The congestion compensation method according to claim 1, characterized in that, The target intermediate pixel includes a first pixel. The step of controlling the nozzle units located on opposite sides of the target nozzle unit along the first direction based on the target intermediate pixel to compensate for the position where the target nozzle unit should originally spray ink includes: Determine the nozzle units located on opposite sides of the target nozzle unit along the first direction to obtain the first nozzle and the second nozzle; The compensation spacing is obtained based on the intermediate pixel matrix, wherein the compensation spacing is the spacing between two adjacent intermediate pixels along the first direction; Determine the original ink ejection time of the target nozzle unit to obtain the initial ink ejection time; The time compensation amount is obtained based on the paper's moving speed and the compensation interval. The first inkjet time and the second inkjet time are obtained based on the initial inkjet time and the time compensation amount. The first nozzle is controlled to print the first pixel corresponding to the target nozzle unit during the first inkjet time and the second nozzle is controlled to print the first pixel during the second inkjet time.

3. The congestion compensation method according to claim 2, characterized in that, Each of the nozzle units includes a second pixel in its intermediate pixel, wherein the second pixel is the same as the original pixel corresponding to the nozzle unit. After identifying the ink paper through the visual recognition module to determine the target nozzle unit that is blocked, the method further includes: Determine the original ink ejection times of the first and second nozzles to obtain the first initial ink ejection time and the second initial ink ejection time. Control the first nozzle to print the second pixel corresponding to the first nozzle during the first initial inkjet time; Control the second nozzle to print the second pixel corresponding to the second nozzle during the second initial inkjet time.

4. The congestion compensation method according to claim 2, characterized in that, The step of controlling the first nozzle at the first inkjet time and the second nozzle at the second inkjet time to print the first pixel corresponding to the target nozzle unit includes: When the number of first pixels corresponding to the target nozzle unit is greater than one, the similarity between each first pixel corresponding to the target nozzle unit and the original pixel corresponding to the target nozzle unit is calculated, and the first pixel with the largest similarity is selected as the target first pixel. The first nozzle is controlled to print the target first pixel during the first inkjet time and the second nozzle is controlled to print the target first pixel during the second inkjet time.

5. The congestion compensation method according to claim 2, characterized in that, The step of obtaining the first inkjet time and the second inkjet time based on the initial inkjet time and the time compensation amount includes: The first inkjet time is obtained by subtracting the initial inkjet time from the time compensation amount; The second inkjet time is obtained by summing the initial inkjet time with the time compensation amount.

6. The congestion compensation method according to claim 1, characterized in that, The preprocessing operation on the original pixel matrix to obtain an intermediate pixel matrix expanded by a preset multiple along the first direction includes: An interpolation algorithm is used to perform interpolation calculations on the original pixel matrix to generate interpolated pixels between two adjacent original pixels along the first direction. The intermediate pixel matrix is ​​obtained based on the original pixels and the interpolated pixels.

7. The congestion compensation method according to claim 6, characterized in that, The interpolation algorithm can be bicubic interpolation or Lanzos resampling.

8. A blockage compensation device, characterized in that, The invention is applied to an inkjet printing device, which includes at least two printhead modules and a vision recognition module, wherein the printhead module includes multiple nozzle units. The device includes: A data processing module is configured to acquire a print file of a preset target print image to obtain an original pixel matrix, wherein the original pixel matrix includes multiple original pixels, and the multiple original pixels correspond one-to-one with multiple nozzle units; perform a preprocessing operation on the original pixel matrix to obtain an intermediate pixel matrix expanded by a preset multiple along a first direction, wherein the first direction is the movement direction of the printing paper, and the intermediate pixel matrix includes multiple intermediate pixels; and construct a mapping relationship between the intermediate pixels and the nozzle units, such that each nozzle unit corresponds to the preset multiple number of intermediate pixels arranged along the first direction. An image processing module is configured to control the nozzle unit to perform a printing operation on the printing paper to obtain ink-stained paper; and to identify the ink-stained paper through the vision recognition module to determine the target nozzle unit that is blocked in the nozzle unit. A clogging compensation module is configured to determine the target intermediate pixel corresponding to the target nozzle unit according to the mapping relationship; and control the nozzle units located on opposite sides of the target nozzle unit along the first direction according to the target intermediate pixel to perform a compensation operation on the position where the target nozzle unit should originally spray ink.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the congestion compensation method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the congestion compensation method as described in any one of claims 1 to 7.