Color receipt printing method and device, computer equipment and readable storage medium

By gradient heating of colored thermal paper and identifying its printable color and temperature, the problem that printers need to specialize in research and development for each type of paper in the prior art is solved, and the versatility and applicability of printing equipment is improved to meet diverse and personalized printing needs.

CN120191135APending Publication Date: 2025-06-24RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD

Patent Information

Application Number
CN202510620179.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The differences in dye layer materials of existing colored thermal papers have led to the need for special research and development of each paper, which increases production costs and limits the versatility and applicability of the printer, and cannot meet the diverse and personalized printing needs.

Method used

By obtaining the preset heating temperature interval, the currently identified thermal paper is heated in a gradient manner, the target color that can be printed and its corresponding heating temperature are determined, and the heating printing is carried out in response to the color ticket printing command, so as to achieve compatibility with different thermal papers.

Benefits of technology

There is no need to reinvest resources to develop printing equipment, which reduces R&D costs, improves the versatility and applicability of printing equipment, and can meet diverse and personalized printing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120191135A_ABST
    Figure CN120191135A_ABST
Patent Text Reader

Abstract

The invention discloses a color receipt printing method and device, computer equipment and a readable storage medium, relates to the technical field of Internet, and provides universal color receipt printing capability by performing gradient heating treatment on thermo-sensitive paper and identifying and recording printable colors and required temperatures of the thermo-sensitive paper. And diversified and personalized printing requirements are met. The method comprises the following steps: acquiring a preset heating temperature interval, and carrying out gradient heating on currently identified thermo-sensitive paper according to the heating temperature interval to obtain a heating result; according to the heating result, determining at least one target color which can be printed and displayed by the currently identified thermo-sensitive paper, and determining a heating temperature corresponding to each target color; and in response to a color receipt printing instruction, determining a to-be-printed color, and carrying out heating printing on the currently identified thermo-sensitive paper according to a specified heating temperature corresponding to the to-be-printed color, so that the to-be-printed color is presented on the currently identified thermo-sensitive paper, and a color receipt is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technologies, and particularly to a method, apparatus, computer device, and readable storage medium for printing color receipts. Background Art

[0002] In current fields such as commercial retail, catering and entertainment, and logistics and warehousing, color receipt printing technology has been widely applied. This technology activates different dye layers on thermal receipts by controlling the temperature of paper heating, thereby achieving the display of corresponding colors. It not only improves the visual appeal of receipts but also enhances the readability and recognition of information, providing users with a more intuitive and rich information display.

[0003] In related technologies, the dye layer materials used in color printing papers of various manufacturers on the market are not the same, resulting in significant differences in aspects such as color performance and color development temperature among these papers. Specifically, different dye layer materials have different sensitivities to temperature. Some may be able to develop colors at relatively low temperatures, while others require higher temperatures to achieve an ideal color development effect. Therefore, printer manufacturers need to conduct specialized research and development for each specific color thermal paper to ensure that the printer can accurately control the heating temperature, thereby activating the dye layer on the paper and correctly displaying colors.

[0004] In the process of implementing related technologies, the applicant recognized that related technologies have at least the following problems:

[0005] Once a new color thermal paper appears on the market, printer manufacturers may need to re-invest resources in research and development to adapt to the new paper characteristics, which not only increases the production cost of printers but also limits the versatility and applicability of printers and cannot meet diverse and personalized printing needs. Summary of the Invention

[0006] In view of this, this application provides a method, apparatus, computer device, and readable storage medium for printing color receipts, mainly aiming to solve the problem that once a new color thermal paper appears on the market, printer manufacturers may need to re-invest resources in research and development to adapt to the new paper characteristics, which not only increases the production cost of printers but also limits the versatility and applicability of printers and cannot meet diverse and personalized printing needs.

[0007] According to a first aspect of this application, a method for printing color receipts is provided, and the method includes:

[0008] Obtain a preset heating temperature interval, and perform gradient heating on the currently recognized thermal paper according to the heating temperature interval to obtain a heating result;

[0009] Based on the heating result, determine at least one target color that the currently recognized thermal paper can print and display, and determine the heating temperature corresponding to each target color;

[0010] In response to a color receipt printing instruction, determine the color to be printed, and heat and print the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently recognized thermal paper, and obtain a color receipt.

[0011] Optionally, the obtaining a preset heating temperature interval and performing gradient heating on the currently recognized thermal paper according to the heating temperature interval to obtain a heating result includes:

[0012] In response to an instruction to enable the paper compatibility function, identify the currently successfully installed thermal paper and determine the currently recognized thermal paper;

[0013] Partition the currently recognized thermal paper and divide the currently recognized thermal paper into multiple heating zones;

[0014] Query the preset heating temperature interval to obtain a preset initial heating temperature and a preset termination heating temperature;

[0015] Increment the initial heating temperature gradient by gradient according to the heating temperature interval, and use the gradient-incremented initial heating temperature to heat different heating zones in the multiple heating zones respectively until the heating temperature gradient increases to the termination heating temperature, and complete the heating of the currently recognized thermal paper to obtain the heating result.

[0016] Optionally, the partitioning the currently recognized thermal paper and dividing the currently recognized thermal paper into multiple heating zones includes:

[0017] Determine the temperature difference between the initial heating temperature and the termination heating temperature, and determine the number of heating zone divisions according to the temperature difference and the heating temperature interval;

[0018] Determine the area to be heated on the currently recognized thermal paper, and perform area division on the area to be heated according to the number of heating zone divisions to obtain the multiple heating zones with the number equal to the number of heating zone divisions;

[0019] Number the multiple heating zones according to the arrangement order of the multiple heating zones on the currently recognized thermal paper, and determine the heating zone number corresponding to each heating zone.

[0020] Optionally, according to the heating temperature interval, the initial heating temperature is incremented in a gradient manner, and different heating zones in the plurality of heating zones are heated respectively by using the initial heating temperature incremented in a gradient manner until the heating temperature is incremented in a gradient manner to the termination heating temperature, and the heating of the currently identified thermal paper is completed to obtain the heating result, including:

