A method, system and storage medium for calibrating resistance values of a thermal printhead

By working collaboratively with a thermal printer, scanner, and PC, a one-dimensional array is generated and the calibrated thermal printhead resistance is calculated, thus solving the problem of grayscale error in thermal printheads and improving image quality.

CN116901590BActive Publication Date: 2026-04-10南阳柯丽尔科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
南阳柯丽尔科技有限公司
Filing Date
2023-08-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing thermal printheads, each heating element exhibits actual grayscale error when printing the same grayscale, affecting image quality.

Method used

The calibration image is printed using a thermal printer, scanned by a scanner and sent to a PC for image processing. A one-dimensional array is generated and the reference area data is replaced. The resistance value of the calibrated thermal printhead is calculated and saved to the printer.

Benefits of technology

This reduces the actual grayscale error of each heating element in the thermal printhead when printing the same grayscale, thus improving image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116901590B_ABST
    Figure CN116901590B_ABST
Patent Text Reader

Abstract

The application discloses a kind of thermal printing head resistance calibration method, system and storage medium, method includes: based on the preset printing position of thermal printer in thermal printing head, calibration image is printed out by thermal printer;Calibration image is scanned by scanner and sent to PC;Calibration image is processed by PC, and first image is generated;The two-dimensional image data of first image is converted by PC and generates one-dimensional array;The reference area of one-dimensional array is replaced by PC data, and target one-dimensional array is obtained;The resistance of thermal printing head after calibration is calculated by PC according to the preset resistance data of thermal printing head and target one-dimensional array, and the resistance of thermal printing head after calibration is saved to thermal printer;The actual gray error of printing can be reduced in the case that each heating element on thermal printing head prints the same gray, and the image quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of thermal printing, in particular to a thermal print head resistance calibration method, system and storage medium. BACKGROUND

[0002] The thermal print head is composed of a row of heating elements, the resistance of these elements is theoretically the same, but in fact due to the process, the resistance will be biased, the elements of the thermal print head are arranged very densely, and the elements will quickly generate high temperature after the current passes. When the coating in the medium meets the elements, the temperature will rise in a very short time, then a chemical phenomenon will occur, color will be generated, and finally an image will be formed.

[0003] Due to the error between the heating elements on the thermal printer head and the reference heating element, the error range is ±15%, so that each heating element on the existing thermal print head has an error in the actual gray level when printing the same gray level, which affects the image quality. SUMMARY

[0004] The present application provides a thermal print head resistance calibration method and system, which solves the technical problem that each heating element on the existing thermal print head has an error in the actual gray level when printing the same gray level, which affects the image quality.

[0005] The present application provides a thermal print head resistance calibration method, which relates to a thermal printer, a scanner and a PC, and the method comprises:

[0006] Based on the preset printing position of the thermal print head in the thermal printer, a calibration image is printed by the thermal printer;

[0007] The calibration image is scanned by the scanner and sent to the PC;

[0008] The calibration image is processed by the PC to generate a first image;

[0009] The two-dimensional image data of the first image is processed by the PC to generate a one-dimensional array;

[0010] The reference area of the one-dimensional array is replaced by data by the PC to obtain a target one-dimensional array;

[0011] The preset resistance data of the thermal print head and the target one-dimensional array are calculated by the PC to obtain a calibrated thermal print head resistance, and the calibrated thermal print head resistance is saved in the thermal printer.

[0012] Optionally, the method further comprises:

[0013] When the quality of the calibration image printed by the thermal printer according to the calibrated thermal print head resistance value is poor, then the step of printing the calibration image by the thermal printer based on different preset printing positions of the thermal print head in the thermal printer is executed.

[0014] Optionally, the step of generating the first image by the PC performing image processing on the calibration image comprises:

[0015] The PC performs intercepting and scaling operations on the calibration image to generate a calibration region image.

[0016] The calibration region image is subjected to image conversion and saved as a raw format first image.

[0017] Optionally, the step of generating the calibration region image by the PC performing intercepting and scaling operations on the calibration image comprises:

