Area printing methods, apparatus, equipment and storage media

By directly extracting target image printing data from the original image for region printing, the complexity and inflexibility of existing region printing methods are solved, achieving efficient and flexible region printing results.

CN116521100BActive Publication Date: 2026-11-10SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210082405.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2026-11-10
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

Existing regional printing methods require multiple distributions of original image data for region segmentation and processing, resulting in complex, inflexible, and low-operability computation processes.

Method used

By acquiring the original image printing data and the coordinate information of the area to be printed, the target image printing data is directly extracted from the original image for printing, avoiding the need to segment the image area and send data multiple times in the host computer. The Single-Pass and reciprocating scanning printing modes are used for flexible printing.

Benefits of technology

It reduces computational load and printing process, improves printing flexibility and efficiency, lowers production costs, and reduces the use of ink and printing media.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116521100B_ABST
    Figure CN116521100B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of printing technology and solves the technical problems of excessive computation and lack of flexibility in existing area printing methods. It provides an area printing method, apparatus, device, and storage medium. The area printing method includes: acquiring original image printing data and coordinate information of the area to be printed on the printing medium; extracting target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data; and outputting the target image printing data to print the target image in the area to be printed. This invention, by acquiring the original image printing data and the coordinate information of the area to be printed, and using the coordinates of the area to be printed and the corresponding target image printing data in the original image, eliminates the need to obtain original image information from a host computer for segmentation processing. This reduces computational load, reduces the response time of the lower-level computer, and allows for flexible printing of a specific area; it has the advantages of high flexibility and high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of printing technology, and more particularly to a method, apparatus, device, and storage medium for area printing. Background Technology

[0002] Inkjet printing technology refers to the technology of spraying ink droplets onto the printing medium through nozzles on a printhead to obtain images or text. It mainly includes reciprocating scanning printing and Single-Pass printing mode.

[0003] During the printing process, some areas of the printed image may not meet the requirements, necessitating analysis of these areas and often requiring reprinting. However, most existing methods for printing localized areas involve extracting the corresponding area from the original image data on the host computer and sending it to the slave computer to control printing. This requires re-sending the original image each time and performing segmentation calculations to determine the printing area. This necessitates sending the original image for each print run, involving multiple data transmissions and data segmentation processes, resulting in a complex printing process with numerous computational steps. Furthermore, each sent print data requires processing, making area segmentation inflexible and lacking in operability. Therefore, existing methods for printing localized areas suffer from technical problems such as excessive computation and inflexibility. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a region printing method, apparatus, device, and storage medium to solve the technical problems of existing region printing methods having many calculation processes and lacking flexibility.

[0005] In a first aspect, the present invention provides a region printing method, the method comprising:

[0006] Obtain the original image printing data and the coordinate information of the area to be printed on the printing medium;

[0007] Extract target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data;

[0008] The target image printing data is output and printed in the area to be printed to form the target image.

[0009] Furthermore, before acquiring the original image printing data and the coordinate information of the area to be printed, the method further includes: outputting the original image printing data and printing it on the printing medium to form the original image.

[0010] Furthermore, obtaining the original image printing data and the coordinate information of the area to be printed on the printing medium includes:

[0011] Determine the printing area corresponding to the sub-image in the original image that has a similarity to the target image that meets a preset condition;

[0012] Extract the sub-image printing data corresponding to the sub-image from the original image printing data according to the printing area;

[0013] The step of outputting the target image printing data and printing the target image in the area to be printed includes:

[0014] Output the sub-image printing data for printing.

[0015] Furthermore, the step of outputting the sub-image printing data for printing includes: outputting the sub-image printing data for supplementary printing in the printing area corresponding to the sub-image on the printing medium.

[0016] Furthermore, the step of outputting the sub-image print data and supplementing the printing area corresponding to the sub-image on the printing medium by printing further includes:

[0017] Determine the image units that need to be supplemented for printing in the sub-image corresponding to the printing area;

[0018] Obtain the coordinate information of the image units that need to be printed;

[0019] Based on the coordinate information of the image unit, the output of the image unit printing data corresponding to the image unit that needs to be supplemented in the sub-image printing data is controlled, and the printing data other than the image unit printing data in the sub-image printing data is blocked.

[0020] Furthermore, the step of outputting the target image printing data and printing it in the area to be printed to form the target image includes:

[0021] Determine the printing mode, which includes: Single-Pass printing mode and reciprocating scan printing mode;

[0022] The target image printing data is split according to the printing mode to obtain sub-target image printing data corresponding to the printing mode;

[0023] The target image is formed by outputting the sub-target image printing data in a preset order.

[0024] Furthermore, when the printing mode is a reciprocating printing mode, the step of outputting sub-target image printing data in a preset order to form the target image includes:

[0025] Obtain the output sub-target image printing data from the original image printing data;

[0026] The target image is formed by printing sub-target images other than the already output sub-target images in the output target image printing data.