[0021] Heat the first heating zone in the plurality of heating zones by using the initial heating temperature;

[0022] Increment the initial heating temperature in a gradient manner according to the heating temperature interval and heat the heating zone adjacent to the heating zone that has started heating in the plurality of heating zones by using the increased heating temperature until the heating temperature increases to the termination heating temperature, and the heating of the currently identified thermal paper is completed to obtain the heating result.

[0023] Optionally, according to the heating result, determining at least one target color that can be printed and displayed on the currently identified thermal paper, and determining the heating temperature corresponding to each target color, including:

[0024] Analyze the heating result, and use the color identified on the heating result as the at least one target color;

[0025] Query the target heating zone where each target color is located on the heating result, and determine the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located.

[0026] Optionally, the method further includes:

[0027] Scan the heating result to obtain a result scan picture, and upload the result scan picture to a cloud server so that the cloud server analyzes the result scan picture to obtain the at least one target color and the heating temperature corresponding to each target color.

[0028] Optionally, determining the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located, including:

[0029] For each target color, query the serial number of the target heating zone where the target color is located relative to the first heating zone on the heating result, calculate a first difference between the serial number of the target heating zone and the serial number of the first heating zone, count a first product of the first difference and the heating temperature interval, and use a first sum value of the temperature corresponding to the first heating zone and the first product as the heating temperature corresponding to the target color; or,

[0030] For each of the target colors, query, on the heating result, the target heating zone number corresponding to the target heating zone where the target color is located, and query the first heating zone number corresponding to the first-ranked heating zone, calculate a second difference between the target heating zone number and the first heating zone number, count a second product of the second difference and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the second product as the heating temperature corresponding to the target color; or,

[0031] For each of the target colors, query, on the heating result, the number of heating zones between the target heating zone where the target color is located and the first-ranked heating zone, increase the value by 1 based on the number of heating zones, calculate a third product of the increased number of heating zones and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the third product as the heating temperature corresponding to the target color.

[0032] Optionally, the responding to the color receipt printing instruction, determining the color to be printed, and heating and printing the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed is presented on the currently recognized thermal paper to obtain a color receipt, includes:

[0033] Responding to the color receipt printing instruction, obtaining the content to be printed indicated by the color receipt printing instruction, recognizing the color to be printed on the content to be printed, and querying the specified heating temperature corresponding to the color to be printed;

[0034] Printing the content to be printed on the currently recognized thermal paper, and when printing the color to be printed, heating and printing the currently recognized thermal paper using the specified heating temperature, so that the color to be printed is presented on the currently recognized thermal paper to obtain the color receipt.

[0035] Optionally, the method further includes:

[0036] When receiving an instruction to enable the paper compatibility function, re-identify the currently successfully installed thermal paper, re-determine the currently identified thermal paper, and re-perform gradient heating on the re-determined currently identified thermal paper according to the heating temperature interval to obtain the heating result of the currently identified thermal paper. According to the heating result of the currently identified thermal paper, determine at least one target color that can be printed and displayed on the currently identified thermal paper, and determine the heating temperature corresponding to each target color, so as to respond to a color receipt printing instruction, determine the color to be printed, and perform heating and printing on the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt.

[0037] According to a second aspect of the present application, there is provided a color receipt printing device, which includes:

[0038] A printing module, configured to obtain a preset heating temperature interval, and perform gradient heating on the currently identified thermal paper according to the heating temperature interval to obtain a heating result;

[0039] A scanning module, configured to determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result, and determine the heating temperature corresponding to each target color;

[0040] The printing module is further configured to respond to a color receipt printing instruction, determine the color to be printed, and perform heating and printing on the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt.

[0041] Optionally, the printing module is configured to, in response to an instruction to enable the paper compatibility function, identify the currently successfully installed thermal paper, determine the currently identified thermal paper; partition the currently identified thermal paper, divide the currently identified thermal paper into multiple heating zones; query the preset heating temperature interval, obtain a preset initial heating temperature and a preset termination heating temperature; perform gradient increment on the initial heating temperature according to the heating temperature interval, and use the gradient-incremented initial heating temperature to heat different heating zones in the multiple heating zones respectively until the heating temperature gradient increments to the termination heating temperature, and complete the heating of the currently identified thermal paper to obtain the heating result.

[0042] Optionally, the printing module is configured to determine the temperature difference between the initial heating temperature and the termination heating temperature, determine the number of heating zone divisions according to the temperature difference and the heating temperature interval; determine the area to be heated on the currently recognized thermal paper, divide the area to be heated according to the number of heating zone divisions, and obtain the multiple heating zones with the number equal to the number of heating zone divisions; number the multiple heating zones according to the arrangement order of the multiple heating zones on the currently recognized thermal paper, and determine the heating zone number corresponding to each heating zone.

[0043] Optionally, the printing module is configured to heat the first heating zone among the multiple heating zones with the initial heating temperature; increment the initial heating temperature in a gradient manner according to the heating temperature interval and use the increased heating temperature to heat the heating zone adjacent to the heating zone that has started heating among the multiple heating zones until the heating temperature increases to the termination heating temperature, complete the heating of the currently recognized thermal paper, and obtain the heating result.

[0044] Optionally, the scanning module is configured to analyze the heating result, use the color recognized on the heating result as the at least one target color; query the target heating zone where each target color is located on the heating result, and determine the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located.

[0045] Optionally, the scanning module is further configured to scan the heating result to obtain a result scan picture, and upload the result scan picture to a cloud server, so that the cloud server analyzes the result scan picture to obtain the at least one target color and the heating temperature corresponding to each target color.

