With the continuous development of social informatization, thermal label and barcode printing technology has gradually spread across all walks of life. It is also important to improve the recognizability of thermal printing barcodes. Improving printing clarity at high speeds has become a key point in the design of thermal printers. With the increase of the printing speed in the traditional heating control method, the time for the temperature rise and fall of the heating element of the print hair will not be negligible, which will not neglect the impact of the printing clarity, which will result in the reduction of the printing clarity. However, it is difficult and costly to start from the perspective of structure, material, etc., to improve printing clarity. Combined with the printer history and future heating point information, this paper applies different heating pulse width compensation to the heating element while increasing the number of heating pulses and reducing the heating pulse width. Through the finite element simulation and the comparison with the actual printing effect of the thermal printer, the effectiveness of the method is verified. The results show that the control method can effectively improve the printing clarity and the recognition rate of barcodes and QR codes.