[0027] In a second aspect, the present invention provides a printing apparatus, the apparatus comprising:

[0028] The acquisition module is used to acquire the original image printing data and the coordinate information of the area to be printed on the printing medium;

[0029] The extraction module is used to extract target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data;

[0030] The output module is used to output the target image printing data and print it in the area to be printed to form the target image.

[0031] Thirdly, the present invention provides a printing device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions, when executed by the processor, implement the method described in any of the above embodiments.

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

[0033] In summary, the beneficial effects of this invention are as follows: The region printing method of this invention only requires sending the original print image data once. During region printing, the data corresponding to the required data is extracted from the original print image data for printing. It eliminates the need to segment the region image in the host computer or send multiple print data. This solves the problems of existing region printing methods, which require cutting the required region image from the original image in the host computer and then controlling the printing of the corresponding information; multiple data sending during region printing, a cumbersome process; and the need to segment the original image, which has low flexibility and low operability. This method has advantages such as low computational load, simple process, reduced waiting time for the lower-level computer, and the ability to print any region corresponding to any coordinate point in the entire original image according to the coordinate system, resulting in high flexibility. Attached Figure Description

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

[0035] Figure 1This is a flowchart of the region printing method in Embodiment 1 of the present invention.

[0036] Figure 2-1 This is a schematic diagram of area printing using Single-Pass printing in Embodiment 1 of the present invention.

[0037] Figure 2-2 This is a schematic diagram of area printing using reciprocating scanning printing in Embodiment 1 of the present invention.

[0038] Figure 2-3 This is a schematic diagram of the original image printed using Single-Pass in Embodiment 1 of the present invention.

[0039] Figure 2-4 This is a schematic diagram of the target area printed using Single-Pass in Embodiment 1 of the present invention.

[0040] Figure 3 This is a partial flowchart of a method in Embodiment 2 of the present invention.

[0041] Figure 4 This is a partial flowchart of a method in Embodiment 2 of the present invention.

[0042] Figure 5 This is a schematic diagram of the nozzle arrangement in reciprocating scanning printing according to Embodiment 2 of the present invention.

[0043] Figure 6 This is a schematic diagram of the nozzle insertion point in Embodiment 2 of the present invention.

[0044] Figure 7 This is a flowchart of the method for printing the region in Embodiment 3 of the present invention.

[0045] Figure 8 This is a schematic diagram of the printing device according to Embodiment 4 of the present invention.

[0046] Figure 9 This is a schematic diagram of the printing device according to Embodiment 5 of the present invention. Detailed Implementation

[0047] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.

[0048] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0049] This invention provides a region printing method. The main concept is that only the original print image data needs to be sent once. When printing a specific region of the original print image is required, the data corresponding to that region is extracted from the original print image data and printed. This eliminates the need for segmenting the region image in the host computer and sending multiple print data. This solves the problems of existing technologies where printing a region requires segmenting the region image from the original image in the host computer and then sending the corresponding print data to the printer, resulting in multiple data transmissions, a cumbersome process, and low flexibility in segmenting the original image. This invention offers advantages such as low computational load, simple process, reduced waiting time for the lower-level computer, and the ability to print any region corresponding to any coordinate point in the original image according to the coordinate system, providing high flexibility.

[0050] The following is in conjunction with the appendix Figure 1 To be continued Figure 9 The present invention will be described in further detail below.

[0051] Example 1

[0052] Embodiment 1 of the present invention provides a region printing method for extracting at least one independent image region from an original image and then supplementing or overlaying it on other printing media or on an already printed original image using an inkjet printer. For example... Figure 1 As shown, the method includes:

[0053] S1. Obtain the original image printing data and the coordinate information of the area to be printed on the printing medium;

[0054] In step S1 above, the original image is the full-size original image during the printing process, that is, the complete image printed out, such as... Figure 2-1In the diagram, region A (the shaded area) represents the complete original image to be printed; the region to be printed is a local area within the original image. That is, after printing the original image, the region to be printed is printed based on the original image. Specifically, there can be N regions to be printed, where N is an integer greater than or equal to 1. For example... Figure 2-1 Regions a, b, and c in the diagram represent areas to be printed, which can be independent or partially overlapping. A planar coordinate system for the original image is established based on its pixels, and the printing data of the original image is saved. Specifically, the data corresponding to the original image is processed on the host computer and then sent to the inkjet printer, where it is stored in the printer's memory. When the image of the area to be printed is needed, the printing data of the original image stored in memory can be retrieved, eliminating the need for multiple processing and retransmissions from the host computer, thus speeding up the printing process.

[0055] The coordinate information of the area to be printed on the printing medium includes interval coordinates, starting printing coordinates, and ending printing coordinates, which form a continuous area; or the starting coordinates, width, and height of the area to be printed are obtained to obtain the entire area range of the area to be printed. The printing medium can be the printing medium carrying the original image, or it can be another printing medium (whose surface can have other images or be blank).