[0046] Optionally, the scanning module is configured to, for each of the target colors, query, on the heating result, the serial number of the target heating zone where the target color is located relative to the first-ranked heating zone, and calculate a first difference between the serial number of the target heating zone and the serial number of the first-ranked heating zone, and statistically calculate a first product of the first difference and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the first product as the heating temperature corresponding to the target color; or, for each of the target colors, query, on the heating result, the target heating zone number corresponding to the target heating zone where the target color is located, and query the first heating zone number corresponding to the first-ranked heating zone, and calculate a second difference between the target heating zone number and the first heating zone number, and statistically calculate a second product of the second difference and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the second product as the heating temperature corresponding to the target color; or, for each of the target colors, query, on the heating result, the number of heating zones between the target heating zone where the target color is located and the first-ranked heating zone, add a value of 1 to the number of heating zones, and calculate a third product of the increased number of heating zones and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the third product as the heating temperature corresponding to the target color.

[0047] Optionally, the printing module is further configured to, in response to the color receipt printing instruction, obtain the content to be printed indicated by the color receipt printing instruction, identify the color to be printed on the content to be printed, and query the specified heating temperature corresponding to the color to be printed; print the content to be printed on the currently identified thermal paper, and when printing the color to be printed, heat and print the currently identified thermal paper at the specified heating temperature, so that the color to be printed is presented on the currently identified thermal paper, thereby obtaining the color receipt.

[0048] Optionally, when receiving an instruction to enable the paper compatibility function, the printing module is further configured to re-identify the currently successfully installed thermal paper, re-determine the currently identified thermal paper, and re-perform gradient heating on the re-determined currently identified thermal paper according to the heating temperature interval to obtain the heating result of the currently identified thermal paper; the scanning module is further configured to determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result of the currently identified thermal paper, and determine the heating temperature corresponding to each target color, so that the printing module is further configured to, in response to a color receipt printing instruction, determine the color to be printed, and perform heating and printing on the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt.

[0049] According to a third aspect of the present application, there is provided a computer device including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of the first aspects are implemented.

[0050] According to a fourth aspect of the present application, there is provided a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method according to any one of the first aspects are implemented.

[0051] By means of the above technical solution, a color receipt printing method, apparatus, computer device, and readable storage medium provided by the present application obtain a preset heating temperature interval, perform gradient heating on the currently identified thermal paper according to the heating temperature interval to obtain a heating result, determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result, and determine the heating temperature corresponding to each target color, and in response to a color receipt printing instruction, determine the color to be printed, and perform heating and printing on the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt. By performing gradient heating on the thermal paper, identifying and recording the colors that can be printed on the thermal paper and the required temperatures, the receipt printing device can be compatible with and adapt to various color thermal papers, providing a general color receipt printing ability, without the need to re-invest resources in the research and development of the receipt printing device, reducing the research and development cost of the printing device, improving the versatility and applicability of the printing device, and meeting diverse and personalized printing requirements.

[0052] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are specifically exemplified below. Brief Description of the Drawings

[0053] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0054] Figure 1 A schematic flowchart of a method for printing a color receipt provided by an embodiment of the present application is shown;

[0055] Figure 2A A schematic flowchart of another method for printing a color receipt provided by an embodiment of the present application is shown;

[0056] Figure 2B A schematic diagram of a method for printing a color receipt provided by an embodiment of the present application is shown;

[0057] Figure 2C A schematic diagram of a method for printing a color receipt provided by an embodiment of the present application is shown;

[0058] Figure 3 A schematic structural diagram of a device for printing a color receipt provided by an embodiment of the present application is shown;

[0059] Figure 4 A schematic diagram of the device structure of a computer device provided by an embodiment of the present application is shown. Detailed Description of the Embodiments

[0060] The exemplary embodiments of the present application will be described in more detail below with reference to the drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be fully conveyed to those skilled in the art.

[0061] An embodiment of the present application provides a method for printing a color receipt, as Figure 1 shown, the method includes:

[0062] 101. Obtain a preset heating temperature interval, and perform gradient heating on the currently recognized thermal paper according to the heating temperature interval to obtain a heating result.

[0063] The technical solution of the embodiment of the present application can be applied to receipt printing devices. Receipt printing devices are important bridges connecting merchants and consumers. They are responsible for printing order information, dish lists, coupons, etc., and are an indispensable part of local life services. The receipt printing device can be a portable Bluetooth receipt printer, which is connected to mobile devices such as smartphones or tablets via Bluetooth. Merchants can use this printer to instantly print out order receipts to ensure the accuracy of information. For example, a pizza store can print a reminder "Fresh out of the oven, please enjoy while it's hot" in red font on the receipt; or, it can also be a fixed thermal receipt printer in a merchant's store, installed at the cashier or in the kitchen, used to print customers' ordering information or kitchen food preparation instructions, such as printing a green receipt for takeaway orders and a blue receipt with table numbers for dine-in orders; or, it can also be an intelligent cloud receipt printer, which not only has the functions of a traditional receipt printer, but also can be connected via the cloud to achieve remote management, data analysis, and intelligent scheduling, automatically adjusting the color and content of the receipt to achieve personalized printing. For example, during Valentine's Day, an intelligent cloud receipt printer can print a receipt with a red heart pattern and romantic blessings for customers. The embodiment of the present application does not limit the specific type of the receipt printer.

[0064] In the embodiment of the present application, a heating temperature interval is preset or default set in the receipt printing device. The heating temperature interval defines the difference between adjacent heating temperatures during gradient heating. It should be noted that the setting of the heating temperature interval needs to consider the material of the thermal paper, the coating sensitivity, and the desired color resolution to ensure that all color ranges that the thermal paper can present can be explored accurately and effectively. Specifically, the receipt printing device will identify and locate the currently placed thermal paper, and then start the heating device to perform gradient heating on the currently identified thermal paper according to the heating temperature interval to obtain a heating result. In this way, through gradient heating, the receipt printing device can comprehensively and carefully explore the color potential of the thermal paper, providing basic data for subsequent color recognition and printing. For example, if the preset heating temperature interval is 5°C, the receipt printing device can start from 30°C and increase by 5°C each time until the limit temperature of the color change reaction of the thermal paper (such as 90°C) is reached, thereby capturing a series of color gradients and providing accurate basis for subsequent color matching and printing.