[0018] The PC intercepts the calibration region in the calibration image.

[0019] The calibration region is scaled according to the preset point number of the thermal print head to generate the calibration region image.

[0020] Optionally, the calibration region comprises a reference region and a non-reference region; and the step of obtaining the target one-dimensional array by the PC replacing data in the reference region of the one-dimensional array comprises:

[0021] The PC determines first point data corresponding to the non-reference region in the one-dimensional array.

[0022] The target one-dimensional array is obtained by replacing all point data in the reference region of the one-dimensional array based on the first point data.

[0023] The application further provides a thermal print head resistance value calibration system, which comprises a thermal printer, a scanner and a PC.

[0024] The thermal printer is configured to print a calibration image by the thermal printer based on preset printing positions of a thermal print head in the thermal printer.

[0025] The scanner is configured to scan the calibration image by the scanner and send the calibration image to the PC.

[0026] The PC comprises:

[0027] An image processing unit is configured to perform image processing on the calibration image to generate a first image.

[0028] A conversion processing unit is configured to perform conversion processing on two-dimensional image data of the first image to generate a one-dimensional array.

[0029] A replacement unit is configured to perform data replacement on a reference region of the one-dimensional array to obtain a target one-dimensional array.

[0030] A calibration calculation unit is configured to calculate a calibrated thermal print head resistance value according to preset resistance data of the thermal print head and the target one-dimensional array, and save the calibrated thermal print head resistance value to the thermal printer.

[0031] Optionally, the calibration system further comprises:

[0032] A judgment unit is configured to jump to the thermal printer when a calibration image printed by the thermal printer according to the calibrated thermal print head resistance value is of poor quality.

[0033] Optionally, the image processing unit comprises:

[0034] An image operation subunit is configured to perform intercepting and scaling operations on the calibration image by the PC to generate a calibration region image.

[0035] A format conversion subunit is configured to perform image conversion on the calibration region image and save the calibration region image as a first image in a raw format.

[0036] Optionally, the calibration region comprises a reference region and a non-reference region, and the replacement unit comprises:

[0037] A determination subunit is configured to determine first point data corresponding to the non-reference region in the one-dimensional array.

[0038] A replacement subunit is configured to replace all point data in the reference region of the one-dimensional array based on the first point data to obtain a target one-dimensional array.

[0039] The application further provides a storage medium having a computer program stored thereon, wherein the computer program is configured to execute the calibration method according to any one of the above embodiments when executed by a processor.

[0040] As can be seen from the above technical solutions, the application has the following advantages:

[0041] The application provides a thermal print head resistance calibration method, system and storage medium, wherein the method relates to a thermal printer, a scanner and a PC, a calibration image is printed out by the thermal printer based on preset printing positions of a thermal print head in the thermal printer; the calibration image is scanned by the scanner and sent to the PC; the calibration image is processed by the PC to generate a first image; the two-dimensional image data of the first image is processed by the PC to generate a one-dimensional array; the reference area of the one-dimensional array is replaced by the PC to obtain a target one-dimensional array; the preset resistance data of the thermal print head and the target one-dimensional array are used by the PC to calculate the calibrated thermal print head resistance, and the calibrated thermal print head resistance is saved in the thermal printer. The above method solves the technical problem that the actual gray scale of each heating element on the existing thermal print head has an error when printing the same gray scale, which affects the image quality. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0043] Figure 1 A step flow chart of a thermal print head resistance calibration method provided for the embodiment 1 of the present application;

[0044] Figure 2 A step flow chart of a thermal print head resistance calibration method provided for the embodiment 2 of the present application;

[0045] Figure 3 A schematic diagram of a calibration image provided for the embodiment 2 of the present application.

[0046] Figure 4 A schematic diagram of a thermal print image provided for the embodiment 2 of the present application.

[0047] Figure 5 A partial enlarged view in the dashed box of the thermal print image provided for the embodiment 2 of the present application.

[0048] Figure 6 A framework diagram of a thermal print head resistance calibration system provided for the embodiment of the present application. DETAILED DESCRIPTION

