Method for improving thermal sublimation printing gray scale resolution
By converting the grayscale value into integer and decimal parts, and recording the print pulse of the decimal part with new bits, interspersed in the original printing pulse sequence, the problem of difficulty in improving grayscale resolution in thermal sublimation printing is solved, achieving high efficiency The grayscale resolution is improved.
Patent Information
- Application Number
- CN202411125909.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-16
AI Technical Summary
In the existing thermal sublimation printing technology, it is difficult to improve grayscale resolution and increasing the number of printing pulses will reduce the printing speed, resulting in efficiency bottlenecks.
By converting the grayscale value into integer and decimal parts of the unit heating time, new bits are used to record the print pulses of the decimal part and interspersed these pulses in the original printing pulse sequence to improve the print grayscale resolution.
Without significantly affecting the printing efficiency, the printing grayscale resolution is improved, achieving higher accuracy and resolution. For example, adding one bit can achieve 0.5 accuracy, and two bits can represent 1/4 and 1/2 of grayscale, three bits can achieve 1/8 of accuracy.
Smart Images

Figure CN118893915A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to printing technology, and in particular to a method for improving the grayscale resolution of thermal sublimation printing. Background Art
[0002] like Figure 1 As shown, Figure 1 This is a relationship diagram between recording density and heating time, where the recording density can be represented by grayscale value at the image input end. This figure shows that the heating time of the print head and the grayscale value are not in a linear relationship.
[0003] If the grayscale is divided into 10 equal parts, that is, the grayscale values m after equal division are 1, 2, ..., 10, the heating time required for the grayscale value m-1 to reach the grayscale value m is t m , then the heating time T required to reach each gray value m m for:
[0004]
[0005] like Figure 2 As shown, Figure 2 This is a schematic diagram of the control signal of thermal sublimation printing. The dotted line frame is the unit printing signal of thermal transfer, which includes the printing data (Data). The data is transferred to the shift register (ShiftRegister) through the clock signal (Clock). After the data is locked by the latch (Latch), a unit printing pulse (Strobe) of a specific width is sent, that is, a unit printing is completed within the unit printing time. To achieve different grayscale printing effects, the printing of each dot row needs to be repeated several times.
[0006] comprehensive Figure 1 and Figure 2 , assuming that a grayscale printing effect of M levels is to be achieved with a total of N unit print pulses (strobe). According to formula 1, the width s0 of each unit print pulse (strobe) is:
[0007]
[0008] S0 is the unit heating time, and the gray value m can be converted into data T' in units of S0 m :
[0009]
[0010] Since s0 is the width of the unit print pulse and cannot be further divided, T′ m If it is not an integer, it needs to be rounded off.
[0011] Several shortcomings can be found from the above: First, the result of formula 3 is not always an integer. Under the rounding operation, there is an error in the control of printing heating. If you want to improve the accuracy and resolution, you must increase the number of print pulses per dot row. Too many print pulses may significantly reduce the printing speed. For example, if the print pulse resolution is to be increased from S0 to S0 / 2, the number of print pulses needs to be doubled. At this time, in order to improve the printing efficiency, the width of each unit pulse can theoretically be halved, but if you look closely, Figure 2 According to the basic printing mechanism, when the width of the unit pulse is smaller than the width of the clock signal (Clock) for transmitting data, the bottleneck of printing efficiency is the time of the clock signal rather than the number of print pulses. In other words, even if the width of the unit pulse is small, it is necessary to wait for the next grayscale data to be transmitted (Clock) before sending the next print pulse (Strobe). Therefore, how to maximize the grayscale resolution of printing while adding a small number of print pulses becomes an important issue. Summary of the invention
[0012] In view of this, the present invention aims to address the deficiencies in the prior art, and its main purpose is to provide a method for improving the grayscale resolution of thermal sublimation printing, which can improve the resolution of printing heating without significantly affecting the printing efficiency.
[0013] To achieve the above purpose, the present invention adopts the following technical solutions:
[0014] A method for improving the grayscale resolution of thermal sublimation printing, in which N unit printing pulses are used to achieve the printing effect of M grayscales, and the heating time T required to achieve the M grayscales is known. M , by adding X bits to increase the resolution of printed grayscale, including the following steps:
[0015] Step 1: The M-level grayscale is divided into M equal parts. The grayscale values m after equal division are 1, 2, ..., M respectively. The heating time required for the grayscale value m-1 to reach the grayscale value m is t m , then the heating time T required to reach each gray value m m for:
[0016]
[0017] According to Formula 1, the width S of each unit print pulse is the unit heating time:
[0018]
[0019] Step 2: Sample a pixel in the line to be printed and set the grayscale value of the pixel to T. mConverted into data T' in units of unit heating time S0 m :
[0020] The T′ m It is a multiple of the unit heating time S0. Its value contains an integer part and a decimal part, expressed as:
[0021] T′ m =I m +F m ………………Formula 4
[0022] Among them, I m is T′ m The integer part of F m is T′ m The decimal part of
[0023] The gray value of the pixel T m Convert to data format suitable for printing control T″ m , that is, using binary expression T″ m , and T″ m In binary recording, it is divided into two parts, area A and area B. Area A is used to record the heating time of the pixel. m , which is the multiple of the unit heating time S0. Area B is a newly added X-bit table for recording F′ m :
[0024] T″ m =(I m <<X)+Integer(F m ×2X)=(I m <<X)+F′ m ...Formula 5
[0025] Among them, the Interger() function represents taking an integer, I m It means that under the total N unit heating time S0, a point row needs to be heated I m Each unit prints a pulse;
[0026] Step 3: In the case of the heating mechanism being consistent with the integer part, the printing effect of the decimal part is achieved by using the newly added X printing pulses, that is, the decimal part records the newly added X printing pulses and whether heating is performed by adding X bits, and the newly added X printing pulses are arranged and combined and inserted at any position in the original printing pulse sequence, thereby increasing the resolution of the printing grayscale from S0 to
[0027]
[0028] Among them, a nis equal to 0 or 1;
[0029] Calculate the heating time (pulse width) S of the newly added X printing pulses 0n :
[0030]
[0031] Among them, n=0~X-1.
[0032] The newly added X print pulses are placed in the order from small to large, in front of the original print pulse sequence, or at the back, or interspersed at any position in the middle.
[0033] A thermal sublimation printing device, comprising:
[0034] one or more processors;
[0035] A storage device for storing one or more programs;
[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned methods for improving the grayscale resolution of thermal sublimation printing.
[0037] A computer readable medium stores a computer program, wherein when the program is executed by a processor, any one of the above methods for improving the grayscale resolution of thermal sublimation printing is implemented.
[0038] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it can be seen from the above technical solution that:
[0039] By adopting the method of the present invention, the gray value of the pixel to be printed is converted into data of multiples of the unit heating time S0, including an integer part and a decimal part. For the decimal part, X bits are added to record the newly added X printing pulses. Under the condition that the heating mechanism of the integer part is consistent, the printing effect of the decimal part is achieved by using the newly added X printing pulses, that is, the decimal part records the newly added X printing pulses and whether heating is performed or not by adding X bits, and the newly added X printing pulses are arranged and combined and inserted at any position in the original printing pulse sequence, so that the resolution of the printed gray scale is increased from v to This improves the resolution of printing heating without significantly affecting printing efficiency. If you want to add a decimal bit, add a pulse with a width of 1 / 2S0, which can achieve an accuracy of 0.5; if you want to add two decimal bits, add a pulse of 1 / 2S0 and a pulse of 1 / 4S0. After permutation and combination, the decimal part can represent three different grayscales of 1 / 4, 1 / 2, and 3 / 4; and so on, adding 3 bits can increase the accuracy to 1 / 8.
[0040] In addition, the present invention does not emphasize continuous heating of the integer part, but emphasizes converting the grayscale value into the number of unit heating times required in the heating mechanism in advance during pre-processing and adding X printing pulses, thereby improving the resolution of printing heating without significantly affecting printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a relationship diagram between recording density and heating time in the prior art;
[0042] Figure 2 It is a schematic diagram of control signals of thermal sublimation printing in the prior art;
[0043] Figure 3 This is a schematic diagram of a control signal added to improve the printing heating resolution of the present invention;
[0044] Figure 4 This is a schematic diagram of a control signal added to improve the printing heating resolution in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0048] Embodiment 1
[0049] Embodiment 1 of the present invention relates to a method for improving the grayscale resolution of thermal sublimation printing. When N unit printing pulses are used to achieve an M-level grayscale printing effect, the heating time T required to achieve the M-level grayscale is known. M , add X bits to improve the resolution of printed grayscale, specifically including the following steps:
[0050] Step 1: The M-level grayscale is divided into M equal parts. The grayscale values m after equal division are 1, 2, ..., M respectively. The heating time required for the grayscale value m-1 to reach the grayscale value m is t m , then the heating time T required to reach each gray value m m for:
[0051]
[0052] According to Formula 1, the width S0 of each unit print pulse is the unit heating time:
[0053]
[0054] Step 2: Sample a pixel in the line to be printed and set the grayscale value of the pixel to T. m Converted into data T' in units of unit heating time S0 m :
[0055] The T′ m It is a multiple of the unit heating time S0. Its value contains an integer part and a decimal part, expressed as:
[0056] T′ m =I m +F m ………………Formula 4
[0057] Among them, I m is T′ m The integer part of F m is T′ m The decimal part of
[0058] The gray value of the pixel T m Convert to data format suitable for printing control T″m , that is, using binary expression T′ m , and T″ m In binary recording, it is divided into two parts, area A and area B. Area A is used to record the heating time of the pixel. m , which is the multiple of the unit heating time S0. Area B is a newly added X-bit table for recording F′ m :
[0059] T″ m =(I m <<X)+Integer(F m ×2X)=(I m <<X)+F′ m ...Formula 5
[0060] Among them, the Interger() function represents taking an integer, I m It means that under the total N unit heating time S0, a point row needs to be heated I m Each unit prints a pulse;
[0061] T″ m In binary recording, it is divided into two parts, area A and area B. Area A is used to record the heating time of the pixel. m , that is, the multiple of the unit heating time S0, the X-bit table in area B is used to record F′ m ;
[0062] Step 3: In the case of the heating mechanism being consistent with the integer part, the printing effect of the decimal part is achieved by using the newly added X printing pulses, that is, the decimal part records the newly added X printing pulses and whether heating is performed by adding X bits, and the newly added X printing pulses are arranged and combined and inserted at any position in the original printing pulse sequence, thereby increasing the resolution of the printing grayscale from S0 to
[0063]
[0064] Among them, a n is equal to 0 or 1;
[0065] Calculate the heating time (pulse width) S of the newly added X print pulses 0n :
[0066]
[0067] Among them, n=0~X-1.
[0068] Assuming X = 3, according to formula 7, the widths of the three newly added print pulses are Then the newly added X print pulses are arranged and combined as follows, and the following combinations can achieve the effect of heating 1 / 8 to 7 / 8 of the unit pulse respectively:
[0069] 1 / 8–S 00
[0070] 2 / 8–S 01
[0071] 3 / 8–S 00 +S 01
[0072] 4 / 8–S 02
[0073] 5 / 8–S 00 +S 02
[0074] 6 / 8–S 01 +S 02
[0075] 7 / 8–S 00 +S 01 +S 02
[0076] In traditional printing technology, the print signal is a series of N print pulses with a width of S0 (different grayscales have different numbers of pulses set to on). The newly added X pulses with a width less than S0 (the decimal part in Formula 4) are not limited to be before, after, or even between the above N pulses. For example, assuming that the pulse with a width of S0 is represented by S, and the newly added decimal part pulse is represented by s, the pulse sequence of a dot row may be as follows:
[0077] (1)sssSSSS…SSS; (2)SSSS…SSsss; (3)SSSsssSSSS…SS.
[0078] like Figure 3 As shown, the newly added X print pulses can be in the order from small to large, or can be at any position in the original print pulse sequence, that is, the newly added X print pulses can be placed in front of the original print pulse sequence, or at the back, or interspersed at any position in the middle, without limitation.
[0079] The present invention will be further understood by way of examples below:
[0080] When using N = 16 unit print pulses to achieve M = 10 grayscale printing effects, it is known that the heating time T required to achieve 10 grayscales is 10=2ms, and the resolution of the printed grayscale is increased by adding X=2 bits. Sample one pixel in a line of printing, assuming that the heating time T4 required for grayscale value 4 is 660цs, and convert it into data T4'=T4 / S0=666 / 125=5.28 in units of unit heating time S0. The heating control is as follows:
[0081]
[0082] T″ m =(5<<2)+Integer(0.28×2 2 )=(5<<2)+1;
[0083] T4" is divided into two parts, area A and area B, when recording in binary format, as shown in the following table. Area A is used to record the heating time I of the pixel. m =5, i.e. 5 times of the unit heating time S0, the 2-bit table in area B is used to record F4';
[0084]
[0085] Calculate the heating time S of the two additional print pulses 0n :
[0086]
[0087] Where n = 0 to X-1
[0088] When X=2, put the decimal point between bit1 and bit2, then bit1 represents 0.5 and bit0 represents 0.25. In this embodiment, the width is set to The print pulse needs to be heated, that is, the print pulse signal is on; and the width is The print pulse does not heat, that is, the print pulse signal is off.
[0089] This embodiment demonstrates that the present invention can increase the printing heating resolution from the original S0 to 1000 by adding only two printing pulses. Under existing technology, to achieve such accuracy, four times the number of printing pulses is required.
[0090] Embodiment 2
[0091] Embodiment 2 of the present invention provides a thermal sublimation printing device, which may include: a memory, a processor, and the memory is used to store a computer program and transmit the program code to the processor. In other words, the processor can call and run the computer program from the memory to implement the method in Embodiment 1 of the present application. For example, the processor can be used to execute the method described in Embodiment 1 according to the instructions in the computer program.
[0092] In some embodiments of the present application, the processor may include but is not limited to:
[0093] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0094] In some embodiments of the present application, the memory includes, but is not limited to, volatile memory and / or non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAMbus RAM (DRRAM).
[0095] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the method of Embodiment 1 provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program on the device.
[0096] Embodiment 3
[0097] Embodiment 3 of the present invention further provides a computer storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer can execute the method described in the embodiment 1 above.
[0098] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for improving the grayscale resolution of thermal sublimation printing, in which N unit printing pulses are used to achieve the printing effect of M grayscales, and the heating time T required to achieve the M grayscales is known. M , characterized in that, Improving the resolution of printed grayscale by adding X bits includes the following steps: Step 1: The M-level grayscale is divided into M equal parts. The grayscale values m after equal division are 1, 2, ..., M respectively. The heating time required for the grayscale value m-1 to reach the grayscale value m is t m , then the heating time T required to reach each gray value m m for: According to Formula 1, the width S0 of each unit print pulse is the unit heating time: Step 2: Sample a pixel in the line to be printed and set the grayscale value of the pixel to T. m Converted into data T' in units of unit heating time S0 m : The T′ m It is a multiple of the unit heating time S0. Its value contains an integer part and a decimal part, expressed as: T′ m =I m +F m ………………Formula 4 Among them, I m is T′ m The integer part of F m is T′ m The decimal part of The heating time T of the pixel m Convert to data format suitable for printing control T″ m , that is, using binary expression T′ m , and T″ m In binary recording, it is divided into two parts, area A and area B. Area A is used to record the heating time of the pixel. m , which is the multiple of the unit heating time S0. Area B is a newly added X-bit table for recording F′ m : T″ m =(I m <<X)+Integer(F m ×2 X )=(I m <<X)+F′ m ...Formula 5 Among them, the Interger() function represents taking an integer, I m It means that under the total N unit heating time S0, a point row needs to be heated I m Each unit prints a pulse; Step 3: In the case of the heating mechanism being consistent with the integer part, the printing effect of the decimal part is achieved by using the newly added X printing pulses, that is, the decimal part records the newly added X printing pulses and whether heating is performed by adding X bits, and the newly added X printing pulses are arranged and combined and inserted at any position in the original printing pulse sequence, thereby increasing the resolution of the printing grayscale from S0 to Among them, a n is equal to 0 or 1; Calculate the heating time (pulse width) S of the newly added X printing pulses 0n : Among them, n=0~X-1.
2. The method for improving grayscale resolution of thermal sublimation printing according to claim 1, characterized in that: The newly added X print pulses are placed in the order from small to large, in front of the original print pulse sequence, or at the back, or interspersed at any position in the middle.
3. A thermal sublimation printing device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the methods for improving the grayscale resolution of thermal sublimation printing as described in claims 1 to 2.
4. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for improving the grayscale resolution of thermal sublimation printing according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Method for image interpolation using asymmetric interpolation filter and apparatus therefor
CN103765884A
Method and device for improving Gray complementary waveform multi-target recognition performance
CN110703222A
Target detection method and device and computer storage medium
CN111178371A
Print image output method and device and electronic equipment
CN113821182A
Printing method of hot printing head
CN1403295A