[0065] 102. Determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result, and determine the heating temperature corresponding to each target color.

[0066] In the embodiment of the present application, after obtaining the heating result, the receipt printing device will determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result. For each target color, the receipt printing device will determine its corresponding heating temperature and establish a mapping relationship between the target color and the heating temperature, so that the color receipt can be intelligently printed according to the temperature in the future. There is no need to enter the printing parameters of the color receipt in advance, which saves a lot of manpower and enables the receipt printing device to adapt to various types of thermal paper.

[0067] For example, if the receipt printing device recognizes that the thermal paper appears red when heated at 70°C, the red color and its corresponding heating temperature of 70°C will be recorded as parameters for subsequent printing of red content.

[0068] 103. In response to the color receipt printing instruction, determine the color to be printed, heat and print the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper, and a color receipt is obtained.

[0069] In the embodiment of the present application, through the above steps 101 and 102, the receipt printing device can determine the temperature for printing various colors. In this way, when receiving a color receipt printing instruction, the receipt printing device will first determine the color to be printed and the heating temperature corresponding to the color to be printed. Subsequently, the receipt printing device controls the heating device to heat the currently identified thermal paper according to the specified heating temperature to achieve color thermal printing. Through precise temperature control and heating execution, it can respond to color printing needs immediately, and has good versatility and applicability.

[0070] The method provided in the embodiment of the present application obtains a preset heating temperature interval, performs gradient heating on the currently identified thermal paper according to the heating temperature interval, obtains a heating result, determines at least one target color that can be printed and displayed by the currently identified thermal paper based on the heating result, and determines the heating temperature corresponding to each target color, determines the color to be printed in response to a color receipt printing instruction, heats and prints the currently identified thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper, and obtains a color receipt, and by performing gradient heating treatment on the thermal paper, identifies and records the printable colors and the required temperature of the thermal paper, so that the receipt printing device can be compatible and adaptable to various color thermal papers, and provides universal color receipt printing capabilities, without the need to reinvest resources in the research and development of the receipt printing device, thereby reducing the research and development cost of the printing device, improving the versatility and applicability of the printing device, and meeting diverse and personalized printing needs.

[0071] Further, as a refinement and extension of the specific implementation of the above embodiments, in order to fully illustrate the specific implementation process of this embodiment, the embodiments of the present application provide another method for printing colored receipts, as Figure 2A shown, the method includes:

[0072] 201. In response to the instruction to enable the paper compatibility function, identify the currently successfully installed thermal paper and determine the currently identified thermal paper.

[0073] The embodiments of the present application can be applied to receipt printing devices. For the detailed information of the receipt printing devices, reference can be made to the introduction of the receipt printing devices in step 101 of the above embodiments, which will not be elaborated here.

[0074] In the embodiments of the present application, the receipt printing device can be compatible with a variety of different types of thermal paper. To achieve this compatibility, a series of tests need to be performed on the thermal paper first to determine the heating strategy for the thermal paper. Therefore, the receipt printing device provides a paper compatibility function. When the user needs the receipt printing device to be compatible with new thermal paper, the user can instruct the receipt printing device to enable the paper compatibility function. In this way, the receipt printing device can receive the instruction to enable the paper compatibility function.

[0075] In response to the instruction to enable the paper compatibility function, the receipt printing device will identify the currently successfully installed thermal paper and determine the currently identified thermal paper. Specifically, the receipt printing device can detect the physical characteristics of the thermal paper loaded into the printer through a built-in optical sensor or image acquisition module, such as paper thickness, reflectance, or identification of pre-printed marks. When it is detected that the paper surface conforms to the preset characteristics of the thermal material, it is confirmed that the current thermal paper has been successfully installed and the identification is completed. For example, in the scenario of printing restaurant receipts, after replacing a new thermal paper roll, the merchant instructs the receipt printing device to enable the paper compatibility function, or the receipt printing device automatically triggers the paper identification process. By scanning the positioning marks on the edge of the paper or analyzing the coating composition on the surface of the thermal paper through an infrared sensor, its type is determined to ensure that the printer can dynamically adapt to different brands or batches of thermal paper, without the need for manual entry of the color development parameters of the thermal paper into the receipt printing device, improving the compatibility and applicability of the receipt printing device and saving a large amount of manpower and material resources.

[0076] 202. Partition the currently identified thermal paper and divide the currently identified thermal paper into multiple heating zones.

[0077] In the embodiments of the present application, after identifying the thermal paper, the receipt printing device needs to partition the currently identified thermal paper and divide the currently identified thermal paper into multiple heating zones to independently control the heating temperature of each zone, and then determine the temperature required to heat the thermal paper to display different colors.

[0078] Specifically, first, the receipt printing device determines the temperature difference between the initial heating temperature and the termination heating temperature, and then calculates the number of heating zone divisions according to the temperature difference and the preset heating temperature interval (such as an interval of every 5°C). For example, according to the difference (150°C) between the initial heating temperature (such as 50°C) and the termination heating temperature (such as 200°C) and the preset heating interval (such as 5°C), the device automatically calculates that the number of heating zone divisions to be made is 30.

[0079] Next, the receipt printing device determines the area to be heated on the currently recognized thermal paper, and divides the area to be heated according to the number of heating zone divisions, obtaining multiple heating zones with the number equal to the number of heating zone divisions. By accurately dividing the heating area, subsequent temperature gradient tests can cover the complete temperature range, ensuring the accurate calibration of different color development temperature points. Further, the receipt printing device numbers the multiple heating zones according to the arrangement order of the multiple heating zones on the currently recognized thermal paper, determines the heating zone number corresponding to each heating zone, so that each heating zone is assigned a unique number. For example, the area to be heated on the thermal paper is evenly divided into 5 consecutive areas, and numbered from 1 to 5 in order from left to right, for the convenience of subsequent temperature control and color recognition.

