Intelligent white border removal data printing method, device, equipment and storage medium
By calculating the Y and X offset values of the white edge data, the printhead printing path is optimized, solving the problem of printhead damage and low printing efficiency caused by white edge data, and achieving printhead protection and efficiency improvement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SENDA SHENZHEN TECH CO LTD
- Filing Date
- 2022-05-13
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, the wide white margin data causes the printhead to print outside the platform, which damages the printhead and ink stack due to UV lamp irradiation, increases the number of printing passes, and affects printing efficiency.
By acquiring the size of the image to be printed and the white border data, calculating the Y offset value and X offset value, removing the white border data, controlling the printhead printing, preventing the printhead from being exposed outside the printing platform, and optimizing the printing path through overlapping block position and overlapping nozzle technology.
Protects the printhead and ink stack from UV lamp exposure, reduces print passes, and improves printing efficiency.
Smart Images

Figure CN117087347B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of printing technology, and in particular to a printing method, apparatus, device, and storage medium for intelligently removing white border data during printing. Background Technology
[0002] Inkjet printers use nozzles to atomize colored liquid ink into tiny particles, which are then sprayed onto printing paper to create text or images. Existing inkjet printers use two main printing methods: interlaced printing and residence printing. In interlaced printing, the printhead advances a certain distance relative to the printing medium after each section is printed. In residence printing, the printhead only advances the distance of one printhead pass after each area has been printed; a single area may be printed in one pass or may require multiple passes.
[0003] In existing technologies, PCB boards typically employ a dwell-type printing method. During the printing process on some PCB boards, Gerber files may contain wide blank areas (also known as white borders). In such cases, direct printing causes the printhead to print outside the printing platform, and the reflected UV light can damage the printhead and ink stack. Furthermore, white borders in the Y direction increase the number of printing passes; what could be completed in 2 passes now requires 3, impacting printing efficiency. Summary of the Invention
[0004] The present invention aims to provide a printing method, apparatus, device and storage medium for intelligently removing white border data, in order to solve the technical problem in the prior art that the increased number of printing passes and the impact on printing efficiency caused by the wide white border data.
[0005] Firstly, to solve the above-mentioned technical problems, the present invention provides a printing method for intelligently removing white border data, the method comprising:
[0006] Obtain the size of the image to be printed and the white border data in the image to be printed;
[0007] Based on the size of the image to be printed and the white edge data, print data with the white edge data removed is obtained; the print data ensures that the two printheads at both ends of the printhead layout will not be exposed outside the printing platform due to the white edge data.
[0008] The printhead is controlled to print based on the print data.
[0009] According to a preferred embodiment of the present invention, the step of obtaining print data with white border data removed is based on the size of the image to be printed and the white border data:
[0010] Obtain the Y and X offset values based on the white border data;
[0011] The printing data is obtained by removing the white borders at the beginning and end of the Y and X directions of the image to be printed based on the image size, Y offset value, and X offset value.
[0012] Where: the Y direction is the direction of movement of the printhead or printing media, the X direction is the direction of printhead scanning, and the Y and X directions are perpendicular.
[0013] According to a preferred embodiment of the present invention, controlling the printhead to print based on the print data includes:
[0014] Calculate the actual number of printed blocks based on the print data;
[0015] The overlapping block position and overlapping nozzle are obtained based on the Y offset value and the actual number of printed blocks;
[0016] The printhead is controlled to spray ink according to the actual number of printed blocks, and the overlapping nozzle is turned off when the ink is sprayed to the position of the overlapping block.
[0017] According to a preferred embodiment of the present invention, the overlapping block position is located at the last block, and the step of obtaining the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks includes:
[0018] Calculate the position of the overlapping block of the last block based on the Y offset value and the actual number of printed blocks;
[0019] The overlapping nozzle that does not produce ink is determined based on the position of the overlapping block.
[0020] According to a preferred embodiment of the present invention, the overlapping block position is located between the first block and the last block, and the step of obtaining the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks includes:
[0021] The overlapping block positions of the first block and the last block are determined based on the Y offset value.
[0022] The overlapping nozzles that do not produce ink are determined based on the position of the first overlapping block, and the overlapping nozzles that do not produce ink are determined based on the position of the last overlapping block.
[0023] According to a preferred embodiment of the present invention, the Y offset value includes: a first Y offset value and a second Y offset value, and the step of obtaining the Y offset value based on the white border data includes:
[0024] The length of the white border data in the Y direction within the first block is used as the first Y offset value;
[0025] The length of the white border data in the last block corresponding to the Y direction is used as the second Y offset value.
[0026] According to a preferred embodiment of the present invention, before obtaining the size of the image to be printed and the white border data in the image to be printed, the method further includes:
[0027] Determine if there is white border data in the image to be printed;
[0028] If the image to be printed contains white border data, enable the white border printing mode.
[0029] Secondly, the present invention also provides a printing device for intelligently removing white border data, characterized in that it comprises:
[0030] The acquisition module is used to acquire the size of the image to be printed and the white border data in the image to be printed;
[0031] The removal module is used to obtain print data with white edge data removed based on the size of the image to be printed and the white edge data; the print data ensures that the two printheads at both ends of the printhead layout will not be exposed outside the printing platform due to the white edge data.
[0032] The control module is used to control the printhead to print based on the print data.
[0033] Thirdly, the present invention also provides a printing device for intelligently removing white border data, comprising: a memory, a processor, and computer program instructions stored in the memory and executable on the processor, wherein when the computer program instructions are executed by the processor, the method described in any of the above descriptions is implemented.
[0034] Fourthly, the present invention also provides a computer-readable storage medium having stored thereon computer program instructions, preferably, which, when executed by a processor, implement the method described in any of the preceding claims.
[0035] In summary, the intelligent white-edge removal printing method, apparatus, device, and storage medium of the present invention obtains white-edge removed printing data based on the size of the image to be printed and the white-edge data; and controls the printhead to print based on the printing data. The printing data ensures that the two printheads at both ends of the printhead layout are not exposed outside the printing platform due to white-edge data, thereby protecting the printheads and ink stack from UV lamp irradiation and not affecting printing efficiency. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating a printing method for intelligently removing white border data according to an embodiment of the present invention.
[0037] Figure 2a This is a schematic diagram of determining a new printing area based on a Y offset value in Embodiment 1 of the present invention;
[0038] Figure 2bThis is a schematic diagram of another method for determining a new printing area based on the Y offset value in Embodiment 1 of the present invention;
[0039] Figure 3 This is a schematic diagram of the printing device for intelligently removing white border data according to the present invention;
[0040] Figure 4 This is a schematic diagram of the printing device for intelligently removing white border data according to the present invention. Detailed Implementation
[0041] 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.
[0042] 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.
[0043] Example 1
[0044] Please see Figure 1 Embodiment 1 of the present invention provides a printing method for intelligently removing white border data, wherein: as Figure 1 As shown, the method includes the following steps:
[0045] S101. Obtain the size of the image to be printed and the white border data in the image to be printed;
[0046] For example, blank data can be parsed from the Gerber file of the image to be printed; this blank data represents the white border data in the image to be printed. The size of the image to be printed can be the size of the printing medium (e.g., a PCB board), which can be obtained through user input.
[0047] S102. Obtain printing data with white border data removed based on the size of the image to be printed and the white border data;
[0048] Wherein: the printing data ensures that the two printheads at both ends of the printhead layout will not be exposed outside the printing platform due to white edge data; for example, this step may include:
[0049] S11. Obtain the Y offset value and X offset value based on the white border data;
[0050] The Y offset value refers to the length of the white edge data in the Y direction of the image to be printed, and the X offset value refers to the length of the white edge data in the X direction of the image to be printed.
[0051] To facilitate subsequent printhead control, the Y-offset value includes: a first Y-offset value and a second Y-offset value. Obtaining the Y-offset value based on the white edge data includes: using the length of the white edge data in the Y direction corresponding to the first block as the first Y-offset value; and using the length of the white edge data in the Y direction corresponding to the last block as the second Y-offset value. Wherein: the Y direction is the direction of movement of the printhead or printing medium, the X direction is the direction of printhead scanning, and the Y and X directions are perpendicular. Wherein: the block represents the height of a unit area of the image to be printed. A unit area of the image to be printed can be completed in one pass or multiple passes. The number of passes for each unit area can be the same or different. For example, if the image to be printed is a character image on a PCB board, the number of passes for each unit area is the same because only one type of graphic needs to be printed. If the image to be printed is the entire PCB board image (including characters, color blocks, and lines), the number of passes for each unit area is different because characters, color blocks, and lines require different precision. When the unit area only contains color blocks, the number of passes can be reduced.
[0052] for example Figure 2a In 2b, the image to be printed includes the letter A and white borders on the top and bottom. The white border data in the first block corresponds to the length in the Y direction, which is the first printing Y offset Y1, corresponding to the length of the bottom white border of the image to be printed. The white border data in the last block corresponds to the length in the Y direction, which is the second printing Y offset Y2, corresponding to the length of the top white border of the image to be printed.
[0053] In other embodiments, only a portion of the white edge data may be removed, meaning the white edge data is not completely removed, retaining the blank data adjacent to the ink output data. The length of the blank data to be retained in the Y direction is obtained, and the lengths of the blank data to be retained on both sides of the image are denoted as the first retention length and the second retention length. In this case, obtaining the Y offset value based on the white edge data includes: subtracting the first retention length from the Y-direction length of the white edge data in the first block to obtain the first Y offset value; and subtracting the second retention length from the Y-direction length of the white edge data in the last block to obtain the second Y offset value. Furthermore, the portion of white edge data to be retained can be determined according to the actual situation. For example, if an interval region needs to be set between two adjacent images to be printed, the first retention length and the second retention length can be determined based on the size of the interval region as needed. When setting the first Y offset value and / or the second Y offset value, the first retention length and / or the second retention length are subtracted accordingly.
[0054] S12. Based on the size of the image to be printed, the Y offset value, and the X offset value, remove the white edge data at the beginning and end of the Y and X directions of the image to be printed to obtain the printing data;
[0055] For example, the Y offset values at the beginning and end of the image to be printed can be removed in the Y direction, and the X offset values at the beginning and end of the image to be printed can be removed in the X direction to obtain the printing data.
[0056] S103. Control the printhead to print according to the print data.
[0057] For example, this step may include:
[0058] S31. Calculate the actual number of printed blocks based on the print data;
[0059] One of them is an image length that can print a set of printhead heights, and a set of printheads includes at least one printhead. For example... Figure 2a In the original printing data of the image to be printed, there are 8 blocks to complete the printing. However, according to the present invention, after removing the white border data, only 5 blocks are needed to complete the printing. Obviously, the present invention can save the number of passes and improve printing efficiency.
[0060] S32. Obtain the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks;
[0061] In this invention, the actual number of blocks after removing white border data is not an integer number of Paas. At least two blocks in the actual printed blocks will overlap. The overlapping block position refers to the location where at least two blocks in the actual printed blocks overlap due to the removal of white border data.
[0062] In one example, the overlapping block position is located at the last block, and obtaining the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks includes: calculating the overlapping block position of the last block based on the Y offset value and the actual number of printed blocks; and determining the overlapping nozzle that does not dispense ink corresponding to the last block based on the overlapping block position.
[0063] Where: the Y offset value includes: the first Y offset value Y1 and the second Y offset value Y2, then the length L of the overlapping block position is L = J1 - (Y - Y1 - Y2 - (n-1)J1), where: J1 is the nozzle group height, Y is the length of the image to be printed (including white edges) in the Y direction, n is the actual number of printed blocks, and the overlapping block position can be determined based on the corresponding position of the last block and the length L of the overlapping block position. For example Figure 2a In this embodiment, the length L of the overlapping block position is calculated as J1 - (Y - Y1 - Y2 - 4J1). The overlapping block position can be determined based on the starting coordinate of the last block in the Y direction, the length L of the overlapping block position, and the positional relationship between the overlapping block position and the last block. In this embodiment, the overlapping block position is located at the bottom of the last block. Subsequently, based on the relationship between the number of blocks and the printhead, the overlapping block position is converted into the corresponding overlapping printhead, thereby determining the overlapping nozzle that does not produce ink corresponding to the last block.
[0064] In another example, the overlapping block positions are located at the first and last blocks, and obtaining the overlapping block positions and overlapping nozzles based on the Y offset value and the actual number of printed blocks includes: determining the overlapping block positions of the first block and the last block respectively based on the Y offset value;
[0065] The overlapping nozzles that do not produce ink are determined based on the position of the first overlapping block, and the overlapping nozzles that do not produce ink are determined based on the position of the last overlapping block.
[0066] Wherein: the Y offset value includes: a first Y offset value Y1 and a second Y offset value Y2. The length L1 of the overlapping block position of the first block is Y1. The overlapping block position of the first block can be determined based on the corresponding position of the first block and the length L1 of the overlapping block position. Subsequently, according to the relationship between the number of blocks and the printhead, the overlapping block position of the first block is converted into the corresponding overlapping printhead, thereby determining the overlapping nozzle that does not produce ink corresponding to the first block. The length L2 of the overlapping block position of the last block is Y2. The overlapping block position of the last block can be determined based on the corresponding position of the last block and the length L2 of the overlapping block position. Subsequently, according to the relationship between the number of blocks and the printhead, the overlapping block position of the last block is converted into the corresponding overlapping printhead, thereby determining the overlapping nozzle that does not produce ink corresponding to the last block. For example... Figure 2bThe length L1 of the overlapping block position of the first block is Y1. The position of the overlapping block of the first block can be determined based on the starting coordinate of the first block in the Y direction, the length L1 of the overlapping block position, and the positional relationship between the overlapping block position and the first block. In this embodiment, the overlapping block position of the first block is located at the top of the first block. Subsequently, according to the relationship between the number of blocks and the printhead, the overlapping block position of the first block is converted into the corresponding overlapping printhead, thereby determining the overlapping nozzle that does not produce ink corresponding to the first block. The length L2 of the overlapping block position of the last block is Y2. The position of the overlapping block of the last block can be determined based on the starting coordinate of the last block in the Y direction, the length L2 of the overlapping block position, and the positional relationship between the overlapping block position and the last block. In this embodiment, the overlapping block position of the last block is located at the bottom of the last block. Subsequently, according to the relationship between the number of blocks and the printhead, the overlapping block position of the last block is converted into the corresponding overlapping printhead, thereby determining the overlapping nozzle that does not produce ink corresponding to the last block.
[0067] It is worth noting that the position of the overlapping block is not limited to the first or last block. In other embodiments, the printing system can intelligently set the optimal position of the overlapping block based on the Y offset value, the actual number of printed blocks, and the height of the printhead assembly. For example, the overlapping block can be set in any block, or each block can have an overlapping block, thereby making the entire printing process more efficient and the data processing speed faster.
[0068] S33. Control the inkjet nozzle to spray ink according to the actual number of printed blocks, and close the overlapping nozzle when the ink is sprayed to the position of the overlapping block.
[0069] For example, print data is input into the print channel of the corresponding block to control the printhead to print, and the overlapping nozzle is turned off when ink is sprayed to the position of the overlapping block.
[0070] Example 2
[0071] Embodiment 2 of the present invention provides a printing method for intelligently removing white border data. The difference between this method and Embodiment 1 is that, before obtaining the size of the image to be printed and the white border data in the image to be printed, the method further includes:
[0072] S1. Determine if there is white border data in the image to be printed;
[0073] For example, the Gerber file of the image to be printed can be parsed to determine whether there is blank data in the file. If blank data exists, then there is white border data in the image to be printed.
[0074] To avoid mistaking inherent blank areas in an image for white border data, coordinate conditions can be pre-set. The system checks if data satisfying these conditions is indeed white border data. If the data satisfying these conditions is blank, then white border data exists in the image to be printed. These coordinate conditions can be the coordinates of the top, bottom, left, or right edge of the image to be printed. In other words, the presence of white border data in the image to be printed is determined by checking for blank data at its top, bottom, left, or right edge regions.
[0075] S2. If the image to be printed contains white border data, enable the white border printing mode.
[0076] In this embodiment, after enabling the white border printing mode, the process proceeds to step S101 in Embodiment 1.
[0077] Example 3
[0078] Please see Figure 3 The present invention also provides a printing device for intelligently removing white border data, comprising:
[0079] The acquisition module 31 is used to acquire the size of the image to be printed and the white border data in the image to be printed;
[0080] The removal module 32 is used to obtain print data with white edge data removed based on the size of the image to be printed and the white edge data; the print data ensures that the two printheads at both ends of the printhead layout will not be exposed outside the printing platform due to the white edge data.
[0081] The control module 33 is used to control the printhead to print according to the print data.
[0082] In one specific embodiment, the removal module 32 includes:
[0083] The first acquisition module is used to obtain the Y offset value and X offset value based on the white border data;
[0084] The second acquisition module is used to obtain printing data by removing the white edge data at the beginning and end of the Y and X directions of the image to be printed based on the size of the image to be printed, the Y offset value, and the X offset value.
[0085] Where: the Y direction is the direction of movement of the printhead or printing media, the X direction is the direction of printhead scanning, and the Y and X directions are perpendicular.
[0086] The control module 33 includes:
[0087] The calculation module is used to calculate the actual number of printed blocks based on the print data;
[0088] The second acquisition module is used to obtain the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks;
[0089] The sub-control module is used to control the inkjet nozzle to spray ink according to the actual number of printed blocks, and to close the overlapping nozzle when ink is sprayed to the position of the overlapping block.
[0090] In one example, the overlapping block is located at the last block, and the second acquisition module includes:
[0091] The sub-calculation module is used to calculate the position of the overlapping block of the last block based on the Y offset value and the actual number of printed blocks;
[0092] The first determining module is used to determine the overlapping nozzle that does not produce ink, corresponding to the last overlapping block, based on the position of the overlapping block.
[0093] In another example, the overlapping block positions are located between the first and last blocks, and the second acquisition module includes:
[0094] The second determining module is used to determine the overlapping block position of the first block and the overlapping block position of the last block based on the Y offset value.
[0095] The third determining module is used to determine the non-inking overlapping nozzle corresponding to the first block based on the position of the overlapping block of the first block, and to determine the non-inking overlapping nozzle corresponding to the last block based on the position of the overlapping block of the last block.
[0096] In one embodiment, the Y offset value includes: a first Y offset value and a second Y offset value. The first acquisition module takes the length of the white edge data in the Y direction corresponding to the first block as the first Y offset value and takes the length of the white edge data in the Y direction corresponding to the last block as the second Y offset value.
[0097] Furthermore, the device also includes:
[0098] The judgment module is used to determine whether there is white border data in the image to be printed;
[0099] The module enables white-border printing mode if the image to be printed contains white-border data.
[0100] Combination Figure 1 The intelligent white-edge removal printing method described in this embodiment of the invention can be implemented by an intelligent white-edge removal printing device. Figure 4 A schematic diagram of the hardware structure of the intelligent white border removal printing device provided in an embodiment of the present invention is shown.
[0101] A printing device that intelligently removes white margin data may include a processor 401 and a memory 402 storing computer program instructions.
[0102] Specifically, the processor 401 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.
[0103] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 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 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to a data processing device. In a particular embodiment, memory 402 is a non-volatile solid-state memory. In a particular embodiment, memory 402 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.
[0104] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the intelligent white border removal printing methods in the above embodiments.
[0105] In one example, the printing device for intelligently removing white border data may also include a communication interface 403 and a bus 410. For example, Figure 4 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 410 and complete communication with each other.
[0106] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0107] Bus 410 includes hardware, software, or both, which couples together components of a printing device that intelligently removes white margin data.
[0108] For example, and not as a limitation, the bus 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 410 may include one or more buses. Although specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0109] Furthermore, in conjunction with the intelligent white-edge removal printing method 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 a processor, these computer program instructions implement any of the intelligent white-edge removal printing methods described in the above embodiments.
[0110] In summary, the intelligent white-edge removal printing method, apparatus, device, and storage medium of the present invention obtains white-edge removed printing data based on the size of the image to be printed and the white-edge data; and controls the printhead to print based on the printing data. The printing data ensures that the two printheads at both ends of the printhead layout are not exposed outside the printing platform due to white-edge data, thereby protecting the printheads and ink stack from UV lamp irradiation and not affecting printing efficiency.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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 for intelligently removing white border data, characterized in that, The method includes: Obtain the size of the image to be printed and the white border data in the image to be printed; Based on the size of the image to be printed and the white border data, print data with the white border data removed is obtained, including: Based on the white border data, obtain the Y offset value in the Y direction and the X offset value in the X direction; The printing data is obtained by removing the white border data at the beginning and end of the Y and X directions of the image to be printed based on the size of the image to be printed, the Y offset value, and the X offset value; Where: Y direction is the direction of movement of the printhead or printing medium, X direction is the direction of printhead scanning, Y direction and X direction are perpendicular to each other, Y offset value refers to the length value of the white edge data in the Y direction of the image to be printed, and X offset value refers to the length value of the white edge data in the X direction of the image to be printed. Controlling the printhead to print according to the print data includes: Calculate the actual number of printed blocks based on the printed data; The overlapping block position and overlapping nozzle are obtained based on the Y offset value and the actual number of printed blocks; The printhead inkjet is controlled according to the actual number of printed blocks, and the overlapping nozzle is turned off when the inkjet reaches the position of the overlapping block. The printing data ensures that the two nozzles at both ends of the nozzle layout are not exposed outside the printing platform due to the white edge data during printing.
2. The printing method for intelligently removing white border data according to claim 1, characterized in that, The overlapping block is located at the last block, and obtaining the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks includes: The position of the overlapping block of the last block is calculated based on the Y offset value and the actual number of printed blocks; The overlapping nozzle that does not produce ink is determined based on the position of the overlapping block.
3. The printing method for intelligently removing white border data according to claim 2, characterized in that, The overlapping block is located between the first and last blocks. Obtaining the overlapping block position and overlapping nozzle based on the Y offset value and the actual number of printed blocks includes: The overlapping block positions of the first block and the last block are determined based on the Y offset value. The overlapping nozzles that do not produce ink are determined based on the position of the first overlapping block, and the overlapping nozzles that do not produce ink are determined based on the position of the last overlapping block.
4. The printing method for intelligently removing white border data according to claim 1, characterized in that, The Y offset value includes: a first Y offset value and a second Y offset value, and obtaining the Y offset value based on the white border data includes: The length of the white border data in the Y direction within the first block is taken as the first Y offset value; The length of the white border data in the last block corresponding to the Y direction is taken as the second Y offset value.
5. The printing method for intelligently removing white border data according to any one of claims 1-4, characterized in that, Before obtaining the size of the image to be printed and the white border data in the image to be printed, the method further includes: Determine if there is white border data in the image to be printed; If the image to be printed contains white border data, enable the white border printing mode.
6. A printing device for intelligently removing white border data, characterized in that, include: The acquisition module is used to acquire the size of the image to be printed and the white border data in the image to be printed; The white border removal module is used to obtain print data with white borders removed based on the size of the image to be printed and the white border data, including: Based on the white border data, obtain the Y offset value in the Y direction and the X offset value in the X direction; The printing data is obtained by removing the white border data at the beginning and end of the Y and X directions of the image to be printed based on the size of the image to be printed, the Y offset value, and the X offset value; Wherein: the Y direction is the direction of movement of the printhead or printing medium, the X direction is the direction of printhead scanning, the Y and X directions are perpendicular to each other, the Y offset value refers to the length value of the white edge data corresponding to the Y direction of the image to be printed, and the X offset value refers to the length value of the white edge data corresponding to the X direction of the image to be printed; the printing data ensures that the two printheads at both ends of the printhead layout will not be exposed outside the printing platform due to the white edge data. A control module, used to control the printhead to print according to the print data, includes: Calculate the actual number of printed blocks based on the printed data; The overlapping block position and overlapping nozzle are obtained based on the Y offset value and the actual number of printed blocks; The printhead is controlled to spray ink according to the actual number of printed blocks, and the overlapping nozzle is turned off when the ink is sprayed to the position of the overlapping block.
7. A printing device for intelligently removing white border data, characterized in that, include: A memory, a processor, and computer program instructions stored in the memory and executable on the processor, which, when executed by the processor, implement the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, The method as described in any one of claims 1 to 5 is implemented when the computer program instructions are executed by the processor.