Image variable-length printing method and device and related equipment
Patent Information
- Application Number
- CN202310187768.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-27
AI Technical Summary
In the prior art, since each printing length is different, corresponding printing files need to be set, resulting in low printing efficiency.
By obtaining the length of the substrate and the output length of the print file template, it determines whether it is greater than the length of the substrate, and determines in real time whether a stop printing signal is received. It dynamically adjusts the output length and resolution of the print file template to achieve variable-length printing of images, avoiding Repeatedly set up multiple print files.
The printing efficiency is greatly improved. There is no need to set up multiple printing files for substrates of different lengths, which simplifies the printing process and improves work efficiency.
Smart Images

Figure CN118550482A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital printing, and in particular to a printing method and device for variable-length images and related equipment. Background Art
[0002] Currently, in some applications in the field of inkjet printing, it is necessary to repeatedly print a single pattern unit and splice it into a larger pattern. This method of continuously printing a single pattern is called continuous printing.
[0003] Continuous printing is used in the fields of textiles, coatings, etc. For example, in the field of coatings, when printing wall patterns, engineers need to half-tone the electronic image before printing to generate a print file (ie, a PRN file), and the printing device starts printing after receiving the print file. However, since the substrates have different specifications and sizes, a print file corresponding to the substrate must be generated before each printing, which is time-consuming, labor-intensive, and very cumbersome. Or on the same substrate, each time a different length is printed, a corresponding print file needs to be set, which is time-consuming and labor-intensive. In the prior art, since the print length is different each time, a corresponding print file needs to be set, and the printing efficiency is low. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a variable-length image printing method, apparatus and related equipment to solve the problem in the prior art that different printing lengths require setting corresponding printing files and the printing efficiency is low.
[0005] In a first aspect, an embodiment of the present invention provides a method for printing an image with a variable length, the method comprising:
[0006] Obtaining the length of the substrate and the output length of the print file template, and determining whether the output length of the print file template is greater than the length of the substrate;
[0007] If yes, start printing;
[0008] Real-time judgment on whether a stop printing signal is received;
[0009] If yes, stop printing.
[0010] Preferably, after the step of determining whether the output length of the print file template is greater than the length of the substrate, the method further comprises:
[0011] If not, reducing the first resolution of the image corresponding to the print file template;
[0012] Determine whether a second resolution of the image of the print file template meets a threshold, wherein the first resolution is an original image resolution and the second resolution is a reduced image resolution;
[0013] If so, the output length of the print file template is extended according to the second resolution of the image of the print file template and the image of the print file template until the output length of the print file template is greater than or equal to the length of the substrate.
[0014] Preferably, the nozzle has a plurality of nozzle channels, and the step of stopping printing comprises:
[0015] Obtaining a printing sequence of the nozzle channel;
[0016] After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
[0017] Preferably, the method has a corresponding printing device, and the stop printing signal can be generated by the printing device automatically identifying the edge of the substrate;
[0018] or,
[0019] The stop printing signal is generated according to a control signal for controlling the printing device.
[0020] Preferably, before the step of obtaining the length of the substrate and the output length of the print file template and determining whether the output length of the print file template is greater than the length of the substrate, the step includes:
[0021] Obtaining the flatness information of the substrate, and determining whether the flatness of the substrate meets a preset threshold;
[0022] If not, the printing ends.
[0023] In a second aspect, an embodiment of the present invention further provides a method for printing an image with a variable length, comprising:
[0024] Obtaining a printing file template and starting printing, wherein the content of the printing file template is a pattern presented in a unit area in the step-by-step pattern;
[0025] Real-time judgment on whether a stop printing signal is received;
[0026] If yes, stop printing.
[0027] Preferably, the nozzle has a plurality of nozzle channels, and the step of stopping printing comprises:
[0028] Obtaining a printing sequence of the nozzle channel;
[0029] After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
[0030] In a third aspect, an embodiment of the present invention provides a printing device for an image with a variable length, the device comprising:
[0031] A first judgment module is used to obtain the length of the substrate and the output length of the print file template, and judge whether the output length of the print file template is greater than the length of the substrate;
[0032] A first execution module, for starting printing if yes;
[0033] The second judgment module is used to judge in real time whether a stop printing signal is received;
[0034] The second execution module is used for stopping printing if the answer is yes.
[0035] In a fourth aspect, an embodiment of the present invention provides a device for printing an image with a variable length, the device comprising:
[0036] An acquisition module, used to acquire a printing file template and start printing, wherein the content of the printing file template is a pattern presented in a unit area in a step-by-step pattern;
[0037] The third judgment module is used to judge in real time whether a stop printing signal is received;
[0038] The third execution module is used for stopping printing if the answer is yes.
[0039] In a fifth aspect, an embodiment of the present invention provides a printing device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method of the first aspect in the above embodiment is implemented.
[0040] In a sixth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the method of the first aspect in the above-mentioned embodiment.
[0041] In summary, the beneficial effects of the present invention are as follows:
[0042] The embodiments of the present invention provide a method, device, printing equipment and storage medium for printing images with variable lengths. This solution uses a printing file template to print patterns of different lengths without setting up multiple printing files, thereby greatly improving printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0044] Figure 1 A schematic flow chart of a first embodiment of a variable-length image printing method of the present invention;
[0045] Figure 2 for Figure 1 Schematic diagram of the substrate in the embodiment;
[0046] Figure 3 A schematic diagram of a first process of a variable-length image printing method according to the present invention;
[0047] Figure 4 A schematic diagram of a second process of a variable-length image printing method according to the present invention;
[0048] Figure 5 A schematic flow chart of a second embodiment of a variable-length image printing method of the present invention;
[0049] Figure 6 It is a schematic diagram of the third process of a method for printing an image with variable length according to the present invention;
[0050] Figure 7 is a first structural schematic diagram of an image variable length printing device according to an embodiment of the present invention;
[0051] Figure 8 is a second structural schematic diagram of the image variable length printing device according to an embodiment of the present invention;
[0052] Fig. 9 It is a schematic diagram of the structure of a printing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. 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 implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0054] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0055] Example 1
[0056] See also Figure 1 and 2 , an embodiment of the present invention provides a method for printing an image with a variable length, the method comprising:
[0057] S1: Obtain the length of the substrate and the output length of the print file template, and determine whether the output length of the print file template is greater than the length of the substrate;
[0058] S2: If yes, start printing;
[0059] S3: Determine in real time whether a stop printing signal is received;
[0060] S4: If yes, stop printing.
[0061] In an embodiment of the present invention, the output width of the print file template is determined by the parameter settings and the height of the print head group. The widest output width of the print file template is equal to the height of the print head group. The print width of the head group in different substrates can be adjusted according to actual needs. The printing device obtains the length of the substrate and the output length of the print file template, and determines whether the output length of the print file template is greater than the length of the substrate. The output length of the print file template can be obtained from the parameters set by the system. Exemplarily, the output length of the print file template is 5 meters, the printing device is a wall-mounted printing robot, the first substrate and the second substrate are both walls, the length of the first substrate is 2 meters, the output length of the print file template is greater than the first substrate, and the printing device starts printing. The printing device determines in real time whether a stop printing signal is received. For example, after printing the first substrate, the printing device receives a stop printing signal and stops printing. Then, if Figure 2As shown, the second substrate is 3 meters long. When the printing device determines that the output length of the print file template is greater than the length of the second substrate, the second substrate is printed. When the stop printing signal is received after the second substrate is printed, the printing device stops printing. Compared with generating a first print file for the first substrate and a second print file for the second substrate, this solution does not need to set multiple print files when printing patterns of different lengths, greatly improving printing efficiency.
[0062] In other embodiments of the present invention, the printing device includes a digital printer, and the substrates include but are not limited to corrugated paper, ceramic tiles, paper and other materials. When printing substrates of different lengths, the printing device also obtains the substrate length and the output length of the print file template. When the output length of the print file template is greater than the substrate length, printing is started. After printing the current substrate, the above process is repeated to start printing the next substrate. In this solution, there is no need to set multiple print files for multiple substrates. Only one print file template is needed to realize printing of multiple substrates.
[0063] In other embodiments of the present invention, when printing multiple patterns of different lengths on the same substrate, the above process may be repeated without setting multiple print files.
[0064] Example 2
[0065] Further, after the step S1 of judging whether the output length of the print file template is greater than the length of the substrate, the following steps are included:
[0066] S1A: if not, reducing the first resolution of the image corresponding to the print file template;
[0067] S1B: Determine whether a second resolution of the image of the print file template meets a threshold, wherein the first resolution is an original image resolution and the second resolution is a reduced image resolution;
[0068] S1C: If so, extending the output length of the print file template according to the second resolution of the image of the print file template and the image of the print file template until the output length of the print file template is greater than or equal to the length of the substrate.
[0069] In an embodiment of the present invention, if the output length of the print file template is less than the length of the substrate, the file of the print file template may be too large, and the printing device may not be able to run the print file template and start printing. Therefore, while keeping the image content unchanged, the original resolution (i.e., the first resolution) of the image corresponding to the print file template is reduced. It is determined whether the resolution of the image after the print file template reduces the resolution (i.e., the second resolution) meets the threshold. For example, the first resolution is A x B, the second resolution is axb, and the threshold is C x D. If the second resolution meets the requirements, the output length of the print file template is extended until the output length of the print file template is greater than or equal to the length of the substrate. Through the above measures, the output length of the print file template can be extended by reducing the resolution without changing the file size of the print file template, so that the print file template can meet the requirements of variable-length printing of the image.
[0070] Example 3
[0071] Reference Figure 3 and 4 , the nozzle has multiple nozzle channels, and if so, the step S4 of stopping printing comprises:
[0072] S41: Obtaining the printing sequence of the nozzle channel;
[0073] S42: After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
[0074] In an embodiment of the present invention, the nozzle has C (cyan), M (magenta), Y (yellow), and K (black) channels. Figure 3 , the nozzles are arranged according to the C, M, Y and K channels, and the printing sequence is K, Y, M and C. In the prior art, the colors of the printing device are generally mixed with four inks, CMYK. If the printing device stops printing immediately after receiving the pause signal, the CMYK color channel may stop printing before the printing is completed, resulting in color difference in the printed image. In the embodiment of the present invention, Figure 3 As shown, when the print head reaches the edge of the substrate, the printing device receives a signal to stop printing, and the print head can obtain the relative position of the print head and the substrate through a sensor device such as a laser sensor or an image sensor. Figure 3When the K channel in the image has reached the edge of the substrate, the K channel stops printing, the nozzle continues to move toward the edge of the substrate, and the Y, M, and C channels continue to print; when the C channel reaches the edge of the substrate, the nozzle continues to move toward the edge of the substrate, the C channel stops printing, and the M and Y channels continue to print. When the M channel reaches the edge of the substrate, the M channel stops printing, and the C channel continues to print. Figure 4 As shown in the figure, when the C channel reaches the edge of the substrate, the C channel stops printing. At this time, the CMYK channels all stop printing, that is, the printhead stops printing. By stopping the printhead channel printing in steps, the color difference of the image caused by the sudden stop of the printhead channel can be effectively avoided.
[0075] Example 4
[0076] Furthermore, the method has a corresponding printing device, and the stop printing signal can be generated by the printing device automatically identifying the edge of the substrate; or, the stop printing signal is generated according to a control signal for controlling the printing device.
[0077] In an embodiment of the present invention, illustratively, the printing device is a wall-mounted robot. The stop printing signal can be generated by the printing device automatically identifying the edge of the substrate. For example, an image sensor can be set on the printing device to obtain edge distance information of the substrate by taking pictures and image recognition. When the edge distance of the substrate is lower than a preset value, the printing device will consider that it has reached the edge of the substrate and generate a stop printing signal. In other embodiments of the present invention, the stop printing signal can also be generated by setting the printing time on the printing device through manual control, or by sending a stop printing signal to the printing device through an external device.
[0078] Example 5
[0079] Furthermore, before the step S1 of obtaining the length of the substrate and the output length of the print file template and determining whether the output length of the print file template is greater than the length of the substrate, the following steps are included:
[0080] S0: Obtaining the flatness information of the substrate, and determining whether the flatness of the substrate meets a preset threshold;
[0081] S1: If not, then end printing.
[0082] In the embodiment of the present invention, the substrate is a wall, and the printing device is a wall-mounted robot equipped with a level. The level obtains the flatness information of the wall by means of infrared laser. And judges whether the flatness meets the preset threshold. If not, it proves that the flatness of the wall does not meet the printing requirements. If printing continues at this time, printing ink will be wasted. Therefore, the flatness of the wall can be pre-checked before printing to avoid wasting printing ink.
[0083] Example 6
[0084] Reference Figure 5 The present invention also provides a method for printing an image with a variable length, comprising:
[0085] S1A: obtaining a printing file template and starting printing, wherein the content of the printing file template is a pattern presented in a unit area in a step-by-step pattern;
[0086] S2A: Real-time judgment on whether a stop printing signal is received;
[0087] S3A: If yes, stop printing.
[0088] In an embodiment of the present invention, the printing device obtains a printing file template and starts printing, wherein the content of the printing file template is a pattern presented in a unit area in the step-by-step pattern. Figure 6 As shown, the unit area is a grid, and there is a pattern in the grid; the patterns in multiple grids are connected to form a continuous printing pattern. In an embodiment of the present invention, the print file template is the pattern in the cell. During the printing process, the printing device determines in real time whether a stop printing signal is received. If the printing device receives a stop printing signal, printing stops. In an embodiment of the present invention, the way in which the printing device obtains a stop printing signal includes but is not limited to the printing device automatically generating a stop printing signal, and the printing device obtaining a stop printing signal from the outside. In this solution, since the print pattern is a continuous printing pattern, the content of the print file template is the corresponding unit pattern in the continuous printing pattern. Refer to Figure 2 , the lengths of the first substrate and the second substrate are different. When the printing device prints the first substrate, it prints a pattern of unit length each time, and stops printing after receiving a stop signal after printing several times. Then, the second substrate is printed, and it prints a pattern of unit length each time, and stops printing after printing several times. Through the above method, there is no need to set multiple print files for patterns of different substrate lengths. Only one print file template and control signal are needed to print substrates of various lengths, thereby improving printing efficiency.
[0089] Example 7
[0090] Reference Figure 3 and 4 , the nozzle has multiple nozzle channels, and if so, the step S4 of stopping printing comprises:
[0091] S41A: Obtain the printing sequence of the nozzle channel;
[0092] S42A: After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
[0093] In an embodiment of the present invention, the nozzle has C (cyan), M (magenta), Y (yellow), and K (black) channels. Figure 3 , the nozzles are arranged according to the C, M, Y and K channels, and the printing sequence is K, Y, M and C. In the prior art, the colors of the printing device are generally mixed with four inks, CMYK. If the printing device stops printing immediately after receiving the pause signal, the CMYK color channel may stop printing before the printing is completed, resulting in color difference in the printed image. In the embodiment of the present invention, Figure 3 As shown, when the print head reaches the edge of the substrate, the printing device receives a signal to stop printing, and the print head can obtain the relative position of the print head and the substrate through a sensor device such as a laser sensor or an image sensor. Figure 3 When the K channel in the image has reached the edge of the substrate, the K channel stops printing, the nozzle continues to move toward the edge of the substrate, and the Y, M, and C channels continue to print; when the C channel reaches the edge of the substrate, the nozzle continues to move toward the edge of the substrate, the C channel stops printing, and the M and Y channels continue to print. When the M channel reaches the edge of the substrate, the M channel stops printing, and the C channel continues to print. Figure 4 As shown in the figure, when the C channel reaches the edge of the substrate, the C channel stops printing. At this time, the CMYK channels all stop printing, that is, the printhead stops printing. By stopping the printhead channel printing in steps, the color difference of the image caused by the sudden stop of the printhead channel can be effectively avoided.
[0094] Example 8
[0095] See also Figure 7 , an embodiment of the present invention provides a printing device with variable image length, comprising:
[0096] The first judgment module 1 is used to obtain the length of the substrate and the output length of the print file template, and judge whether the output length of the print file template is greater than the length of the substrate;
[0097] The first execution module 2 is used for starting printing if yes;
[0098] The second judgment module 3 is used to judge in real time whether a stop printing signal is received;
[0099] The second execution module 4 is used for stopping printing if yes.
[0100] In an embodiment of the present invention, the output width of the print file template is determined by the parameter settings and the height of the print head group. The widest output width of the print file template is equal to the height of the print head group. The print width of the head group in different substrates can be adjusted according to actual needs. The printing device obtains the length of the substrate and the output length of the print file template, and determines whether the output length of the print file template is greater than the length of the substrate. The output length of the print file template can be obtained from the parameters set by the system. Exemplarily, the output length of the print file template is 5 meters, the printing device is a wall-mounted printing robot, the first substrate and the second substrate are both walls, the length of the first substrate is 2 meters, the output length of the print file template is greater than the first substrate, and the printing device starts printing. The printing device determines in real time whether a stop printing signal is received. For example, after printing the first substrate, the printing device receives a stop printing signal and stops printing. Then, if Figure 2 As shown, the second substrate is 3 meters long. When the printing device determines that the output length of the print file template is greater than the length of the second substrate, the second substrate is printed. When the stop printing signal is received after the second substrate is printed, the printing device stops printing. Compared with generating a first print file for the first substrate and a second print file for the second substrate, this solution does not need to set multiple print files when printing patterns of different lengths, greatly improving printing efficiency.
[0101] In other embodiments of the present invention, the printing device includes a digital printer, and the substrates include but are not limited to corrugated paper, ceramic tiles, paper and other materials. When printing substrates of different lengths, the printing device also obtains the substrate length and the output length of the print file template. When the output length of the print file template is greater than the substrate length, printing is started. After printing the current substrate, the above process is repeated to start printing the next substrate. In this solution, there is no need to set multiple print files for multiple substrates. Only one print file template is needed to realize printing of multiple substrates.
[0102] In other embodiments of the present invention, when printing multiple patterns of different lengths on the same substrate, the above process may be repeated without setting multiple print files.
[0103] Example 9
[0104] Reference Figure 8 The present invention also provides a printing device with variable image length, comprising:
[0105] An acquisition module 5 is used to acquire a printing file template and start printing, wherein the content of the printing file template is a pattern presented in a unit area in the continuous printing pattern;
[0106] The third judgment module 6 is used to judge in real time whether a stop printing signal is received;
[0107] The third execution module 7 is used for stopping printing if yes.
[0108] In an embodiment of the present invention, the printing device obtains a print file template and starts printing, wherein the content of the print file template is a pattern presented in a unit area in the step-by-step pattern. Figure 6 As shown, the unit area is a grid, and there is a pattern in the grid; the patterns in multiple grids are connected to form a continuous printing pattern. In an embodiment of the present invention, the print file template is the pattern in the cell. During the printing process, the printing device determines in real time whether a stop printing signal is received. If the printing device receives a stop printing signal, printing stops. In an embodiment of the present invention, the way in which the printing device obtains a stop printing signal includes but is not limited to the printing device automatically generating a stop printing signal, and the printing device obtaining a stop printing signal from the outside. In this solution, since the print pattern is a continuous printing pattern, the content of the print file template is the corresponding unit pattern in the continuous printing pattern. Refer to Figure 2 , the lengths of the first substrate and the second substrate are different. When the printing device prints the first substrate, it prints a pattern of unit length each time, and stops printing after receiving a stop signal after printing several times. Then, the second substrate is printed, and it prints a pattern of unit length each time, and stops printing after printing several times. Through the above method, there is no need to set multiple print files for patterns of different substrate lengths. Only one print file template and control signal are needed to print substrates of various lengths, thereby improving printing efficiency.
[0109] In addition, combined Fig. 9 The variable-length image printing method described in the embodiment of the present invention may be implemented by a printing device. Fig. 9 A schematic diagram of the hardware structure of a printing device provided by an embodiment of the present invention is shown.
[0110] The printing device may include a processor and a memory storing computer program instructions.
[0111] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0112] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a 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 a flash memory or a combination of two or more of these.
[0113] The processor implements any one of the variable-length image printing methods in the above embodiments by reading and executing computer program instructions stored in the memory.
[0114] In one example, the printing device may further include a communication interface and a bus. Fig. 9 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0115] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0116] Bus includes hardware, software or both, and the parts of xxxx equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, bus may include one or more buses. Although the embodiment of the present invention describes and shows specific bus, the present invention considers any suitable bus or interconnection.
[0117] In addition, in combination with the variable-length image printing method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the variable-length image printing methods in the above embodiment is implemented.
[0118] In summary, the embodiments of the present invention provide a method, apparatus, printing device and storage medium for printing an image with variable length.
[0119] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0120] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal 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, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0121] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0122] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for printing an image with variable length, It is characterized in that include: Obtaining the length of the substrate and the output length of the print file template, and determining whether the output length of the print file template is greater than the length of the substrate; If yes, start printing; Real-time judgment on whether a stop printing signal is received; If yes, stop printing.
2. The method for printing an image with a variable length according to claim 1, It is characterized in that After the step of determining whether the output length of the print file template is greater than the length of the substrate, the method further comprises: If not, reducing the first resolution of the image corresponding to the print file template; Determine whether a second resolution of the image of the print file template meets a threshold, wherein the first resolution is an original image resolution and the second resolution is a reduced image resolution; If so, the output length of the print file template is extended according to the second resolution of the image of the print file template and the image of the print file template until the output length of the print file template is greater than or equal to the length of the substrate.
3. The method for printing an image with a variable length according to claim 1 or 2, It is characterized in that The nozzle has a plurality of nozzle channels, and the step of stopping printing comprises: Obtaining a printing sequence of the nozzle channel; After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
4. The variable-length printing method of an image according to claim 3, wherein the method comprises a corresponding printing device. It is characterized in that The stop printing signal may be generated by the printing device automatically identifying the edge of the substrate; or, The stop printing signal is generated according to a control signal for controlling the printing device.
5. The method for printing an image with a variable length according to claim 1, It is characterized in that Before the step of obtaining the length of the substrate and the output length of the print file template and determining whether the output length of the print file template is greater than the length of the substrate, the method includes: Obtaining the flatness information of the substrate, and determining whether the flatness of the substrate meets a preset threshold; If not, the printing ends.
6. A method for printing an image with variable length, It is characterized in that include: Obtaining a printing file template and starting printing, wherein the content of the printing file template is a pattern presented in a unit area in a step-by-step pattern; Real-time judgment on whether a stop printing signal is received; If yes, stop printing.
7. The method for printing an image with a variable length according to claim 6, It is characterized in that The nozzle has a plurality of nozzle channels, and the step of stopping printing comprises: Obtaining a printing sequence of the nozzle channel; After receiving the stop printing signal, if the nozzle channel reaches the edge of the substrate, the nozzle channel stops printing; the nozzle channel that has not reached the edge of the substrate continues printing, and the nozzle continues to move toward the edge of the substrate until all the nozzle channels reach the edge of the substrate and the nozzle stops printing.
8. A variable-length image printing device, applied to the variable-length image printing method according to claim 1, It is characterized in that The device comprises: A first judgment module is used to obtain the length of the substrate and the output length of the print file template, and judge whether the output length of the print file template is greater than the length of the substrate; A first execution module, for starting printing if yes; The second judgment module is used to judge in real time whether a stop printing signal is received; The second execution module is used for stopping printing if the answer is yes.
9. A variable-length image printing device, applied to the variable-length image printing method according to claim 6, It is characterized in that The device comprises: An acquisition module, used to acquire a printing file template and start printing, wherein the content of the printing file template is a pattern presented in a unit area in a step-by-step pattern; The third judgment module is used to judge in real time whether a stop printing signal is received; The third execution module is used for stopping printing if the answer is yes.
10. A printing device, It is characterized in that include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 7.