[0080] Specifically, reference can be made to Figure 2B , Figure 2B As shown in the figure, there is a thermal paper receipt. The outer border of the thermal paper receipt uses the black color presented after heating at 200 degrees as the default printing color of the thermal paper. The outer border is used to assist in positioning the position of the heating zones inside it, that is, the area enclosed by the outer border is used as the area to be heated. Further, the area to be heated is divided. Heating zone 1 is a 50-degree heating zone, heating zone 2 is a 55-degree heating zone, and so on, increasing by 5 degrees in a gradient until 200 degrees, and the spacing between adjacent heating zones is the same, and the relative position of each heating zone in the border is fixed.

[0081] 203. Query the preset heating temperature interval, obtain the preset initial heating temperature and the preset termination heating temperature, increment the initial heating temperature in a gradient according to the heating temperature interval, and use the incremented initial heating temperature to heat different heating zones in the multiple heating zones respectively until the heating temperature gradient increases to the termination heating temperature, completing the heating of the currently recognized thermal paper and obtaining a heating result.

[0082] In the embodiment of the present application, after the division of the heating zones is completed, the receipt printing device starts to increment the initial heating temperature in a gradient according to the heating temperature interval, and uses the incremented initial heating temperature to heat different heating zones in the multiple heating zones respectively until the heating temperature gradient increases to the termination heating temperature, completing the heating of the currently recognized thermal paper and obtaining a heating result.

[0083] During the specific heating process, the receipt printing device first heats the first heating zone among multiple heating zones with the initial heating temperature. Continue to refer to Figure 2B , and continuously heat heating zone 1 at the initial heating temperature of 50°C. Then, the receipt printing device incrementally increases the initial heating temperature in a gradient manner according to the heating temperature interval and uses the increased heating temperature to heat the heating zone adjacent to the heating zone that has already started heating among multiple heating zones. Continue to refer to Figure 2B , raise the initial heating temperature of 50°C by 5°C to 55°C, and at the same time start heating heating zone 2 adjacent to heating zone 1. This process continues iteratively until the heating temperature increases to the termination heating temperature, completing the heating of the currently recognized thermal paper and obtaining the heating result. Continue to refer to Figure 2B , until the heating temperature increases to the termination heating temperature of 200°C, completing the entire heating process, so that each heating zone will show different colors due to different heating temperatures, forming the heating result.

[0084] 204. Analyze the heating result, and use the color recognized on the heating result as at least one target color.

[0085] In the embodiment of the present application, after heating is completed, the receipt printing device needs to analyze the heating result to identify all the colors (i.e., target colors) that the thermal paper can display.

[0086] It should be noted that if the receipt printing device itself has the function of parsing pictures and identifying colors and temperature requirements, the receipt printing device can analyze the heating result by itself and use the color recognized on the heating result as at least one target color. If the receipt printing device does not have this function, the receipt printing device can use its own equipped scanning module to scan the heating result, obtain a high-resolution (such as 600 dpi) color image as the result scanning picture, and upload the result scanning picture to the cloud server for further analysis. The cloud server can use image processing algorithms such as the HSV color space analysis method to accurately identify each target color and its corresponding heating temperature. For example, the cloud server may identify 5 different colors, and each color corresponds to a specific heating temperature. The present application does not specifically limit the method of identifying target colors.

[0087] 205. Query the target heating zone where each target color is located on the heating result, and determine the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located.

[0088] In the embodiment of the present application, when the target color is determined, the receipt printing device needs to find the specific positions of these colors in the heating result (i.e., the target heating areas), and determine the accurate heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating area where each target color is located.

[0089] Specifically, when determining the heating temperature corresponding to each target color, three methods can be adopted. One method is to query which heating area the target heating area where the target color is located is in, so as to determine how much temperature is increased on the basis of the first heating area, and then obtain the heating temperature corresponding to the target heating area; another method is to use the heating area number. Since it is mentioned in step 202 above that each heating area can be numbered, the heating area number can be directly used to determine how much temperature is increased on the basis of the first heating area, and then obtain the heating temperature corresponding to the target heating area; still another method is to count how many heating areas are separated between the target heating area and the first heating area, determine how much temperature is increased on the basis of the first heating area, and then obtain the heating temperature corresponding to the target heating area. The embodiment of the present application does not limit which specific method is used to determine the heating temperature. The following will describe these three determination methods in detail:

[0090] The first method is to query which heating area the target heating area where the target color is located is in. Specifically, for each target color, the receipt printing device will query the serial number of the target heating area where the target color is located relative to the first heating area in the heating result, calculate the first difference between the serial number of the target heating area and the serial number of the first heating area, count the first product of the first difference and the heating temperature interval, and use the sum of the temperature corresponding to the first heating area and the first product as the heating temperature corresponding to the target color. For example, if the target color is located in the 4th heating area and the serial number of the first heating area is 1, then the first difference between the serial number of the target heating area and the serial number of the first heating area is calculated as 4 - 1 = 3, and the temperature of the first heating area is 50°C and the heating temperature interval is 5°C. Then the heating temperature of the target color is 50°C plus 3 heating temperature intervals, that is, 50 + 3×5 = 65°C.

[0091] The second method is to compare the target heating zone number with the heating zone number of the first - ranked heating zone. Specifically, for each target color, the receipt printing device will query the target heating zone number corresponding to the target heating zone where the target color is located and the first - ranked heating zone number corresponding to the first - ranked heating zone from the heating result, calculate the second difference between the target heating zone number and the first - ranked heating zone number, count the second product of the second difference and the heating temperature interval, and take the sum of the temperature corresponding to the first - ranked heating zone and the second product as the heating temperature corresponding to the target color. For example, if the heating zone number of the heating zone where the target color is located is 4 and the heating zone number of the first - ranked heating zone is 1, then calculate the second difference between the target heating zone number and the first - ranked heating zone number as 4 - 1 = 3. If the temperature of the first - ranked heating zone is 50°C and the heating temperature interval is 5°C, then the heating temperature of the target color is 50°C plus 3 heating temperature intervals, that is, 50+3×5 = 65°C.

