Printing method and device, printing equipment, storage medium and program product
By obtaining the preset safe temperature threshold for multicolor thermal printing, determining the target heating parameters, and controlling the heating and cooling of the last printing unit by the print head, the problem of trailing in non-target color areas in multicolor thermal printing is solved, thus improving print quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
- Filing Date
- 2025-12-29
- Publication Date
- 2026-04-10
AI Technical Summary
When printing multicolor thermally, non-target color areas may appear as trailing colors in the paper output direction, affecting print quality.
By obtaining the preset safe temperature threshold of the target color development area, the target heating parameters are determined, and the print head is controlled to heat and cool the last printing unit to ensure that the print head temperature is reduced below the preset safe temperature threshold, thus avoiding non-target color development caused by heat diffusion.
It effectively avoids the trailing color phenomenon in non-target color areas, improving print quality and effect.
Smart Images

Figure CN121821981A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of printing, in particular, the present application relates to a printing method, device, printing equipment, computer readable storage medium and computer program product. BACKGROUND
[0002] With the popularization of printing technology in more fields, the application of thermal printing technology is also more common. Thermal printing technology relies on the direct contact of the print head and the heat-sensitive coating to transfer energy, and forms a pattern by triggering the chemical color development reaction of the coating through local high temperature. The color development component in the heat-sensitive coating is extremely sensitive to temperature changes and is easily affected by heat diffusion, resulting in color development reaction in non-printing sites.
[0003] The current printing heating method is prone to tailing color development in non-target color development areas after printing, which affects the printing quality and results in poor printing effect. SUMMARY
[0004] The embodiments of the present application provide a printing method, device, printing equipment, computer readable storage medium and computer program product, aiming to solve the technical problem of non-target color development in the paper output direction and poor printing effect during multi-color thermal printing.
[0005] In a first aspect, a printing method is provided, and the printing device includes a print head. The method includes: obtaining printing data of a target color development area; the printing data includes a preset safety temperature threshold corresponding to the target color development area; determining a target heating parameter based on the preset safety temperature threshold; the target heating parameter is a heating parameter of a last printing unit in the target color development area, and the target heating parameter is used to ensure that the temperature of the print head is reduced below the preset safety temperature threshold; controlling the print head to print the last printing unit based on the target heating parameter.
[0006] Optionally, the target heating parameter includes a target heating energy and a target cooling time. controlling the print head to print the last printing unit based on the target heating parameter, includes: controlling the print head to heat the last printing unit based on the target heating energy; the target heating energy is used to make the last printing unit display a target color; after the last printing unit is heated, cooling based on the target cooling time is performed to complete the printing of the last printing unit.
[0007] Optionally, the target color development area includes at least one printing unit, and each printing unit includes a corresponding preset cooling time, and the target cooling time is greater than the preset cooling time corresponding to each printing unit.
[0008] Optionally, the method further comprises: obtaining a printing speed of the printing device and a length of the target color developing area in a printing direction; calculating a printing duration based on the printing speed and the length of the target color developing area in the printing direction; inputting the current temperature of the print head and the preset safety temperature threshold into a preset model to obtain a predicted cooling time; obtaining the target cooling time based on the printing duration and the predicted cooling time.
[0009] Optionally, inputting the current temperature of the print head and the preset safety temperature threshold into the preset model to obtain the predicted cooling time comprises: inputting the current temperature of the print head, the preset safety temperature threshold and a current environment temperature into the preset model to obtain the predicted cooling time; the current environment temperature is proportional to the predicted cooling time.
[0010] Optionally, the method further comprises: obtaining a printing task corresponding to the target color developing area; the printing task comprises the target color developing area and at least one adjacent color developing area; determining the target cooling time of the last print unit in the target color developing area based on distances between the target color developing area and each adjacent color developing area and color developing temperature difference values.
[0011] Optionally, the preset safety temperature threshold comprises a global safety temperature threshold, and the global safety temperature threshold is less than a temperature threshold of a non-target color developing area.
[0012] Optionally, the preset safety temperature threshold comprises a non-global safety temperature threshold. The method further comprises: if a next area of the target color developing area is a low-temperature color developing area, determining the non-global safety temperature threshold based on a color developing temperature of the low-temperature color developing area; the color developing temperature of the low-temperature color developing area is less than a color developing temperature of the target color developing area, and the non-global safety temperature threshold is used to reduce heating energy and heating time required by the low-temperature color developing area.
[0013] Optionally, the target heating parameter comprises a pulse width and an interval time of pulse heating. controlling the print head to print the last print unit based on the target heating parameter comprises: determining a color developing temperature difference value based on a color developing temperature of the last print unit and a color developing temperature of a first print unit of a non-target color developing area; determining the pulse width and the interval time based on the color developing temperature difference value; the color developing temperature difference value is proportional to the pulse width, and the color developing temperature difference value is inversely proportional to the interval time. The printing head is controlled to heat the last printing unit based on the pulse width and the interval time.
[0014] Optionally, the target heating parameter comprises a target heating energy. Before the printing head is controlled to print the last printing unit based on the target heating parameter, the method comprises: Determining, based on the printing data, a remaining heating energy of the printing head when printing the last printing unit; Obtaining, based on the remaining heating energy and a required heating energy of the last printing unit, a target heating energy.
[0015] Optionally, the printing data comprises a developing temperature of the target developing area. The target heating parameter is determined based on the printing data, which comprises: Determining a developing temperature of the target developing area; Obtaining, based on the developing temperature and a preset temperature threshold table, a preset safety temperature threshold of the target developing area; Obtaining, based on the preset safety temperature threshold, the target heating parameter of the target developing area.
[0016] In a second aspect, a printing device is provided, which comprises: A data acquisition module configured to acquire printing data of a target developing area; the printing data comprises a preset safety temperature threshold corresponding to the target developing area; A parameter determination module configured to determine, based on the preset safety temperature threshold, a target heating parameter; the target heating parameter is a heating parameter of a last printing unit in the target developing area, and the target heating parameter is used to ensure that a temperature of the printing head is reduced below the preset safety temperature threshold; A printing module configured to control the printing head to print the last printing unit based on the target heating parameter.
[0017] In a third aspect, a printing device is provided, which comprises: A memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the steps of any of the methods in the first aspect.
[0018] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program; the computer program is executed by a processor to implement the printing method shown in any of the first aspect.
[0019] In a fifth aspect, a computer program product is provided, which comprises a computer program; the computer program is executed by a processor to implement the steps of any of the methods in the first aspect.
[0020] The technical scheme provided by the embodiments of the present application has the following beneficial effects: The printing method provided by the present application can ensure that the temperature of the print head is reduced below the preset safety temperature threshold after completing the printing of the last printing unit, effectively avoid the phenomenon of trailing color development in the non-target color development region due to heat, thereby improving the printing quality and ensuring the printing effect. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced.
[0022] Figure 1 An application scenario diagram of a printing method provided by the embodiments of the present application; Figure 2 A flowchart of a printing method provided by the embodiments of the present application; Figure 3 A flowchart of an example of a printing method provided by the embodiments of the present application; Figure 4 A structural diagram of a printing device provided by the embodiments of the present application; Figure 5 A structural diagram of a printing device suitable for a printing method provided by the embodiments of the present application. DETAILED DESCRIPTION
[0023] The embodiments of the present application will be described below in combination with the drawings in the present application. It should be understood that the embodiments described below in combination with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0024] Those skilled in the art can understand that the singular forms "a," "an," and "the" include plural forms unless the context clearly dictates otherwise. It should be further understood that the terms "comprise" and "include" used in the embodiments of the present application refer to the corresponding features, information, data, steps, operations, elements, and / or components that can be implemented as presented, but do not exclude the implementation of other features, information, data, steps, operations, elements, components, and / or combinations thereof supported by the present technology. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or it can mean that the element and the other element are connected through an intermediate element. In addition, "connected" or "coupled" used herein can include wireless connection or wireless coupling. The terms "or," "and / or," "including at least one of," and the like as used herein can be interpreted to include inclusive or meaning any one or any combination. For example, "including at least one of: A, B, or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C."
[0025] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the functions of the module or unit.
[0026] In the detailed description of the present application, any data related to the object, such as data involved in the process of using the application program by the object, and the like, when the embodiments of the present application are applied to specific products or technologies, the permission or consent of the object is required, and the collection, use, and processing of related data need to comply with relevant laws, regulations, and standards of the country and region. That is, if any data related to the object is involved in the embodiments of the present application, these data need to be obtained with the authorization and consent of the object, and in compliance with the relevant laws, regulations, and standards of the country and region.
[0027] To make the purpose, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0028] In existing technologies, when printing multicolor label paper, there are color-developing units with different color-developing temperatures. When printing image pixels with different color-developing temperatures, the print head needs to adjust the heating parameters so that the pixels of different colors develop colors differently. After the printing task is completed, due to the diffusion of heat and insufficient cooling time of the print head, when the print head moves in the paper output direction, the non-color-developing areas display colors that should not appear, resulting in poor printing effect.
[0029] The printing method, apparatus, printing equipment, computer-readable storage medium, and computer program product provided in this application are intended to solve at least one of the above-mentioned technical problems of the prior art.
[0030] In view of at least one of the aforementioned technical problems or areas requiring improvement in related technologies, this application proposes a printing method, apparatus, printing device, computer-readable storage medium, and computer program product. The printing method provided by this solution acquires printing data containing a preset safe temperature threshold corresponding to the target color rendering area, determines the target heating parameter of the last printing unit in the target color rendering area based on the threshold, and controls the print head to print the last printing unit according to the heating parameter. This ensures that the temperature of the print head drops below the preset safe temperature threshold after completing the printing of the last printing unit, effectively avoiding the phenomenon of color trailing in non-target color rendering areas due to heat, thereby improving print quality and ensuring print effect.
[0031] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.
[0032] Figure 1 This is a schematic diagram of an application scenario for the printing method provided in this application embodiment. The application environment may include a printing device 100, which includes a printhead.
[0033] Specifically, the printing device 100 acquires printing data of the target color display area. The printing data includes a preset safe temperature threshold corresponding to the target color display area. Based on the preset safe temperature threshold, the target heating parameter is determined. The target heating parameter is the heating parameter of the last printing unit in the target color display area. The target heating parameter is used to ensure that the temperature of the print head is reduced to below the preset safe temperature threshold. Based on the target heating parameter, the print head is controlled to print the last printing unit.
[0034] The above application scenario is just an example and does not limit the application scenarios of the printing method in this application.
[0035] Those skilled in the art will understand that the printing equipment can be a multi-color label printer, a multi-color barcode printer, a multi-color thermal printer, a multi-color thermal transfer printer, a high-precision multi-color inkjet printer, an industrial-grade multi-color laser printer, etc. These devices can be used to print various high-precision multi-color labels or documents such as retail traceability labels, medical consumable labels, electronic component classification labels, and logistics sorting labels. They can establish connections with computers, mobile terminals, industrial control equipment, or other network devices via wired or wireless means such as USB, parallel port, serial port, Ethernet, Wi-Fi, and Bluetooth to obtain printing data and heating control parameters, but are not limited to these.
[0036] In some possible implementations, taking a printing device as an example, embodiments of this application provide a printing method, such as... Figure 2 As shown, it may include the following steps: S210, acquire the print data of the target color area.
[0037] The above printing method is applied to a printing device, which includes a print head; the printing data includes a preset safe temperature threshold corresponding to the target color rendering area.
[0038] Specifically, it can obtain the printing data corresponding to the target color area, as well as environmental data such as ambient temperature, ambient humidity, or the material information of the printing medium. It can also obtain the historical working data of the printhead to determine the heating frequency and cumulative wear of the printhead. By combining environmental data and historical working data of the printhead with the printing data, more accurate target heating parameters can be obtained, thereby ensuring printing quality and printing effect.
[0039] S220 determines the target heating parameters based on a preset safe temperature threshold.
[0040] The target heating parameters include the heating parameters of each printing unit in the target color development area.
[0041] Specifically, based on a preset safe temperature threshold, the target heating parameters corresponding to the target color development area are determined, the color development temperature corresponding to each printing unit in the target color development area is determined, and the target heating parameters are determined according to the color development temperature so that the printing unit heated according to the target heating parameters can reach the corresponding color development temperature, and the temperature of the print head after printing can be reduced to below the preset safe temperature threshold.
[0042] In practical implementation, the printing unit can include color rendering units with the same color rendering temperature or color rendering units with different color rendering temperatures. When heating the target color rendering area based on the target heating parameters, the print head heating temperature corresponding to color rendering units with the same color rendering temperature can be the same, and the print head heating temperature corresponding to color rendering units with different color rendering temperatures can be different. The temperature differentiation of multiple print heads can solve the trailing problem in multi-color printing. If multiple print heads maintain a uniform temperature, when some print heads finish printing in the high-temperature color rendering unit, if they do not cool down in time before contacting the subsequent low-temperature color rendering area, it is easy to cause mis-coloring in non-target areas due to heat diffusion. However, by independently controlling the temperature of each print head, cross-regional heat interference can be avoided, ensuring that the temperature of each print head meets the color rendering requirements of its own responsible area without affecting other areas, ultimately improving the effect and accuracy of multi-color thermal printing.
[0043] S230 controls the print head to print the last printing unit based on the target heating parameters.
[0044] The target heating parameter is the heating parameter of the last printing unit in the target color development area. The target heating parameter is used to ensure that the temperature of the print head is reduced to below the preset safe temperature threshold.
[0045] The last printing unit includes the printing unit corresponding to the last heating. The printing unit can include printing rows, printing columns, or printing blocks. During implementation, the printing unit can be determined according to the actual printing method. For example, the printing unit for row printing is the printing row, the printing unit for block printing is the printing block, and the printing unit for column printing is the printing column. The specific determination is based on the actual printing situation.
[0046] Specifically, the target heating parameters corresponding to the target color rendering area are determined, and the print head is controlled to print the last printing unit based on the target heating parameters. The last printing unit (usually the last printing line) is controlled to be heated and rendered with the target heating parameters, so that the temperature of the print head can be reduced to below the preset safe temperature threshold in time after printing, avoiding trailing and improving print quality and print effect.
[0047] In practice, the preset safe temperature threshold is lower than the color development temperature of non-target color development areas. This way, no matter whether the next area is a different color or blank, as long as the temperature is below this value, it is absolutely safe and can avoid the situation of trailing color development.
[0048] In practice, the complete printing area can be divided into multiple color-developing areas that develop color sequentially. The color development order of the color-developing areas can be determined according to the paper output direction. When switching between color-developing areas, the print head is lowered to below the preset safe temperature threshold to avoid trailing of color-developing areas.
[0049] In some possible implementations, the steps described above, which involve controlling the print head to print the last printing unit based on target heating parameters, include: The printhead is heated to the last printing unit based on the target heating energy; After the last printing unit has been heated, it is cooled based on the target cooling time to complete the printing of the last printing unit.
[0050] The target heating parameters include target heating energy and target cooling time; the target heating energy is used to make the last printing unit display the target color.
[0051] Specifically, the printhead heats the last printing unit based on the target heating energy, causing the last printing unit to reach the corresponding color development temperature and display the target color. After the last printing unit is heated, it is cooled based on the target cooling time to complete the printing of the last printing unit and complete the printing of the target color development area. Heating and cooling according to the target heating parameters and the target cooling time can ensure that after the last printing unit is printed, the temperature and heat carried by the printhead will not cause non-target color development areas to develop color, effectively reducing the occurrence of color trailing.
[0052] In the specific implementation process, when executing the printing process of the last printing unit, it is necessary to first determine the target heating energy based on the target color rendering requirements corresponding to the printing unit in the printing task, such as the color standard of a specific color block, combined with the thermal inertia characteristics of the print head and the color rendering temperature parameters of the printing material. The print head is then controlled to output the corresponding heat through this target heating energy, ensuring that the last printing unit can fully render the color and achieve the target color, while avoiding excessive heat accumulation due to excessive energy. After the heating operation of the last printing unit is completed, a cooling process based on the target cooling time is executed to ensure that the surface temperature of the print head drops below the preset safe temperature threshold during the cooling stage. If the subsequent area is a low-temperature non-target color rendering area, the preset safe temperature threshold must match its color rendering temperature range to avoid residual heat interfering with the subsequent non-target color rendering area, thereby completing the printing of the last printing unit, ensuring the overall printing effect, and avoiding trailing problems.
[0053] In some possible implementations, the target color development area includes at least one printing unit, each printing unit includes a corresponding preset cooling time, and the target cooling time is greater than the preset cooling time corresponding to each printing unit.
[0054] Specifically, the target color area includes at least one printing unit, and each printing unit has a corresponding preset cooling time. The target cooling time of the last printing unit is greater than the preset cooling time of each printing unit. For example, when printing a regular rectangle, in order to improve the printing speed before the rectangle completes its last printing, the cooling time of each printing unit can be set to be shorter, but the target cooling time of the last printing unit can be set to be longer to avoid trailing in the blank area after the rectangle is printed.
[0055] In some possible implementations, the above method further includes: Obtain the printing speed of the printing device and the length of the target color area in the printing direction; The printing time is calculated based on the printing speed and the length of the target color area in the printing direction. Input the current temperature of the printhead and the preset safe temperature threshold into the preset model to obtain the predicted cooling time; The target cooling time is obtained based on the printing time and the predicted cooling time.
[0056] The printing direction can be parallel to the paper output direction.
[0057] Specifically, the printing speed of the printing device and the length of the target color area in the printing direction are obtained. Based on the printing speed and the length of the target color area in the printing direction, the printing time is calculated. The current temperature of the print head and the preset safe temperature threshold are input into the preset model to obtain the predicted cooling time. Based on the printing time and the predicted cooling time, the longer cooling time is taken to obtain the target cooling time.
[0058] In the actual implementation process, the time required for the paper to reach the next color area is calculated based on the printing speed and the length of the target color area in the printing direction. The theoretical cooling time is determined based on the current temperature, the preset safe temperature threshold, and the heat dissipation capacity. The target cooling time is the longer of the two times to ensure that there is no trailing color development.
[0059] For example, the target cooldown time (T_cool) can be dynamically determined using the following formula: T_cool=max(T_travel,T_required) Among them, T_travel is the natural travel time calculated based on the printing speed and the length in the printing direction; T_required is the theoretical cooling time calculated based on the current temperature of the printhead, the preset safe temperature threshold, and the preset model.
[0060] In the specific implementation process, the above-mentioned preset model can also be called a heat dissipation model. The training steps include: obtaining a temperature sample set, which contains temperature samples, including the current temperature sample and the preset safe temperature threshold sample. Each temperature sample is marked with a corresponding cooling time label. The temperature samples are input into the heat dissipation model one by one to obtain the cooling time result. Based on the output cooling time result and the cooling time label, the parameters of the heat dissipation model are updated until the predetermined termination condition is reached, the training ends, and the trained heat dissipation model is obtained.
[0061] In the embodiments of this application, during training, a temperature sample set containing multiple temperature samples can be obtained first, each temperature sample being labeled with a corresponding cooling time label. Then, the multiple temperature samples are divided into a training set, a validation set, and a test set according to a predetermined ratio. Then, the model parameters in the heat dissipation model are adjusted and determined based on the temperature samples included in the training set, validation set, and test set, to obtain the trained heat dissipation model.
[0062] In some possible implementations, the steps described above, which involve inputting the current temperature of the printhead and a preset safe temperature threshold into a preset model to obtain the predicted cooling time, include: Input the current temperature of the printhead, the preset safe temperature threshold, and the current ambient temperature into the preset model to obtain the predicted cooling time.
[0063] The current ambient temperature is directly proportional to the predicted cooling time.
[0064] Specifically, the current temperature of the printhead, the preset safe temperature threshold, and the current ambient temperature are input into the preset model to obtain the predicted cooling time. The training steps of the preset model include: obtaining a temperature sample set, which contains temperature samples. Each temperature sample includes the current temperature sample, the preset safe temperature threshold sample, and the ambient temperature sample. Each temperature sample is labeled with a corresponding cooling time label. The temperature samples are input into the initial model one by one to obtain the predicted cooling time. Based on the output predicted cooling time and cooling time label, the parameters of the heat dissipation model are updated until the predetermined termination condition is reached, the training ends, and the trained preset model is obtained.
[0065] In the specific implementation process, the above-mentioned preset model (heat dissipation model) can introduce ambient temperature as a real-time correction variable. When the ambient temperature rises, the calculated value of T_required is increased, and when the ambient temperature falls, the calculated value of T_required is decreased.
[0066] In some possible implementations, the above method further includes: Obtain the print job corresponding to the target color area; Based on the distance between the target color development area and each adjacent color development area and the color development temperature difference, the target cooling time of the last printing unit in the target color development area is determined.
[0067] The printing task includes the target color area and at least one adjacent color area.
[0068] Specifically, the complete printed content can be divided into multiple color rendering areas, including a target color rendering area and at least one adjacent color rendering area. The printing task corresponding to the target color rendering area is obtained, the color rendering temperature of the target color rendering area is obtained, and the color rendering temperature of each adjacent color rendering area is determined. Based on the distance between the target color rendering area and the adjacent color rendering areas and the difference in color rendering temperature, the target cooling time of the last printing unit in the target color rendering area is determined.
[0069] In the actual implementation process, before printing begins, the page data of the entire printing task is parsed to identify the boundaries of all color areas. The last heating position of each complete logical graphic, such as QR codes or various patterns, is marked, and a longer reserved cooling time window is allocated for the last heating position.
[0070] In some possible implementations, the preset safety temperature threshold in the above steps includes a global safety temperature threshold, which is lower than the temperature threshold of the non-target color development area.
[0071] Specifically, the global safe temperature threshold refers to the non-coloring temperature threshold corresponding to all color-developing areas to be printed on the printing medium. The global safe temperature threshold is lower than the temperature threshold of the target color-developing area and the non-target color-developing area. Setting the preset safe temperature threshold as the global safe temperature threshold enables simple and clear cooling control, ensuring that no part will develop color, and almost completely eliminating the risk of trailing.
[0072] In practical implementation, the global safe temperature threshold must be strictly lower than the temperature threshold of all non-target color development areas. This ensures that after the printhead finishes heating the current color development block and cools down to this threshold, it will not trigger any unexpected color development in non-target areas due to residual heat, thus avoiding trailing issues. In practical applications, the specific value of the global safe temperature threshold can be calibrated by combining the material characteristics of the printing medium and the temperature requirements of different non-target color development areas. For example, for common three-color label paper, first determine the lowest temperature of non-target color development for red, yellow, and blue, and then set the global safe temperature threshold to be 5-10℃ lower than the minimum of these three lowest temperatures. At the same time, a real-time temperature monitoring module can be used to dynamically verify whether the actual temperature of the printhead after cooling down is stable within the global safe temperature threshold, further improving the accuracy and reliability of the threshold application.
[0073] In some possible implementations, the above method further includes: If the next region after the target color development region is a low-temperature color development region, then the non-global safety temperature threshold is determined based on the color development temperature of the low-temperature color development region.
[0074] Among them, the preset safety temperature threshold includes a non-global safety temperature threshold; the color development temperature of the low-temperature color development area is lower than the color development temperature of the target color development area, and the non-global safety temperature threshold is used to reduce the heating energy and heating time required for the low-temperature color development area.
[0075] Specifically, if the next area after the target color development area is a low-temperature color development area, the color development temperature of the low-temperature color development area is determined. The color development temperature of the target color development area is compared with the color development temperature of the low-temperature color development area to determine a non-global safe temperature threshold, so as to maintain a certain temperature of the print head and reduce the heating energy and heating time required for the low-temperature color development area.
[0076] In practical implementation, in multi-color printing scenarios, when the next area after the target color area is a low-temperature color area (i.e., the color temperature is lower than that of the target color area), the non-global safe temperature threshold in the preset safe temperature threshold can be determined in conjunction with the specific color temperature of the low-temperature color area and set within the color temperature range of that low-temperature color area. In this way, after the print head completes the heating of the target color area, when it cools down to the non-global safe temperature threshold, it can avoid triggering unexpected color development in non-target areas and shorten the temperature rise span during subsequent heating of the low-temperature color area. This directly reduces the heating energy and heating time required for the low-temperature color area to achieve the target color development effect, thereby improving printing efficiency while ensuring print quality.
[0077] For example, there are color rendering temperatures of 300 degrees, 200 degrees and 100 degrees. The color to be printed needs to be rendered at 300 degrees. After printing the current area, an area at 200 degrees needs to be printed. At this time, the temperature of the print head does not need to drop below 100 degrees, but only needs to drop to 200 degrees. 200 degrees is the non-global safe temperature.
[0078] In some possible implementations, the steps described above, which involve controlling the print head to print the last printing unit based on target heating parameters, include: The color development temperature difference is determined based on the color development temperature of the last printing unit and the color development temperature of the first printing unit in the non-target color development area. The pulse width and interval time are determined based on the color development temperature difference; Based on the pulse width and interval time, the printhead is controlled to heat the last printing unit.
[0079] The target heating parameters include the pulse width and interval time of pulsed heating; the color development temperature difference is directly proportional to the pulse width and inversely proportional to the interval time.
[0080] Specifically, the color development temperature difference is determined based on the color development temperature of the last printed unit and the color development temperature of the first printed unit in the non-target color development area. The pulse width and interval time are then determined based on this color development temperature difference. Based on the pulse width and interval time, the print head is controlled to heat the last printed unit. The color development temperature difference is directly proportional to the pulse width; the larger the difference, the longer the pulse width needs to be to ensure that the last printed unit achieves the target color development effect. Conversely, the difference is inversely proportional to the interval time; the larger the difference, the shorter the interval time needs to be to avoid the accumulation of residual heat in the print head. Conversely, the corresponding parameters are adjusted. The determined pulse width and interval time are used as the target heating parameters to control the print head to heat the last printed unit. This ensures the color development quality of the current printed unit while preventing residual heat from triggering unexpected color development in non-target color development areas, thus reducing trailing problems.
[0081] In the specific implementation process, the pixels that are heated for the last time in the color rendering unit are heated by multiple intermittent short pulses. The pulse width and interval time are dynamically set according to the difference in color rendering temperature between the last heated pixel and the subsequent non-target color rendering area, so as to avoid the temperature of the last heated color rendering unit from spreading to the subsequent non-target color rendering area and causing trailing.
[0082] In some possible implementations, the steps described above, before controlling the print head to print the last printing unit based on the target heating parameters, include: The remaining heating energy of the print head when printing the last print unit is determined based on the print data; The target heating energy is obtained based on the remaining heating energy and the heating energy required for the last printing unit.
[0083] The target heating parameters include the target heating energy.
[0084] Specifically, before determining the heating energy for the final heating, the remaining heating energy of the printhead is predicted. Based on the remaining heating energy of the printhead, the preset energy of the final heating is adjusted down accordingly to obtain the target heating energy, thereby compensating for the existing thermal inertia of the printhead, saving energy consumption, and improving printing efficiency.
[0085] In the specific implementation process, the above method also includes: correcting the calculated value of remaining heating energy through a real-time temperature sensor of the printhead and a historical heating parameter database, eliminating deviations caused by ambient temperature fluctuations and printhead wear and aging, and establishing a dynamic mapping model of remaining heating energy, required heating energy and target heating energy based on the color development requirements of the last printing unit and the characteristics of the printing medium, so as to obtain a more accurate target heating energy. A real-time feedback mechanism can also be embedded. If the target heating energy output deviation is detected to exceed the preset threshold during the printing process, fine-tuning is performed to ensure accurate color development of the last printing unit and avoid interference to subsequent areas.
[0086] In some possible implementations, determining the target heating parameters based on the printed data in the above steps includes: Determine the color development temperature of the target color development region; Based on the color development temperature and preset temperature threshold table, the preset safe temperature threshold of the target color development area is obtained; Based on a preset safe temperature threshold, the target heating parameters for the target color development area are obtained.
[0087] The printed data includes the color temperature of the target color development area.
[0088] Specifically, a preset temperature threshold table is set in advance, storing multiple colors and their corresponding preset safe temperature thresholds. The color development temperature of the target color development area is determined. Based on the color development temperature and the preset temperature threshold table, the preset safe temperature threshold of the target color development area is obtained. If the printing unit corresponds to red, the safe temperature corresponding to red is found by looking up the table. According to the display color of each printing unit in the target color development area, the corresponding preset safe temperature threshold is found. Thus, the target heating parameters of the target color development area are determined based on the preset safe temperature threshold, which can accurately determine the parameters.
[0089] In the specific implementation process, after determining the color development temperature of the target color development area, a safe temperature threshold mapping table is obtained for printing units with different color development temperatures of the printing material. Combined with the predicted color development requirements of subsequent areas, the preset safe temperature threshold corresponding to the target color development area is accurately matched. Based on the preset safe temperature threshold, the target heating parameters are calculated. According to the thermal inertia compensation based on the current remaining heating energy of the print head, the last heating energy is dynamically reduced. If the target color development area is printed to the last printing unit, a longer cooling time window can be allocated to it to obtain the target cooling time. If the temperature difference between the pixel of the last heating of the target color development area (the last printing unit) and the color development temperature of the subsequent non-target color development areas is large, multiple intermittent short pulse heating methods can also be used. The pulse width and interval time are dynamically set according to the temperature difference to finally form the target heating parameters adapted to the target color development area.
[0090] In the above embodiments, by acquiring printing data containing a preset safe temperature threshold corresponding to the target color rendering area, determining the target heating parameter of the last printing unit in the target color rendering area based on the threshold, and controlling the print head to print the last printing unit according to the heating parameter, it can ensure that the temperature of the print head drops below the preset safe temperature threshold after completing the printing of the last printing unit, effectively avoiding the phenomenon of trailing color rendering in non-target color rendering areas due to heat, thereby improving printing quality and ensuring printing effect.
[0091] In one example, the printing method of this application is as follows: Figure 3 As shown, it may include: S310: Obtain the printing data of the target color area and obtain the preset safe temperature threshold.
[0092] S320 determines the remaining heating energy of the print head when printing the last print unit based on print data.
[0093] S330 obtains the target heating energy based on the preset safe temperature threshold, the remaining heating energy, and the heating energy required for the last printing unit.
[0094] S340 controls the printhead to heat the last printing unit based on the target heating energy.
[0095] S350, obtain the printing time of the target color area.
[0096] The S360 inputs the current temperature of the printhead and the preset safe temperature threshold into the preset model to obtain the predicted cooling time.
[0097] S370 calculates the target cooling time based on printing duration and predicted cooling time.
[0098] After the last printing unit is heated, it is cooled based on the target cooling time to complete the printing of the last printing unit.
[0099] The above printing method obtains printing data containing a preset safe temperature threshold corresponding to the target color area, determines the target heating parameter of the last printing unit in the target color area based on the threshold, and controls the print head to print the last printing unit according to the heating parameter. This ensures that the temperature of the print head drops below the preset safe temperature threshold after the last printing unit is printed, effectively avoiding the tailing color phenomenon in non-target color areas due to heat, thereby improving print quality and ensuring print effect.
[0100] This application provides a printing device, such as... Figure 4As shown, this is applied to a printing device, which includes a printhead. The printing device 40 may include: a data acquisition module 410, a parameter determination module 420, and a printing module 430, wherein... The data acquisition module 410 is used to acquire the printing data of the target color display area; the printing data includes the preset safe temperature threshold corresponding to the target color display area; The parameter determination module 420 is used to determine the target heating parameters based on a preset safe temperature threshold. The target heating parameters are the heating parameters of the last printing unit in the target color development area. The target heating parameters are used to ensure that the temperature of the print head is reduced to below the preset safe temperature threshold. The printing module 430 is used to control the print head to print the last printing unit based on the target heating parameters.
[0101] As an optional embodiment, in this device, the printing module 430 is specifically used for: The target heating parameters include the target heating energy and the target cooling time; The printhead is heated to the last printing cell based on the target heating energy; the target heating energy is used to make the last printing cell display the target color. After the last printing unit has been heated, it is cooled based on the target cooling time to complete the printing of the last printing unit.
[0102] As an optional embodiment, in this device, the printing module 430 is specifically used for: The target color development area includes at least one printing unit, and each printing unit includes a corresponding preset cooling time. The target cooling time is greater than the preset cooling time corresponding to each printing unit.
[0103] As an optional embodiment, in this device, the printing module 430 is specifically used for: Obtain the printing speed of the printing device and the length of the target color area in the printing direction; The printing time is calculated based on the printing speed and the length of the target color area in the printing direction. Input the current temperature of the printhead and the preset safe temperature threshold into the preset model to obtain the predicted cooling time; The target cooling time is obtained based on the printing time and the predicted cooling time.
[0104] As an optional embodiment, in this device, the printing module 430 is specifically used for: Input the current temperature of the printhead, the preset safe temperature threshold, and the current ambient temperature into the preset model to obtain the predicted cooling time; the current ambient temperature and the predicted cooling time are directly proportional.
[0105] As an optional embodiment, in this device, the printing module 430 is specifically used for: Obtain the print job corresponding to the target color area; the print job includes the target color area and at least one adjacent color area. Based on the distance between the target color development area and each adjacent color development area and the color development temperature difference, the target cooling time of the last printing unit in the target color development area is determined.
[0106] As an optional embodiment, in this device, the parameter determination module 420 is specifically used for: The preset safe temperature thresholds include a global safe temperature threshold, which is lower than the temperature threshold of the non-target color development area.
[0107] As an optional embodiment, the device further includes a color development module, specifically used for: Preset safe temperature thresholds include non-global safe temperature thresholds; If the next region after the target color development region is a low-temperature color development region, then a non-global safe temperature threshold is determined based on the color development temperature of the low-temperature color development region. Since the color development temperature of the low-temperature color development region is lower than the color development temperature of the target color development region, the non-global safe temperature threshold is used to reduce the heating energy and heating time required for the low-temperature color development region.
[0108] As an optional embodiment, in this device, the printing module 430 is specifically used for: The target heating parameters include the pulse width and interval time of pulsed heating; The color development temperature difference is determined based on the color development temperature of the last printing unit and the color development temperature of the first printing unit in the non-target color development area. The pulse width and interval time are determined based on the color development temperature difference; the color development temperature difference is directly proportional to the pulse width and inversely proportional to the interval time. Based on the pulse width and interval time, the printhead is controlled to heat the last printing unit.
[0109] As an optional embodiment, in this device, the printing module 430 is specifically used for: The target heating parameters include the target heating energy; The remaining heating energy of the print head when printing the last print unit is determined based on the print data; The target heating energy is obtained based on the remaining heating energy and the heating energy required for the last printing unit.
[0110] As an optional embodiment, in this device, the parameter determination module 420 is specifically used for: The print data includes the color temperature of the target color development area; Determine the color development temperature of the target color development region; Based on the color development temperature and preset temperature threshold table, the preset safe temperature threshold of the target color development area is obtained; Based on a preset safe temperature threshold, the target heating parameters for the target color development area are obtained.
[0111] The printing apparatus provided in this application acquires printing data containing a preset safe temperature threshold corresponding to the target color rendering area, determines the target heating parameters of the last printing unit in the target color rendering area based on the threshold, and controls the print head to print the last printing unit according to the heating parameters. This ensures that the temperature of the print head drops below the preset safe temperature threshold after the last printing unit is printed, effectively avoiding the phenomenon of trailing color rendering in non-target color rendering areas due to heat, thereby improving print quality and ensuring print effect.
[0112] The apparatus in this application embodiment can execute the method provided in this application embodiment, and its implementation principle is similar, and it has corresponding technical effects. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For a detailed functional description of each module of the apparatus, please refer to the description in the corresponding method shown above, which will not be repeated here.
[0113] This application provides a printing device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method provided in any optional embodiment of this application. Compared with the prior art, it can achieve the following: by acquiring printing data containing a preset safe temperature threshold corresponding to the target color rendering area, determining the target heating parameter of the last printing unit in the target color rendering area based on the threshold, and controlling the print head to print the last printing unit according to the heating parameter, it can ensure that the temperature of the print head drops below the preset safe temperature threshold after completing the printing of the last printing unit, effectively avoiding the tailing color phenomenon in non-target color rendering areas due to heat, thereby improving print quality and ensuring print effect.
[0114] In one alternative embodiment, a printing device is provided, such as Figure 5 As shown, Figure 5 The illustrated printing device 5000 includes a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are connected, for example, via a bus 5002. Optionally, the printing device 5000 may further include a transceiver 5004, which can be used for data interaction between the printing device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 5004 is not limited to one type, and the structure of this printing device 5000 does not constitute a limitation on the embodiments of this application.
[0115] Processor 5001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 5001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0116] Bus 5002 may include a pathway for transmitting information between the aforementioned components. Bus 5002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 5002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0117] The memory 5003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.
[0118] The memory 5003 is used to store computer programs that execute the embodiments of this application, and its execution is controlled by the processor 5001. The processor 5001 is used to execute the computer programs stored in the memory 5003 to implement the steps shown in the foregoing method embodiments.
[0119] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.
[0120] It should be noted that the computer-readable storage medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0121] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.
[0122] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0124] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.
[0125] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.
Claims
1. A printing method, characterized in that, Applied to a printing device, the printing device including a printhead, specifically including: Obtain printing data for the target color rendering area; the printing data includes a preset safe temperature threshold corresponding to the target color rendering area; Based on the preset safe temperature threshold, target heating parameters are determined; the target heating parameters are the heating parameters of the last printing unit in the target color development area, and the target heating parameters are used to ensure that the temperature of the print head is reduced to below the preset safe temperature threshold; The print head is controlled to print the last printing unit based on the target heating parameters.
2. The printing method according to claim 1, characterized in that, The target heating parameters include the target heating energy and the target cooling time; The step of controlling the print head to print the last printing unit based on the target heating parameters includes: The printhead is controlled to heat the last printing unit based on the target heating energy. The target heating energy is used to make the last printing unit display the target color; After the last printing unit has been heated, it is cooled based on the target cooling time to complete the printing of the last printing unit.
3. The printing method according to claim 2, characterized in that, The target color development area includes at least one printing unit, and each printing unit includes a corresponding preset cooling time. The target cooling time is greater than the preset cooling time corresponding to each printing unit.
4. The printing method according to claim 2, characterized in that, The method further includes: Obtain the printing speed of the printing device and the length of the target color area in the printing direction; The printing time is calculated based on the printing speed and the length of the target color area in the printing direction; The current temperature of the printhead and the preset safe temperature threshold are input into the preset model to obtain the predicted cooling time; The target cooling time is obtained based on the printing duration and the predicted cooling time.
5. The printing method according to claim 4, characterized in that, The step of inputting the current temperature of the printhead and the preset safe temperature threshold into a preset model to obtain the predicted cooling time includes: The current temperature of the printhead, the preset safe temperature threshold, and the current ambient temperature are input into the preset model to obtain the predicted cooling time; the current ambient temperature and the predicted cooling time are directly proportional.
6. The printing method according to claim 2, characterized in that, The method further includes: Obtain the print job corresponding to the target color area; the print job includes the target color area and at least one adjacent color area; Based on the distance between the target color development area and each of the adjacent color development areas and the color development temperature difference, the target cooling time of the last printing unit in the target color development area is determined.
7. The printing method according to claim 1, characterized in that, The preset safe temperature threshold includes a global safe temperature threshold, which is lower than the temperature threshold of the non-target color development area.
8. The printing method according to claim 1, characterized in that, The preset safety temperature threshold includes a non-global safety temperature threshold; The method further includes: If the next region after the target color development region is a low-temperature color development region, then the non-global safety temperature threshold is determined based on the color development temperature of the low-temperature color development region; the color development temperature of the low-temperature color development region is lower than the color development temperature of the target color development region, and the non-global safety temperature threshold is used to reduce the heating energy and heating time required for the low-temperature color development region.
9. The printing method according to claim 1, characterized in that, The target heating parameters include the pulse width and interval time of pulsed heating; The step of controlling the print head to print the last printing unit based on the target heating parameters includes: The color temperature difference is determined based on the color temperature of the last printing unit and the color temperature of the first printing unit in the non-target color area. The pulse width and the interval time are determined based on the color development temperature difference; the color development temperature difference is directly proportional to the pulse width and inversely proportional to the interval time. Based on the pulse width and the interval time, the print head is controlled to heat the last printing unit.
10. The printing method according to claim 1, characterized in that, The target heating parameters include the target heating energy; Before controlling the print head to print the last printing unit based on the target heating parameters, the following steps are included: Based on the printed data, determine the remaining heating energy of the print head when printing the last printing unit; The target heating energy is obtained based on the remaining heating energy and the heating energy required by the last printing unit.
11. The printing method according to claim 1, characterized in that, The printing data includes the color rendering temperature of the target color rendering area; Determining the target heating parameters based on the printed data includes: Determine the color development temperature of the target color development region; Based on the color rendering temperature and preset temperature threshold table, the preset safe temperature threshold of the target color rendering area is obtained; Based on the preset safe temperature threshold, the target heating parameters of the target coloring area are obtained.
12. A printing apparatus, characterized in that, Applied to a printing device, the printing device including a printhead, comprising: The data acquisition module is used to acquire printing data of the target color display area; the printing data includes a preset safe temperature threshold corresponding to the target color display area; The parameter determination module is used to determine the target heating parameter based on the preset safe temperature threshold; the target heating parameter is the heating parameter of the last printing unit in the target color development area, and the target heating parameter is used to ensure that the temperature of the print head is reduced to below the preset safe temperature threshold; The printing module is used to control the print head to print the last printing unit based on the target heating parameters.
13. A printing apparatus, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the printing method according to any one of claims 1-11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the printing method according to any one of claims 1-11.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the printing method according to any one of claims 1-11.