[0049] The embodiment of the present application provides a kind of thermal print head resistance calibration method, system and storage medium, to solve the technical problems that the actual gray level error exists in the printing of the same gray level in the existing thermal print head on each heating element, affect image quality.

[0050] To make the application purpose, features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the following described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0051] Thermal printer: a type of printer that uses thermal action to print. By controlling the heating of the thermal resistor in the print head, it makes contact with the pigment layer on the photosensitive material or thermal paper, thereby producing a chemical reaction to form an image or text. This printing technology is commonly used in small portable printers and receipt printers, etc., with the characteristics of fast printing speed, low noise and low cost.

[0052] Scanner: a device that captures images. As a computer peripheral product integrating optics, mechanics and electronics, the scanner is the third largest computer input device after the mouse and keyboard. It can convert images into digital format that can be displayed, edited, stored and output by computers, and is a powerful input device.

[0053] PC: personal computer, which can be a smartphone, tablet computer, notebook computer and desktop computer, etc.

[0054] Please refer to Figure 1 , Figure 1 A thermal print head resistance calibration method is provided for embodiment 1 of the present application.

[0055] The thermal print head resistance calibration method provided by the present application relates to thermal printers, scanners and PCs, and the method comprises:

[0056] Step 101: based on the preset printing position of the thermal print head in the thermal printer, a calibration image is printed out by the thermal printer.

[0057] It should be noted that the calibration image is printed based on the preset resistance value data and printing position of the thermal print head.

[0058] Step 102: scan the calibration image by the scanner and send it to the PC.

[0059] Step 103: perform image processing on the calibration image by the PC to generate a first image.

[0060] Step 104, the PC converts the two-dimensional image data of the first image to generate a one-dimensional array.

[0061] Step 105, the PC replaces the data of the reference area of the one-dimensional array to obtain a target one-dimensional array.

[0062] Step 106, the PC calculates the calibrated thermal print head resistance value according to the preset resistance value data of the thermal print head and the target one-dimensional array, and saves the calibrated thermal print head resistance value in the thermal printer.

[0063] The embodiment of the application provides a thermal print head resistance value calibration method, which comprises the following steps: printing a calibration image based on the preset printing position of the thermal print head in the thermal printer; scanning the calibration image by a scanner and sending the calibration image to a PC; performing image processing on the calibration image by the PC to generate a first image; converting the two-dimensional image data of the first image by the PC to generate a one-dimensional array; replacing the data of the reference area of the one-dimensional array by the PC to obtain a target one-dimensional array; and calculating the calibrated thermal print head resistance value according to the preset resistance value data of the thermal print head and the target one-dimensional array by the PC, and saving the calibrated thermal print head resistance value in the thermal printer.

[0064] The method uses the thermal printer to print the calibration image, scans the calibration image by the scanner, performs image processing by the PC, calculates the calibrated thermal print head resistance value according to the preset resistance value data of the thermal print head, and saves the calibrated thermal print head resistance value in the thermal printer, so that the actual gray error of printing is reduced and the image quality is improved when each heating element on the thermal print head prints the same gray.

[0065] Please refer to Figure 2 , Figure 2 A thermal print head resistance value calibration method is provided for the embodiment 2 of the application.

[0066] The application provides a thermal print head resistance value calibration method, which relates to a thermal printer, a scanner and a PC, and the method comprises the following steps:

[0067] Step 201, printing a calibration image based on the preset printing position of the thermal print head in the thermal printer.

[0068] It should be noted that the preset printing position is the starting position of the heating element in the thermal print head; please refer to Figure 3 , Figure 3For the schematic diagram of the calibration image, specifically, the white part is the thermal sensitive printing paper 1, the part other than the white part is the calibration image 2, the black and gray part is the non-calibration area 3, the light gray and black area is the calibration area 4, the calibration area is the area range of the thermal sensitive printing head printing image, and the leftmost black area of the calibration area is the reference area 5, which is used to find the starting point of the thermal sensitive printing head printing image.

[0069] In step 202, the calibration image is scanned by the scanner and sent to the PC.