[0056] S2. Extract target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data;

[0057] In step S2 above, the coordinate information of the area to be printed is used to find the corresponding print data in the original image printing data, which is then used as the target area print data. In other words, only the original image printing data needs to be sent once. This original image printing data serves as a standard map, and the print data corresponding to the coordinates of the area to be printed is simply found and extracted from the original image printing data to serve as the target image printing data.

[0058] Specifically, the planar coordinate system of the area to be printed is set to the same coordinate system as the planar coordinate system of the original image. Alternatively, a separate planar coordinate system can be established for the area to be printed. When the planar coordinate system of the area to be printed is inconsistent with the planar coordinate system of the original image, the offset between the two coordinate systems needs to be calculated so that the coordinates of the area to be printed match the coordinates of the original image.

[0059] S3. Output the target image printing data and print it in the area to be printed to form the target image.

[0060] In step S3 above, the target image printing data extracted from step S2 can be used to print the corresponding target image area. The specific output method involves controlling the ink output from the printhead, such as... Figure 2-3 In the process, when it is necessary to print the pattern of area a, the printing data of area a is extracted and the data corresponding to area a is split into each nozzle to spray liquid. Alternatively, all printing data can be split into each nozzle, but the printing data outside of area a will not be represented by ink.

[0061] In this embodiment, the present invention acquires the original image printing data and the coordinate information of the area to be printed on the printing medium, directly acquiring and saving the original image printing data of the original image, eliminating the need to acquire the original image from the host computer for segmentation processing, reducing the amount of calculation and the number of times data is sent, thereby reducing the printer's response time; therefore, the operator only needs to confirm the coordinates of the area to be printed on the operating terminal to achieve rapid area printing; it can print a specified area according to any needs, with advantages such as high flexibility, high efficiency, and reduced costs.

[0062] In one specific implementation, when the printing medium is new, a planar coordinate system for the printing medium is established, and the pixel information of the original image is mapped onto the planar coordinate system of the printing medium. At this time, the printing data on the original image corresponds to the planar coordinate system of the printing medium, and the target area image printing data corresponding to the coordinates of the area to be printed is extracted. In other words, after mapping the pixel information of the original image onto the planar coordinate system of the printing medium, the area in the original image is selected by machine vision or human eye, thereby determining the coordinate information of the area to be printed on the printing medium.

[0063] In another embodiment, when the printing medium is a printing medium on which the original image has already been printed, a planar coordinate system can be directly established using the pixel information of the original image, and the coordinate information of the area to be printed can be obtained from the original printing medium. Of course, there is no single method for obtaining the coordinate information of the printing medium.

[0064] Furthermore, before acquiring the original image printing data and the coordinate information of the area to be printed, the method further includes: outputting the original image printing data and printing it on the printing medium to form the original image.

[0065] In this embodiment, when selecting a region to print, the method is typically based on machine vision or human judgment to determine which specific area in the already printed image needs to be printed. For example... Figure 2-3 In the middle, after the printed image A, Figure 2-3A shaded image indicates that the printed data is intact, thus the image within that area is considered intact. Visual judgment can be used to determine if any of the three regions (a, b, and c) has printing defects. The original image print data is sent once and saved. Then, the corresponding area data is extracted from this data to control inkjet printing. The original image print data can be stored in the lower-level machine, and the original image is output to obtain the original image. Based on the original image, it is determined which area needs confirmation printing or supplementary printing.

[0066] After outputting the original image, specific application scenarios for area printing include, but are not limited to, the following: First, the host computer sends the original image printing data and controls the printhead to print on the printing medium according to the original image to form the original image. During this process, the original image area may fail to meet requirements due to printhead issues (nozzle blockage, waveform not meeting requirements, inaccurate printing data in local areas, etc.) or external factors (scratches on the original image, such as defects on a battery casing, etc.). Figure 2-3 If the printing effect in the image has some defects, then the printing data for these unsatisfactory areas is extracted from the original image data and printed on other printing media to determine if there are errors in the printing data within that area causing printing defects. Only the defective parts are extracted for printing, resulting in the desired effect. Figure 2-4 The effect is as follows. The second method: In the first scenario, after confirming the print data for that area is correct, the print data for that area is used to supplement the print data of the area already printed on the original image that does not meet the requirements (for example, repairing imperfections on the already printed original image). Figure 2-1 In the first method, single-pass printing yields the complete original image A. In the second method, the original image is printed perfectly, but it's necessary to extract and print only a portion of the image, either by swapping the positions of some regions or by overlapping some regions onto other printed images.

[0067] The area printing method provided by this invention eliminates the need to reprint the entire original image when a local area of ​​the image needs to be reprinted. Printing only the area to be printed allows for verification of the accuracy of the printed data, reducing ink and printing media usage and thus lowering production costs. Area printing can also be used to supplement printing on printing media that has already printed the original image, repairing damaged original image quality and reducing waste of defective products. Furthermore, it allows for the overlapping printing of local areas from one image onto other areas of another image, enabling personalized customization and enhancing the printing experience.

