Printing method and device based on point data position adjustment, equipment and storage medium
By dividing the inkjet printed image dot matrix data into several units and swapping their positions, the overlapping problem caused by inconsistent ink dot diffusion on the printing medium is solved, thus improving image quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SENDA SHENZHEN TECH CO LTD
- Filing Date
- 2022-09-30
- Publication Date
- 2026-07-10
AI Technical Summary
During inkjet printing, the ink droplets diffuse unevenly along different directions on the printing medium, resulting in ink droplet overlap (stringing), which affects image quality, especially when using large ink droplets.
The dot matrix data of the image to be printed is divided into several image dot matrix units. The positions of the dot data are swapped according to the diffusion rate of ink dots in the first and second directions on the printing medium and the amount of ink, so as to form new image dot matrix units for inkjet printing.
It reduces ink droplet overlap on the printing medium due to diffusion, improves image quality, and in particular reduces streaking.
Smart Images

Figure CN117841552B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to a printing method, apparatus, device, and storage medium based on dot data position switching. Background Technology
[0002] In industrial inkjet printing, the printhead forms an image by ejecting ink droplets onto the printing medium. However, due to the material properties of some inks or printing media, the diffusion degree of ink droplets in the first and second directions may be inconsistent when they land on the printing medium. For example... Figure 1a As shown, L1 represents the first direction of the printing medium, and L2 represents the second direction. Ideally, the printhead ejects ink droplets onto the printing medium along the printing direction, and the ink droplets spread evenly in both directions (L1 and L2), resulting in a uniform image formation. However, in actual printing, the ink may spread unevenly in the L1 and L2 directions. For example, the diffusion of ink droplets in the L1 direction may be greater than that in the L2 direction, leading to issues such as... Figure 1b The ink droplets shown overlap in the L1 direction due to greater diffusion, a phenomenon referred to as "stringing." Inkjet printing typically uses ink droplets of varying sizes (large, medium, small), and this "stringing" problem is more likely to occur, especially when large ink droplets are ejected, thus affecting the final printed image quality. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a printing method, apparatus, device and storage medium based on point data position swapping to solve the problems of printing based on point data position swapping in the prior art.
[0004] In a first aspect, embodiments of the present invention provide a printing method based on dot data position transposition, the method comprising:
[0005] The dot matrix data of the image to be printed is divided into several first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes.
[0006] Obtain the ink volume of each point in the first image dot matrix unit;
[0007] The positions of the dot data are swapped based on the first direction diffusion rate, the second direction diffusion rate of the ink dots on the printing medium and the ink volume of each dot data to obtain the second image dot matrix unit.
[0008] Inkjet printing is performed based on the new image dot matrix data composed of the second image dot matrix unit.
[0009] Preferably, the first image dot matrix unit is an n×n data matrix, where n is a natural number greater than or equal to 2. The step of rearranging the positions of the dot data according to the ink's diffusion rate in the first direction, the diffusion rate in the second direction, and the ink volume of each dot data to obtain the second image dot matrix unit includes:
[0010] Obtain the first-direction diffusion rate and the second-direction diffusion rate of ink droplets on the printing medium;
[0011] When the diffusion rate in the first direction is greater than the diffusion rate in the second direction, the positions of the data points in the i-th row with ink amounts greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th column with ink amounts less than a preset ink amount threshold. Data points that have already been swapped are not swapped again. i = 1, 2, ..., n.
[0012] When the diffusion rate in the first direction is less than the diffusion rate in the second direction, the positions of the data points in the i-th column with ink amounts greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th row with ink amounts less than a preset ink amount threshold. Data points that have already been swapped are not swapped again. i = 1, 2, ..., n.
[0013] The image dot matrix unit whose position has been swapped after acquiring the point data is denoted as the second image dot matrix unit;
[0014] The point data in the i-th row corresponds to the point data in the first direction; the point data in the j-th row corresponds to the point data in the second direction.
[0015] Preferably, after the step of rearranging the positions of the dot data according to the ink's first directional diffusion rate, second directional diffusion rate, and the ink volume of each dot data on the printing medium to obtain the second image dot matrix unit, the method further includes:
[0016] Obtain the ink volume of each point data within the second image dot matrix unit;
[0017] When the ink volume of two adjacent data points in any row / column is simultaneously greater than or equal to a preset ink volume threshold, the position of either of the two adjacent data points is swapped with that of a data point in the adjacent row / column whose ink volume is less than the preset ink volume threshold.
[0018] Preferably, the first image dot matrix unit, which divides the dot matrix data of the image to be printed into several units, includes:
[0019] The dot matrix data of the image to be printed is divided into several first image dot matrix units of equal size.
[0020] Preferably, dividing the dot matrix data of the image to be printed into a plurality of first image dot matrix units includes:
[0021] The dot matrix data of the image to be printed is divided into several first image dot matrix units of different sizes.
[0022] Preferably, dividing the image data to be printed into several first image data matrix units includes:
[0023] The dot matrix data of the image to be printed is divided into several first image dot matrix units of equal size, with adjacent first image dot matrix units partially overlapping.
[0024] Preferably, dividing the image data to be printed into a plurality of first image dot matrix units includes:
[0025] The dot matrix data of the image to be printed is divided into a first data region and a second data region.
[0026] The first part of the data region is divided into several first-type image dot matrix units of equal size, and two adjacent first-type image dot matrix units partially overlap.
[0027] The second part of the data area is divided into several second-type image dot matrix units of equal size, and the data of each second-type image dot matrix unit is different;
[0028] The first type of image dot matrix unit and the second type of image dot matrix unit constitute the first image electronic unit.
[0029] Secondly, embodiments of the present invention provide a printing apparatus based on dot data position switching, the apparatus comprising:
[0030] The partitioning module is used to divide the dot matrix data of the image to be printed into several first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes.
[0031] The ink volume acquisition module is used to acquire the ink volume of each point in the first image dot matrix unit.
[0032] The position switching module is used to switch the position of the dot data according to the first direction diffusion rate, the second direction diffusion rate of the ink dots on the printing medium and the ink volume of each dot data, so as to obtain the second image dot matrix unit.
[0033] The printing module is used to perform inkjet printing based on the new image dot matrix data composed of the second image dot matrix units.
[0034] Thirdly, embodiments of the present invention provide a printing device based on dot data position switching, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method of the first aspect described above is implemented.
[0035] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.
[0036] In summary, the beneficial effects of the present invention are as follows:
[0037] The printing method, apparatus, device, and storage medium based on dot data position swapping provided in this invention divides the dot matrix data of the image to be printed into several image dot matrix units, and swaps the positions of the dot data in each image dot matrix unit according to the different diffusion degrees of ink dots in the first and second directions of the printing medium, thereby reducing the overlap of ink dots due to diffusion when ink dots are sprayed onto the printing medium and improving image quality. Attached Figure Description
[0038] 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.
[0039] Figure 1a This is a schematic diagram of how ink dots are uniformly dropped onto a printing medium to form an image in the background art of this invention.
[0040] Figure 1b This is a schematic diagram of ink dots overlapping in a first direction of the printing medium in the background art of this invention.
[0041] Figure 2 This is a flowchart illustrating the printing method based on point data position swapping in an embodiment of the present invention.
[0042] Figure 3 This is a schematic diagram of a first image dot matrix unit division method in an embodiment of the present invention.
[0043] Figure 4 This is a schematic diagram illustrating the positional swapping of point data in an embodiment of the present invention.
[0044] Figure 5 This is a schematic diagram of a first image dot matrix unit division method in an embodiment of the present invention.
[0045] Figure 6 This is a schematic diagram of a first image dot matrix unit division method in an embodiment of the present invention.
[0046] Figure 7 This is a schematic diagram of a first image dot matrix unit division method in an embodiment of the present invention.
[0047] Figure 8 This is a schematic diagram of the printing device based on point data position switching in an embodiment of the present invention.
[0048] Figure 9 This is a schematic diagram of the printing device based on point data position switching in an embodiment of the present invention. Detailed Implementation
[0049] 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.
[0050] 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.
[0051] Example 1
[0052] This invention provides a printing method based on dot data position switching, applicable to applications such as reciprocating multi-pass scanning inkjet printing and single-pass inkjet printing. In reciprocating multi-pass scanning inkjet printing, the printhead moves reciprocally along the scanning direction, ejecting ink dots onto the printing medium to form an image; while in single-pass inkjet printing, the printhead remains stationary, and the printing medium moves perpendicular to the printhead alignment direction, ejecting ink dots onto the printing medium to form an image.
[0053] Please see Figure 2 This invention provides a printing method based on point data position swapping, comprising the following steps:
[0054] S1: Divide the dot matrix data of the image to be printed into several first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes.
[0055] S2: Obtain the ink volume of each point in the first image dot matrix unit;
[0056] S3: Based on the first direction diffusion rate, the second direction diffusion rate of ink dots on the printing medium and the ink volume of each dot data, the position of the dot data is changed to obtain the second image dot matrix unit.
[0057] S4: Perform inkjet printing based on the new image dot matrix data composed of the second image dot matrix unit.
[0058] In one embodiment, when using reciprocating scanning inkjet printing, the first direction is the printing direction, and the second direction is perpendicular to the printing direction; when using single-pass inkjet printing, the first direction is the printing medium movement direction, and the second direction is perpendicular to the movement direction. If the printed image is prone to "stringing" in the first direction of the printing medium, it indicates that the ink diffuses more strongly in the first direction than in the second direction on the surface of the printing medium, and larger ink droplets are more likely to overlap. The magnitude of the diffusion rate in the first and second directions is determined by various factors. For example, if the print image has different densities (DPI) in the first and second directions, the diffusion rate may also be different; when the print image has the same densities (DPI) in the first and second directions, since the first direction is the printing direction, the ink droplet diffusion rate in the first direction may be greater than that in the second direction due to inertia under the influence of printing speed. Furthermore, the material properties of the printing medium itself may also cause the ink droplet diffusion in the first and second directions to differ. For example, in textile materials, the weave texture along the first direction may differ from that in the second direction, resulting in different ink diffusion in these two directions. In one embodiment, an image is printed on a printing medium to perform a printing test, and the diffusion rate in the first direction and the diffusion rate in the second direction are obtained based on the diffusion of ink in the first direction and the second direction.
[0059] In this embodiment, the dot matrix data of the image to be printed is divided into several image dot matrix units (denoted as the first image dot matrix unit), and this type of problem is reduced by adjusting the position of the dot data in each first image dot matrix unit. The dot matrix data of the image to be printed here includes multiple dot data representing different ink volumes. Each dot data corresponds to controlling the printhead to eject one ink dot; different ink volumes result in different dot sizes. The sizes of the divided image dot matrix units can be equal or unequal. For example, as shown... Figure 3As shown, the dot matrix data of the image to be printed is divided into several 3×3 image dot matrix units of equal size, where the first direction L1 of the image to be printed corresponds to the first direction of the printing medium. In this embodiment, the first image dot matrix units do not overlap. After dividing the first image dot matrix units, the ink volume of the dot data in each first image dot matrix unit is obtained sequentially. Considering that the diffusion degree (diffusion rate) of ink dots in the first direction and the diffusion degree (diffusion rate) in the second direction on the printing medium are different, it is necessary to adjust the position of the dot data according to the diffusion characteristics of ink dots in the printing medium. For example, when the diffusion degree of ink dots in the first direction is greater than the diffusion degree in the second direction, the dot data with larger ink volume in the image dot matrix unit are arranged in columns (second direction) as much as possible, thereby reducing the situation where consecutive ink dots are all large ink dots in the first direction of the printing medium, thus reducing the "stringing" phenomenon and improving the image printing quality.
[0060] In one embodiment, the dot matrix data of the image to be printed is divided into several equal-sized n×n first image dot matrix units, where n is a natural number greater than or equal to 2. Dot data in the first direction are mapped to row-direction dot data, and dot data in the second direction are mapped to column-direction dot data. The second image dot matrix unit is obtained by rearranging the positions of the dot data according to the ink diffusion rate in the first direction, the diffusion rate in the second direction, and the ink volume of each dot data unit on the printing medium. This includes the following steps:
[0061] S31: Obtain the first-direction diffusion rate and the second-direction diffusion rate of ink droplets on the printing medium;
[0062] S32: When the diffusion rate in the first direction is greater than the diffusion rate in the second direction, the positions of the data points in the i-th row with ink amounts greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th column with ink amounts less than a preset ink amount threshold; wherein, data points that have already been swapped are not swapped again, i = 1, 2, ..., n;
[0063] S33: When the diffusion rate in the first direction is less than the diffusion rate in the second direction, the positions of the data points in the i-th column with ink amounts greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th row with ink amounts less than a preset ink amount threshold; wherein, data points that have already been swapped are not swapped again, i = 1, 2, ..., n;
[0064] S34: The image dot matrix unit after the position of the acquired point data is changed, denoted as the second image dot matrix unit.
[0065] In another embodiment, after step S34, the method further includes:
[0066] S34: Obtain the ink volume of each point data in the second image dot matrix unit;
[0067] S35: When the ink volume of two adjacent data points in any row / column is simultaneously greater than or equal to a preset ink volume threshold, swap the positions of any one of the two adjacent data points with any one of the data points in the adjacent row / column whose ink volume is simultaneously less than the preset ink volume threshold.
[0068] A preset ink volume threshold can be set to distinguish between large and small ink dots printed onto the printing medium. Ink dots with an ink volume greater than or equal to the preset threshold are considered large ink dots. If the diffusion rate of ink dots in the first direction on the printing medium is greater than that in the second direction, then according to step S32 above, large ink dots in the image dot matrix unit are arranged as far as possible in columns (second direction), and small ink dots are arranged as far as possible in the first direction. After swapping all rows (first direction) of large ink dots and all columns (second direction) of small ink dots, there may still be a situation where there are consecutive large ink dots in a certain row. In this case, it is necessary to check whether there are consecutive small ink dots in the adjacent rows. If so, the large ink dots in that row are swapped with the small ink dots in the adjacent rows, thereby reducing the occurrence of consecutive large ink dots in the first direction of the printing medium, thus alleviating the "stringing" phenomenon and improving the image printing quality.
[0069] Similarly, if the diffusion rate of ink dots in the second direction on the printing medium is greater than that in the first direction, then according to the above step S33, large ink dots in the image dot matrix unit are arranged in rows (first direction) as much as possible, and small ink dots are arranged in the second direction as much as possible. After swapping the large ink dots in all columns and the small ink dots in all rows, there may still be a situation where there are consecutive large ink dots in a certain column. At this time, we will check whether there are consecutive small ink dots in the columns adjacent to that column. If so, we will swap the large ink dots in that column with the small ink dots in the adjacent columns, thereby reducing the situation where there are consecutive large ink dots in the column direction on the printing medium, thereby alleviating the column-direction "stringing" phenomenon and improving the image printing quality.
[0070] In another embodiment, two preset ink volume thresholds (a first preset ink volume threshold and a second preset ink volume threshold) can be set, and ink dots can be distinguished into large ink dots, medium ink dots, and small ink dots according to these two preset ink volume thresholds. For example, when the ink volume of an ink dot is less than or equal to 5PL, such ink dots are small ink dots (S dots); when the ink volume of an ink dot is greater than 5PL but less than or equal to 10PL, such ink dots are medium ink dots (M dots); and when the ink volume of an ink dot is greater than or equal to 10PL, such ink dots are large ink dots (L dots).
[0071] When the diffusion rate of the printing medium in the first direction is greater than that in the second direction, the positions of the large and medium dots in the first direction are swapped with the positions of the medium and small dots in the second direction when the ink dots are swapped. When there are consecutive large dots in the first direction, they are swapped with the medium or small dots of the adjacent row.
[0072] like Figure 4 As shown, the dot matrix data of the image to be printed is divided into several equal-sized 3×3 first image dot matrix units. Point L represents dot data with an ink volume greater than or equal to a first preset ink volume threshold (large ink dots), point M represents dot data with an ink volume less than the first preset ink volume threshold but greater than or equal to a second preset ink volume threshold, and point S represents dot data with an ink volume less than the second preset ink volume threshold. In... Figure 4 In the 3×3 image dot matrix unit shown, the first row has two large ink dots and one medium ink dot, while the first column has one medium ink dot and one small ink dot. Therefore, the positions of one large ink dot in the first row and one medium ink dot in the first column are swapped, and the positions of the medium ink dot in the first row and one small ink dot in the first column are swapped. After completing the position swapping of the dots in the first row and first column, the position swapping of the dots in the second row and second column begins. Since the dots in the first row and first column of the second row and the first column of the second column have already been swapped, no further swapping is needed. Therefore, only the large ink dot in the second row and second column and the small ink dot in the third column of the second column are swapped, resulting in the second image dot matrix unit with swapped dot positions. This process is repeated for all the dots in the first image dot matrix unit, resulting in the second image dot matrix data. All the second image dot matrix data form the dot matrix data of the new image to be printed. Based on the new dot matrix data of the image to be printed, the printhead is controlled to dispense ink and print the image, thereby reducing the "stringing" phenomenon.
[0073] In one embodiment, when dividing the dot matrix data of the image to be printed into several image dot matrix units, it can be divided into several first image dot matrix units of different sizes according to the degree of detail variation in different regions of the image to be printed. For example... Figure 5 As shown, when the upper and lower regions of the image to be printed have significant changes in details such as color, the image dot matrix units can be divided into smaller units. Conversely, when the middle region does not have many changes in details, the image dot matrix units can be divided into larger units to improve computational efficiency.
[0074] In another embodiment, it can also be as follows Figure 6 The method shown divides the dot matrix data of the image to be printed into several n×n first image dot matrix units of equal size. Figure 6In the diagram, 3×3 image dot matrix units 1, 2, and 3×3 are overlapping. The first two columns of image dot matrix unit 2 are the data from the last two columns of image dot matrix unit 1, and the first two columns of image dot matrix unit 3 are the data from the last two columns of image dot matrix unit 2, and so on, until the first three rows of the dot matrix data of the image to be printed are divided into several 3×3 image dot matrix units of equal size. Then, the dot matrix data from the fourth to the sixth rows are divided in the same way as the first to the third rows above, and so on, until the dot matrix data of the image to be printed is completely divided. It is worth noting that this iterative division of the image dot matrix units in the first direction is performed under the premise that the diffusion rate of the printing medium in the first direction is greater than the diffusion rate in the second direction. If the diffusion rate of the printing medium in the second direction is greater than the diffusion rate in the first direction, then a similar iterative division method in the second direction is used to divide the image dot matrix units.
[0075] In such Figure 3 Or such as Figure 5 In the partitioning method shown, after swapping the positions of the point data, consecutive large ink dots may appear between two adjacent image dot matrix units, and... Figure 6 The division method shown can solve this problem by minimizing the number of large continuous ink dots in the first or second direction, thereby minimizing the "stringing" phenomenon.
[0076] In one embodiment, the dot matrix data of the image to be printed can be further divided into a first data region and a second data region; wherein, the first data region is divided into several first-type image dot matrix units of equal size, with adjacent first-type image dot matrix units partially overlapping; and the second data region is divided into several second-type image dot matrix units of equal size. Figure 7 As shown, a portion of the data area in the dot matrix data of the image to be printed is arranged as follows: Figure 6 The partitioning method shown divides the image into several 3×3 first image dot matrix units of the first category, while the other data areas are as follows: Figure 3 The division method shown divides the image into several second-class 3×3 first image dot matrix units. This division method can maximize the reduction of continuous large ink dots in the first or second direction in areas with high requirements for image printing quality, thereby maximizing the reduction of the "stringing" phenomenon in the image area.
[0077] In summary, the printing method based on dot data position swapping provided by the embodiments of the present invention divides the dot matrix data of the image to be printed into several image dot matrix units, and swaps the positions of the dot data in each image dot matrix unit according to the different diffusion degrees of ink dots in the first direction and the second direction of the printing medium. This reduces the situation of ink dot overlap due to diffusion when ink dots are sprayed onto the printing medium, reduces the "stringing" phenomenon of the printed image, and improves the image quality.
[0078] Example 2
[0079] Please see Figure 8 This invention provides a printing device 200 based on dot data position swapping, the device 200 comprising:
[0080] The partitioning module 201 is used to partition the dot matrix data of the image to be printed into a number of first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes.
[0081] Ink volume acquisition module 202 is used to acquire the ink volume of each point data in the first image dot matrix unit;
[0082] The position switching module 203 is used to switch the position of the dot data according to the first direction diffusion rate, the second direction diffusion rate and the ink volume of each dot data on the printing medium to obtain the second image dot matrix unit.
[0083] The printing module 204 is used to perform inkjet printing based on the dot matrix data of the new image to be printed composed of the second image dot matrix units.
[0084] Furthermore, the position switching module 203 includes:
[0085] A diffusion rate acquisition unit is used to acquire the first-direction diffusion rate and the second-direction diffusion rate of ink droplets on the printing medium.
[0086] The first direction switching unit is used to swap the positions of point data in the i-th row with ink amount greater than or equal to a preset ink amount threshold and point data in the i-th column with ink amount less than a preset ink amount threshold when the first direction diffusion rate is greater than the second direction diffusion rate. Point data that have already been swapped will not be swapped again; i = 1, 2, ..., n.
[0087] The second direction switching unit is used to swap the positions of point data in the i-th column with ink amount greater than or equal to a preset ink amount threshold and point data in the i-th row with ink amount less than a preset ink amount threshold when the first direction diffusion rate is less than the second direction diffusion rate. Point data that have already been swapped will not be swapped again. i = 1, 2, ..., n.
[0088] The acquisition unit is used to acquire the image dot matrix unit after the position of the point data has been swapped, and is denoted as the second image dot matrix unit.
[0089] Furthermore, the device 200 also includes:
[0090] The second ink volume acquisition module is used to acquire the ink volume of each point data in the second image dot matrix unit;
[0091] The second position swapping module is used to swap the positions of any two adjacent point data with a point data in an adjacent row / column whose ink volume is less than the preset ink volume threshold when the ink volume of two adjacent point data in any row / column is simultaneously greater than or equal to the preset ink volume threshold.
[0092] In summary, the printing device based on dot data position swapping provided by the embodiments of the present invention divides the dot matrix data of the image to be printed into several image dot matrix units, and swaps the positions of the dot data in each image dot matrix unit according to the different diffusion degrees of ink dots in the first direction and the second direction of the printing medium. This reduces the situation of ink dot overlap due to diffusion when ink dots are sprayed onto the printing medium, reduces the "stringing" phenomenon of the printed image, and improves the image quality.
[0093] Example 3
[0094] Furthermore, the printing method based on point data position switching in this embodiment of the invention can be implemented by a printing device based on point data position switching. Figure 9 A schematic diagram of the hardware structure of a printing device based on point data position swapping provided in an embodiment of the present invention is shown.
[0095] A printing device based on point data position switching may include a processor 301 and a memory 302 storing computer program instructions.
[0096] Specifically, the processor 301 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.
[0097] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, 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. In a particular embodiment, memory 302 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0098] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the point data position swapping printing methods in the above embodiments.
[0099] In one example, the printing device based on dot data position switching may also include a communication interface 303 and a bus 310. Wherein, as Figure 9 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.
[0100] 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.
[0101] Bus 310 includes hardware, software, or both, that couples components of a printing device together based on point data location swapping. For example, and not limitingly, bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0102] Example 4
[0103] Furthermore, in conjunction with the printing method based on dot data position transposition 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 executed by the processor 301, these computer program instructions implement any of the printing methods based on dot data position transposition in the above embodiments.
[0104] In summary, the printing method, apparatus, device, and storage medium based on dot data position swapping provided by the embodiments of the present invention divides the dot matrix data of the image to be printed into several image dot matrix units, and swaps the positions of the dot data in each image dot matrix unit according to the different diffusion degrees of ink dots in the first and second directions of the printing medium. This reduces the situation of ink dot overlap due to diffusion when ink dots are sprayed onto the printing medium, reduces the "stringing" phenomenon of the printed image, and improves the image quality.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] 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 printing method based on point data position transposition, characterized in that, The method includes: The dot matrix data of the image to be printed is divided into several first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes. Obtain the ink volume of each point in the first image dot matrix unit; The positions of the dot data are swapped based on the first direction diffusion rate, the second direction diffusion rate, and the amount of ink at each dot on the printing medium to obtain the second image dot matrix unit; wherein, when it is a reciprocating scanning inkjet printing, the first direction is the printing direction and the second direction is the direction perpendicular to the printing direction; when it is a single-pass inkjet printing, the first direction is the printing medium movement direction and the second direction is the direction perpendicular to the printing medium movement direction. Inkjet printing is performed based on the dot matrix data of the new image to be printed, which is composed of the second image dot matrix unit.
2. The printing method based on point data position transposition according to claim 1, characterized in that... The first image dot matrix unit is an n×n data matrix, where n is a natural number greater than or equal to 2. The step of rearranging the positions of the dot data based on the first directional diffusion rate, the second directional diffusion rate, and the amount of ink at each dot on the printing medium to obtain the second image dot matrix unit includes: Obtain the first-direction diffusion rate and the second-direction diffusion rate of ink droplets on the printing medium; When the diffusion rate in the first direction is greater than the diffusion rate in the second direction, the positions of the data points in the i-th row with ink amounts greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th column with ink amounts less than a preset ink amount threshold. Data points that have already been swapped are not swapped again. i = 1, 2, ..., n. When the diffusion rate in the first direction is less than the diffusion rate in the second direction, the positions of the data points in the i-th column with ink amount greater than or equal to a preset ink amount threshold are swapped with the data points in the i-th row with ink amount less than a preset ink amount threshold. Data points that have already been swapped are not swapped again. i = 1, 2, ..., n. The image dot matrix unit whose position has been swapped after acquiring the point data is denoted as the second image dot matrix unit; The point data in the i-th row corresponds to the point data in the first direction; the point data in the i-th column corresponds to the point data in the second direction.
3. The printing method based on point data position transposition according to claim 2, characterized in that, After the second image dot matrix unit is obtained by rearranging the positions of the dot data based on the first directional diffusion rate, the second directional diffusion rate, and the ink volume of each dot data on the printing medium, the method further includes: Obtain the ink volume of each point data within the second image dot matrix unit; When the ink volume of two adjacent data points in any row / column is simultaneously greater than or equal to a preset ink volume threshold, the position of either of the two adjacent data points is swapped with that of a data point in the adjacent row / column whose ink volume is less than the preset ink volume threshold.
4. The printing method based on point data position transposition according to any one of claims 1-3, characterized in that, The first image dot matrix unit, which divides the dot matrix data of the image to be printed into several units, includes: The dot matrix data of the image to be printed is divided into several first image dot matrix units of equal size.
5. The printing method based on point data position transposition according to any one of claims 1-3, characterized in that, The step of dividing the dot matrix data of the image to be printed into several first image dot matrix units includes: The dot matrix data of the image to be printed is divided into several first image dot matrix units of different sizes.
6. The printing method based on point data position transposition according to any one of claims 1-3, characterized in that, The step of dividing the dot matrix data of the image to be printed into several first image data matrix units includes: The dot matrix data of the image to be printed is divided into several first image dot matrix units of equal size, with adjacent first image dot matrix units partially overlapping.
7. The printing method based on point data position transposition according to any one of claims 1-3, characterized in that, The step of dividing the dot matrix data of the image to be printed into several first image dot matrix units includes: The dot matrix data of the image to be printed is divided into a first data region and a second data region. The first part of the data region is divided into several first-type first image dot matrix units of equal size, and two adjacent first-type first image dot matrix units partially overlap. The second part of the data area is divided into several equal-sized second-class first image dot matrix units, and the data of each second-class first image dot matrix unit is different.
8. A printing device based on point data position transposition, characterized in that, The device includes: The partitioning module is used to divide the dot matrix data of the image to be printed into several first image dot matrix units, wherein the dot matrix data of the image to be printed includes multiple dot data representing different ink output volumes. The ink volume acquisition module is used to acquire the ink volume of each point in the first image dot matrix unit. The position switching module is used to switch the position of the dot data according to the first direction diffusion rate, the second direction diffusion rate and the ink volume of each dot data on the printing medium to obtain the second image dot matrix unit; wherein, when it is a reciprocating scanning inkjet printing, the first direction is the printing direction and the second direction is the direction perpendicular to the printing direction; when it is a single-pass inkjet printing, the first direction is the printing medium movement direction and the second direction is the direction perpendicular to the printing medium movement direction. The printing module is used to perform inkjet printing based on the dot matrix data of the new image to be printed, which is composed of the second image dot matrix units.
9. A printing device based on point data position switching, 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-7.
10. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-7 is implemented when the computer program instructions are executed by the processor.