[0070] It should be noted that the scanner as the peripheral equipment of the PC can scan the calibration image and send it to the PC for image processing.

[0071] In step 203, the calibration image is intercepted and scaled by the PC to generate a calibration area image.

[0072] In the embodiment 2 of the present application, the PC uses the interception software tool to intercept the calibration area in the calibration image; the calibration area is scaled according to the preset number of the thermal sensitive printing head to generate the calibration area image;

[0073] It should be noted that since the number of points set by the scanner needs to be greater than the number of points of the thermal sensitive printing head (generally greater than or equal to 2 times), in order to ensure the effectiveness of printing, the calibration area image needs to be scaled to the image of the number of points of the thermal sensitive printing head.

[0074] In step 204, the calibration area image is converted and saved as a first image in raw format.

[0075] It should be noted that after obtaining the calibration area image, image conversion is also needed, which can be scaling, padding and cropping, etc. After the image conversion of the calibration area image, the format requirement of the thermal sensitive printer printing image needs to be met, that is, saved as raw format to generate the first image.

[0076] In step 205, the two-dimensional image data of the first image is converted by the PC to generate a one-dimensional array.

[0077] It should be noted that the thermal sensitive printing head is a row of heating elements, that is, the resistance value data of the thermal sensitive printing head is one-dimensional data, and the raw format image corresponds to two-dimensional image data. Based on the mean value algorithm, the two-dimensional image data of the first image can be converted to generate a one-dimensional array. The mean value algorithm can be simple average method, weighted average method and square average method, etc.

[0078] Suppose the print resistance point number of the thermal sensitive print head is 7104, and the corresponding array is printData

[7104] ; the image data of the intercepted area has 7104*800 points, and the corresponding array is imageArea

[7104]

[800] ; the two-dimensional array imageArea

[7104]

[800] is converted into a one-dimensional array imageData

[7104] by the mean class algorithm;

[0079] For example, in the simple average method, imageData[0]=(imageArea[0][0]+imageArea[0][1]...+imageArea[0]

[799] ) / 800, and so on, imageData

[7103] =(imageArea

[7103] [0]+imageArea

[7103] [1]+…+imageArea

[7103]

[799] ) / 800, so as to convert the two-dimensional array imageArea

[7104]

[800] into the one-dimensional array imageData

[7104] .

[0080] In step 206, the reference area of the one-dimensional array is replaced by data by the PC to obtain a target one-dimensional array.

[0081] It should be noted that the calibration area is divided into a reference area and a non-reference area; the reference area is black, and the corresponding gray value is 0; in order to avoid the placement deviation of the thermal sensitive printing paper placed in the scanner, which causes the image of the reference area to be offset, the first point data corresponding to the non-reference area in the one-dimensional array is determined by the PC; based on the first point data, all point data in the reference area of the one-dimensional array are replaced to obtain a target one-dimensional array.

[0082] In particular, the present application is applicable to the thermal sensitive print image area printed by the thermal sensitive printer, which is smaller than the whole area of the thermal sensitive print head in the thermal sensitive printer, that is, the area of the calibration image printed is greater than the area of the thermal sensitive print image, please participate Figure 4 Figure 4 The range of the thermal sensitive print image is provided, and specifically, the thermal sensitive printing paper 1, the calibration image 2 (i.e. the maximum size printed by the thermal sensitive print head), the reference area 5, and the thermal sensitive print image 6 are provided.

[0083] Generally, the width of the reference area is greater than or equal to 10 points, and in the one-dimensional array, the point data of the front n reference areas is replaced by the point data behind the reference area, that is, the point data of the non-reference area, wherein n is the width of the reference area; please refer to Figure 5 Figure 5 ​​For the local magnification of the heat-sensitive printing image, there is a left and right margin 7 between the heat-sensitive printing image and the heat-sensitive printing paper, and the above margin is generally more than 5 mm, which indicates that the width n of the reference area also needs to be less than the width of the margin area of the heat-sensitive printing image. When the above conditions are met, assuming that the width of the reference area is 10 points, the 10-point data of the reference area needs to be replaced by the 11th point data of the calibration area, that is, the 1st point data of the non-reference area, so as to obtain the target one-dimensional array, so as to complete the calibration of the reference area, and realize the replacement of the point data with a gray value of 0 in the reference area with the normally printed gray value.