[0068] Example 2

[0069] Example 2 further defines Example 1, and this example describes the case of supplementary printing on the printing medium of the original image. Specifically, as follows... Figure 3 As shown, obtaining the original image printing data and the coordinate information of the area to be printed on the printing medium includes:

[0070] S11. Determine the printing area corresponding to the sub-image in the original image that meets the preset condition of similarity with the target image;

[0071] In step S11 above, the preset conditions include at least one of the following: First, the similarity between the original and target images is greater than or equal to a preset value; Second, the similarity is lower than a preset value, and the specific value can be set according to the user's requirements for printing accuracy. It is usually set to 100%. These two situations mainly illustrate that area printing can be applied when errors occur during area printing or when the area image is damaged (second situation); or when extracting a local area from the entire image and changing its position or extracting a local area and overlapping it for printing on other printed images (first situation). After outputting the original image and confirming the target coordinates of the area to be printed, the target image can be confirmed.

[0072] The similarity between the original image and the target image can be determined by acquiring the original image using a machine vision acquisition unit, comparing it with the target image, and considering that a certain region does not meet the requirements as the region to be printed.

[0073] Extracting target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data includes:

[0074] S21. Extract sub-image printing data corresponding to the sub-image from the original image printing data according to the printing area;

[0075] like Figure 2-3 In the original image A, if region a does not meet the requirements, then the image corresponding to region a is determined to be a sub-image, and the print data corresponding to this region is the sub-image print data.

[0076] The step of outputting the target image printing data and printing the target image in the area to be printed includes:

[0077] S31. Output the sub-image printing data for printing.

[0078] In this embodiment, the area to be printed is a local region in the original image. Sub-regions that do not meet preset conditions are identified on the original image. In other words, regions that do not meet the requirements are selected from the printed original image for confirmation or supplementary printing. Specifically, when the similarity between the original image and the target region image does not meet a preset value, i.e., when there is a difference between the original image and the target image, pixels whose difference does not meet the preset value are extracted. The coordinates of these pixels are then extracted to obtain the coordinates of the pixels that do not meet the requirements. The region enclosed by these coordinates is identified as the area to be printed. Specifically, multiple adjacent coordinate lines form a coordinate cluster (e.g., ...). Figure 2-3 Regions a, b, and c in the text are considered as non-printable regions. Regions between non-adjacent coordinates are defined as non-printable regions (e.g., regions a, b, and c). Figure 2-3 (areas other than region a, region b, and region c); therefore, only the coordinates that need to be printed can be printed, that is, only the areas that do not meet the requirements can be printed, and no new printing media is needed; thus reducing ink usage, thereby reducing the use of printing media and thus reducing production costs.

[0079] Furthermore, the step of outputting the sub-image printing data for printing includes: outputting the sub-image printing data for supplementary printing in the printing area corresponding to the sub-image on the printing medium.

[0080] In this embodiment, sub-images that do not meet the requirements on the printing medium on which the original image has already been printed are identified. That is, sub-images in the original image that are missing printing information are found, and then the printing data of the corresponding sub-image is supplemented and printed onto the printing medium on which the original image has already been printed, so as to realize the area supplement printing and form the original image that is printed completely.

[0081] Furthermore, such as Figure 4 As shown, the step of supplementing the printing area corresponding to the sub-image in the printing medium by outputting the sub-image printing data further includes:

[0082] S311. Determine the image units in the sub-image corresponding to the printing area that need to be supplemented with printing. Since some data may have already been printed on the sub-image, the sub-image is analyzed and divided into several image units that need to be supplemented with printing. Specifically, the original image can be acquired through machine vision, and the pixels of the image units can be analyzed based on vision. The target image is then supplemented with printing to repair the image defects of the image units that need to be supplemented with printing in the original image. The image unit data includes several pixel points and their corresponding coordinate information.

[0083] S312. Obtain the coordinate information of the image units that need to be printed.

[0084] S313. Based on the coordinate information of the image unit, control the output of the image unit printing data corresponding to the image unit that needs to be supplemented in the sub-image printing data, and shield the printing data other than the image unit printing data in the sub-image printing data.

[0085] In this embodiment, as Figure 2-3 As shown, suppose the sub-image corresponding to region a in the figure has a defect, and some data has been covered on it; the sub-image is acquired through machine vision, and based on the sub-image analysis, the image unit printing data that needs to be supplemented and the position coordinate information of the corresponding image unit are determined; the image printing unit is controlled to output at the position corresponding to the image unit to obtain the complete image A, as shown. Figure 2-1 or Figure 2-2 As shown. Since some data has already been printed in the image on the printing medium for the sub-images that need to be supplemented, the printing data of the introduced image units is analyzed to determine the data that needs to be supplemented. Only the missing, unprinted image units are output, while the already printed data is shielded from ink, thus avoiding data overlap in the sub-image areas and affecting the aesthetics.