[0092] The third method is to count how many heating zones are there between the target heating zone and the first - ranked heating zone. Specifically, for each target color, the receipt printing device will query the number of heating zones between the target heating zone where the target color is located and the first - ranked heating zone from the heating result, add the value 1 to the number of heating zones, calculate the third product of the increased number of heating zones and the heating temperature interval, and take the sum of the temperature corresponding to the first - ranked heating zone and the third product as the heating temperature corresponding to the target color. For example, if the number of heating zones between the target heating zone and the first - ranked heating zone is 2, then first add 1 to 2 to get the increased number of heating zones 3. Then calculate the third product of the increased number of heating zones 3 and the heating temperature interval 5°C, which is 15°C. Take the sum of the temperature corresponding to the first - ranked heating zone 50°C and the third product 15°C, that is, 65°C, as the heating temperature corresponding to the target color.

[0093] Specifically, you can also refer to Figure 2B , Figure 2B In [reference], there is a heating zone showing red except for black. According to the relative position of the red heating zone with respect to the first - ranked heating zone, it can be determined that the red heating zone is the 4th heating zone. The heating temperature of the first - ranked heating zone is 50°C and the heating temperature interval is 5°C. Then the heating temperature of the red heating zone can be calculated as 65°C. It can be obtained that the thermal paper supports red - black printing, and the red heating temperature is 65°C.

[0094] 206. In response to the color receipt printing instruction, determine the color to be printed, and heat - print the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently recognized thermal paper, and a color receipt is obtained.

[0095] In the embodiments of the present application, through the above steps 201 to 205, the receipt printing device can know how many degrees it needs to heat up to when printing each target color. In this way, when receiving a color receipt printing instruction, in response to the color receipt printing instruction, the receipt printing device will look up the heating temperature corresponding to each color determined previously according to the color to be printed specified in the instruction. Then, during the printing process, the receipt printing device will precisely heat and print the thermal paper according to the specified heating temperature corresponding to the color to be printed, so as to present the required color on the currently recognized thermal paper and obtain a color receipt. For example, if the color receipt printing instruction requires printing content containing red and blue, the receipt printing device will respectively use the heating temperatures corresponding to red and blue determined previously for heating and printing, and finally obtain a color receipt containing these two colors. By precisely controlling the heating temperature, it realizes compatible printing for different types of thermal paper and provides an efficient and accurate method for generating color receipts.

[0096] The process described above is a compatibility for the thermal paper. If the user replaces the thermal paper with a new type, it is necessary to restart the paper compatibility function to enable the receipt printing device to receive the instruction to start the paper compatibility function, re-identify the currently successfully installed thermal paper, re-determine the currently recognized thermal paper, and re-perform gradient heating on the re-determined currently recognized thermal paper according to the heating temperature interval to obtain the heating result of the currently recognized thermal paper. According to the heating result of the currently recognized thermal paper, determine at least one target color that can be printed and displayed on the currently recognized thermal paper, and determine the heating temperature corresponding to each target color, so as to determine the color to be printed in response to the color receipt printing instruction, and heat and print the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed is presented on the currently recognized thermal paper and obtain a color receipt. In addition, the receipt printing device can also automatically start the paper compatibility function and perform an operation to start the paper compatibility function once as long as it detects that the user has put in a new thermal paper, thereby ensuring the accuracy of printing.

[0097] In another optional embodiment, the receipt printing device mentioned in the embodiments of the present application may include a printing module and a scanning module. The technical solution proposed in the embodiments of the present application can be implemented by the interaction between the printing module and the scanning module. The following is a detailed description: See Figure 2C, the user installs thermal paper on the receipt printing device and enables the paper compatibility function. The printing module performs gradient heating on the area to be heated of the thermal paper. After heating, the scanning module scans the heating result and forms a heating result picture, which is uploaded to the cloud server. The cloud server analyzes the heating result picture to obtain the target colors supported by the thermal paper for printing and the temperature requirements corresponding to each target color, and sends the target colors and the temperature requirements corresponding to each target color to the printing module of the receipt printing device. The printing module stores the content sent by the cloud server and, when detecting a user's request to print a color receipt, prints according to this content.

[0098] The method provided by the embodiment of the present application obtains a preset heating temperature interval, performs gradient heating on the currently recognized thermal paper according to the heating temperature interval to obtain a heating result, determines at least one target color that can be printed and displayed on the currently recognized thermal paper according to the heating result, and determines the heating temperature corresponding to each target color. In response to a color receipt printing instruction, determines the color to be printed, and performs heating and printing on the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently recognized thermal paper to obtain a color receipt. By performing gradient heating treatment on the thermal paper, identifying and recording the colors that the thermal paper can print and the required temperatures, the receipt printing device can be compatible with and adapt to various color thermal papers, providing a general color receipt printing ability, without the need to re-invest resources in the research and development of the receipt printing device, reducing the research and development cost of the printing device, improving the versatility and applicability of the printing device, and meeting diverse and personalized printing needs.

[0099] Further, as Figure 1 a specific implementation of the method, the embodiment of the present application provides a color receipt printing device, as Figure 3 shown. The device includes: a printing module 301 and a scanning module 302.

[0100] The printing module 301 is used to obtain a preset heating temperature interval, perform gradient heating on the currently recognized thermal paper according to the heating temperature interval to obtain a heating result;

[0101] The scanning module 302 is used to determine at least one target color that can be printed and displayed on the currently recognized thermal paper according to the heating result, and determine the heating temperature corresponding to each target color;

[0102] The printing module 301 is further used to, in response to a color receipt printing instruction, determine the color to be printed, and perform heating and printing on the currently recognized thermal paper according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently recognized thermal paper to obtain a color receipt.

