Control method of printing system, electronic equipment, storage medium and printing system
By designing an automated printing system control method, the coordinated work of the main control module, tool cutting module, sensor module and printing module is solved, and the low degree of automation caused by the independent operation of conventional DTF printer modules is achieved, and an efficient and automated printing and cutting process is achieved.
Patent Information
- Application Number
- CN202411531180.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-10-30
AI Technical Summary
In the prior art, the modules of conventional DTF printers operate independently, lack effective integration and collaborative working mechanisms, resulting in low degree of automation of the printing process, requiring frequent manual intervention, increasing the operating burden and affecting printing quality and production efficiency.
Design a control method for printing system, including a main control module, a knife cutting module, a sensor module and a printing module. Through the main control module, the printing module prints patterns according to the printing file, the sensor module obtains consumable data to identify the cutting position, and the knife cutting module cuts consumables according to the cutting position, realizing automatic control.
Improve printing efficiency, reduce manual intervention, enhance printing quality and production efficiency, and realize automated printing and cutting processes.
Smart Images

Figure CN119636269A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of printing system control, and in particular to a printing system control method, electronic equipment, storage medium and printing system. Background Art
[0002] With the growing demand for personalized customization and small-batch production, the printing industry is increasingly eager for efficient, flexible and high-quality printing solutions. In the period when traditional printing technology dominated, conventional DTF (Direct to Film) printers had already appeared, but they had obvious shortcomings.
[0003] Conventional DTF printers have relatively simple modules, and each module operates independently, lacking effective integration and collaborative working mechanisms, resulting in a low degree of automation in the entire printing process. In actual operation, manual intervention and adjustment of the working status of each module are required frequently, which not only increases the workload of operators, but also easily leads to human errors, thus affecting printing quality and production efficiency. Summary of the invention
[0004] The main purpose of the present application is to provide a control method for a printing system, an electronic device, a storage medium and a printing system, aiming to solve the technical problem of low printing efficiency caused by excessive manual intervention in the prior art.
[0005] To achieve the above-mentioned purpose, the present application provides a control method of a printing system, wherein the printing system comprises a main control module, a knife cutting module, a sensor module and a printing module, and the control method of the printing system comprises:
[0006] Controlling the printing module to print patterns on consumables according to the printing file through the main control module;
[0007] Controlling the sensor module to obtain data of the consumable material after the pattern is printed, so as to identify the cutting position of the consumable material;
[0008] The knife cutting module is controlled to cut the consumable material according to the cutting position.
[0009] In one embodiment, before the step of controlling the printing module to print a pattern on the consumable material according to the printing file, the control method further includes:
[0010] An image corresponding to the pattern is received, and the print file is generated according to the image.
[0011] In one embodiment, the step of generating the print file according to the image includes:
[0012] Enlarging, color separation and half-toning the image to generate printing data;
[0013] Obtaining printing parameters and knife cutting mode corresponding to the image;
[0014] The printing file is generated according to the printing data, the printing parameters and the knife cutting mode.
[0015] In one embodiment, the printing module includes a print head, an ink module, an inkjet control module, and a motion control module, and the step of controlling the printing module to print a pattern on a consumable material according to the printing file includes:
[0016] Controlling the ink stack of the ink module to open;
[0017] Controlling the inkjet of the print head by the inkjet control module;
[0018] The motion control module is used to control the print head to reciprocate along a first axial direction, and the motion control module is used to control the consumable material to move along a second axial direction, so as to print the pattern on the consumable material.
[0019] In one embodiment, the sensor module includes a camera module, and the step of controlling the sensor module to obtain the consumable data to identify the cutting position of the consumable includes:
[0020] The camera module is controlled to collect an image of the consumable to identify a film hole position of the consumable according to the image of the consumable; and the cutting position is determined based on the film hole position and position information of the pattern on the consumable.
[0021] In one embodiment, the sensor module includes a photoelectric sensor, and the step of controlling the sensor module to obtain data of the consumable after the printed pattern to identify the cutting position of the consumable includes:
[0022] Controlling the consumable to move according to a set mode, and controlling the photoelectric sensor to collect reflected light data of the consumable;
[0023] If the film hole change is determined according to the reflected light data, the consumable is controlled to stop displacement and the film hole position is determined;
[0024] The cutting position is determined based on the film hole position and the position information of the pattern on the consumable material.
[0025] In one embodiment, the step of determining the cutting position based on the film hole position and the position information of the pattern on the consumable material includes:
[0026] Determining a cutting compensation value according to the film hole position and the position information of the pattern on the consumable material;
[0027] The cutting position is determined based on the cutting compensation value.
[0028] In one embodiment, the step of determining the cutting compensation value according to the film hole position and the position information of the pattern on the consumable material includes:
[0029] Determining a first cutting position of the consumable material according to position information of a pattern on the consumable material;
[0030] Determining a first coordinate corresponding to the film hole position and a second coordinate corresponding to the first cutting position;
[0031] If the first coordinate coincides with the second coordinate, the cutting compensation value is determined based on a preset spacing between adjacent film holes.
[0032] In one embodiment, controlling the knife cutting module to cut the consumable material according to the cutting position includes:
[0033] Controlling the consumable or the cutting module to move along the second axial direction so that the cutting module corresponds to the cutting position;
[0034] The consumable material is cut twice by the knife cutting module.
[0035] In one embodiment, the step of cutting the consumable material twice by the knife cutting module includes:
[0036] Controlling the knife cutting module to move to the initial cutting position and controlling the knife to fall;
[0037] Moving the knife cutting module at a first speed to perform a first cutting process;
[0038] If the first cutting process is completed, the knife cutting module is moved at a second speed to perform a second cutting process, and the first speed is lower than the second speed.
[0039] In one embodiment, the step of moving the knife cutting module at a second speed to perform a second cutting process includes:
[0040] Reset the knife cutting module to the initial cutting position, and move the knife cutting module at the second speed; or,
[0041] The knife cutting module is moved along a reverse path of the first cutting process at a second speed to perform the second cutting process.
[0042] In one embodiment, after the step of controlling the knife cutting module to cut the consumable material according to the cutting position, the method further includes:
[0043] Controlling the sensor module to identify whether the consumable material is cut off;
[0044] If the consumable material is not cut off, an abnormal state is entered, or the cutting module is controlled to cut the consumable material again.
[0045] In one embodiment, the printing system further includes a material rack module and an ink stack, and before the step of controlling the printing module to print a pattern on the consumable material according to the printing file by the main control module, the method includes:
[0046] If the rack module is installed with consumables, the ink stack has ink, and the print head has been inked, the print head is cleaned through the ink stack;
[0047] Control the printing module to print a test pattern on the consumable material;
[0048] The consumable material is cut by the knife cutting module.
[0049] In one embodiment, the control method of the printing system further includes a calibration step, and the calibration step includes:
[0050] Controlling the printing module to print a test chart;
[0051] Controlling the sensor module to collect at least one first calibration image of the test chart;
[0052] generating calibration data based on the first calibration image;
[0053] A calibration file is generated according to the calibration data, so as to calibrate the control parameters of the printing module according to the calibration file.
[0054] In one embodiment, before the step of generating a calibration file according to the calibration data to calibrate the control parameters of the printing module according to the calibration file, the following steps are included:
[0055] Based on the calibration data, controlling the printing module to print a calibration test chart on the consumable material;
[0056] Controlling the sensor module to collect at least one second calibration image of the calibration test chart;
[0057] determining whether the calibration is successful based on the second calibration image;
[0058] If the calibration is successful, a calibration file is generated according to the calibration data.
[0059] In addition, to achieve the above-mentioned purpose, the present application also provides a printing system, characterized in that the printing system comprises:
[0060] Knife cutting module, used for cutting consumables;
[0061] A printing module, used for printing pictures on consumables;
[0062] A sensor module, used for acquiring consumable data of the consumable to obtain a cutting position of the consumable;
[0063] The main control module is used to: control the printing module to print the printing pattern on the consumable material according to the printing file; control the sensor module to obtain the consumable material data; and control the knife cutting module to cut the consumable material according to the cutting position.
[0064] In one embodiment, the printing system also includes a host computer, which is communicatively connected to the printing device via at least one of a network port, a USB interface, and WiFi, and the host computer is used to: edit the printing pattern; enlarge, color separate, and halftone the edited printing pattern to generate printing data; obtain the printing parameters and knife cutting mode corresponding to the printing pattern; generate the printing file according to the printing data, the printing parameters, and the knife cutting mode, and send it to the printing device.
[0065] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the printing system as described above.
[0066] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing a control method of a printing system is stored on the computer-readable storage medium. The program for implementing the control method of the printing system is executed by a processor to implement the steps of the control method of the printing system as described above.
[0067] The present application provides a control method for a printing system, which includes a main control module, a knife cutting module, a sensor module and a printing module. The control method for the printing system includes: controlling the printing module to print a pattern on a consumable material according to a printing file through the main control module; controlling the sensor module to obtain data of the consumable material to identify a cutting position of the consumable material; and controlling the knife cutting module to cut the consumable material according to the cutting position, thereby solving the technical problem of low printing efficiency caused by excessive manual intervention in the prior art, and achieving the technical effect of improving printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0069] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0070] Figure 1 A schematic diagram of a printing system according to an embodiment of the present application;
[0071] Figure 2 A structural diagram of a printing device in a possible embodiment of the control method of the printing system of the present application;
[0072] Figure 3 A flowchart diagram of steps S10-S30 in a possible embodiment of the control method of the printing system of the present application;
[0073] Figure 4 A flowchart diagram of steps A10-A30 in a possible embodiment of the control method of the printing system of the present application;
[0074] Figure 5 A flowchart diagram of steps A40-A70 in a possible embodiment of the control method of the printing system of the present application;
[0075] Figure 6 A schematic diagram of signaling interaction between modules of a printing system in a control method of the printing system;
[0076] Figure 7 Another schematic diagram of signaling interaction among various modules of a printing system in a control method of the printing system;
[0077] Figure 8 It is another signaling interaction diagram of each module of the printing system in the control method of the printing system;
[0078] Fig. 9 It is another signaling interaction diagram of each module of the printing system in the control method of the printing system;
[0079] Fig.10 This is a schematic diagram of the hardware structure of the printing device involved in this application.
[0080] Description of Figure Numbers:
[0081] 2000, printing system; 1000, printing device; 1100, host computer;
[0082] 100, print head; 200, print table; 700, housing; 71a, first opening; 71b, first cover plate; 75, material outlet; 900, material discharging bracket; 91, bracket; 11, main control module; 12, first algorithm module; 13, second algorithm module; 14, printing module; 141, print head; 142, motion control module; 143, inkjet control module; 144, ink stack; 145, ink circulation module; 15, material rack module; 16, knife cutting module; 17, display module; 18, sensor module.
[0083] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0084] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0085] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0086] At present, the modules of conventional DTF printers are relatively simple, and each module operates independently, lacking effective integration and collaborative working mechanisms, resulting in a low degree of automation in the entire printing process. In actual operation, manual intervention and adjustment of the working status of each module are required frequently, which not only increases the workload of operators, but also easily leads to human errors, thus affecting printing quality and production efficiency.
[0087] The main solution of the present application is: the printing system includes a main control module, a knife cutting module, a sensor module and a printing module. The control method of the printing system includes: controlling the printing module to print a pattern on the consumable material according to the printing file through the main control module; controlling the sensor module to obtain consumable data to determine the cutting position of the consumable material; controlling the knife cutting module to cut the consumable material according to the cutting position, thereby achieving the technical effect of improving printing efficiency.
[0088] The present application embodiment provides a printing system, please refer to Figure 1 The printing system includes a host computer 1100 and a printing device 1000, and the printing device 1000 is connected to the host computer 1100 in communication. The host computer 1100 may be installed with printing software, and the printing software has an interactive interface. The user operates through the interactive interface to create a printing task, call a calibration function, set printing parameters, etc. The host computer 1100 may send a printing task to the printing device 1000, and the printing device 1000 may start printing after receiving the printing task. Among them, the host computer 1100 may be a computer, a mobile phone, a tablet, etc., which are not listed here one by one.
[0089] Optionally, the host computer 1100 is communicatively connected to the printing device 1000 via at least one of an Ethernet port, a USB interface, and WiFi.
[0090] Exemplarily, both the host computer 1100 and the printing device 1000 are provided with at least one of a corresponding network port module, a USB interface, and a WiFi module. The user can select the connection mode between the host computer 1100 and the printing device 1000 according to actual needs and usage scenarios. For example, in an office environment, a WiFi connection can be used to facilitate mobile office and multi-device sharing; in situations where high-speed and stable transmission is required, a USB interface connection can be selected; and for remote control and cross-network printing, a network port connection can be used. The connection process is simple and convenient. The user only needs to make corresponding settings on the host computer 1100 and the printing device 1000 to achieve a quick connection. For example, for a WiFi connection, the user searches for available wireless networks on the host computer 1100, selects the network corresponding to the printing device 1000, and enters the password; for a USB connection, the USB cable can be automatically identified by simply inserting it into the USB interface of the host computer 1100 and the printing device 1000; for a network port connection, the user needs to connect the host computer 1100 and the printing device 1000 to the same network and set the corresponding IP address and port number.
[0091] The driver and control software of the printing device 1000 are installed on the host computer 1100. The driver is responsible for communicating with the printing device 1000 and converting the printing instructions of the host computer 1100 into a format that can be recognized by the printing device 1000. The control software provides a user interface to facilitate users to perform operations such as print settings, file management, and device monitoring. During the installation process, users can make settings according to prompts, such as selecting a connection method, setting printer parameters, and installing a font library. After the installation is completed, users can further configure the printing device 1000 through the control software, such as adjusting the print quality, setting the paper size, and selecting the print mode.
[0092] Based on this, in a possible embodiment of the present application, a printing device 1000 is proposed, referring to Figure 2 It should be noted that the printing device 1000 proposed in the present application can be a thermal inkjet printer, a piezoelectric inkjet printer, or a white ink heat transfer printer ("Direct to Film DTF" printer), a white ink direct injection printer ("Direct to Garment" DTG printer), etc., as long as it is a device used for jetting ink for printing operations.
[0093] In this embodiment, the printing device 1000 further includes a housing 700, a processing space is formed in the housing 700, and the print head 100 and the printing table 200 are arranged in the processing space. In some embodiments of the present application, the housing 700 is provided with an opening 71a and a cover plate 71b connected to the processing space, and the cover plate 71b can open or cover the opening 71a. The printing device 1000 also includes a discharge bracket 900, which is arranged on the discharge side of the printing table 200. Exemplarily, the discharge bracket 900 can be arranged at the material outlet 75b of the housing 700, and the discharge bracket 900 can include at least two support plates 91, and at least two support plates 91 can be extended or overlapped. The print head 100 also includes a sensor module 18. By arranging the sensor module 18 on the print head 100, the printing path of the print head 100 is photographed, and then the calibration pattern printed by the print head 100 is collected to obtain a calibration image, and the film hole position on the consumable is determined by the sensor module 18. The sensor module 18 may be a camera, a photoelectric sensor, or the like.
[0094] In a possible embodiment, the print head 100 is provided with an adapter plate, and four plug ports are provided on one side of the adapter plate connected to the print head 100, so as to connect the print head 100 through four cables. A plug port is provided on one side of the plug plate connected to the printing device 1000, so as to connect the printing device 1000 through a data cable. The adapter plate is provided on the housing of the print head 100, and when the print head 100 is installed, the print head 100 is installed to the printing device 1000 by installing one wire, thereby improving the installation efficiency.
[0095] Optionally, the printing device 1000 is further provided with a display module 17 to implement interaction with the user. The interaction methods include but are not limited to providing data in the printing process, providing printing options, displaying printing effects, and previewing printing effects.
[0096] Optionally, the printing device 1000 includes a main control module 11, a cutting module 16, a material rack module 15, a calibration module, a sensor module 18 and a printing module 14, the printing module includes a print head 141, an ink module, an inkjet control module 143 and a motion control module 142, and the ink module includes an ink stack 144 and an ink circulation module 145.
[0097] A calibration module, used for calibrating the printing system;
[0098] A knife cutting module 16, used for cutting consumables;
[0099] A printing module 14, used for printing patterns on consumables;
[0100] The sensor module 18 is used to obtain the consumable data of the consumable to obtain the cutting position of the consumable;
[0101] The main control module 11 is used to: control the printing module 14 to print patterns on the consumables according to the printing file; control the sensor module 18 to obtain the consumables data; and control the cutting module 16 to cut the consumables according to the cutting position.
[0102] Optionally, the host computer 1100 is used to: receive an image to be printed, edit the image based on the editing instruction; enlarge, color separate and halftone the edited print pattern to generate print data; obtain the print parameters and knife cutting mode corresponding to the print pattern; generate a print file according to the print data, print parameters and knife cutting mode and send it to the printing device 1000. Specifically, the host computer 1100 may include a second algorithm module 13, and the second algorithm module 13 may be used to: enlarge, color separate and halftone the edited print pattern to generate print data; obtain the print parameters and knife cutting mode corresponding to the print pattern; generate a print file according to the print data, print parameters and knife cutting mode and send it to the printing device 1000.
[0103] Optionally, the main control module 11 is further used to receive an image corresponding to the pattern to be printed, and generate a print file according to the image.
[0104] Optionally, the main control module 11 is further used to enlarge, color separate and halftone the image to generate print data; obtain the printing parameters and knife cutting mode corresponding to the image; and generate a print file according to the print data, the print parameters and the knife cutting mode. Optionally, the printing device 1000 also includes a first algorithm module 12, which can be used to: enlarge, color separate and halftone the image to generate print data; obtain the printing parameters and knife cutting mode corresponding to the image; and generate a print file according to the print data, the print parameters and the knife cutting mode. The main control module 11 can implement the instruction of processing the image to generate a print file by calling the first algorithm module 12.
[0105] Optionally, the printing module 14 includes a print head 141, an ink module, an inkjet control module 143 and a motion control module 142. The main control module 11 is also used to control the opening of the ink stack 144 of the ink module; control the print head 141 to spray ink through the inkjet control module 143; control the print head 141 to reciprocate along the first axis through the motion control module 142, and control the consumable to move along the second axis through the motion control module 142 to print a pattern on the consumable.
[0106] Optionally, the sensor module 18 includes a camera module, and the main control module 11 can control the camera module to capture the image of the consumable to identify the film hole position of the consumable according to the image of the consumable, and determine the cutting position based on the film hole position and the position information of the printed pattern on the consumable.
[0107] Optionally, the main control module 11 is further used to: determine the cutting compensation value according to the position information of the film hole position and the pattern printed on the consumable; and determine the cutting position based on the cutting compensation value. Optionally, the second algorithm module 13 of the host computer 1100 is further used to: determine the cutting compensation value according to the position information of the film hole position and the pattern printed on the consumable; and determine the cutting position based on the cutting compensation value.
[0108] Optionally, the main control module 11 is also used to: determine the first cutting position of the consumable according to the position information of the pattern printed on the consumable; determine the first coordinate corresponding to the film hole position, and the second coordinate corresponding to the first cutting position; if the first coordinate coincides with the second coordinate, determine the cutting compensation value based on the preset adjacent film hole spacing. Optionally, the second algorithm module 13 of the host computer 1100 can also be used to: determine the first cutting position of the consumable according to the position information of the pattern printed on the consumable; determine the first coordinate corresponding to the film hole position, and the second coordinate corresponding to the first cutting position; if the first coordinate coincides with the second coordinate, determine the cutting compensation value based on the preset adjacent film hole spacing.
[0109] Optionally, the sensor module 18 is a photoelectric sensor, and the main control module 11 is also used to: control the consumable to move according to a set mode, and control the photoelectric sensor to collect reflected light data of the consumable; if the film hole change is determined based on the reflected light data, control the consumable to stop moving and determine the film hole position; determine the cutting position based on the film hole position and the position information of the pattern on the consumable.
[0110] Optionally, the main control module 11 is further used to control the movement of the consumables through the motion control module 142 so that the knife cutting module 16 corresponds to the cutting position; and the consumables are cut twice by the knife cutting module 16.
[0111] Optionally, the main control module 11 is also used to control the knife cutting module 16 to move to the initial cutting position and control the knife to fall; move the knife cutting module 16 at a first speed to perform a first cutting process; if the first cutting process is completed, move the knife cutting module 16 at a second speed to perform a second cutting process, and the first speed is less than the second speed.
[0112] Optionally, the main control module 11 is further used to reset the knife cutting module 16 to the initial cutting position and move the knife cutting module 16 at a second speed; or, move the knife cutting module 16 along the opposite path of the first cutting process at the second speed to perform a second cutting process.
[0113] Optionally, the main control module 11 is further used to: control the sensor module 18 to identify whether the consumables are cut; if the consumables are not cut, enter an abnormal state, or control the cutting module 16 to cut the consumables again.
[0114] Optionally, the printing system further includes a rack module 15 and an ink stack 144, the rack module 15 is used to place consumables, and the ink stack 144 is used to maintain the print head 141. Optionally, if the rack module 15 is installed with consumables, the ink stack 144 has ink, and the print head 141 has been inked, the main control module 11 performs a cleaning process of the print head 141 through the ink stack 144. The main control module 11 is used to control the printing module 14 to print a test pattern on the consumables; and the consumables are cut by the knife cutting module 16.
[0115] Optionally, the main control module 11 is used to control the printing module 14 to print a test chart; control the sensor module 18 to collect at least one first calibration image of the test chart; generate calibration data based on the first calibration image; generate a calibration file according to the calibration data, and calibrate the control parameters of the printing module 14 according to the calibration file. Optionally, the second algorithm module 13 of the host computer 1100 can also be used to: generate calibration data based on the first calibration image; generate a calibration file according to the calibration data, and calibrate the control parameters of the printing module 14 according to the calibration file.
[0116] Optionally, the main control module 11 is used to control the printing module 14 to print a calibration test chart on the consumables based on the calibration data; control the sensor module 18 to collect at least one second calibration image of the calibration test chart; determine whether the calibration is successful based on the second calibration image; if the calibration is successful, generate a calibration file based on the calibration data. Optionally, the second algorithm module 13 of the host computer 1100 can also be used to determine whether the calibration is successful based on the second calibration image; if the calibration is successful, generate a calibration file based on the calibration data.
[0117] The printing system provided in the embodiment of the present application adopts the control method of the printing system in the following embodiment, which can solve the technical problem of low printing efficiency caused by excessive manual intervention in the prior art. Compared with the prior art, the beneficial effects of the printing system provided in the embodiment of the present application are the same as the beneficial effects of the control method of the printing system provided in the following embodiment, and other technical features of the printing system are the same as the features disclosed in the following embodiment method, which will not be repeated here.
[0118] The specific implementation of each of the above modules is the same as the corresponding implementation of the control method described in the following embodiments, which will not be repeated here.
[0119] It should be noted that the execution subject of this embodiment may be a printing system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a printing device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the printing system as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0120] Based on this, in a possible embodiment of the present application, a control method of a printing system is proposed, please refer to Figure 3 , the control method of the printing system includes steps S10 to S30:
[0121] Step S10, controlling the printing module to print a pattern on a consumable material according to the printing file by the main control module.
[0122] In this embodiment, the printing system includes a main control module, a knife cutting module, a sensor module and a printing module, and the printing module includes a print head. The relevant contents of each module can refer to the embodiment of the aforementioned printing system. The main control module, as the control core of the entire printing system, is responsible for receiving and processing various instructions and data, and coordinating the work of each module. The pattern is the image that the user wants to print corresponding to the presentation form on the consumables. The print file can be generated by the host computer or the main control module according to the pattern in a file format that can be recognized and executed by the printing module. The printing module is used for printing, which includes a print head and related driving mechanisms, etc. Consumables refer to materials used for printing, such as specific paper, PET film, etc. The print head forms a pattern on the consumable by discharging ink. The membrane hole position refers to the specific position of the membrane hole on the consumable.
[0123] As an optional implementation, the main control module sends the received or generated print file to the printing module. The drive mechanism in the printing module controls the print head to move on the consumables and ejects ink in a timely manner according to the instructions in the print file, thereby gradually forming the final pattern on the consumables. For example, if printing on a PET film, the print head will accurately control the size and ejection position of the ink droplets to ensure the clarity of the pattern and the accuracy of the color.
[0124] Step S20, controlling the sensor module to obtain data of the consumable material after the pattern is printed, so as to identify the cutting position of the consumable material.
[0125] In this embodiment, the consumables data may include the size and position of the consumables, the area and position of the pattern on the consumables, etc. The consumables data can be used to further determine the film hole position on the consumables, and then determine the cutting position according to the film hole position.
[0126] As an optional implementation, the sensor module is a camera module. After printing is completed, the main control module issues a command to control the sensor module to shoot the consumables. The sensor module can shoot the image of the consumables and obtain the consumable image. For example, a high-resolution camera can be used, and a suitable shooting angle and light conditions can be adjusted to ensure that the captured consumable image is clear and discernible. The main control module can be used to call the first algorithm module to implement image processing and analysis of the consumable image taken by the sensor module, and identify the location of the membrane hole.
[0127] Exemplarily, the membrane hole can be identified based on the consumables image, and then the image recognition algorithm can be used to accurately determine the center position of the membrane hole, and the midpoint between the two membrane holes can be calculated to obtain the position between the two membrane holes, that is, the cutting position.
[0128] As another optional implementation, the sensor module may also be a module such as a photoelectric sensor, which can directly detect the position of the film hole, and then determine the cutting position according to the detected film hole position.
[0129] Step S30, controlling the cutting module to cut the consumables according to the cutting position.
[0130] In this embodiment, the cutting module may be disposed on the print head or may be disposed separately from the print head.
[0131] As an optional implementation, after the cutting position is determined, the knife cutting module is controlled to cut between two film holes according to the preset cutting rules. The knife of the knife cutting module is controlled to move to the position for cutting to ensure the accuracy and precision of the cutting. For another example, the area between adjacent film holes can also be determined based on the identified film holes, and these areas can be used as cutting positions.
[0132] For example, a user uses this printing system to print a batch of product labels on a PET film. First, the user edits a picture containing information such as product name, barcode, etc. through the host computer, and sets printing parameters such as printing resolution, color mode, etc.; and also sets the knife cutting mode such as full cutting, half cutting, etc. The host computer performs image processing and format conversion based on this information to generate a print file. For example, the color of the picture is adjusted to a color mode suitable for PET film printing, and the resolution is adjusted to the best resolution that the print head can support. Then, the print file is sent to the main control module. Then, the main control module controls the printing module to print on the PET film. The print head accurately sprays ink on the PET film according to the instructions in the print file, gradually forming a clear product label pattern. After printing is completed, the main control module controls the sensor module to capture the consumable image of the PET film. The sensor module captures a clear image of the film hole under appropriate angles and light conditions, and transmits it back to the main control module. The main control module analyzes the consumable image and identifies the location of the film hole. Then, according to the preset cutting rules, the knife cutting module is controlled to cut between the two film holes. For example, if the distance between the film holes is 10 cm, the main control module will calculate that the position between the two film holes is 5 cm away from one of the film holes, and control the knife of the knife cutting module to move to that position for cutting, ensuring that each product label can be accurately cut from the PET film.
[0133] Through the above implementation methods and examples, the printing system can efficiently and accurately print pictures on consumables, and perform precise cutting according to the film hole positions to meet various printing and cutting needs.
[0134] By adopting the method of controlling the printing module to print patterns on the consumables according to the printing files through the main control module; controlling the sensor module to obtain the consumables data to determine the cutting position of the consumables; and controlling the knife cutting module to cut the consumables according to the cutting position, the technical problem of low printing efficiency caused by excessive manual intervention in the prior art is solved, thereby achieving the technical effect of improving printing efficiency.
[0135] Based on any embodiment, in a possible embodiment of the present application, before step S10, the following steps are included:
[0136] Step A1, receiving an image corresponding to a pattern, and generating a print file according to the image.
[0137] As an optional implementation, after receiving the image sent by the host computer, the main control module converts the image into a print file suitable for use by the printing module through the internal image processing algorithm and format conversion program. For example, the color mode of the image may be adjusted, the resolution may be optimized, etc., to ensure the quality and accuracy of the printing effect.
[0138] As another optional implementation, the printing system also includes a host computer. That is, the main control module, the knife cutting module, the sensor module and the printing module constitute a printer, and the printing system consists of a host computer and a printer. The host computer has an interactive interface, and the user inputs an image in the interactive interface and edits it as an image to be printed. The host computer determines the user's selection of printing parameters and knife cutting mode based on the trigger information of the interactive interface, and then generates a print file according to the image, printing parameters and knife cutting mode, and sends the print file to the main control module.
[0139] By generating print files based on images, the printing device or host computer can flexibly process the images required by users and generate print files that meet the requirements, thereby improving the flexibility of the system.
[0140] Based on any embodiment, in a possible embodiment of the present application, step A1 includes:
[0141] Step A11, enlarge, color separate and halftone the image to generate print data.
[0142] In this embodiment, the main control module can call the first algorithm module to process the image. The first algorithm module can include two modules, namely, the RIP algorithm submodule and the print control algorithm submodule, for processing the image and generating a print file. The size of the pattern is enlarged so as to obtain clearer details and better printing effects in subsequent processing. Color separation processing includes the process of decomposing a color image into different color channels, such as cyan, magenta, yellow, black, etc., so that the print head can spray different colors of ink to synthesize the final color image. Halftone processing includes converting a continuous tone image into an image composed of dots by simulating different grayscale or color levels to adapt to the resolution and ink characteristics of the printing device. The print data includes the data obtained after color separation and halftone processing and can be used by the printing module, including the color information and position information of each pixel.
[0143] As an optional implementation, when the main control module receives the image, it immediately calls the first algorithm module. The algorithm module first enlarges the image, and can use an interpolation algorithm or other methods to increase the size of the image without losing the image quality. For example, if the size of the original image is 1000×800 pixels, it can be changed to 2000×1600 pixels after enlargement, so that the details of the image can be better presented in the subsequent color separation and halftone processing. The enlarged image is color-separated and decomposed into different color channels. For example, for a color image, it can be decomposed into four color channels: C cyan, M magenta, Y yellow, and K black. Then, each color channel is half-toned, and the continuous tone image is converted into an image composed of dots according to the resolution and ink characteristics of the printing device. Through half-toning, different grayscales or color levels can be simulated, making the printed image more realistic. The final printing data contains the color information and position information of each pixel, etc., which will be used to control the printing module to print.
[0144] Optionally, the first algorithm module further includes a multi-pass printing algorithm submodule and a feathering algorithm submodule, so that the multi-pass printing algorithm submodule, the feathering algorithm submodule and the RIP algorithm submodule jointly process the image input by the user or acquired by the printing device to generate printing data.
[0145] The printing device obtains the image through the connection with the host computer or from the internal storage. Ensure that the format and resolution of the image are within the range that the printing device can handle. Convert the color space of the input image to the color space used by the printing device. This step ensures that the color of the image can be accurately reproduced on the print medium. Adjust the resolution of the image according to the performance of the printing device and user settings. If the image resolution is too high, it may result in long processing time and large print files; if the resolution is too low, it may affect the print quality. Divide the image into small pieces suitable for the printing device to process for subsequent multi-pass printing and feathering. Then determine the number of multi-pass printing according to the complexity of the image and the print quality requirements. Generally speaking, the more times the printing is done, the higher the image quality, but the printing time will also increase accordingly. Plan the printing path for each printing pass and ensure that the overlap between different passes is evenly distributed to improve the smoothness and color saturation of the image. According to the printing position of each pass and the color information of the image, adjust the output of the ink volume to avoid ink accumulation or insufficient ink. At the same time, detect the edge of the image and determine the area that needs to be feathered. Calculate the intensity of feathering according to the characteristics of the edge and user settings. The higher the feathering intensity, the smoother the edge transition, but it may cause loss of image details. Feathering is performed on the edge area to achieve a smooth edge transition by gradually reducing the amount of ink or adjusting the color. The image data processed by the RIP algorithm, multi-pass printing algorithm and feathering algorithm are integrated together to generate the final printing data.
[0146] Step A12, obtaining printing parameters and knife cutting mode corresponding to the image.
[0147] In this embodiment, the printing parameters may include parameters input by the user through the host computer for controlling the printing process, such as printing resolution, color mode, printing speed, etc. The knife cutting mode may include a mode selected by the user through the host computer for controlling the knife cutting module to cut the consumables, such as full cutting, half cutting, dotted line cutting, etc.
[0148] As an optional implementation, the main control module receives the image from the host computer and also obtains the printing parameters and knife cutting mode input by the user. For example, the printing parameters may include a printing resolution of 300dpi, a color mode of color, a printing speed of medium speed, etc.; the knife cutting mode may select full cut, that is, completely cut the consumables. These parameters and modes will be used to generate print files and control the work of the knife cutting module.
[0149] Step A13, generating a printing file according to the printing data, printing parameters and knife cutting mode.
[0150] In this embodiment, the main control module or the host computer generates a file format that can be recognized by the printing module and execute the printing operation according to the printing data, printing parameters and knife cutting mode.
[0151] As an optional implementation, the main control module integrates the printing data, printing parameters and knife cutting mode to generate a printing file. The printing file contains information such as the movement path of the print head on the consumables, the timing and intensity of ink jetting, color information, and the cutting position and method of the knife cutting module. For example, the printing file can be a specific image format, or a set of instruction sequences. The printing module can accurately print the pattern on the consumables based on this information and control the knife cutting module to cut when necessary.
[0152] For example, a user needs to print a batch of promotional posters. The user uses the host computer to edit a high-resolution color picture, and sets the printing parameters to 300dpi, color mode, medium speed, and full cut for the knife cutting mode. After receiving the image, the main control module calls the first algorithm module to enlarge the image. The first algorithm module can use algorithms such as bilinear interpolation algorithm to double the size of the image, making the details in the image clearer. Then, the first algorithm module performs color separation on the enlarged image and decomposes it into four color channels: C, M, Y, and K. Then, each color channel is half-toned, and the continuous tone image is converted into an image composed of dots according to the resolution and ink characteristics of the printing device. After color separation and half-toning, the printing data is determined, including the color information and position information of each pixel. The main control module obtains the printing parameters and knife cutting mode input by the user, and integrates this information with the printing data. A printing file is generated according to the printing data, printing parameters, and knife cutting mode. The print file contains information such as the movement path of the print head on the consumables, the timing and intensity of ink jetting, color information, and the cutting position and method of the knife cutting module. Finally, the main control module sends the print file to the print module and the knife cutting module. The print module controls the print head to accurately spray ink on the consumables based on the information in the print file, gradually forming a clear poster pattern. After printing is completed, the knife cutting module performs a full cut between the two film holes based on the cutting information in the print file, and accurately cuts the poster from the consumables.
[0153] Through the above implementation methods and examples, this printing system can process patterns efficiently and accurately, and generate print files according to the printing parameters and knife cutting mode input by the user, to achieve high-quality printing and cutting effects. At the same time, due to the use of the first algorithm module that is completely self-developed, only one software is needed to complete the functions of the RIP algorithm and the print control algorithm, which is more convenient and efficient than the existing technology. Moreover, the algorithm is supported to run on the device side, and users can directly transfer pictures to the device side for printing, and transmission can be achieved using a low-speed interface, reducing costs and complexity.
[0154] In some implementations, the above step A1 and each sub-step of step A1 (such as A11, A12 and A13, etc.) can be implemented by a host computer, for example, by a second algorithm module in the host computer, and the specific implementation method is basically the same as the above embodiment.
[0155] Based on any embodiment, in a possible embodiment of the present application, step S10 includes:
[0156] Step S11, controlling the ink stack of the ink module to open.
[0157] In this embodiment, the printing module includes a print head, an ink module, an inkjet control module, and a motion control module. The ink module is the part that provides ink to the print head, including an ink stack and an ink circulation module. The ink stack is used to maintain the print head, for example, to seal the print head when the print head is not working, to prevent the ink from drying up and clogging the nozzle, and to clean the print head. After the ink stack is opened, it can provide a channel for ink supply to the print head. The ink circulation module can be responsible for ink extraction, automatic ink feeding of the ink sac, and circulation and stirring of white ink to ensure stable ink supply and uniform quality.
[0158] After receiving the print command, the main control module first controls the ink stack of the ink module to open. This can be achieved by sending a specific electrical signal to the control mechanism of the ink stack. After the ink stack is opened, the ink can flow smoothly from the ink circulation module to the print head to prepare for printing. For example, a solenoid valve can be used to control the opening and closing of the ink stack. When printing is required, the main control module controls the solenoid valve to open, so that the ink stack is connected to the ink circulation module.
[0159] Step S12, controlling the print head to spray ink through the inkjet control module.
[0160] In step S13, the motion control module is used to control the print head to reciprocate along the first axis, and the motion control module is used to control the consumable to move along the second axis, so as to print a pattern on the consumable.
[0161] In this embodiment, the print head is a component that forms a pattern on the consumables by discharging ink. Inkjet control module: responsible for controlling the inkjet operation of the print head, controlling the timing and amount of ink ejection. The motion control module is used to drive the print head and consumables to move in a specific direction to ensure that the print head can eject ink in the correct position to form a complete pattern. The first axial direction: usually a direction parallel to the movement direction of the print head, which can be a horizontal direction or a vertical direction, depending on the design of the printing system. The second axial direction: a direction perpendicular to the first axial direction, usually the conveying direction of the consumables.
[0162] The motion control module receives instructions from the main control module and drives the print head to reciprocate along the first axis. During the movement, the inkjet control module controls the print head to eject ink in a timely manner according to the data in the print file. At the same time, the motion control module also controls the consumables to move along the second axis at a certain speed and direction under the control of the main control module. In this way, the coordinated movement of the print head and the consumables enables the ink to be accurately sprayed at the corresponding position on the consumables, gradually forming a pattern of the pattern. For example, the print head can reciprocate in the horizontal direction, while the consumables move slowly in the vertical direction. The inkjet control module controls the print head to eject ink of different colors and intensities at the position corresponding to each pixel point according to the pixel information in the print file. The motion control module can control the moving speed and position accuracy of the consumables and the print head through the motor and transmission mechanism to ensure the accuracy and clarity of the printing. The printing process continues until the entire pattern is printed on the consumables.
[0163] For example, a user uses this printing system to print a landscape photo on paper. First, after receiving the printing instruction, the main control module controls the ink stack of the ink module to open. The solenoid valve in the ink stack opens, so that the ink circulation module is connected to the print head to ensure that the ink can be smoothly supplied to the print head. Then, the motion control module starts to work. It drives the print head to reciprocate in the horizontal direction. At the same time, according to the data in the print file, the inkjet control module controls the print head to spray ink at the appropriate time. For example, when the print head passes through the blue sky part in the landscape photo, the inkjet control module controls the print head to spray blue ink; when passing through the green grass part, it sprays green ink, etc. At the same time, the motion control module also moves the paper slowly in the vertical direction under the control of the main control module. The motor in the motion control module drives the film material to move at a stable speed through mechanisms such as transmission belts or gears. In this way, the coordinated movement of the print head and the film material enables the ink to be accurately sprayed at the corresponding position on the paper, gradually forming the pattern of the landscape photo. The printing process continues, the print head continuously reciprocates in the horizontal direction, and the motion control module also continuously pushes the film material forward. The printing process ends when the entire landscape photo is printed on the film.
[0164] Through the above implementation methods and examples, the printing system can effectively control various parts of the ink module and the printing module to achieve high-quality printing effects. The opening of the ink stack ensures a stable supply of ink, and the coordinated work of the inkjet control module and the motion control module enables the print head to accurately spray ink on the consumables to form clear and realistic patterns.
[0165] Based on any embodiment, in a possible embodiment of the present application, step S20 includes:
[0166] Step S21, controlling the camera module to collect an image of the consumable, so as to identify the film hole position of the consumable according to the image of the consumable, and determine the cutting position based on the film hole position and the position information of the pattern on the consumable.
[0167] In this embodiment, the first algorithm module is a software module containing a specific image recognition algorithm, which can be used to process image data to determine information such as film hole positions. The position information of the pattern is the coordinate position of the pattern on the consumable, including but not limited to the coordinate point set of the pattern boundary of the pattern.
[0168] First, when consumables need to be cut, the first algorithm module can be called to process the consumables image taken by the sensor module. The first algorithm module can use image recognition technology, such as edge detection algorithm and pattern matching algorithm, to accurately identify the position of the film hole in the image.
[0169] For edge detection algorithms, the consumables image can be grayed out first to reduce computational complexity. Then, edge detection operators such as the Sobel operator and the Canny operator are used to detect the edges in the image. Since the membrane holes usually have obvious edge features, the approximate location of the membrane holes can be preliminarily determined through edge detection.
[0170] Next, the pattern matching algorithm is used to further accurately determine the location of the membrane hole. A standard template for the membrane hole can be established in advance, and then template matching can be performed in the consumable image. By calculating the similarity between the template and different areas in the image, the area that best matches the template, that is, the exact location of the membrane hole, is found. Among them, the edge detection algorithm can determine the edge of the object by detecting the change in pixel value in the image. In this scenario, it is used to preliminarily determine the approximate outline of the membrane hole. Pattern matching algorithm: By comparing the pre-established standard template with different areas in the image, the most similar area is found to determine the location of a specific object. Here it is used to accurately determine the location of the membrane hole. After determining the location of the membrane hole, the cutting position is determined based on the position information corresponding to the membrane hole position and the pattern, so that the cutting position does not fall at the membrane hole position.
[0171] Optionally, in other embodiments, the cutting position may be a film hole position to cut the film hole. Therefore, after determining the film hole position, the cutting position is determined according to the film hole position and the position information corresponding to the pattern, so that the cutting position falls at the film hole position.
[0172] Optionally, step S20 also includes: controlling the consumable to move according to a set mode, and controlling the photoelectric sensor to collect reflected light data of the consumable; if the film hole change is determined based on the reflected light data, controlling the consumable to stop moving and determining the film hole position; and determining the cutting position based on the film hole position and the position information of the pattern on the consumable.
[0173] In this embodiment, the setting mode includes a preset displacement direction and displacement speed. The reflected light data is the data received when the photoelectric sensor sends a light signal to the consumables and then receives the light signal reflected from the consumables. The film hole change means that the reflected light data is different when the light signal hits different places, and then it is determined whether there is a film hole at the current position based on the reflected light data.
[0174] As an optional implementation, the displacement of the consumables is controlled: according to the preset displacement direction and displacement speed, the consumables conveying system is started to make the PET film start to move. A motor or other driving device is used to control the displacement of the consumables to ensure that it moves smoothly and at a uniform speed. During the movement of the consumables, the photoelectric sensor continuously sends light signals to the consumables and receives the reflected light data. The sensor collects data at a certain frequency to ensure that the changes in the film holes can be detected in time. The collected reflected light data is processed and analyzed in real time. Use digital signal processing techniques, such as filtering, amplification, and comparison, to extract useful information. For example, the intensity, wavelength and other characteristics of the reflected light are calculated to determine whether there is a film hole at the current position. According to the change in the reflected light data, it is determined whether the film hole is detected. If the reflected light data changes significantly, it indicates that the light signal hits different places, and a film hole may be encountered. Set a threshold value, and when the change in the reflected light data exceeds this threshold value, it is considered that a change in the film hole is detected. Once the change in the film hole is detected, the consumables conveying system is immediately controlled to stop displacement to ensure that the position of the film hole is accurately determined. Use the trigger signal of the sensor or the instruction of the control system to stop the movement of the consumables. The specific position of the film hole can be determined by further analyzing the reflected light data; or the position of the film hole can be determined based on the displacement distance of the consumables, that is, the coordinates of the film hole can be calculated by combining the position information of the sensor and the movement distance of the consumables.
[0175] Optionally, the step of determining the cutting position based on the film hole position and the position information of the pattern on the consumable material comprises: step S211, determining the cutting compensation value based on the film hole position and the position information of the pattern on the consumable material; step S212, determining the cutting position based on the cutting compensation value.
[0176] In this embodiment, the cutting compensation value can be a value calculated based on factors such as the tool size of the cutting module, the cutting accuracy requirements, and the material and thickness of the consumables, and is used to adjust the position of the consumables to ensure that the cutting is in the middle of the two film holes. The cutting compensation value can also be a compensation value determined based on the position information of the pattern on the consumable. For example, the print head prints from left to right on the consumable, but the blank spacing on the left is too large, so the consumable needs to be moved to the left to reduce the movement distance of the print head during cutting. The cutting compensation value can also be a predetermined compensation distance. For example, according to the set spacing of the host computer, or the default spacing, the determined cutting position is the edge of the pattern plus the spacing. If the cutting position happens to cut the film hole, a cutting compensation value needs to be determined so that the knife edge does not penetrate the film hole.
[0177] As an optional implementation, after determining the film hole position, the system needs to determine the cutting compensation value based on the film hole position. The calculation of this compensation value can take into account a variety of factors, such as the tool size of the cutting module, the cutting accuracy requirements, and the material and thickness of the consumables. For example, the compensation value can be calculated based on the width of the tool and the ideal cutting position between the film holes. If the tool is wider, it may be necessary to offset a certain distance to both sides based on the film hole position to ensure that the cutting is between the two film holes or at the film hole.
[0178] As another optional implementation, after determining the position of the film hole, determine the position information of the pattern on the consumable material, and make a judgment based on the position information of the pattern to determine whether the current first cutting position will cut the film hole. If so, determine the cutting compensation value, and then compensate the first cutting position based on the cutting compensation value to determine the cutting position.
[0179] Exemplarily, the first cutting position is determined to be a straight line with a coordinate x=30 mm, and the cutting compensation value is determined to be 2 mm, so the cutting position is a straight line with a coordinate x=32 mm.
[0180] Optionally, the step of determining the cutting compensation value according to the film hole position and the position information of the pattern on the consumable material includes:
[0181] Step S2111, determining a first cutting position of the consumable material according to the position information of the pattern on the consumable material.
[0182] In this embodiment, the first cutting position is an uncompensated cutting position, that is, a cutting position determined according to the knife cutting mode sent by the host computer.
[0183] As an optional implementation, the knife cutting mode is cutting along the edge of the pattern. In this case, the first cutting position is determined by the position information of the pattern, that is, the coordinates of the edge points of the pattern.
[0184] As another optional implementation, the knife cutting mode is to cut five centimeters along the edge of the pattern. At this time, according to the coordinates of the edge point of the pattern, the coordinate offset five centimeters outward is the first cutting position.
[0185] Step S2112, determining the first coordinate corresponding to the film hole position and the second coordinate corresponding to the cutting position in the print file.
[0186] Step S2113: if the first coordinate coincides with the second coordinate, a cutting compensation value is determined based on a preset adjacent film hole spacing.
[0187] In this embodiment, the first coordinate is the coordinate representation of the film hole position determined by identifying the consumable image in the system, which is used to accurately describe the position of the film hole in space. The second coordinate: the coordinate corresponding to the cutting position obtained from the print file, which is the representation of the cutting position preset by the system in space. Cutting compensation value: a value determined to adjust the cutting position when the knife edge coincides with the film hole. This value can be used to control the motion control module to move the consumable so that the knife cutting module cuts at the correct position. The spacing between adjacent film holes: the distance between two adjacent film holes on the consumable is one of the important bases for determining the cutting compensation value. This spacing value can be determined by actual measurement or according to the specification parameters of the consumable.
[0188] As an optional implementation, the first algorithm module is called to identify and process the consumable image to accurately determine the position of the membrane hole in the system. The position of each membrane hole is represented by a coordinate to obtain a first coordinate. For example, assuming that in a two-dimensional plane coordinate system, the position of the membrane hole can be represented by (x1, y1). At the same time, the coordinate corresponding to the preset cutting position, that is, the second coordinate, is obtained from the print file. For example, the cutting position coordinate specified in the print file is (x2, y2). The first coordinate is compared with the second coordinate to determine whether they coincide. If the values of the two coordinates are exactly the same, the first coordinate is considered to coincide with the second coordinate. For example, when x1=x2 and y1=y2, it is determined that the coordinates coincide. If the first coordinate coincides with the second coordinate, it indicates that the blade coincides with the membrane hole, and adjustment is required at this time. The cutting compensation value is determined based on the preset adjacent membrane hole spacing. First, determine the distance between adjacent membrane holes. This spacing value can be obtained by measurement or according to the specification parameters of the consumables. For example, assume that the adjacent membrane hole spacing is d. Then, the cutting compensation value is calculated according to the actual situation. The size and direction of the compensation value can be determined according to the cutting direction and the arrangement of the membrane holes. For example, if the cutting direction is horizontal and the membrane holes are arranged in the horizontal direction, when the knife edge coincides with the membrane hole, the cutting compensation value can be set to move to one side by half the distance between adjacent membrane holes, that is, the compensation value is d / 2, and the moving direction can be to the left or right, which is determined according to the preset rules of the system.
[0189] If the first coordinate does not coincide with the second coordinate, that is, the first cutting position will not pass through the film hole, then the cutting compensation value is determined as the product of the spacing between adjacent film holes and a preset multiple, and the preset multiple is an integer, such as 0, 1, 2, 3, etc. Therefore, it is avoided that the knife cutting module cuts the film hole when cutting the consumables, affecting the cutting effect.
[0190] In other embodiments, if the cutting position is required to be at the film hole, if the first coordinate coincides with the second coordinate, the cutting compensation value is 0; if the first coordinate does not coincide with the second coordinate, the cutting compensation value is the spacing value of adjacent holes.
[0191] In some embodiments, the aforementioned step S20 and its corresponding sub-steps can be implemented by the second algorithm module in the host computer, and the specific implementation scheme is consistent with the aforementioned embodiment. In this way, the image processing algorithms are all implemented in the host computer, and the requirements for the printing device processor are relatively low.
[0192] Optionally, step S30 includes:
[0193] Step S31, controlling the consumables or the cutting module to move along the second axial direction so that the cutting module corresponds to the cutting position.
[0194] After determining the cutting compensation value, the system controls the motion control module to move the consumables. The motion control module can achieve precise movement control through motor drive and transmission mechanism. According to the size and direction of the compensation value, the motion control module moves the consumables to the appropriate position so that the knife cutting module can cut at the correct position.
[0195] Step S32, cutting the consumables twice by the knife cutting module.
[0196] In this embodiment, in order to ensure the quality and accuracy of cutting, the system performs two cutting processes through the knife cutting module. The first cutting can use lighter pressure and speed, the main purpose of which is to make a shallow cutting mark on the consumables to provide guidance for the second cutting. During the first cutting process, the system can monitor the depth and position of the cutting in real time to ensure that the cutting is on the correct track. The second cutting uses greater pressure and speed to completely cut off the consumables. Before the second cutting, the system can call the sensor module again to capture the position of the consumables to confirm whether the consumables have moved to the correct cutting position. If necessary, fine-tuning can be performed before the second cutting. That is, the first cutting: using lighter pressure and speed to make shallow cutting marks on the consumables to provide guidance for the second cutting. The second cutting: using greater pressure and speed to completely cut off the consumables to ensure the quality and accuracy of the cutting.
[0197] By performing two cutting processes, the cutting accuracy and reliability can be improved, and the scrap rate caused by incomplete cutting or inaccurate position can be reduced. At the same time, the system can continuously monitor and adjust parameters during the cutting process to adapt to different consumables and cutting requirements.
[0198] Based on any embodiment, in a possible embodiment of the present application, step S32 includes:
[0199] Step S321, control the knife cutting module to move to the initial cutting position, and control the knife to fall.
[0200] In this embodiment, the initial cutting position refers to the position of the print head at the beginning of the cutting process, which is usually determined according to the cutting position information in the print file and the cutting path preset by the system. Dropping the knife refers to the operation of lowering the knife in the knife cutting module to contact the consumable material and prepare to start cutting. The knife cutting module can be set on the print head and move synchronously with the print head. The knife cutting module can also be set separately from the print head and can be moved independently.
[0201] After receiving the instruction to execute the cutting process, the main control module first determines the initial cutting position of the print head in the knife cutting module. This position is usually determined based on the cutting position information in the print file and the cutting path preset by the system. Then, the print head is driven to move to the initial cutting position through the control signal. The movement of the print head can be achieved by a motor-driven transmission mechanism to ensure that it can accurately reach the specified position. When the print head reaches the initial cutting position, the main control module controls the knife drop operation. Knife drop means that the knife in the knife cutting module is lowered to prepare to start cutting the consumables. This can be achieved by controlling a solenoid valve or other mechanical device to make the knife contact the consumables.
[0202] Step S322, moving the cutting module at a first speed to perform a first cutting process.
[0203] In this embodiment, the first speed is the speed at which the print head moves in the first cutting process, which is relatively slow and is used to make shallow cutting marks on the consumables. The first cutting process: the first step of the cutting process, which performs preliminary cutting on the consumables at a slower speed to provide guidance for the second cutting process.
[0204] After the knife falls, the main control module starts to execute the first cutting process. At this time, the main control module controls the knife cutting module to move at the first speed. The first speed is usually a relatively slow speed, the purpose of which is to make a shallow cutting mark on the consumables to provide guidance for the subsequent second cutting process. During the movement of the knife cutting module, the knife contacts the consumables and gradually cuts into the consumables. The main control module can ensure that the knife cutting module moves at a stable first speed by monitoring the speed of the motor or feedback information from other sensors. At the same time, according to the progress of the cutting and the characteristics of the consumables, the cutting pressure and the angle of the knife can be adjusted in time to ensure the quality and effect of the cutting.
[0205] Step S323, if the first cutting process is completed, move the cutting module at a second speed to perform a second cutting process, and the first speed is lower than the second speed.
[0206] In this embodiment, the second speed: the speed at which the print head moves in the second cutting process is faster than the first speed, so as to quickly and completely cut off the consumables. The second cutting process: the second step of the cutting process, cutting at a faster speed to ensure that the consumables are completely cut off.
[0207] When the first cutting process is completed, the main control module determines whether the first cutting process has achieved the expected effect through sensors or other detection means. If the first cutting process is successfully completed, the main control module starts to execute the second cutting process. In the second cutting process, the main control module controls the knife cutting module to move at a second speed. The second speed is usually faster than the first speed, and the purpose is to quickly and thoroughly cut off the consumables. When the knife cutting module moves at the second speed, the tool continues to cut into the consumables until the consumables are completely cut off. The main control module can ensure the smooth progress of the second cutting process by monitoring information such as the position of the tool, the depth of cutting, and the load of the motor. Once the consumables are completely cut off, the main control module can control the print head to stop moving and raise the tool to complete the entire cutting process.
[0208] Optionally, step S323 includes:
[0209] Step S3231, resetting the knife cutting module to the initial cutting position, and moving the knife cutting module at a second speed.
[0210] In this embodiment, when the first cutting process is completed, the main control module first determines whether to choose to reset to the initial cutting position to perform the second cutting process. If this is the case, the main control module issues an instruction to control the knife cutting module to start the reset operation. The main control module drives the motor to reverse or other appropriate methods to make the knife cutting module move in the opposite direction along its moving path and return to the initial cutting position. During the movement, the main control module continuously monitors the position of the print head to ensure that it returns to the initial position accurately. When the knife cutting module reaches the initial cutting position, the main control module confirms the position and state of the knife cutting module again to ensure that it is in the correct posture for preparing for the second cutting process. Then, the main control module controls the knife cutting module to start moving at the second speed to perform the second cutting process. At this time, the knife cutting module moves along the preset cutting path at a faster speed, and the knife penetrates into the consumables to quickly and thoroughly cut off the consumables. In this process, the main control module can adjust the moving speed and cutting pressure of the knife cutting module in real time according to the information fed back by the sensor, such as the position of the knife, the cutting depth, the load of the motor, etc., to ensure the quality and effect of the cutting.
[0211] Step S3232, alternatively, the knife cutting module is moved along the opposite path of the first cutting process at a second speed to perform a second cutting process.
[0212] When the first cutting process is completed, if the second cutting process is selected along the opposite path of the first cutting process, the main control module immediately issues a command to control the knife cutting module to start moving in the opposite direction. The main control module determines the direction and parameters of the opposite path based on the path information of the first cutting process. Then, by controlling the direction and speed of the drive motor, the knife cutting module moves along the opposite path at the second speed. During the movement, the main control module also continuously monitors the position and state of the knife cutting module to ensure that it accurately cuts along the opposite path. During the reverse movement, the tool gradually deepens the cut of the consumables until the consumables are completely cut. The main control module can adjust the movement speed and cutting pressure of the print head at any time according to the information fed back by the sensor to adapt to different consumable characteristics and cutting requirements. Once the consumables are completely cut, the main control module controls the knife cutting module to stop moving and raises the tool to complete the entire cutting process.
[0213] Exemplarily, a user uses a printing system to produce a large number of product labels. These labels will be affixed to various product packages, requiring clear printing and accurate cutting. After printing is completed, the sensor module is controlled to capture the consumable image of the consumable. The first algorithm module is called to identify the consumable image and determine the position of the film hole. Specifically, the first algorithm module accurately determines the position of each film hole in the picture through image recognition technology and converts it into a first coordinate. At the same time, the second coordinate corresponding to the cutting position is obtained from the print file. If the first coordinate coincides with the second coordinate, it indicates that the blade coincides with the film hole and needs to be adjusted. At this time, the cutting compensation value is determined based on the preset adjacent film hole spacing. For example, if the adjacent film hole spacing is 1 cm, and the blade coincides with the film hole, the consumable may need to be moved to one side by 0.5 cm as a cutting compensation value. The main control module controls the motion control module to move the consumable so that it moves the distance corresponding to the cutting compensation value to ensure that the knife cutting module can cut at the correct position. First, according to the knife cutting module, the knife cutting module is controlled to move to the initial cutting position and the knife is controlled to fall. The knife cutting module accurately moves to the preset cutting starting position, and the knife descends to prepare for cutting. The knife cutting module is controlled to move at a first speed to perform the first cutting process. The first speed is slow, and a shallow cutting mark is made on the consumable material to provide guidance for the second cutting process. For example, the first speed can be set to a moving speed of 10 cm per minute. When the first cutting process is completed, the second cutting process is performed according to different options. One way is to control the knife cutting module to reset to the initial cutting position, and then move at a second speed to perform the second cutting process. For example, the knife cutting module quickly returns to the starting position, and then performs a rapid cut at a speed of 30 cm per minute to ensure that the consumable material is completely cut off. Another way is to control the knife cutting module to move along the opposite path of the first cutting process at a second speed to perform the second cutting process. That is, the knife cutting module moves in the opposite direction along the previous cutting path at a faster speed, and also achieves fast and thorough cutting.
[0214] Optionally, after the step of controlling the knife cutting module to cut the consumable material according to the cutting position, it also includes: controlling the sensor module to identify whether the consumable material is cut; if the consumable material is not cut, entering an abnormal state, or controlling the knife cutting module to cut the consumable material again.
[0215] As an optional implementation, the sensor module is a camera module, and the image captured by the camera module at the cutting position and the image recognition algorithm are used to detect whether the consumables are cut. A large number of images of consumables after cutting are trained using machine learning or deep learning algorithms to improve the accuracy of detection. The algorithm determines whether the consumables are completely cut by detecting the characteristics of the cutting edge, such as color change, texture change, edge clarity, etc. For example, if the cutting edge presents a neat straight line and consistent color, it usually means that the consumables have been cut; if the edge is not neat or there is an uncut part, it is judged to be uncut. After the knife cutting module completes the cutting, the camera is controlled to shoot the cutting area. The captured image is transmitted to the main control module, and the image recognition algorithm is run for analysis. If the algorithm determines that the consumables have been cut, the subsequent operation process continues; if it is judged to be uncut, it enters an abnormal state or controls the knife cutting module to cut again. If it enters an abnormal state, the operator is notified through the alarm device so that the problem can be handled in time. The operator can check whether the knife cutting module is damaged, whether the knife is sharp, whether the cutting parameters are correct, etc., and make corresponding adjustments and repairs. After the problem is solved, the cutting process can be restarted, or the camera can be manually controlled to perform another inspection to ensure that the filament is completely cut off.
[0216] As another optional embodiment, the sensor module is a photoelectric sensor. Install a photoelectric sensor near the cutting area so that it can detect the presence and cutting status of the consumables. Select a photoelectric sensor that is sensitive to light reflection, such as an infrared photoelectric sensor. Adjust the position and angle of the sensor to ensure that it can accurately detect the cutting edge of the consumables. A bracket or a clamp can be used to fix the sensor to ensure its stability. The photoelectric sensor determines the state of the consumables by emitting light and detecting the intensity of the reflected light. When the consumables are completely cut off, the light emitted by the sensor can pass through the cutting gap, and the intensity of the reflected light will be significantly reduced; when the consumables are not cut off, the intensity of the reflected light will be higher. According to the change in the intensity of the reflected light, a threshold is set to determine whether the consumables are cut off. When the intensity of the reflected light is lower than the threshold, the consumables are considered to have been cut off; when the intensity of the reflected light is higher than the threshold, it is judged to be not cut off. After the knife cutting module completes cutting, the photoelectric sensor is controlled to start detection. The sensor continuously emits light and receives reflected light, and transmits the reflected light intensity data to the control system. The control system determines whether the consumables are cut off based on the comparison result of the reflected light intensity with the threshold. If it is judged to be cut, the subsequent operation process continues; if it is judged to be not cut, it enters the abnormal state or controls the knife cutting module to cut again. The processing flow of the abnormal state is not repeated.
[0217] The first algorithm module is called to identify the image of the consumables and determine the position of the film hole; the cutting compensation value is determined according to the film hole position, and the motion control module is controlled to control the consumables to move the distance corresponding to the cutting compensation value; the knife cutting module performs two cutting processes to cut the consumables. Thus, the consumables are automatically cut without the film hole position, which avoids the waste of consumables and reduces the time cost and material cost of printing.
[0218] Based on any embodiment, in one possible embodiment of the present application, refer to Figure 4 , before step S10, including:
[0219] Step A10: If the rack module is installed with consumables, the ink stack has ink, and the print head has been inked, clean the print head through the ink stack.
[0220] In this embodiment, the printing system also includes a rack module and an ink stack. Rack module: a device for placing and fixing consumables, which can detect whether the consumables are in place. Consumables: materials used for printing in the printing system, such as paper, PET film, etc. Ink stack: a component used to store and supply ink, and can also perform maintenance operations on the print head, such as cleaning. Ink loading: refers to the detection of the state of successful loading of ink in the ink stack. Print head cleaning process: through specific operations, blockages, dried ink, etc. in the print head are cleared to ensure the normal operation of the print head.
[0221] When the printing system is first installed, the rack module continuously detects whether there are consumables placed on it. If the rack module detects that the consumables are placed and the ink stack detects that the ink is loaded, the system will start the print head cleaning process. The ink stack cleans the print head by providing cleaning fluid to the print head or performing specific mechanical actions such as suction, wiping, etc. This process can be repeated many times until the print head reaches the clean standard.
[0222] Step A20, controlling the printing module to print a test pattern on the consumable material.
[0223] In this embodiment, the printing module is the part responsible for executing the printing operation, including the print head and related drive mechanisms, etc. The test pattern is a specific pattern used to detect the performance and quality of the printing system, usually including different colors, lines, texts and other elements.
[0224] After the print head is cleaned, the print module is activated. The print module controls the print head to print a test pattern on the consumables. The test pattern can be a preset standard pattern containing a combination of various colors and lines, as well as text of different sizes. The print module accurately prints the test pattern on the consumables by precisely controlling the movement and inkjet operation of the print head. This process can detect the performance of the print head in terms of inkjet performance, color accuracy, resolution, etc.
[0225] Step A30, cutting the consumables by the knife cutting module.
[0226] After the test print is completed, the knife cutting module starts working. The knife cutting module controls the knife to move and cut the consumables according to the preset program. This step can verify the cutting accuracy and reliability of the knife cutting module. At the same time, the cut consumables can be checked as samples to evaluate the overall quality of printing and cutting.
[0227] For example, the user has just installed the printing system and placed a new roll of consumables on the rack module. The sensor in the rack module detects the presence of consumables and sends a signal to the main control module. At the same time, the staff loads ink into the ink stack. After the sensor in the ink stack detects the loading of ink, it also sends a signal to the main control module. After receiving these two signals, the main control module starts the print head cleaning process. The ink stack provides cleaning fluid to the print head and performs suction and wiping operations to fully clean the print head. After cleaning, the printing module starts working. The print head prints a preset test chart on the consumables. The test chart contains squares, lines and some text of different colors. During the printing process, the user can observe the inkjet condition of the print head, check whether the color is accurate, whether the lines are clear, etc. After the test chart is printed, the knife cutting module is started. The knife moves along the preset trajectory and accurately cuts the consumables. The staff can check whether the cut edges are neat to evaluate the performance of the knife cutting module.
[0228] Through this self-test program, users can ensure that the printing system can work normally after the initial installation and is ready for subsequent printing tasks.
[0229] If the rack module detects the placement of consumables and the ink stack detects the loading of ink, the ink stack will perform the print head cleaning process; the print module will control the print head to print a test pattern on the consumables; and the knife cutting module will cut the consumables. When the printing system is installed for the first time and needs self-testing, there is no need for manual intervention. The printing system can automatically perform the self-test procedure when sufficient consumables are guaranteed, avoiding errors caused by manual operation.
[0230] Based on any embodiment, in one possible embodiment of the present application, refer to Figure 5 The control method of the printing system further includes a calibration step, the calibration step including:
[0231] Step A40, controlling the printing module to print a test image.
[0232] Step A50: Control the sensor module to collect at least one first calibration image of the test chart.
[0233] In this embodiment, the test pattern is a specific pattern printed during the first installation self-test or calibration, which is used to evaluate the performance of the printing system and perform calibration. The first calibration image is an image taken by the sensor module for calibration with respect to the test pattern.
[0234] When the host computer receives the calibration mode control trigger, it sends a calibration signal to the printing device, and the printing device controls the printing module to print the corresponding test image according to the received calibration signal. After the knife cutting module cuts the consumables, the main control module controls the sensor module to collect images of the test image printed on the consumables. The sensor module can take multiple images from different angles and distances to ensure that comprehensive calibration information is obtained. For example, images from different angles such as the front and side, as well as images with different magnifications, can be taken.
[0235] Step A60: Generate calibration data based on the first calibration image.
[0236] In this embodiment, the first algorithm module includes a software module of a specific image recognition and processing algorithm for analyzing the calibration image and generating calibration data. Calibration data: data for adjusting printing system parameters, such as color deviation, position offset, etc., obtained based on the analysis of the first calibration image.
[0237] The main control module calls the first algorithm module to process the collected first calibration image. The first algorithm module can use image recognition technology to identify specific elements in the test image, such as color blocks, lines, text, etc., and compare them with preset standards. By analyzing the color, shape, position and other information in the image, the first algorithm module can determine the deviation of the printing system in terms of color accuracy, resolution, position accuracy, etc., and generate corresponding calibration data. For example, if the color in the image deviates from the standard color, the first algorithm module can calculate the parameters for color adjustment; if the line or text position in the image is offset, the first algorithm module can determine the parameters for position adjustment.
[0238] Step A70, generating a calibration file according to the calibration data, so as to calibrate the control parameters of the printing module according to the calibration file.
[0239] In this embodiment, calibration file: a file containing calibration data, used to update the parameters of the printing system to achieve calibration. Updating the printing system: adjusting the control parameters of the printing system according to the data in the calibration file, so that the printing system can work more accurately.
[0240] Based on the calibration data generated by the first algorithm module, the main control module generates a calibration file. The calibration file can be a text file or a database record in a specific format, which contains various calibration parameters. Then, the main control module updates the printing system according to the data in the calibration file. This can include adjusting the inkjet parameters of the print head such as color intensity, ink drop size, etc., adjusting the position accuracy of the motion control module, updating the cutting parameters of the knife cutting module, etc. For example, if the calibration data shows that the color is light, the main control module can increase the inkjet intensity of the print head; if the position offset is large, the main control module can adjust the motor control parameters of the motion control module to improve the position accuracy.
[0241] Exemplarily, a user uses a printing system to print high-quality graphics. After the printing system is installed for the first time, a self-test and calibration are performed. First, the printing system completes a self-test procedure, including printing a test image and cutting off the consumables. Then, the main control module controls the sensor module to collect images of the test image. The sensor module takes three images from the front and side, respectively, for a total of six first calibration images. Then, the main control module calls the first algorithm module to process these images. The first algorithm module identifies color blocks, lines, and text in the image and compares them with a preset standard. After analysis, it is found that the blue color in the image is lighter, the red color is darker, and the text position is slightly offset. The first algorithm module calculates color adjustment parameters and position adjustment parameters to generate calibration data. Based on the calibration data, the main control module generates a calibration file. The calibration file contains color adjustment parameters such as increasing the inkjet intensity of blue and reducing the inkjet intensity of red, and position adjustment parameters such as adjusting the motor control parameters of the motion control module to correct the text position offset. Finally, the main control module updates the printing system according to the calibration file. After the printing system is updated, a test print is performed again, and it is found that both color accuracy and position accuracy have been significantly improved.
[0242] Through this automatic calibration process, the printing system can quickly and accurately adjust parameters when it is first installed or when the user needs calibration, ensuring the stability and accuracy of printing quality.
[0243] Optionally, before step A70, the method further includes:
[0244] Step A61, based on the calibration data, control the printing module to print a calibration test pattern on the consumables.
[0245] In this embodiment, the calibration test chart is a test chart that is printed again based on the calibration data for further calibration evaluation.
[0246] After receiving the calibration data, the printing module adjusts the printing parameters according to the data. Then, it controls the print head to print the calibration test pattern on the consumables. During this process, the printing module may adjust the parameters such as the ink jetting amount, color mixing ratio, and printing resolution in the hope of printing a more accurate pattern.
[0247] Step A62: Control the sensor module to collect at least one second calibration image of the calibration test chart.
[0248] In this embodiment, the second calibration image is an image captured for a calibration test chart and used for recalibration determination.
[0249] After the calibration test chart is printed, the main control module controls the sensor module to collect images of the calibration test chart. The sensor module can take multiple images from different angles and positions to obtain more comprehensive information. These images will be used for subsequent calibration judgments.
[0250] Step A63: Determine whether the calibration is successful based on the second calibration image.
[0251] In this embodiment, the first algorithm module includes a software module of a specific image recognition and processing algorithm for analyzing the calibration image and performing calibration determination. The recognition result is the result obtained by the first algorithm module after analyzing the second calibration image, including evaluations of color accuracy, position accuracy, etc.
[0252] The main control module calls the first algorithm module to process the collected second calibration image. The first algorithm module uses image recognition technology to compare the second calibration image with the preset standard image to evaluate the performance in terms of color accuracy, line clarity, position accuracy, etc. Based on these evaluation results, the algorithm module determines whether the calibration is successful. For example, if the color deviation is within an acceptable range, the lines are clear, and the position accuracy meets the requirements, it is determined to be a successful calibration; otherwise, it is determined to be an unsuccessful calibration.
[0253] Step A64: If the calibration is successful, a calibration file is generated according to the calibration data.
[0254] As an optional implementation, if the calibration is determined to be successful, the calibration data is further optimized and adjusted according to the recognition result. If the first algorithm module determines that the calibration is successful, it means that the current printing system parameters are already relatively accurate. At this time, the calibration data can be fine-tuned according to the recognition result to further improve the print quality. For example, if the recognition result shows that the color still has a slight deviation, the color adjustment parameters can be fine-tuned; if there is still room for improvement in position accuracy, the position adjustment parameters can be optimized. The updated calibration data will be used to finally generate the calibration file and update the printing system.
[0255] As another optional implementation, if it is determined that the calibration is successful, a calibration file is generated using the calibration data corresponding to the first calibration image.
[0256] Exemplarily, the user's printing system is undergoing a calibration process. First, according to the calibration data determined for the first time, the printing module controls the print head to print a calibration test chart on the consumables. During the printing process, the printing module adjusts the ink jetting amount and the color mixing ratio according to the calibration data. After printing is completed, the sensor module collects images of the calibration test chart and takes five second calibration images from different angles. The main control module calls the first algorithm module to process these images. The first algorithm module compares the second calibration image with the standard image and finds that the color accuracy has been greatly improved, but there are still some deviations in the position accuracy. The first algorithm module calculates the position adjustment parameters based on the recognition result and determines that the current calibration is not successful. The printing module prints the calibration test chart again according to the new calibration data including the adjusted position parameters. The sensor module collects images again, and the first algorithm module processes them. This time, the first algorithm module determines that both the color accuracy and the position accuracy meet the requirements and the calibration is successful. According to the recognition result, the first algorithm module fine-tunes the calibration data to make the color more accurate and the position accuracy higher. Then, a calibration file is generated according to the updated calibration data, and the printing system is updated.
[0257] Through this process, the printing system is calibrated more accurately, ensuring high-quality print output.
[0258] In some implementations, the aforementioned steps A40 to A70, and steps A61 to A64 may be implemented by a second algorithm module in the host computer. The specific implementation scheme is the same as that of the first algorithm module and is not described in detail in this step.
[0259] For example, in order to help understand the technical concept or technical principle of the control method of the printing system after the above embodiments are combined, please refer to Figures 6 to 9 , provides a brief flow chart of the control method of three printing systems, as follows:
[0260] See also Figure 6In some embodiments, for the first use, install various modules of the printing system, including a main control module, a knife cutting module, a sensor module, a printing module, a rack module, and an ink stack. Check whether the connection of each module is normal to ensure that the physical installation of the device is complete. Place the consumables on the rack module to ensure that the rack module detects the placement of the consumables. Load ink into the ink stack, and the ink stack detects the loading of ink. Since it is the first use, after the consumables and ink are prepared, perform a print head cleaning process through the ink stack to remove impurities and dried ink in the print head to ensure that the print head works normally. Control the print head to print a test pattern on the consumables through the printing module. The test pattern contains elements such as multiple colors, lines, and texts, which are used to detect the basic performance of the printing system, such as inkjet performance, color accuracy, and resolution. Cut the consumables through the knife cutting module, that is, cut the PET film.
[0261] See also Figure 7 In some embodiments, during the device calibration process, when the user needs to calibrate the printing system, the calibration program is started on the host computer, and the host computer initiates calibration to the printer to prepare to print data. The sensor module is controlled to capture at least one first calibration image for the test image. At this time, if a previously printed test image is available; if not, a test image may need to be reprinted. After the printing module prints the test image, the first algorithm module is called to identify the first calibration image and generate calibration data. The print head is controlled by the printing module based on the calibration data to print the calibration test image on the consumable. The sensor module is controlled to capture at least one second calibration image for the calibration test image. The first algorithm module is called to identify the second calibration image, and it is determined whether the calibration is successful based on the recognition result. If the calibration is successful, a calibration file is generated based on the calibration data, and the printing system is updated based on the calibration file to complete the calibration process. If the calibration is unsuccessful, the calibration program is closed and the device calibration is re-executed.
[0262] See also Figure 8-Figure 9In some embodiments, during daily use, the host computer receives the image edited by the user and generates a print file based on the image. This may include calling the first algorithm module to enlarge the image, performing color separation and half-tone processing on the enlarged image, determining the print data, and obtaining the print parameters and knife cutting mode corresponding to the image at the same time, and finally generating the print file according to the print data, print parameters and knife cutting mode. The print file can be generated according to the print data, print parameters and knife cutting mode, and then the host computer directly sends the print file to the main control module of the printer. The ink stack of the ink module is controlled to open and flash. The inkjet control module drives the print head to reciprocate along the first axis and drive the ink to be discharged, and at the same time controls the consumables to move along the second axis through the motion control module until the pattern is printed. The first axis is the x-axis and the second axis is the y-axis. After determining that the printing is completed, the sensor module is controlled to capture the consumable image of the consumable. The consumable image is then sent to the host computer, and the host computer controls the knife cutting module to cut the consumable according to the film hole position identified by the consumable image. This includes calling the second algorithm module to identify the consumables image and determine the film hole position; determining the cutting compensation value according to the film hole position, and controlling the motion control module to control the consumables to move the distance corresponding to the cutting compensation value; and executing two cutting processes through the knife cutting module to cut the consumables. Specifically, according to the knife cutting module, the print head is controlled to move to the initial cutting position, and the knife is controlled to fall; the print head is controlled to move at a first speed to perform the first cutting process; if the first cutting process is completed, the print head is controlled to move at a second speed to perform the second cutting process; and when the print head is controlled to move at a second speed to perform the second cutting process, it is possible to control the print head to reset to the initial cutting position, control the print head to move at a second speed to perform the second cutting process, or control the print head to move at a second speed along the opposite path of the first cutting process to perform the second cutting process. After the cutting is completed, the ink stack returns to the origin.
[0263] In some embodiments, the image processing related contents in the aforementioned control method (such as cutting position recognition, film hole recognition, calibration image recognition, etc.) can be implemented by a host computer and the results can be output to a printing device, which will not be elaborated here.
[0264] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to 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 so that the at least one processor can execute the control method of the printing system in the above-mentioned embodiment 1.
[0265] Reference below Fig.10, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to a mobile phone, a notebook computer, a PAD (Portable Application Description: tablet computer), a desktop computer, a printing device, etc. Fig.10 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0266] like Fig.10 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0267] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0268] The electronic device provided by the present application adopts the control method of the printing system in the above embodiment, which can solve the technical problem of low printing efficiency caused by excessive manual intervention in the prior art. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as those of the electronic device provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the method of the previous embodiment, which will not be repeated here.
[0269] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0270] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0271] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the control method of the printing system in the above-mentioned embodiment.
[0272] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0273] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0274] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can realize: controlling the printing module to print patterns on the consumables according to the printing file through the main control module; controlling the sensor module to obtain the consumables data to determine the cutting position of the consumables; and controlling the knife cutting module to cut the consumables according to the cutting position. The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof. The programming language includes an object-oriented programming language such as Java, Smalltalk, C++, and also includes a conventional procedural programming language such as "C" language or similar programming language. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0275] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0276] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0277] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the control method of the above-mentioned printing system, and can solve the technical problem of low printing efficiency caused by excessive manual intervention in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the control method of the printing system provided by the above-mentioned embodiment, and will not be described in detail here.
[0278] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the control method of the printing system as described above when the computer program is executed by a processor.
[0279] The computer program product provided by the present application can solve the technical problem of low printing efficiency caused by excessive manual intervention in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the control method of the printing system provided by the above embodiment, which will not be repeated here.
[0280] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A control method for a printing system, characterized in that: The printing system includes a main control module, a knife cutting module, a sensor module and a printing module. The control method of the printing system includes: Controlling the printing module to print patterns on consumables according to the printing file through the main control module; Controlling the sensor module to acquire data of the consumable material after the pattern is printed, so as to identify the cutting position of the consumable material; The knife cutting module is controlled to cut the consumable material according to the cutting position.
2. The control method of the printing system according to claim 1, characterized in that: Before the step of controlling the printing module to print a pattern on the consumable material according to the printing file, the control method further includes: An image corresponding to the pattern is received, and the print file is generated according to the image.
3. The control method of the printing system according to claim 2, characterized in that: The step of generating the print file according to the image comprises: Enlarging, color separation and half-toning the image to generate printing data; Obtaining printing parameters and knife cutting mode corresponding to the image; The printing file is generated according to the printing data, the printing parameters and the knife-cutting mode.
4. The control method of the printing system according to claim 1, characterized in that: The printing module includes a print head, an ink module, an inkjet control module and a motion control module. The step of controlling the printing module to print a pattern on a consumable material according to the printing file includes: Controlling the ink stack of the ink module to open; Controlling the inkjet of the print head by the inkjet control module; The motion control module is used to control the print head to reciprocate along a first axial direction, and the motion control module is used to control the consumable material to move along a second axial direction, so as to print the pattern on the consumable material.
5. The control method of the printing system according to claim 1, characterized in that: The sensor module includes a camera module, and the step of controlling the sensor module to obtain data of the consumable after the printed pattern to identify the cutting position of the consumable includes: Controlling the camera module to collect an image of the consumable to identify a film hole position of the consumable according to the image of the consumable; The cutting position is determined based on the film hole position and the position information of the pattern on the consumable material.
6. The control method of the printing system according to claim 1, characterized in that: The sensor module includes a photoelectric sensor, and the step of controlling the sensor module to obtain data of the consumable after the printed pattern to identify the cutting position of the consumable includes: Controlling the consumable to move according to a set mode, and controlling the photoelectric sensor to collect reflected light data of the consumable; If the film change is determined according to the reflected light data, the consumable is controlled to stop displacement and the film hole position is determined; The cutting position is determined based on the film hole position and the position information of the pattern on the consumable material.
7. The control method of the printing system according to claim 5 or 6, characterized in that: The step of determining the cutting position based on the film hole position and the position information of the pattern on the consumable material comprises: Determining a cutting compensation value according to the film hole position and the position information of the pattern on the consumable material; The cutting position is determined based on the cutting compensation value.
8. The control method of the printing system according to claim 7, characterized in that: The step of determining the cutting compensation value according to the film hole position and the position information of the pattern on the consumable material comprises: Determining a first cutting position of the consumable material according to position information of a printed pattern on the consumable material; Determining a first coordinate corresponding to the film hole position and a second coordinate corresponding to the first cutting position; If the first coordinate coincides with the second coordinate, the cutting compensation value is determined based on a preset spacing between adjacent film holes.
9. The control method of the printing system according to claim 1, characterized in that: The step of controlling the knife cutting module to cut the consumable material according to the cutting position includes: Controlling the consumable or the cutting module to move along the second axial direction so that the cutting module corresponds to the cutting position; The consumable material is cut twice by the knife cutting module.
10. The control method of the printing system according to claim 9, characterized in that: The step of cutting the consumable material twice by the knife cutting module comprises: Controlling the knife cutting module to move to the initial cutting position and controlling the knife to fall; Moving the knife cutting module at a first speed to perform a first cutting process; If the first cutting process is completed, the knife cutting module is moved at a second speed to perform a second cutting process, and the first speed is lower than the second speed.
11. The control method of the printing system according to claim 10, characterized in that: The step of moving the knife cutting module at a second speed to perform a second cutting process includes: Reset the knife cutting module to the initial cutting position, and move the knife cutting module at the second speed; or, The knife cutting module is moved along a reverse path of the first cutting process at the second speed to perform the second cutting process.
12. The control method of the printing system according to claim 1, characterized in that: After the step of controlling the knife cutting module to cut the consumable material according to the cutting position, the method further includes: Controlling the sensor module to identify whether the consumable material is cut off; If the consumable material is not cut off, an abnormal state is entered, or the cutting module is controlled to cut the consumable material again.
13. The control method of the printing system according to claim 1, characterized in that: The printing system further includes a material rack module and an ink stack. Before the step of controlling the printing module to print a pattern on the consumable material according to the printing file by the main control module, the method includes: If the rack module is installed with consumables, the ink stack has ink, and the print head has been inked, the print head is cleaned through the ink stack; Control the printing module to print a test pattern on the consumable material; The consumable material is cut by the knife cutting module.
14. The control method of the printing system according to claim 1, characterized in that: The control method of the printing system further includes a calibration step, wherein the calibration step includes: Controlling the printing module to print a test chart; Controlling the sensor module to collect at least one first calibration image of the test chart; generating calibration data based on the first calibration image; A calibration file is generated according to the calibration data, so as to calibrate the control parameters of the printing module according to the calibration file.
15. The control method of the printing system according to claim 14, characterized in that: Before the step of generating a calibration file according to the calibration data to calibrate the control parameters of the printing module according to the calibration file, the method includes: Based on the calibration data, controlling the printing module to print a calibration test chart on the consumable material; Controlling the sensor module to collect at least one second calibration image of the calibration test chart; determining whether the calibration is successful based on the second calibration image; If the calibration is successful, a calibration file is generated according to the calibration data.
16. A printing system, characterized in that: The printing system includes a printing device, and the printing device includes: Knife cutting module, used for cutting consumables; A printing module, used for printing patterns on consumables; A sensor module, used for acquiring consumable data of the consumable to obtain a cutting position of the consumable; The main control module is used to: control the printing module to print a pattern on the consumable material according to the printing file; control the sensor module to obtain the consumable material data to determine the cutting position of the consumable material; and control the knife cutting module to cut the consumable material according to the cutting position.
17. The printing system according to claim 14, wherein: The printing system further includes a host computer, which is connected to the printing device through at least one of an Ethernet port, a USB interface, and WiFi, and is used to: edit the image based on the editing instruction; enlarge, color separate, and halftone the edited image to generate printing data; Obtaining printing parameters and knife cutting mode corresponding to the image; The print file is generated according to the print data, the print parameters and the knife-cutting mode and sent to the printing device.
18. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the printing system according to any one of claims 1 to 15.
19. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the printing system according to any one of claims 1 to 15 are implemented.
Citation Information
Patent Citations
Print control method and print apparatus
CN102189779A
Label creating apparatus, non-transitory storage medium, and method of label cutting processing
CN108528058A
Cutting print substrates
CN110494293A
Method for compensating for position error of wafer cutting blade
CN116277553A
Print medium cutting method, ink-jet printing apparatus, printing system and storage medium
CN119898119A