[0084] In step 207, the PC calculates the calibrated thermal print head resistance value according to the preset resistance value data of the thermal print head and the target one-dimensional array, and saves the calibrated thermal print head resistance value in the thermal printer.

[0085] It should be noted that the calibrated thermal print head resistance value can be calculated according to the preset algorithm model based on the preset resistance value data of the thermal print head and the target one-dimensional array.

[0086] In step 208, when the calibration image printed by the thermal printer according to the calibrated thermal print head resistance value is of poor quality, the step of printing the calibration image by the thermal printer based on different preset printing positions of the thermal print head in the thermal printer is executed.

[0087] It should be noted that the resistance value of the heating element of the thermal print head has a deviation, and after the thermal print head is printed for a period of time, the deviation of the resistance value of part of the heating elements may be greater than 15% of the error range, that is, even if the calibration image printed by the thermal printer according to the calibrated thermal print head resistance value still has vertical lines, calibration still needs to be continued.

[0088] Embodiment 2 of the present application provides a method for calibrating the resistance value of a thermal print head, which comprises:

[0089] The calibration system comprises a thermal printer, a scanner and a PC.

[0090] The method is suitable for a thermal printing image region printed by the thermal printer being smaller than all regions of the thermal print head in the thermal printer, and can reduce actual gray error of printing and improve image quality in the case that each heating element on the thermal print head prints the same gray.

[0091] Please refer to Figure 6 , Figure 6 A framework diagram of a thermal print head resistance value calibration system provided by the embodiment of the present application.

[0092] The present application provides a thermal print head resistance value calibration system based on noise, which comprises a thermal printer, a scanner and a PC.

[0093] The thermal printer is used for printing a calibration image by the thermal printer based on a preset printing position of a thermal print head in the thermal printer.

[0094] The scanner is used for scanning the calibration image by the scanner and sending the calibration image to the PC.

[0095] The PC comprises:

[0096] An image processing unit is used for image processing of the calibration image to generate a first image.

[0097] A conversion processing unit is used for conversion processing of two-dimensional image data of the first image to generate a one-dimensional array.

[0098] A replacement unit is used for data replacement of a reference region of the one-dimensional array to obtain a target one-dimensional array.

[0099] The calibration computing unit is configured to calculate a calibrated thermal print head resistance value according to preset resistance data of the thermal print head and a target one-dimensional array, and save the calibrated thermal print head resistance value in the thermal printer.

[0100] The calibration system further comprises:

[0101] The judging unit is configured to jump to the thermal printer when a calibration image printed by the thermal printer according to the calibrated thermal print head resistance value is of poor quality.

[0102] The image processing unit comprises:

[0103] The image operation subunit is configured to perform intercepting and scaling operations on the calibration image by the PC to generate a calibration region image.

[0104] The format conversion subunit is configured to perform image conversion on the calibration region image and save the calibration region image as a first image in a raw format.

[0105] The calibration region comprises a reference region and a non-reference region, and the replacing unit comprises:

[0106] The determining subunit is configured to determine first point data corresponding to the non-reference region in the one-dimensional array.

[0107] The replacing subunit is configured to replace all point data in the reference region of the one-dimensional array based on the first point data to obtain the target one-dimensional array.

[0108] The image operation subunit is specifically configured to intercept the calibration region in the calibration image by the PC, and scale the calibration region according to a preset point number of the thermal print head to generate the calibration region image.

[0109] The application further provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to run the calibration method of the thermal print head resistance value in the above method embodiments.

[0110] Those skilled in the art can clearly understand the specific working processes of the above-described system, device and unit for the sake of convenience and brevity, and the corresponding processes in the above method embodiments can be referred to, which will not be described herein.

[0111] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.