[0086] Furthermore, the step of outputting the target image printing data and printing it in the area to be printed to form the target image includes:

[0087] The printing mode is determined, including: Single-Pass printing mode and reciprocating scan printing mode.

[0088] The target image printing data is split according to the printing mode to obtain sub-target image printing data corresponding to the printing mode;

[0089] The target image is formed by outputting sub-target image printing data in a preset order. Printing is performed sequentially according to the printing data for each pass.

[0090] In this embodiment, the target image printing data is broken down according to the printing mode to obtain printing data corresponding to each pass, and then printed sequentially on the area to be printed. The printhead only moves within the corresponding area to be printed, and the number of printheads dispensing ink is controlled according to the size of the area to be printed. For example, if the length and width of the area to be printed correspond to the size of one printhead, then one printhead is controlled to dispense ink. The printhead only moves within the corresponding area to be printed, achieving complete printing of the area to be printed, thereby reducing the movement of the printhead and improving the printing speed.

[0091] Specifically, when using single-pass printing mode, such as Figure 2-1 As shown, three printheads are spliced ​​horizontally. The ink ejection order of these printheads is controlled according to the coordinates of the three specific areas a, b, and c. The printing carriage moves along... Figure 2-1 Move in the direction of the middle arrow Y. One movement will print the entire image, resulting in the complete original image A.

[0092] Specifically, when using reciprocating scan printing mode, such as Figure 2-2 As shown, the entire printhead module moves along the direction of arrow X, scanning once to achieve 1 pass of printing, and reciprocating scanning to achieve multi-pass printing overlay; then the printing medium moves along the direction of arrow Y to achieve wide overlay, and finally completes the restoration of the entire original image to obtain the complete original image A.

[0093] Furthermore, a printing module with spliced ​​printheads can be used to print the area to be printed, such as an interpolated printhead. Specifically, the number of interpolated points of the printhead is obtained, and the number of interpolated points corresponds to the number of passes; the number of interpolated points in Single-Pass printing mode is 1. The target image data is split into each printhead according to the number of interpolated points, and liquid is sprayed in one scan to achieve complete printing. Specifically, combined with Figure 5 as well as Figure 6 As shown, the number of insertion points for the nozzle is N. The nozzles are arranged in an insertion-point pattern. N-1 nozzles are inserted between the first and second nozzles of the first column, dividing the distance between the first and second nozzles of the first column into N equal parts. In this case, the number of insertion points is N. The insertion point arrangement is such that the end of each nozzle is stepped, forming a diagonal line connecting the corresponding nozzles in the channel. The insertion-point arrangement means that the first nozzle of the channel from the 2nd to the nth column is located between the first and second nozzles of the channel in the 1st column. The value of n can be set according to the accuracy requirements. Preferably, combined with... Figure 5 as well as Figure 6 Five printheads are joined at interlocking points. In each printhead, the distance between the first and second nozzles in the channel is d. The second printhead's interlocking point is positioned so that its first nozzle falls at a distance d / 5 from the first nozzle in the first column; the third printhead's first nozzle also falls at a distance d / 5 from the first nozzle in the first column; and so on. In other words, N printheads are joined at interlocking points, dividing the distance between the first and second nozzles of the first printhead into N equal parts. The first nozzles of the other N-1 printheads are then sequentially positioned within these N equal parts. All the interlocked printheads spray a single-color ink onto the printing medium; that is, this arrangement along the first direction forms a single-color printing printhead.

[0094] If each printhead column has 360 DPI, then the total number of pixels in the original image is 360 DPI * N. Based on the number of interpolation points and the printing data of the entire original image, such as the number of pixels in the original image, the ink output information corresponding to a single nozzle is calculated.

[0095] Furthermore, when the printing mode is a reciprocating printing mode, the step of outputting sub-target image printing data in a preset order to form the target image includes:

[0096] Obtain the output sub-target image printing data from the original image printing data;

[0097] The target image is formed by printing sub-target images other than the already output sub-target images in the output target image printing data.

[0098] In reciprocating scanning printing, the printing process often encounters interruptions during a particular pass, such as when printing area 'a'. Alternatively, the first pass might print normally, but subsequent passes may be missing, resulting in incomplete print data. In this case, ink is not printed on the already printed passes, while the remaining passes continue printing. This allows for the supplementary printing of missing passes. Specifically, the missing print data can be extracted and re-distributed to different printheads or passes to correct defects in the original image.

[0099] Example 3

[0100] This third embodiment is a further improvement on the first or second embodiment, such as... Figure 7 As shown, printing the target image by outputting the target image printing data in the area to be printed to form the target image includes:

[0101] S321. Obtain the relative positional relationship between the nozzle and the original image;

[0102] S322. Confirm the position of the ink nozzles from the printhead based on the aforementioned positional relationship.

