Splicing printing method, electronic device, and storage medium
By defining the feathering zone and overlap technology of the printhead in a PCB text inkjet printer, the problems of thickness and color difference and background exposure in multi-pass scanning printing are solved, achieving high-quality splicing printing results.
Patent Information
- Application Number
- CN202311871999.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2043-12-29
AI Technical Summary
Existing PCB text inkjet printers suffer from severe thickness and color differences and ink bleed-through issues in multi-pass scanning printing, and cannot effectively solve the splicing problem caused by the limited number of printheads.
By determining the number of nozzles used for feathering in the printhead, an etch mask matrix is generated, the ink and non-inking locations are calculated, and feathering area overlap technology is used to generate spliced printing graphics to avoid overlap and exposed substrate.
It achieves high-quality splicing printing on PCB boards, avoiding issues such as thickness and color differences and exposed substrate, thus improving print quality.
Smart Images

Figure CN117799348B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The embodiment of the present application relates to the field of inkjet printing technology, in particular to a splicing printing method, an electronic device and a storage medium. BACKGROUND
[0002] The PCB text jet printing machine is a device for jet printing text on the PCB board. Its principle is to spray ink onto the PCB board through inkjet technology to form the required text pattern. The device is mainly composed of a nozzle, an ink cartridge, a motion mechanism, a control part and the like. However, due to the limitation of the number of nozzles, the PCB text jet printing machine usually needs multi-PASS printing to cover the whole board printing. Multi-PASS scanning printing refers to that each unit area of the image to be printed needs to be scanned multiple times to complete the printing, that is, after completing a scanning printing, stepping a certain distance (the distance is called the stepping distance) in the direction perpendicular to the scanning printing direction, and then performing the next scanning printing. Among them, the stepping refers to the relative movement between the printing medium and the nozzle, which can be that the printing medium is fixed and the nozzle moves, or the printing medium moves and the nozzle is fixed.
[0003] In the prior art, a fixed stepping distance is usually used to realize multi-PASS scanning printing, that is, the stepping distance between multiple scanning printing is equal, but this technical solution has the problem of PASS path splicing, that is, if the overlapping part between each PASS after stepping is too much, the thick-thin color difference is serious; and if there is no overlapping between each PASS after stepping, the bottom is easily exposed. SUMMARY
[0004] The embodiment of the present application provides a splicing printing method, an electronic device and a storage medium, by obtaining a splicing printing pattern according to a first feathering area, a second feathering area, a third feathering area and a fourth feathering area, the present application can avoid the problems of serious thick-thin color difference and bottom exposure in the splicing printing process.
[0005] The embodiment of the present application provides the following technical solutions:
[0006] In a first aspect, the embodiment of the present application provides a splicing printing method applied to an electronic device, the electronic device is communicatively connected with a printing device, the printing device includes at least one nozzle, the nozzle includes a plurality of nozzles, and the splicing printing method includes:
[0007] Obtaining the nozzles used for feathering processing in the nozzle, and determining the number of rows of the nozzles used for feathering processing as a first number;
[0008] According to the first number, determining a first feathering area in a first coverage pattern formed by scanning printing, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern;
[0009] After the printhead steps the second number of ejection holes, a second feathered area in a second coverage pattern formed by the scan printing is determined, wherein the second number is greater than or equal to the first number, and the second feathered area of the second coverage pattern is located at an end of the second coverage pattern;
[0010] After the printhead steps the third number of ejection holes, a third feathered area in a third coverage pattern formed by the scan printing is determined, so that the third feathered area coincides with the first feathered area, wherein the third number = the total number of ejection holes - the first number, and the third feathered area of the third coverage pattern is located at a start of the third coverage pattern;
[0011] After the printhead steps the second number of ejection holes, a fourth feathered area in a fourth coverage pattern formed by the scan printing is determined, so that the fourth feathered area coincides with the second feathered area, wherein the fourth feathered area of the fourth coverage pattern is located at a start of the fourth coverage pattern;
[0012] According to the first feathered area, the second feathered area, the third feathered area and the fourth feathered area, a spliced printing pattern is obtained.
[0013] In some embodiments, according to the first number, the first feathered area in the first coverage pattern formed by the scan printing is determined, comprising:
[0014] According to the first number, an erosion mask matrix is generated;
[0015] According to the erosion mask matrix, a first mask window of the first feathered area is determined;
[0016] According to the first mask window, ink ejection positions and non-ink ejection positions of the first mask window are obtained;
[0017] According to the ink ejection positions and the non-ink ejection positions of the first mask window, the first feathered area in the first coverage pattern formed by the scan printing is determined.
[0018] In some embodiments, according to the first number, the erosion mask matrix is generated, comprising:
[0019] According to the first number, a linear ratio is obtained;
[0020] According to the linear ratio, the erosion mask matrix is generated.
[0021] In some embodiments, the first mask window includes a plurality of pixel positions, and the pixel positions correspond to the ejection holes one by one, and according to the first mask window, ink ejection positions and non-ink ejection positions of the first mask window are obtained, comprising:
[0022] According to the scan direction, the pixel positions of the mask window are traversed, and the serial number of the ejection hole corresponding to the current pixel position is obtained;
[0023] According to the serial number of the nozzle corresponding to the current pixel position, a scale value of the current gradient matrix is obtained;
[0024] According to the scale value of the current gradient matrix and a random number function, an ink-out position and a non-ink-out position of the first feathering area are obtained.
[0025] In some embodiments, according to the scale value of the current gradient matrix and a random number function, an ink-out position and a non-ink-out position of the first feathering area are obtained, including:
[0026] The scale value of the current gradient matrix is determined as the number of executions of the random number function;
[0027] According to the number of executions and the random number function, a random byte and a random binary bit are obtained;
[0028] According to the random byte and the random binary bit, a memory first address of the nozzle corresponding to the current pixel position is subjected to a bit OR operation, so as to obtain the ink-out position and the non-ink-out position of the first feathering area.
[0029] In some embodiments, according to the ink-out position and the non-ink-out position of the first mask window, a first feathering area in the first coverage pattern formed by scan printing is determined, including:
[0030] According to the ink-out position and the non-ink-out position of the first mask window, a feathering processing is performed on the mask window of the first feathering area, so as to obtain a feathering-processed first mask window;
[0031] The byte number of the feathering-processed first mask window and the first feathering area in the scanning direction is obtained respectively;
[0032] According to the byte number of the feathering-processed first mask window and the first feathering area in the scanning direction, the feathering-processed first mask window is filled into the first feathering area, so as to determine the first feathering area in the first coverage pattern formed by scan printing.
[0033] In some embodiments, the third feathering area includes a second mask window, and the third feathering area in the third coverage pattern formed by scan printing is determined, including:
[0034] According to the ink-out position and the non-ink-out position of the first mask window, the ink-out position and the non-ink-out position of the second mask window are determined, wherein the ink-out position of the first mask window corresponds to the non-ink-out position of the second mask window one by one, and the non-ink-out position of the first mask window corresponds to the ink-out position of the second mask window one by one;
[0035] According to the ink-out position and the non-ink-out position of the second mask window, the third feathering area in the third coverage pattern formed by scan printing is determined.
[0036] In some embodiments, the ink-out positions and the non-ink-out positions of the second mask window are determined according to the ink-out positions and the non-ink-out positions of the first mask window, comprising:
[0037] The ink-out positions and the non-ink-out positions of the second mask window are obtained by performing an exclusive OR operation on the ink-out positions and the non-ink-out positions of the first mask window respectively according to the ink-out positions and the non-ink-out positions of the first mask window.
[0038] In a second aspect, the embodiments of the present application provide a printing device, comprising:
[0039] at least one processor; and
[0040] a memory in communication connection with the at least one processor; wherein
[0041] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the splicing printing method of the first aspect.
[0042] In a third aspect, the embodiments of the present application provide a non-volatile computer readable storage medium, the non-volatile computer readable storage medium stores computer executable instructions, and the computer executable instructions are used to make an electronic device execute the splicing printing method of the first aspect.
[0043] The beneficial effects of the embodiments of the present application are that, different from the prior art, the embodiments of the present application provide a splicing printing method, applied to an electronic device, the electronic device being communicatively connected to a printing device, the printing device comprising at least one nozzle, the nozzle comprising a plurality of ejection holes, the splicing printing method comprising: obtaining the ejection holes in the nozzle for feathering processing, and determining the number of rows of the ejection holes for feathering processing as a first number; determining a first feathering area in a first coverage pattern formed by scan printing according to the first number, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; determining a second feathering area in a second coverage pattern formed by scan printing after the nozzle steps through a second number of ejection holes, wherein the second number is greater than or equal to the first number, the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; determining a third feathering area in a third coverage pattern formed by scan printing after the nozzle steps through a third number of ejection holes, so that the third feathering area coincides with the first feathering area, wherein the third number = total number of ejection holes - first number, the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; determining a fourth feathering area in a fourth coverage pattern formed by scan printing after the nozzle steps through the second number of ejection holes, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; obtaining a splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area, and the present application can avoid the problems of serious thick-thin color difference and exposed bottom in the splicing printing process by obtaining the splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area. BRIEF DESCRIPTION OF DRAWINGS
[0044] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, which are schematic and not intended to be limiting of the embodiments, and in which like reference numerals designate similar elements, unless otherwise specified, the drawings are not to scale.
[0045] Figure 1 is a schematic diagram of an application environment provided by the embodiments of the present application;
[0046] Figure 2 is a flowchart of a splicing printing method provided by the embodiments of the present application;
[0047] Figure 3 is Figure 2 is a detailed flowchart of step S202 in
[0048] Figure 4 is Figure 3 is a detailed flowchart of step S2021 in
[0049] Figure 5 isFigure 3 a detailed flowchart of step S2023 in
[0050] Figure 6 a detailed flowchart of step S2023 in Figure 5 a detailed flowchart of step S2233 in
[0051] Figure 7 a detailed flowchart of step S2023 in Figure 3 a detailed flowchart of step S2024 in
[0052] Figure 8 a detailed flowchart of step S204 in Figure 2 a detailed flowchart of step S204 in
[0053] Figure 9 a detailed flowchart of step S2041 in Figure 8 a detailed flowchart of step S204 in
[0054] Figure 10 a structural schematic diagram of a splicing printing device provided by an embodiment of the present application;
[0055] Figure 11 a structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0056] Explanation of reference numerals:
[0057] Reference Name Reference Name 100 Application environment 1102 Hatching area determination module 10 Electronic device 1103 Splice printing module 20 Printing device 111 Processor 110 Splice printing device 112 Memory 1101 Nozzle number acquisition module DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in connection with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0059] In addition, the technical features involved in each of the embodiments of the present application described below can be combined with each other as long as there is no conflict.
[0060] Unless otherwise defined, all technical and scientific terms used in the present application have the same meanings as those commonly understood by those skilled in the art to which the present application belongs. The terms used in the present application are only for the purpose of describing specific embodiments of the present application, and are not intended to limit the present application. The term "and / or" used in the present application includes any and all combinations of one or more related listed items.
[0061] The technical solutions of the present application will be described in detail below in connection with the drawings in the specification.
[0062] Referring to Figure 1 , Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0063] As Figure 1 shown, the application environment 100 includes an electronic device 10 and a printing device 20, wherein the electronic device 10 and the printing device 20 are connected through a network, and the network includes a wired network and / or a wireless network. It can be understood that the network includes a wireless network such as 2G, 3G, 4G, 5G, wireless local area network, Bluetooth, and can also include a wired network such as a serial port line and a network cable.
[0064] In the embodiment of the present application, the electronic device 10 is used to determine the feathering area in the splicing printing process, and send a control instruction to the printing device to control the printing device to perform splicing printing according to the control instruction. It can be understood that the electronic device 10 can be a computer, a mobile phone, or other electronic products with communication networking function.
[0065] In the embodiment of the present application, the electronic device 10 includes a controller, which is the control core of the electronic device 10, and is used to control the electronic device 10 to obtain the ejection hole in the nozzle for feathering processing, and determine the number of rows of the ejection hole for feathering processing as a first number; according to the first number, determine a first feathering area in a first coverage pattern formed by scanning printing, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; after the nozzle steps through a second number of ejection holes, determine a second feathering area in a second coverage pattern formed by scanning printing, wherein the second number is greater than or equal to the first number, and the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; after the nozzle steps through a third number of ejection holes, determine a third feathering area in a third coverage pattern formed by scanning printing, so that the third feathering area coincides with the first feathering area, wherein the third number = total number of ejection holes - first number, and the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; after the nozzle steps through a second number of ejection holes, determine a fourth feathering area in a fourth coverage pattern formed by scanning printing, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area, obtain a splicing printing pattern.
[0066] In embodiments of the present application, the controller can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single chip microcomputer, an ARM (Acorn RISC Machine), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. The controller can also be any conventional processor, controller, microcontroller, or state machine. The controller can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP and / or any other such configuration, or a combination of one or more of a microcontroller unit (MCU), a field-programmable gate array (FPGA), and a system on chip (SoC).
[0067] In embodiments of the present application, the electronic device 10 includes a communication module, which is communicatively connected to the printing device 20, for sending a control instruction to the printing device after determining the feathering area of splicing printing, so that the printing device performs splicing printing operation according to the control instruction. In embodiments of the present application, the communication module can realize communication with the Internet, and the communication module includes but is not limited to a WIFI module, a ZigBee module, an NB_IoT module, a 4G module, a 5G module, a Bluetooth module, and the like.
[0068] In embodiments of the present application, the electronic device 10 further includes a memory, which includes a storage space for storing a memory starting address corresponding to a nozzle of the printing device. It can be understood that the memory includes but is not limited to one or more of a FLASH flash memory, a NAND flash memory, a vertical NAND flash memory (VNAND), a NOR flash memory, a resistive random access memory (RRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a spin-torque transfer random access memory (STT-RAM), and the like.
[0069] In embodiments of the present application, the printing device 20 includes a PCB text jet printer, which is a device for jet printing text on a PCB board. The principle is to spray ink onto the PCB board through inkjet technology to form the required text or graphics. The device mainly consists of a nozzle, an ink cartridge, a motion mechanism, a control part, and the like. In embodiments of the present application, the printing device 20 is communicatively connected to the electronic device 10, for receiving the control instruction sent by the electronic device, and performing splicing printing operation according to the control instruction.
[0070] Please refer to Figure 2 ,Figure 2 is a flowchart of a splicing printing method provided by an embodiment of the present application;
[0071] The splicing printing method is applied to an electronic device, the electronic device is communicatively connected to a printing device, the printing device includes at least one nozzle, the nozzle includes a plurality of nozzles, and specifically, an execution subject of the splicing printing method is one or more processors of the electronic device.
[0072] As shown in Figure 2 , the splicing printing method includes the following steps.
[0073] Step S201: Obtain the number of rows of nozzles used for feathering processing in the nozzle, and determine the number of rows of nozzles used for feathering processing as a first number.
[0074] Specifically, the number of rows of nozzles used for feathering processing in the nozzle is obtained, and the number of rows of nozzles used for feathering processing is determined as a first number. The number of rows of nozzles used for feathering processing can be set according to actual needs. In the embodiment of the present application, in order to avoid that the number of rows of nozzles used for feathering processing is too small to display the feathering gradient effect, and the number of rows of nozzles used for feathering processing is too large to cause too many overlapping nozzles after stepping, and waste the stepping amount, preferably, the number of rows of nozzles used for feathering processing is set to 100 to 200, for example, the number of rows of nozzles used for feathering processing is set to 100.
[0075] Step S202: Determine a first feathering area in a first coverage pattern formed by scanning printing according to the first number.
[0076] Please refer to Figure 3 , Figure 3 is Figure 2 the detailed flowchart of step S202 in
[0077] As shown in Figure 3 , step S202: determining a first feathering area in a first coverage pattern formed by scanning printing according to the first number, includes the following steps.
[0078] Step S2021: generating an etching mask matrix according to the first number.
[0079] Please refer to Figure 4 , Figure 4 is Figure 3 the detailed flowchart of step S2021 in
[0080] As shown in Figure 4 , step S2021: generating an etching mask matrix according to the first number, includes the following steps.
[0081] Step S2211: obtaining a linear ratio according to the first number.
[0082] Specifically, each nozzle corresponds to a nozzle sequence number, wherein the nozzle sequence number ranges from [0, the first number-1), and a linear proportion calculation formula is obtained according to the nozzle sequence number corresponding to the currently scanned nozzle as follows:
[0083] k[i] = i / m,
[0084] wherein k[i] is the linear proportion, i is the nozzle sequence number corresponding to the currently scanned nozzle, and m is the first number, that is, the number of rows of nozzles used for feathering processing.
[0085] In some embodiments, in addition to generating the feathering gradient proportion value in a linear relationship, the feathering gradient proportion value can also be generated in other manners such as a sine relationship or a cosine relationship.
[0086] Step S2122: generating the etching mask matrix according to the linear proportion;
[0087] Specifically, the wavelength of the printing device is first obtained, and then the etching mask matrix is calculated according to the wavelength, the nozzle sequence number corresponding to the currently scanned nozzle, and the number of rows of nozzles used for feathering processing, and the calculation formula is as follows:
[0088]
[0089] wherein k is the etching mask matrix, unit is the wavelength, m is the first number, that is, the number of rows of nozzles used for feathering processing, and i is the nozzle sequence number corresponding to the currently scanned nozzle.
[0090] In the embodiments of the present application, when the wavelength unit is 60 and the number of rows of nozzles used for feathering processing m is 100, the etching mask matrix k = [238, 236, 234,... 8, 4, 2, 0] can be obtained.
[0091] Step S2022: determining the first mask window of the first feathering area according to the etching mask matrix;
[0092] Specifically, since the feathering area is related to the scanning stroke, in order to ensure that the etching proportion is constant, that is, each position in the feathering area is feathered in a gradient according to the above linear proportion, a mask needs to be generated in a fixed size area in the first feathering area, and the fixed size area is the first mask window. According to the size of the etching mask matrix, a fixed size memory is allocated to the first mask window to determine the first mask window of the first feathering area, for example, the length of the row direction of the first mask window is determined as 600 bytes, and the length of the column direction is determined as the first number, that is, the column direction corresponds to the first number of nozzles used for feathering processing.
[0093] Step S2023: obtaining ink-out positions and ink-not-out positions of the first mask window according to the first mask window;
[0094] Please refer to Figure 5 , Figure 5 is Figure 4 a detailed flowchart of step S2023 in
[0095] As shown in Figure 5 , step S2023: obtaining ink-out positions and ink-not-out positions of the first mask window according to the first mask window, comprises:
[0096] Step S2231: obtaining the serial number of the inkjet nozzle corresponding to the current pixel position according to the scanning direction traversing the pixel positions of the mask window;
[0097] Specifically, the mask window comprises a plurality of pixel positions, each pixel position corresponding to an inkjet nozzle, and the serial number of the inkjet nozzle corresponding to the current pixel position is obtained according to the scanning direction traversing the pixel positions of the mask window, wherein the scanning direction is perpendicular to the stepping direction.
[0098] Step S2232: obtaining the proportion value of the current gradient matrix according to the serial number of the inkjet nozzle corresponding to the current pixel position;
[0099] Specifically, the proportion value of the current gradient matrix is obtained according to the serial number of the inkjet nozzle corresponding to the current pixel position, and the calculation formula is as follows:
[0100] p = i / m,
[0101] wherein p is the proportion value of the current gradient matrix, i is the serial number of the inkjet nozzle corresponding to the scanned inkjet nozzle, and m is the first number, i.e., the number of rows of inkjet nozzles used for feathering processing.
[0102] Step S2233: obtaining ink-out positions and ink-not-out positions of the first feathering area according to the proportion value of the current gradient matrix combined with a random number function;
[0103] Please refer to Figure 6 , Figure 6 is Figure 5 a detailed flowchart of step S2233 in
[0104] As shown in Figure 6 , step S2233: obtaining ink-out positions and ink-not-out positions of the first feathering area according to the proportion value of the current gradient matrix combined with a random number function, comprises:
[0105] Step S2331: determining the proportion value of the current gradient matrix as the execution times of the random number function;
[0106] Specifically, in the process of traversing the pixel positions of the mask window, the random number function needs to be executed in a loop, and the scale value of the current gradient matrix is determined as the number of executions of the random number function to generate the ink-out positions of the first feathering area, wherein the number of ink-out positions is the same as the number of executions of the random number function.
[0107] Step S2332: obtaining a random byte and a random binary bit according to the number of executions and the random number function;
[0108] Specifically, in the memory space, 1 byte includes 8 binary bits, 1 byte in the first mask window corresponds to 4 pixel positions, that is, 1 pixel position corresponds to 2 binary bits. First, the random byte in which the pixel position is located is generated by the random number function, and then two unused random binary bits are randomly found in the random byte. This process needs to execute the random number function in a software loop. It can be understood that, since there is a certain repetition probability in random number generation, if a repeated pixel position is generated, it can only be randomly generated again until the same number of random binary bits as the scale value of the current gradient matrix is generated.
[0109] Step S2333: performing a bitwise OR operation on the memory first address of the ink ejection orifice corresponding to the current pixel position according to the random byte and the random binary bit to obtain the ink-out position and the non-ink-out position of the first feathering area;
[0110] Specifically, after obtaining the same number of random binary bits as the scale value of the current gradient matrix, the current pixel position is determined according to the random byte and the random binary bit, and then the memory first address of the ink ejection orifice corresponding to the current pixel position is obtained. A bitwise OR operation is performed on the memory first address of the ink ejection orifice corresponding to the current pixel position to obtain the ink-out position of the first feathering area, and further obtain the non-ink-out position of the first feathering area. The computer program code for performing the bitwise OR operation is as follows: *(pD+i) | = (0x03 << j*2), wherein i is the random byte generated by the random function, j is the random binary bit generated by the random function, and pD is the memory first address of the ink ejection orifice corresponding to the current pixel position. It can be understood that, before the random byte and the random binary bit are generated, since the ink-out position and the non-ink-out position have not been determined at this time, it is necessary to initialize the memory addresses of the ink ejection orifices corresponding to all pixel positions in the first mask window to 0x00.
[0111] Step S2024: determining the first feathering area in the first coverage pattern formed by scanning and printing according to the ink-out position and the non-ink-out position of the first mask window;
[0112] Please refer to Figure 7 , Figure 7 is Figure 3 the detailed flowchart of step S2024 in
[0113] As Figure 7 shown, step S2024: according to the ink-out position and the non-ink-out position of the first mask window, determine the first feathering area in the first coverage pattern formed by the scan printing, comprising:
[0114] Step S2241: according to the ink-out position and the non-ink-out position of the first mask window, feather processing is performed on the mask window of the first feathering area to obtain the first mask window after feather processing;
[0115] Specifically, according to the ink-out position and the non-ink-out position of the first mask window, a control instruction is generated to control the printing device to ink-out at the ink-out position of the first mask window and not ink-out at the non-ink-out position of the first mask window, so as to perform feather processing on the mask window of the first feathering area to obtain the first mask window after feather processing.
[0116] Step S2242: respectively acquire the byte number of the first mask window after feather processing and the first feathering area in the scanning direction;
[0117] Specifically, the byte number of the first mask window after feather processing and the first feathering area in the scanning direction is respectively acquired, wherein the byte number of the first feathering area in the scanning direction is greater than the byte number of the first mask window after feather processing in the scanning direction.
[0118] Step S2243: according to the byte number of the first mask window after feather processing and the first feathering area in the scanning direction, fill the first mask window after feather processing to the first feathering area to determine the first feathering area in the first coverage pattern formed by the scan printing;
[0119] Specifically, according to the byte number of the first mask window after feather processing and the first feathering area in the scanning direction, the first mask window after feather processing is filled to the first feathering area. It can be understood that if the byte number of the first feathering area in the scanning direction is an integer multiple of the byte number of the first mask window after feather processing in the scanning direction, for example, 10 times, the first mask window after feather processing needs to be copied 10 times, and the copied first mask window is filled to the first feathering area; if the byte number of the first feathering area in the scanning direction is not an integer multiple of the byte number of the first mask window after feather processing in the scanning direction, for example, 10.5 times, the first mask window after feather processing needs to be copied 10 times, and the copied first mask window is filled to the first feathering area, and the remaining part is copied according to the byte to the first mask window, and the copied byte is filled to the first feathering area to determine the first feathering area in the first coverage pattern formed by the scan printing.
[0120] Step S203: After the printhead steps over the second number of nozzles, a second feather zone in the second coverage pattern formed by the scan printing is determined;
[0121] Specifically, after the printhead steps over the second number of nozzles, a second feather zone in the second coverage pattern formed by the scan printing is determined, wherein the method of determining the second feather zone in the second coverage pattern formed by the scan printing is the same as that of determining the first feather zone in the first coverage pattern formed by the scan printing, the second number is greater than or equal to the first number, and the second feather zone of the second coverage pattern is located at the end of the second coverage pattern.
[0122] Step S204: After the printhead steps over the third number of nozzles, a third feather zone in a third coverage pattern formed by the scan printing is determined to coincide with the first feather zone;
[0123] Please refer to Figure 8 , Figure 8 is Figure 2 the detailed flowchart of step S204 in
[0124] As shown in Figure 8 , step S204: After the printhead steps over the third number of nozzles, a third feather zone in a third coverage pattern formed by the scan printing is determined to coincide with the first feather zone, comprising:
[0125] Step S2041: According to the ink ejection position and the non-ink ejection position of the first mask window, the ink ejection position and the non-ink ejection position of the second mask window are determined;
[0126] Please refer to Figure 9 , Figure 9 is Figure 8 the detailed flowchart of step S2041 in
[0127] As shown in Figure 9 , step S2041: According to the ink ejection position and the non-ink ejection position of the first mask window, the ink ejection position and the non-ink ejection position of the second mask window are determined, comprising:
[0128] Step S20411: According to the ink ejection position and the non-ink ejection position of the first mask window, the ink ejection position and the non-ink ejection position of the first mask window are respectively inverted to obtain the ink ejection position and the non-ink ejection position of the second mask window;
[0129] Specifically, according to the ink ejection position and the non-ink ejection position of the first mask window, the ink ejection position and the non-ink ejection position of the first mask window are respectively subjected to an inversion operation, and the computer program code of the inversion operation is as follows: *(pE+i)&=~(0x03<<j*2), wherein i is a random byte generated by a random function, j is a random binary bit generated by a random function, and pE is the first address of the memory of the nozzle corresponding to the current pixel position. It can be understood that, before the random byte and the random binary bit are generated, since the ink ejection position and the non-ink ejection position have not been determined at this time, it is necessary to initialize the memory address of the nozzle corresponding to all pixel positions in the second mask window to 0xFF. Since the random byte and the random binary bit in the above computer program code reuse the random byte and the random binary bit generated for the first mask window in the above method steps, after the inversion operation, the ink ejection position of the first mask window corresponds to the non-ink ejection position of the second mask window one by one, and the non-ink ejection position of the first mask window corresponds to the ink ejection position of the second mask window one by one.
[0130] In the embodiment of the present application, the ink ejection position of the first mask window corresponds to the non-ink ejection position of the second mask window, and the non-ink ejection position of the first mask window corresponds to the ink ejection position of the second mask window, so that the third feathering area coincides with the first feathering area, and the problem of uneven ink ejection thickness or bottom exposure in the process of splicing printing is avoided.
[0131] Step S2042: determining a third feathering area in a third coverage pattern formed by the scanning printing according to the ink ejection position and the non-ink ejection position of the second mask window;
[0132] Specifically, according to the number of bytes of the second mask window after feathering processing and the third feathering area in the scanning direction, the second mask window after feathering processing is filled into the third feathering area. It can be understood that, if the number of bytes of the third feathering area in the scanning direction is an integer multiple of the number of bytes of the second mask window after feathering processing in the scanning direction, for example, 10 times, the second mask window after feathering processing needs to be copied 10 times, and the copied second mask window is filled into the third feathering area; if the number of bytes of the third feathering area in the scanning direction is not an integer multiple of the number of bytes of the second mask window after feathering processing in the scanning direction, for example, 10.5 times, the second mask window after feathering processing needs to be copied 10 times, and the copied second mask window is filled into the third feathering area, and the remaining part is copied according to the byte to the second mask window, and the copied byte is filled into the third feathering area to determine the third feathering area in the third coverage pattern formed by the scanning printing.
[0133] Step S205: determining a fourth feathering area in a fourth coverage pattern formed by the scanning printing after the printhead steps the second number of nozzles, so that the fourth feathering area coincides with the second feathering area;
[0134] Specifically, after the ejection head steps over the second number of ejection holes, a fourth feathering area in a fourth coverage pattern formed by the scan printing is determined, wherein the method of determining the fourth feathering area in the fourth coverage pattern formed by the scan printing is the same as that of determining the third feathering area in the third coverage pattern formed by the scan printing, the second number is greater than or equal to the first number, and the fourth feathering area of the fourth coverage pattern is located at the end of the fourth coverage pattern.
[0135] Step S206: obtaining a spliced printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0136] Specifically, since the first feathering area and the third feathering area coincide, and the second feathering area and the fourth feathering area coincide, in the process of printing the 4PASS spliced pattern, a spliced printing pattern with uniform thickness and no bottom exposure can be obtained according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0137] In the embodiment of the present application, by providing a spliced printing method, applied to an electronic device, the electronic device is communicatively connected to a printing device, the printing device includes at least one ejection head, and the ejection head includes a plurality of ejection holes. The spliced printing method includes: obtaining ejection holes for feathering processing in the ejection head, and determining the number of rows of ejection holes for feathering processing as a first number; determining a first feathering area in a first coverage pattern formed by scan printing according to the first number, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; determining a second feathering area in a second coverage pattern formed by scan printing after the ejection head steps over a second number of ejection holes, wherein the second number is greater than or equal to the first number, and the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; determining a third feathering area in a third coverage pattern formed by scan printing after the ejection head steps over a third number of ejection holes, so that the third feathering area coincides with the first feathering area, wherein the third number = total number of ejection holes - first number, and the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; determining a fourth feathering area in a fourth coverage pattern formed by scan printing after the ejection head steps over the second number of ejection holes, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; and obtaining a spliced printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area. The present application can avoid the problems of serious thickness color difference and bottom exposure in the spliced printing process by obtaining a spliced printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0138] Please refer to Figure 10 , Figure 10is a structural schematic diagram of a splicing printing device provided in an embodiment of the present application.
[0139] The splicing printing device is applied to one or more processors of an electronic device.
[0140] As shown in Figure 10 The splicing printing device 110 includes:
[0141] The number of ejection holes acquisition module 1101 is configured to acquire the ejection holes in the ejection head for feathering processing, and determine the number of rows of the ejection holes for feathering processing as a first number.
[0142] The feathering area determination module 1102 is configured to determine a first feathering area in a first coverage pattern formed by scanning printing according to the first number, where the first feathering area in the first coverage pattern is located at an end of the first coverage pattern; determine a second feathering area in a second coverage pattern formed by scanning printing after the ejection head steps by a second number of ejection holes, where the second number is greater than or equal to the first number, and the second feathering area in the second coverage pattern is located at an end of the second coverage pattern; determine a third feathering area in a third coverage pattern formed by scanning printing after the ejection head steps by a third number of ejection holes, so that the third feathering area coincides with the first feathering area, where the third number = total number of ejection holes - first number, and the third feathering area in the third coverage pattern is located at a start of the third coverage pattern; and determine a fourth feathering area in a fourth coverage pattern formed by scanning printing after the ejection head steps by the second number of ejection holes, so that the fourth feathering area coincides with the second feathering area, where the fourth feathering area in the fourth coverage pattern is located at a start of the fourth coverage pattern.
[0143] The splicing printing module 1103 is configured to obtain a splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0144] In the embodiments of the present application, the splicing printing device can also be built by hardware devices, for example, the splicing printing device can be built by one or more than two chips, and each chip can work in coordination with each other to complete the splicing printing method described in each of the above embodiments. For another example, the splicing printing device can also be built by various logic devices, such as general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), single-chip microcomputers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components or any combination of these components.
[0145] The splicing printing device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device, or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, network attached storage (NAS), personal computer (PC), television (TV), teller machine, or self-service machine, etc., and the embodiments of the present application are not limited in this regard.
[0146] The splicing printing device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating system, and the embodiments of the present application are not limited in this regard.
[0147] The splicing printing device provided in the embodiments of the present application can achieve the following advantages. Figure 2 The various processes are implemented, and details are not repeated here to avoid repetition.
[0148] It should be noted that the splicing printing device described above can execute the splicing printing method provided in the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method. Technical details not described in detail in the splicing printing device embodiments can be referred to the splicing printing method provided in the above embodiments.
[0149] In the embodiment of the present application, a splicing printing device is provided, which comprises: a nozzle number acquisition module, configured to acquire nozzles for feathering processing in a nozzle head, and determine the number of rows of nozzles for feathering processing as a first number; a feathering area determination module, configured to determine a first feathering area in a first coverage pattern formed by scanning printing according to the first number, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; determine a second feathering area in a second coverage pattern formed by scanning printing after the nozzle head steps by a second number of nozzles, wherein the second number is greater than or equal to the first number, and the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; determine a third feathering area in a third coverage pattern formed by scanning printing after the nozzle head steps by a third number of nozzles, so that the third feathering area coincides with the first feathering area, wherein the third number = total number of nozzles - first number, and the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; determine a fourth feathering area in a fourth coverage pattern formed by scanning printing after the nozzle head steps by the second number of nozzles, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; and a splicing printing module, configured to obtain a splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area. The present application can avoid the problems of serious thick-thin color difference and exposed bottom in the splicing printing process by obtaining a splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0150] Please refer to Figure 11 , Figure 11 is a structural schematic diagram of an electronic device provided in the embodiment of the present application.
[0151] As Figure 11 shown, the electronic device 10 comprises one or more processors 111 and a memory 112. Among them, Figure 10 take one processor 111 as an example.
[0152] The processor 111 and the memory 112 can be connected through a bus or other means, Figure 10 take the connection through the bus as an example.
[0153] The processor 111 is configured to provide computing and control capabilities to control the electronic device 10 to perform corresponding tasks, for example, to control the electronic device 10 to perform the splicing printing method in any of the above method embodiments. The splicing printing method includes: obtaining the ejection holes in the nozzle for feathering processing, and determining the number of rows of the ejection holes for feathering processing as a first number; determining a first feathering area in a first coverage pattern formed by scan printing according to the first number, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; determining a second feathering area in a second coverage pattern formed by scan printing after the nozzle steps through a second number of ejection holes, wherein the second number is greater than or equal to the first number, and the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; determining a third feathering area in a third coverage pattern formed by scan printing after the nozzle steps through a third number of ejection holes, so that the third feathering area coincides with the first feathering area, wherein the third number = total number of ejection holes - first number, and the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; determining a fourth feathering area in a fourth coverage pattern formed by scan printing after the nozzle steps through the second number of ejection holes, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; and obtaining a splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0154] The present application can avoid the problems of serious thick-thin color difference and exposed bottom in the splicing printing process by obtaining the splicing printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area.
[0155] The processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof; and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0156] The memory 112, as a non-transitory computer readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the splicing printing method in the embodiments of the present application. The processor 111 can implement the splicing printing method in any of the method embodiments described below by running the non-transitory software programs, instructions and modules stored in the memory 112. Specifically, the memory 112 can include a volatile memory (VM), such as a random access memory (RAM); the memory 112 can also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or other non-transitory solid-state storage devices; the memory 112 can also include a combination of the above types of memories.
[0157] The memory 112 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 112 can optionally include a memory disposed remotely relative to the processor 111, and these remote memories can be connected to the processor 111 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0158] One or more modules are stored in the memory 112, and when executed by the one or more processors 111, perform the splicing printing method in any of the method embodiments described above, for example, perform the functions of the various modules or units described above. Figure 2 The functions of the various modules or units described above can also be implemented. Figure 11
[0159] In the embodiments of the present application, the electronic device 10 can also have a wired or wireless network interface, a keyboard, an input / output interface and other components for implementing device functions, and the like, so as to perform input / output. The electronic device 10 can also include other components for implementing device functions, which are not described herein.
[0160] The embodiment of the present application further provides a nonvolatile computer readable storage medium, for example, a memory including program codes, which can be executed by a processor to complete the splicing printing method in the above embodiment. For example, the nonvolatile computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CDROM), a magnetic tape, a floppy disk and an optical data storage device, etc.
[0161] The embodiment of the present application further provides a computer program product, which includes one or more program codes stored in a nonvolatile computer readable storage medium. The processor of the electronic device reads the program codes from the nonvolatile computer readable storage medium, and the processor executes the program codes to complete the method steps of the splicing printing method provided in the above embodiment.
[0162] Those skilled in the art can understand that all or part of the steps of the above embodiments can be completed by hardware, or by program codes related hardware, and the program can be stored in a nonvolatile computer readable storage medium. The storage medium mentioned above can be a Read-Only Memory, a magnetic disk or an optical disk, etc.
[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software plus a general hardware platform, and of course, can also be realized by hardware. Those skilled in the art can understand that all or part of the processes in the above embodiment methods can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above embodiment methods. The storage medium can be a magnetic disk, an optical disk, a Read-Only Memory (ROM) or a Random Access Memory (RAM), etc.
[0164] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, but not to limit them; under the idea of the present application, the technical features in the above examples or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the present application as described above, which are not provided in detail for simplicity; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A splicing printing method characterized by, The method is applied to an electronic device, the electronic device is communicatively connected to a printing device, the printing device comprises at least one nozzle, the nozzle comprises a plurality of ejection holes, and the method comprises the following steps: acquiring the ejection holes used for feathering processing in the nozzle, and determining the number of rows of the ejection holes used for feathering processing as a first number; determining a first feathering area in a first coverage pattern formed by scan printing according to the first number, wherein the first feathering area of the first coverage pattern is located at the end of the first coverage pattern; determining a second feathering area in a second coverage pattern formed by scan printing after the nozzle steps through a second number of ejection holes, wherein the second number is greater than or equal to the first number, and the second feathering area of the second coverage pattern is located at the end of the second coverage pattern; determining a third feathering area in a third coverage pattern formed by scan printing after the nozzle steps through a third number of ejection holes, so that the third feathering area coincides with the first feathering area, wherein the third number is equal to the total number of ejection holes minus the first number, and the third feathering area of the third coverage pattern is located at the beginning of the third coverage pattern; determining a fourth feathering area in a fourth coverage pattern formed by scan printing after the nozzle steps through the second number of ejection holes, so that the fourth feathering area coincides with the second feathering area, wherein the fourth feathering area of the fourth coverage pattern is located at the beginning of the fourth coverage pattern; obtaining a spliced printing pattern according to the first feathering area, the second feathering area, the third feathering area and the fourth feathering area; the method comprises the following steps: generating an erosion mask matrix according to the first number; determining a first mask window of the first feathering area according to the erosion mask matrix; obtaining ink ejection positions and non-ink ejection positions of the first mask window according to the first mask window; determining the first feathering area in the first coverage pattern formed by scan printing according to the ink ejection positions and the non-ink ejection positions of the first mask window; the first mask window comprises a plurality of pixel positions, the pixel positions correspond to the ejection holes one by one, and the method comprises the following steps: traversing the pixel positions of the mask window according to a scan direction to obtain the serial number of the ejection hole corresponding to the current pixel position; obtaining the proportion value of the current gradient matrix according to the serial number of the ejection hole corresponding to the current pixel position; obtaining the ink ejection positions and the non-ink ejection positions of the first feathering area according to the proportion value of the current gradient matrix and a random number function; the method comprises the following steps: performing feathering processing on the mask window of the first feathering area according to the ink ejection positions and the non-ink ejection positions of the first mask window to obtain a feathering-processed first mask window; respectively obtaining the byte number of the feathering-processed first mask window and the first feathering area in the scan direction; According to the first feathered mask window after the feathering processing and the number of bytes of the first feathered area in the scanning direction, the first feathered mask window after the feathering processing is filled into the first feathered area to determine the first feathered area in the first coverage pattern formed by the scanning printing.
2. The method of claim 1, wherein, The generating the corrosion mask matrix according to the first quantity comprises: According to the first quantity, a linear ratio is obtained; According to the linear ratio, the corrosion mask matrix is generated.
3. The method of claim 2, wherein, The first feathered area ink output position and non-ink output position are obtained according to the scale value of the current gradient matrix combined with a random number function, comprising: The scale value of the current gradient matrix is determined as the execution times of the random number function; According to the execution times and the random number function, a random byte and a random binary bit are obtained; According to the random byte and the random binary bit, the memory first address of the ink ejection nozzle corresponding to the current pixel position is subjected to a bit or operation to obtain the first feathered area ink output position and non-ink output position.
4. The method of claim 2, wherein, The third feathered area includes a second mask window, and the third feathered area in the third coverage pattern formed by the scanning printing is determined, comprising: According to the ink output position and non-ink output position of the first mask window, the ink output position and non-ink output position of the second mask window are determined, wherein the ink output position of the first mask window corresponds to the non-ink output position of the second mask window one by one, and the non-ink output position of the first mask window corresponds to the ink output position of the second mask window one by one; According to the ink output position and non-ink output position of the second mask window, the third feathered area in the third coverage pattern formed by the scanning printing is determined.
5. The method of claim 4, wherein, The ink output position and non-ink output position of the second mask window are determined according to the ink output position and non-ink output position of the first mask window, comprising: According to the ink output position and non-ink output position of the first mask window, the ink output position and non-ink output position of the first mask window are subjected to inverse operation respectively to obtain the ink output position and non-ink output position of the second mask window.
6. An electronic device, comprising: Comprise: At least one processor; And The memory is in communication connection with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the splicing printing method according to any one of claims 1-5.
7. A non-transitory computer readable storage medium, comprising: The non-volatile computer readable storage medium stores a computer program or instructions, and when the computer program or instructions are executed, the splicing printing method according to any one of claims 1-5 is realized.
Citation Information
Patent Citations
Ink-jet printing method, device and equipment based on feathering treatment and storage medium
CN112223929A
Nozzle overlapping hole area ink outlet method and device and storage medium
CN113059915A