[0103] In a specific application scenario, the printing module 301 is configured to, in response to an instruction to enable the paper compatibility function, identify the currently successfully installed thermal paper, determine the currently identified thermal paper; partition the currently identified thermal paper, divide the currently identified thermal paper into multiple heating zones; query the preset heating temperature interval, obtain the preset initial heating temperature and the preset termination heating temperature; increment the initial heating temperature in a gradient manner according to the heating temperature interval, and use the incremented initial heating temperature to heat different heating zones in the multiple heating zones respectively until the heating temperature is incremented in a gradient manner to the termination heating temperature, completing the heating of the currently identified thermal paper and obtaining the heating result.

[0104] In a specific application scenario, the printing module 301 is configured to determine the temperature difference between the initial heating temperature and the termination heating temperature, determine the number of heating zone partitions according to the temperature difference and the heating temperature interval; determine the area to be heated on the currently identified thermal paper, partition the area to be heated according to the number of heating zone partitions, obtaining the multiple heating zones with the number equal to the number of heating zone partitions; number the multiple heating zones according to the arrangement order of the multiple heating zones on the currently identified thermal paper, determining the heating zone number corresponding to each heating zone.

[0105] In a specific application scenario, the printing module 301 is configured to heat the first heating zone in the multiple heating zones with the initial heating temperature; increment the initial heating temperature in a gradient manner according to the heating temperature interval and use the increased heating temperature to heat the heating zone adjacent to the heating zone that has started heating in the multiple heating zones until the heating temperature increases to the termination heating temperature, completing the heating of the currently identified thermal paper and obtaining the heating result.

[0106] In a specific application scenario, the scanning module 302 is configured to analyze the heating result, use the color identified on the heating result as the at least one target color; query the target heating zone where each target color is located on the heating result, and determine the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located.

[0107] In a specific application scenario, the scanning module 302 is further configured to scan the heating result to obtain a result scan picture, and upload the result scan picture to the cloud server, so that the cloud server analyzes the result scan picture to obtain the at least one target color and the heating temperature corresponding to each target color.

[0108] In a specific application scenario, the scanning module 302 is configured to, for each of the target colors, query, on the heating result, the serial number of the target heating zone where the target color is located relative to the first-ranked heating zone, and calculate a first difference between the serial number of the target heating zone and the serial number of the first-ranked heating zone, and statistically calculate a first product of the first difference and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the first product as the heating temperature corresponding to the target color; or, for each of the target colors, query, on the heating result, the target heating zone number corresponding to the target heating zone where the target color is located, and query the first heating zone number corresponding to the first-ranked heating zone, calculate a second difference between the target heating zone number and the first heating zone number, and statistically calculate a second product of the second difference and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the second product as the heating temperature corresponding to the target color; or, for each of the target colors, query, on the heating result, the number of heating zones between the target heating zone where the target color is located and the first-ranked heating zone, add a value of 1 to the number of heating zones, calculate a third product of the increased number of heating zones and the heating temperature interval, and use the sum of the temperature corresponding to the first-ranked heating zone and the third product as the heating temperature corresponding to the target color.

[0109] In a specific application scenario, the printing module 301 is further configured to, in response to the color receipt printing instruction, obtain the content to be printed indicated by the color receipt printing instruction, identify the color to be printed on the content to be printed, and query the specified heating temperature corresponding to the color to be printed; print the content to be printed on the currently recognized thermal paper, and when printing the color to be printed, heat and print the currently recognized thermal paper at the specified heating temperature, so that the color to be printed is presented on the currently recognized thermal paper, and obtain the color receipt.

[0110] In a specific application scenario, the printing module 301 is further configured to, when receiving an instruction to enable the paper compatibility function, re-identify the currently successfully installed thermal paper, re-determine the currently identified thermal paper, and re-perform gradient heating on the re-determined currently identified thermal paper at the heating temperature interval to obtain a heating result of the currently identified thermal paper; the scanning module 302 is further configured to determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result of the currently identified thermal paper, and determine the heating temperature corresponding to each target color, so that the printing module 301 is further configured to, in response to a color receipt printing instruction, determine a color to be printed, and perform heating and printing on the currently identified thermal paper at the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper, thereby obtaining a color receipt.

[0111] The device provided by the embodiment of the present application obtains a preset heating temperature interval, performs gradient heating on the currently identified thermal paper at the heating temperature interval to obtain a heating result, determines at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result, and determines the heating temperature corresponding to each target color. In response to a color receipt printing instruction, it determines the color to be printed, and performs heating and printing on the currently identified thermal paper at the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper, thereby obtaining a color receipt. By performing gradient heating on the thermal paper, identifying and recording the colors that can be printed on the thermal paper and the required temperatures, the receipt printing device can be compatible with and adapt to various color thermal papers, providing a general color receipt printing ability, without the need to re-invest resources in the research and development of the receipt printing device, reducing the research and development cost of the printing device, improving the versatility and applicability of the printing device, and meeting diverse and personalized printing needs.

[0112] It should be noted that for other corresponding descriptions of each functional unit involved in the color receipt printing device provided by the embodiment of the present application, reference can be made to Figure 1 and Figures 2A to 2C the corresponding descriptions therein, which will not be elaborated here.

[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data that have been authorized by the user or fully authorized by all parties.

[0114] In the above embodiments and each technical feature in the embodiments, any combination can be made. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as falling within the scope described in this specification.

[0115] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

[0116] In an exemplary embodiment, referring to Figure 4 , a computer device is further provided. The computer device includes a bus, a processor, a memory, and a communication interface, and may further include an input / output interface and a display device. Among them, each functional unit can complete mutual communication through the bus. The memory stores a computer program, and the processor is used to execute the program stored on the memory to execute the color receipt printing method in the above embodiments.

[0117] A computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the color receipt printing method are implemented.

[0118] Through the description of the above implementation manners, those skilled in the art can clearly understand that the present application can be implemented through hardware or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of the present application.

[0119] Those skilled in the art can understand that the drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the drawings are not necessarily essential for implementing the present application.

[0120] Those skilled in the art can understand that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the description of the implementation scenario, or can be correspondingly changed and located in one or more devices different from this implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0121] The above serial numbers of this application are only for description and do not represent the advantages or disadvantages of the implementation scenarios.