[0103] In this embodiment, a planar coordinate system is established using the nozzle, the positional relationship between the nozzle and the original image's planar coordinate system is determined, and the offset m between the nozzle and the original image's coordinate system is calculated. Preferably, the offset m is set to Xa, which facilitates the calculation of the nozzle position. A single nozzle has several channels, and each channel has several nozzles. In the nozzle's planar coordinate system, the initial offset of the first channel of the first nozzle relative to the nozzle's coordinate system is xoffset.

[0104] by Figure 2-1 Taking Single-Pass printing as an example, the specific details are as follows: Obtain the number of printhead insertion points and the white border; calculate the printhead ink nozzle position using the following formulas: Along the printhead channel direction (paper feed direction): ((d+Xa) / a, (d+Xa+w) / a); Along the printing direction: (Ya, Ya+h); For example... Figure 2-1 As shown, where a is the number of interpolation points, b is the white border, Xa is the coordinate of the printing channel direction, w is the width of the area to be printed, y is the coordinate of the printing direction, and h is the height of the area to be printed. The white border is the distance between the y-axis of the coordinate system and the edge of the original image closest to the y-axis. Specifically, to facilitate the positioning of the printing medium, a planar coordinate system is usually established with one of the top corners of the printing medium as the origin. For aesthetic purposes, the original image is printed in the center, resulting in a certain white border between the original image and the edge of the printing medium, or the axis of the planar coordinate system. This is how the coordinate system of the printing area is determined.

[0105] Preferably, the step of obtaining the relative positional relationship between the printhead and the original image includes: obtaining the offset of the first channel of the first printhead; and determining the nozzle position for ink ejection from the printhead based on the offset of the first channel of the first printhead. The offset of the first channel is the distance between the first ink ejection nozzle and the first nozzle of the original printhead; for example, if the first ink ejection nozzle is the nth nozzle and the first nozzle is the 1st nozzle, then the offset of the first channel of the first printhead is n; therefore, the channel offset can be set to eject ink from the specified nozzle position of the image to be printed, such as printing the print data of region a to region b. In this way, the print data of any region to be printed can be arbitrarily selected and printed to other positions, thus making printing more flexible.

[0106] Example 4

[0107] Example 4 provides a printing device, such as Figure 8 As shown, the device includes:

[0108] Module 1 is used to acquire the original image printing data and the coordinate information of the area to be printed on the printing medium; the original image is the full-size original image during the printing process, i.e., the complete image printed out, such as... Figure 2-1 In the diagram, region A (the shaded area) represents the complete original image to be printed; the region to be printed is a local area within the original image. That is, after printing the original image, the region to be printed is printed based on the original image. Specifically, there can be N regions to be printed, where N is an integer greater than or equal to 1. For example... Figure 2-1 Regions a, b, and c in the diagram represent areas to be printed, which can be independent or partially overlapping. A planar coordinate system for the original image is established based on its pixels, and the printing data of the original image is saved. Specifically, the data corresponding to the original image is processed on the host computer and then sent to the inkjet printer, where it is stored in the printer's memory. When the image of the area to be printed is needed, the printing data of the original image stored in memory can be retrieved, eliminating the need for multiple processing and retransmissions from the host computer, thus speeding up the printing process.

[0109] The coordinate information of the area to be printed on the printing medium includes interval coordinates, starting printing coordinates, and ending printing coordinates, which form a continuous area; or the starting coordinates, width, and height of the area to be printed are obtained to obtain the entire area range of the area to be printed. The printing medium can be the printing medium carrying the original image, or it can be another printing medium (whose surface can have other images or be blank).

[0110] Extraction module 2 is used to extract target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data. It searches the original image printing data for the coordinate information of the area to be printed to find the corresponding printing data, which is then used as the target area printing data. In other words, only one set of original image printing data needs to be sent. This original image printing data serves as a standard atlas, and only the printing data corresponding to the coordinates of the area to be printed needs to be found and extracted as the target image printing data. Specifically, the planar coordinate system of the area to be printed and the planar coordinate system of the original image are set to the same coordinate system. Alternatively, a separate planar coordinate system can be established for the area to be printed. When the planar coordinate system of the area to be printed is inconsistent with the planar coordinate system of the original image, the offset between the two coordinate systems needs to be calculated to match the coordinates of the area to be printed with the coordinates of the original image.

[0111] Output module 3 is used to output the target image printing data and print it on the area to be printed to form the target image. Specifically, the output method involves controlling the ink output from the printhead, such as... Figure 2-3 In the process, when it is necessary to print the pattern of area a, the printing data of area a is extracted and the data corresponding to area a is split into each nozzle to spray liquid. Alternatively, all printing data can be split into each nozzle, but the printing data outside of area a will not be represented by ink.