[0112] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0113] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0114] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application, essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0115] The above embodiments are merely used to describe the technical solutions of the present application, rather than limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent replacements to some technical features. Such modifications or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of calibrating resistance values of a thermal printhead, characterized by, The method relates to a thermal printer, a scanner and a PC; the method comprises the following steps: Printing a calibration image by the thermal printer based on preset printing positions of a thermal print head in the thermal printer; Scanning the calibration image by the scanner and sending the calibration image to the PC; Image processing the calibration image by the PC to generate a first image; Converting two-dimensional image data of the first image by the PC to generate a one-dimensional array; Replacing data of a reference area of the one-dimensional array by the PC to obtain a target one-dimensional array; Calculating a calibrated thermal print head resistance value according to preset resistance data of the thermal print head and the target one-dimensional array by the PC, and saving the calibrated thermal print head resistance value into the thermal printer; The step of image processing the calibration image by the PC to generate a first image comprises the following steps: Cutting and zooming the calibration image by the PC to generate a calibration area image; Converting the calibration area image into a raw format first image; The step of cutting and zooming the calibration image by the PC to generate a calibration area image comprises the following steps: Cutting a calibration area in the calibration image by the PC; Zooming the calibration area according to preset points of the thermal print head to generate a calibration area image; The calibration area comprises a reference area and a non-reference area; the step of replacing data of the reference area of the one-dimensional array by the PC to obtain a target one-dimensional array comprises the following steps: Determining first point data corresponding to the non-reference area in the one-dimensional array by the PC; Replacing all point data in the reference area of the one-dimensional array based on the first point data to obtain a target one-dimensional array.

2. The calibration method of claim 1, wherein, The method further comprises the following steps: When the calibration image printed by the thermal printer according to the calibrated thermal print head resistance value is of poor quality, then jumping to the step of printing a calibration image by the thermal printer based on preset printing positions of a thermal print head in the thermal printer.

3. A system for calibrating resistance values of a thermal printhead, characterized by, The calibration system comprises a thermal printer, a scanner and a PC; The thermal printer is used for printing a calibration image by the thermal printer based on preset printing positions of a thermal print head in the thermal printer; The scanner is used for scanning the calibration image by the scanner and sending the calibration image to the PC; The PC comprises the following units: An image processing unit is used for image processing the calibration image to generate a first image; A conversion processing unit is used for converting two-dimensional image data of the first image to generate a one-dimensional array; A replacing unit is used for replacing data of a reference area of the one-dimensional array to obtain a target one-dimensional array; A calibration calculation unit is used for calculating a calibrated thermal print head resistance value according to preset resistance data of the thermal print head and the target one-dimensional array, and saving the calibrated thermal print head resistance value into the thermal printer; The image processing unit comprises the following steps: An image operation subunit is configured to perform intercepting and scaling on the calibration image by the PC to generate a calibration region image; A format conversion subunit is configured to perform image conversion on the calibration region image and save the calibration region image as a first image in a raw format; The image operation subunit is specifically configured to intercept a calibration region in the calibration image by the PC, and scale the calibration region according to a preset point number of the thermal print head to generate the calibration region image. The calibration region includes a reference region and a non-reference region; and the replacing unit includes: A determining subunit is configured to determine first point data corresponding to the non-reference region in the one-dimensional array; A replacing subunit is configured to replace all point data in the reference region of the one-dimensional array based on the first point data to obtain a target one-dimensional array.

4. The calibration system of claim 3, wherein, The calibration system further includes: A judging unit is configured to, when the quality of the calibration image printed by the thermal printer according to the resistance value of the calibrated thermal print head is poor, jump to the step of printing the calibration image by the thermal printer based on a preset printing position of the thermal print head in the thermal printer.

5. A storage medium having stored thereon a computer program, characterized in that The computer program is configured to, when executed by the processor, perform the calibration method according to any one of claims 1-2.

Citation Information

Patent Citations

  • Thermal printer and control method of thermal printer

    CN103192609A

  • Photo printer and photo printing method

    CN108312721A

  • Die alignment with indexing scanbar

    CN108349278A