[0122] The above are only several specific implementation scenarios of this application. However, this application is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of this application.

Claims

1. A color ticket printing method, characterized in that: include: Obtaining a preset heating temperature interval, performing gradient heating on the currently identified thermal paper according to the heating temperature interval, and obtaining a heating result; According to the heating result, determining at least one target color that can be printed and displayed by the currently identified thermal paper, and determining a heating temperature corresponding to each of the target colors; In response to a color receipt printing instruction, the color to be printed is determined, and the currently identified thermal paper is heated and printed according to the specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt.

2. The method according to claim 1, characterized in that The step of obtaining a preset heating temperature interval, performing gradient heating on the currently identified thermal paper according to the heating temperature interval, and obtaining a heating result includes: In response to the instruction to start the paper compatibility function, identifying the thermal paper that has been successfully installed, and determining the thermal paper that is currently identified; Partitioning the currently identified thermal paper into multiple heating zones; Query the preset heating temperature interval to obtain the preset initial heating temperature and the preset termination heating temperature; According to the heating temperature interval, the initial heating temperature is gradually increased, and the different heating zones among the multiple heating zones are heated respectively using the gradually increased initial heating temperature, until the heating temperature gradient is gradually increased to the termination heating temperature, thereby completing the heating of the currently identified thermal paper and obtaining the heating result.

3. The method according to claim 2, characterized in that The step of partitioning the currently identified thermal paper into a plurality of heating zones includes: Determine the temperature difference between the initial heating temperature and the termination heating temperature, and determine the number of heating zone divisions according to the temperature difference and the heating temperature interval; Determine a region to be heated on the currently identified thermal paper, divide the region to be heated according to the number of heating zone divisions, and obtain the plurality of heating zones whose number is equal to the number of heating zone divisions; According to the arrangement order of the multiple heating zones on the currently identified thermal paper, the multiple heating zones are numbered to determine a heating zone number corresponding to each heating zone.

4. The method according to claim 2, characterized in that: The step of gradually increasing the initial heating temperature according to the heating temperature interval, and heating different heating areas among the multiple heating areas respectively by using the gradually increasing initial heating temperature, until the heating temperature gradually increases to the termination heating temperature, completing the heating of the currently identified thermal paper, and obtaining the heating result, includes: heating the heating zone ranked first among the plurality of heating zones using the initial heating temperature; The initial heating temperature is gradually increased according to the heating temperature interval and the increased heating temperature is used to heat the heating zone adjacent to the heating zone that has started heating among the multiple heating zones until the heating temperature increases to the termination heating temperature, thereby completing the heating of the currently identified thermal paper and obtaining the heating result.

5. The method according to claim 1, characterized in that The step of determining, based on the heating result, at least one target color that can be printed and displayed on the currently identified thermal paper, and determining a heating temperature corresponding to each target color, comprises: parsing the heating result, and using a color identified on the heating result as the at least one target color; The target heating zone where each of the target colors is located is queried on the heating result, and the heating temperature corresponding to each of the target colors is determined according to the heating temperature corresponding to the target heating zone where each of the target colors is located.

6. The method according to claim 5, characterized in that The method further comprises: The heating result is scanned to obtain a result scan image, and the result scan image is uploaded to a cloud server so that the cloud server analyzes the result scan image to obtain at least one target color and a heating temperature corresponding to each target color.

7. The method according to claim 5, characterized in that Determining the heating temperature corresponding to each target color according to the heating temperature corresponding to the target heating zone where each target color is located includes: For each of the target colors, query the serial number of the target heating zone where the target color is located relative to the first-ranked heating zone on the heating result, calculate the first difference between the serial number of the target heating zone and the serial number of the first-ranked heating zone, calculate the first product of the first difference and the heating temperature interval, and use the first sum of the temperature corresponding to the first-ranked heating zone and the first product as the heating temperature corresponding to the target color; or, For each of the target colors, query the target heating zone number corresponding to the target heating zone where the target color is located on the heating result, and query the first heating zone number corresponding to the first heating zone, calculate the second difference between the target heating zone number and the first heating zone number, calculate the second product of the second difference and the heating temperature interval, and use the second sum of the temperature corresponding to the first heating zone and the second product as the heating temperature corresponding to the target color; or, For each target color, the number of heating zones between the target heating zone where the target color is located and the first-ranked heating zone is queried on the heating result, a value of 1 is added to the number of heating zones, the third product of the increased number of heating zones and the heating temperature interval is calculated, and the third sum of the temperature corresponding to the first-ranked heating zone and the third product is used as the heating temperature corresponding to the target color.

8. A color receipt printing device, characterized in that: include: The printing module is used to obtain a preset heating temperature interval, and perform gradient heating on the currently identified thermal paper according to the heating temperature interval to obtain a heating result; A scanning module, used to determine at least one target color that can be printed and displayed on the currently identified thermal paper according to the heating result, and to determine the heating temperature corresponding to each of the target colors; The printing module is also used to respond to a color receipt printing instruction, determine the color to be printed, and heat and print the currently identified thermal paper according to a specified heating temperature corresponding to the color to be printed, so that the color to be printed appears on the currently identified thermal paper to obtain a color receipt.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Image processing apparatus, color processing method, a printer apparatus and a method of generating a table for correcting a colorimetric value

    CN101713942A

  • Direct thermal printing method of two-color thermal recording medium

    CN113954545A

  • Printing apparatus and storage medium storing print data generation program

    CN114683707A

  • Medium, cartridge, thermal printer and method of creating medium

    CN114683732A

  • Medium, cartridge and medium creation method

    CN114683733A

Cited By

  • Thermal printing medium with positioning mark and positioning mark detection method

    CN121200617A