[0112] The printing device provided in this embodiment uses the acquisition of original image printing data and the coordinate information of the area to be printed on the printing medium. It directly acquires and saves the original image printing data, eliminating the need to acquire and segment the original image from the host computer. This reduces the amount of computation and the number of times data is sent, thereby reducing the printer's response time. Therefore, the operator only needs to confirm the coordinates of the area to be printed at the operating terminal to quickly achieve area printing. It can print any specified area according to any needs, and has the advantages of high flexibility, high efficiency, and reduced costs.

[0113] The printing apparatus further includes a printing module for outputting the original image printing data and printing it on the printing medium to form the original image.

[0114] When selecting areas for printing, the method is usually based on machine vision or human judgment to determine which specific area of ​​an already printed image needs to be printed. For example... Figure 2-3 In the middle, after the printed image A, Figure 2-3 A shaded image indicates that the printed data is intact, thus the image within that area is considered intact. Visual judgment can be used to determine if any of the three regions (a, b, and c) has printing defects. The original image print data is sent once and saved. Then, the corresponding area data is extracted from this data to control inkjet printing. The original image print data can be stored in the lower-level machine, and the original image is output to obtain the original image. Based on the original image, it is determined which area needs confirmation printing or supplementary printing.

[0115] After outputting the original image, specific application scenarios for area printing include, but are not limited to, the following: First, the host computer sends the original image printing data and controls the printhead to print on the printing medium according to the original image to form the original image. During this process, the original image area may fail to meet requirements due to printhead issues (nozzle blockage, waveform not meeting requirements, inaccurate printing data in local areas, etc.) or external factors (scratches on the original image, such as defects on a battery casing, etc.). Figure 2-3 If the printing quality in the original image has some defects, then the printing data for these unsatisfactory areas is extracted from the original image data and printed on other printing media to determine whether there are errors in the printing data within that area that caused the printing defects. Figure 2-4 In the process, only the defective parts are extracted and printed, resulting in the following: Figure 2-4 The effect is as follows. The second method: In the first scenario, after confirming the print data for that area is correct, the print data for that area is used to supplement the print data of the area already printed on the original image that does not meet the requirements (for example, repairing imperfections on the already printed original image). Figure 2-1 In the first method, single-pass printing yields the complete original image A. In the second method, the original image is printed perfectly, but it's necessary to extract and print only a portion of the image, either by swapping the positions of some regions or by overlapping some regions onto other printed images.

[0116] The area printing method provided by this invention eliminates the need to reprint the entire original image when a local area of ​​the image needs to be reprinted. Printing only the area to be printed allows for verification of the accuracy of the printed data, reducing ink and printing media usage and thus lowering production costs. Area printing can also be used to supplement printing on printing media that has already printed the original image, repairing damaged original image quality and reducing waste of defective products. Furthermore, it allows for the overlapping printing of local areas from one image onto other areas of another image, enabling personalized customization and enhancing the printing experience.

[0117] Furthermore, the acquisition module is also used to determine the printing area corresponding to the sub-image in the original image that meets the preset similarity condition with the target image; the extraction module is also used to extract the sub-image printing data corresponding to the sub-image from the original image printing data according to the printing area; the output module is also used to output the sub-image printing data for printing. This printing device acquires sub-images with defects in the original image based on the already printed original image; the sub-image is a certain area in the original image. It can extract the corresponding printing data based on the sub-image and perform printing.

[0118] Furthermore, the output module is used to output the sub-image printing data to the printing area corresponding to the sub-image on the printing medium for supplementary printing. This printing device performs supplementary and repair printing on an already printed printing medium.

[0119] The printing device includes Single-Pass printing mode and reciprocating scan printing mode, and splits the print data in different ways according to different printing modes. The specific implementation method is as described in any of the above embodiments of the area method, and will not be described in detail again.

[0120] Example 5

[0121] Example 5 provides a printing device, including: at least one processor 301, at least one memory 302, and computer program instructions stored in the memory, which, when executed by the processor, implement the area printing method described in any of the above embodiments. (In conjunction with...) Figure 9 The area printing method described in this embodiment of the invention can be implemented by a printing device. Figure 9 A schematic diagram of the hardware structure of the printing device provided in an embodiment of the present invention is shown.

[0122] The printing device may include a processor 301 and a memory 302 storing computer program instructions.

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

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

[0125] The processor 301 implements any of the area printing methods in the above embodiments by reading and executing computer program instructions stored in the memory 302.

[0126] In one example, the printing device may also include a communication interface 303 and a bus 310. For example, Figure 9 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.

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

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

[0129] Example 6

[0130] In conjunction with the area printing methods described in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by the processor 301, they implement any of the area printing methods described in the above embodiments.

[0131] In summary, the region printing method, apparatus, device, and storage medium provided in the embodiments of the present invention directly acquire the printing data of the original image and the coordinate information of the region to be printed, and extract the target printing data corresponding to the coordinates of the region to be printed from the original image printing data; thus realizing region printing. It can be applied to confirming region printing data, repairing and supplementing printed original images with defects, and extracting local area images from a certain original image and printing them onto other media. The region printing method provided by the present invention does not require segmentation processing of the original image from the host computer, reducing the amount of computation; it reduces the number of data transmissions, thereby reducing the printer's response time; and it can print based on directly corresponding coordinates, offering advantages of high flexibility and high efficiency. Based on region printing, the present invention also provides a printing apparatus. This apparatus employs any of the region printing methods described above, and has the advantages of being able to print locally, not requiring multiple transmissions of printing data, reducing printer response time, and being able to print based on directly corresponding coordinates, offering advantages of high flexibility and high efficiency.

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

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

[0134] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0135] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A method for printing a region, characterized in that, The method includes: The original image printing data is printed on the printing medium to form the original image. The data corresponding to the original image is processed in the host computer and then sent to the inkjet printer and stored in the memory of the inkjet printer. Obtaining the original image printing data stored in the memory and the coordinate information of the area to be printed on the printing medium, the process of obtaining the original image printing data stored in the memory and the coordinate information of the area to be printed on the printing medium includes: determining the printing area corresponding to the sub-image in the original image that meets the preset condition of similarity with the target image; Extracting target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data includes: extracting sub-image printing data corresponding to the sub-image from the original image printing data according to the printing area, and using the sub-image printing data as the target image printing data; The process of printing the target image data in the printing area to form a target image includes: determining the image units that need to be supplemented in the sub-image corresponding to the printing area; obtaining the coordinate information of the image units that need to be supplemented; controlling the output of the image unit printing data corresponding to the image unit that needs to be supplemented in the sub-image printing data according to the coordinate information of the image unit, and shielding the printing data other than the image unit printing data in the sub-image printing data, so as to output the image unit printing data for supplementary printing in the printing area corresponding to the sub-image in the printing medium; obtaining the relative positional relationship between the printhead and the original image; determining the nozzle position of the printhead for ink output according to the relative positional relationship, and outputting the image unit printing data according to the nozzle position.

2. The area printing method according to claim 1, characterized in that, The process of obtaining the relative positional relationship between the nozzle and the original image includes: establishing a planar coordinate system with the nozzle, determining the positional relationship between the nozzle and the planar coordinate system of the original image, and calculating the offset between the nozzle and the coordinate system of the original image; wherein, a single nozzle is provided with several channels, and each channel is provided with several nozzles, and in the planar coordinate system of the nozzle, the first channel of the first nozzle has an initial offset relative to the coordinate system of the nozzle.

3. The area printing method according to claim 2, characterized in that, The step of determining the nozzle position for ink output from the printhead based on the relative positional relationship includes: obtaining the offset of the first channel of the first printhead; and determining the nozzle position for ink output from the printhead based on the offset of the first channel of the first printhead.

4. The area printing method according to claim 1, characterized in that, The step of outputting the image unit printing data according to the nozzle position includes: Determine the printing mode, which includes: Single-Pass printing mode and reciprocating scan printing mode; The target image printing data is split according to the printing mode to obtain sub-target image printing data corresponding to the printing mode; The target image is formed by outputting the sub-target image printing data in a preset order.

5. The area printing method according to claim 4, characterized in that, When the printing mode is a reciprocating printing mode, the step of outputting the sub-target image printing data in a preset order to form the target image includes: Obtain the output sub-target image printing data from the original image printing data; The target image is formed by printing sub-target images other than the already output sub-target images in the output target image printing data.

6. A printing apparatus, characterized in that, The device includes: The original image output module is used to output the original image printing data to print on the printing medium to form the original image, and to process the data corresponding to the original image in the host computer and send it to the inkjet printer terminal, and store it in the memory of the inkjet printer terminal. The acquisition module is used to determine the printing area corresponding to the sub-image in the original image that meets the preset condition of similarity with the target image, and to acquire the original image printing data stored in the memory and the coordinate information of the area to be printed on the printing medium. An extraction module is used to extract target image printing data corresponding to the coordinate information of the area to be printed from the original image printing data, wherein the target image printing data includes sub-image printing data corresponding to the sub-image extracted from the original image printing data according to the printing area; An output module is used to output the target image printing data and print it in the area to be printed to form a target image. The output module is used to determine the image units that need to be supplemented in the sub-image corresponding to the printing area, obtain the coordinate information of the image units that need to be supplemented, and control the output of the image unit printing data corresponding to the image unit that needs to be supplemented in the sub-image printing data according to the coordinate information of the image unit. The output module also controls the output of the image unit printing data and controls the output of the image unit printing data. The output module is used to supplement the printing in the printing area corresponding to the sub-image in the printing medium. The nozzle position confirmation module is used to obtain the relative positional relationship between the printhead and the original image, and to confirm the nozzle position of the printhead when ink is emitted, so that the output module outputs the image unit printing data according to the nozzle position.

7. A printing device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-5.

8. A storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by a processor, the method as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Image local area printing method and device and storage medium

    CN110347356A

  • High-accuracy digital printing method and equipment, computer equipment and storage medium thereof

    CN112848728A