A method for generating images based on electronic price tags

Through HTML layout template generation and content data combination, font and image grayscale are removed and converted into electronic price tags identifiable format, solving the problem that the electronic price tag system cannot directly display the content generated by smart terminals, and achieving wider application applicability and display effects.

CN111768461BActive Publication Date: 2024-11-26GUANGZHOU YALIANG BUSINESS INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010345891.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-27
Publication Date
2024-11-26
Estimated Expiration
2040-04-27

AI Technical Summary

Technical Problem

Due to the technical limitations of electronic paper display devices, the existing electronic price tag system cannot directly display the text and pictures generated by the smart terminal. Due to the automatic grayscale attribute, it can only use specific fonts and editing software, which affects the display effect and Application scenario.

Method used

Using HTML layout template generation and content data combination, remove fonts and picture grayscale, convert them into a format that is recognizable by electronic price tags, and convert RGB images into 2BIT three-color format through algorithms to realize image generation methods and support a wider range of font usage and display effects.

Benefits of technology

It greatly reduces the cost of deployment and template design, improves the application applicability and display effect of electronic price tags, overcomes the limitations of automatic grayscale attributes of smart terminals, and achieves more flexible font usage and better display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111768461B_ABST
    Figure CN111768461B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for generating pictures based on electronic price tags, including generating HTML layout templates, combining HTML layout with content data, printing and intercepting HTML snapshots, removing picture grayscale, converting to price tag recognition picture format, parsing picture information and displaying it on electronic price tags. It adopts the identification language of HTML and translates it into recognizable information through a browser. It has the characteristics of strong versatility and wide applicability, and realizes the page generation of electronic price tags. In this way, the problem that the text and pictures created by the input source cannot be directly used in electronic price tags is solved, and the technical defect that the electronic price tags can only use certain specific fonts and certain specific editing software due to the automatic grayscale attribute of the smart terminal is overcome. The web page information of a third party can be directly converted and displayed on the electronic price tag end, which greatly reduces the cost of deployment, template design and secondary development. The designed pictures can be directly put into the template, and the operation is simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic price labels, and in particular to a method for generating an image of an electronic price label. Background Art

[0002] The existing electronic price tag (ESL) system consists of a server, an electronic price tag, a base station (AP), and an intelligent terminal (computer, mobile phone). The electronic price tag is an output source, and its ability to losslessly display the images generated by the input source (intelligent terminal) is the key to the practicality of the system.

[0003] Due to the technical limitations of electronic paper display devices (EPDs), the colors displayed by three-color electronic paper display devices are all pure colors, without grayscale. In order to achieve better display effects, terminal devices will automatically generate grayscale, resulting in the inability of three-color images generated by general software to obtain good display effects in electronic paper display devices. The text and pictures created by the input source (smart terminal) cannot be directly used in electronic price tags, mainly because of the technical defects that electronic price tags can only use certain specific fonts and certain specific editing software due to the automatic grayscale properties of smart terminals. As a result, the existing electronic price systems mostly specify one or two fixed fonts due to technical limitations, which affects the display effect of electronic price tags and cannot be flexibly displayed on electronic price tags, thus limiting the application of electronic price tags. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for generating images based on electronic price tags which is highly versatile, widely applicable, can directly use third-party web page information to directly convert and display it on electronic price tags, greatly reduces the cost of deployment, template design and secondary development, and can adapt to more application scenarios.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solution: a method for generating an image based on an electronic price tag, characterized in that: it includes:

[0006] HTML layout template generation S101 is achieved by dragging elements into the basic framework;

[0007] HTML layout and content data combination S102, including content data S701, HTML template S702 and generating output price tag HTML S703;

[0008] Printing and capturing HTML snapshot S103, including first removing font grayscale S801, printing the HTML outputted in S102 to the background S802, and saving it as a picture S803;

[0009] Removing the grayscale of the image S104, removing the color grayscale of the image output by printing and capturing the HTML snapshot S103 through an algorithm, including the implementation process of reading the image in RGB mode S901, replacing it with the color of the electronic price tag S902 and saving the new image S903;

[0010] Convert to price tag recognition image format S105, read the image after removing the grayscale of the image S104 in RGB format, and convert it into a 3-color format image of 2-bit BIT;

[0011] The electronic price tag parses the image information and displays it S106, and sends the file converted into the price tag recognition image format S105 to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.

[0012] The basic framework is a module that describes the basic parameters of the price tag, which includes a set of HTML sets and a description table; the HTML set includes the template name, price tag resolution, HTML basic elements and background color; the description table includes the price tag resolution, rotation direction, template name, supported colors and supported models.

[0013] The basic elements include basic graphics S201, pictures S202 and texts S203, the basic graphics S201 include straight lines S208, rectangles S204, rounded rectangles S205, circles S206 and triangles S207, etc., and the setting attributes of the basic graphics S201 include content S301, font selection S302, font size S303, font color S304, font position S305, background color S306, border color S307, rotation S308 and coordinates S309, etc.;

[0014] The picture S202 includes a QR code S209, a barcode S210 and a product picture S211, and the setting attributes of the picture S202 include picture address S401, local upload S402, rotation S403 and coordinates S404, etc.;

[0015] The text S203 includes empty text, product name, pricing unit, place of origin, retail price, promotional price, member price, market price, item number, shelf life, production date, production time, ingredients, storage conditions, consumption method, production license, distributor, specifications and grades S212 and more S213, and the setting attributes of the text S203 include content S501, font selection S502, font size S503, font color S504, font position S505, background color S506, border color S507, rotation S508 and coordinates S509, etc.

[0016] There are two description methods for the association between content S301, image address S401, and content S501, namely text description method S601 and variable description method S602; text description method S601 is a constant description method, which is directly used in the subsequent template HTML. For image S202, text and links are automatically converted into corresponding graphic content; product image S211 is implemented by uploading a picture and automatically generating a link using a constant; the constant method for QR code S209 and barcode S210 is to input a string that conforms to the format of the QR code and barcode; the variable description method uses "{}" to contain the corresponding variable name, and the product name uses a variable mode, with the content being "{product name}".

[0017] The process of HTML layout template generation S101 is as follows: first, the basic framework parameters are set, and then the basic framework generates a set of HTML collections and a description table that support browser display. The browser directly displays the HTML collection. This HTML interface is a transparent rectangle with the same resolution as the target electronic price tag, and this rectangle is defined as the price tag operation table; then, the basic elements are dragged into the price tag operation table according to the electronic price tag display requirements, and the corresponding basic element attributes are modified to the corresponding ones according to the electronic price tag display target; in this drag and modify process, the HTML collection simultaneously adds the corresponding elements and the corresponding attributes of the elements, which are defined as element tags in the HTML collection and displayed in real time in the price tag operation table to achieve what you see is what you get; this HTML collection and description file are saved to the text or data when closing and saving, as the input source for subsequent steps;

[0018] Each element tag of HTML layout template generation S101 is an independent layer, which supports element modification, that is, select the element to be modified in the price tag operation platform, change the content corresponding to the attribute, and synchronize the modification to the element tag corresponding to the HTML collection at the same time, and update it to the price tag operation platform synchronously; HTML layout template generation S101 supports layer movement up and down, and moving the layer is realized by selecting the corresponding element tag for the price tag operation platform, and selecting to move up or down. When moving, the HTML collection adjusts the order of the tags according to the moving method.

[0019] The content data 701 may be a set of actual data corresponding to the elements, the actual data being the same variables as the template corresponding to the HTML, and the content data being provided as text records and / or databases; firstly selecting a single data record, and replacing the corresponding variables in the HTML with the content corresponding to the data record through a search method, while at the same time, the HTML directly displays the price tag operating console and its replaced data content through a standard browser method, and this output is the style that is finally displayed on the price tag, and the output HTML file with content is the input source for subsequent steps.

[0020] The grayscale of the font is canceled or reduced by removing the grayscale of the font S801 to ensure that the font of the output image is clearly displayed in the electronic price tag; the process of removing the grayscale of the font S801 is to first set the system parameters before printing the web page to turn off the font anti-aliasing function, which is achieved by automatically modifying the antialiasing attribute in FONTS to FLASE in the LINUX system; HTML printing to the background S802 uses the puppeteer open source control background display and prints the web page;

[0021] Save as picture S803 captures and implements the description table parameters generated in S101 generated by the HTML layout template to capture a picture with the same resolution as the electronic price tag; first remove the system's default font optimization display function, reduce the font grayscale to non-grayscale processing, then display the HTML in the form of a background web page and capture it as a picture, and capture the picture of the corresponding size through the description table saved in S101 generated by the HTML layout template.

[0022] Removing the grayscale of the image S104 converts the 24-bit color of RGB into 256 colors, compares the three color values ​​close to the 256 colors, and converts the color of the original image into the corresponding displayable color of the electronic price tag; the formula for converting the 256 color values ​​is: 0.299*R+0.587*G+0.114*B; the specific implementation process is: first read and print the image captured by the HTML snapshot S103 in RGB mode, then remove the grayscale in the image through an algorithm, convert it into a color supported by the electronic price tag, and finally save the replaced data again as a new image.

[0023] The specific method of converting to the price tag identification image format S105 is as follows: the color of a point is composed of 2BIT. When the high bit of the point color is 2BIT, it is displayed in red, and 0 is not displayed. When the low bit is 1, it is displayed in black, and it is not displayed when it is 0. When both the high bit and the low bit are 0, it is displayed in white; when R is 255, it is displayed in red, and the two-bit identification is represented as 10. When R, G, and B are 0, it is displayed in black, and the two-bit identification is represented as 01. For other values, it is white, and the two-bit identification is represented as 00. All bits are converted into 2BIT color bits respectively, combined into a binary file, and saved.

[0024] The implementation method of electronic price tag parsing image information and displaying S106 is to convert the file saved in the price tag recognition image format S105 into a color control instruction of the electronic price tag through a 2BIT, 2BIT reading method, and send it to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.

[0025] The present invention adopts HTML, a kind of identifying language, and translates it into recognizable information, i.e., web page information, through a browser. It has the characteristics of strong versatility and wide applicability, realizes the page generation of electronic price tags, and intercepts the content generated by the web page through innovative technical means, and converts the picture into a picture suitable for displaying the electronic price tag, which has very important practical significance in the electronic price tag system. It greatly simplifies the difficulty of the electronic price tag system in the template, and reduces the technical requirements of the template designer, which has special landing significance. At the same time, it combines a large number of general computer technologies, has technical advantages in realizing cross-platform and product maintenance, seamless upgrade, and has more obvious advantages in system integration. Through the method provided by the present invention, the separation of template and data is achieved, so that the template can be well reused. The standardization and expansion of parameters are achieved, and the independent stratification between elements is also achieved, which is also extremely convenient in implementing the change of content. It also overcomes the problem that the existing price tag system usually uses a specified font, and any font can be used without restriction, achieving a better display effect. In addition, the picture conversion process is brought to the background, which can reduce the processing capacity requirements of the electronic price tag, which is conducive to reducing the unit price cost of the product.

[0026] This solves the problem that the text and pictures created by the input source (smart terminal) cannot be directly used in the electronic price tag, and overcomes the current technical defect that the electronic price tag can only use a certain font and a certain editing software due to the automatic grayscale attribute of the smart terminal. The third-party web page information can be directly converted and displayed on the electronic price tag, which greatly reduces the cost of deployment, template design and secondary development. It can also reduce the technical requirements of the artist, without the need for the artist to understand how to use the new software, and directly put the designed picture into the template. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a schematic diagram of the process of generating an electronic price label image according to the present invention;

[0028] Figure 2 A schematic diagram of the basic elements of the electronic price label image of the present invention;

[0029] Figure 3 for Figure 2 Schematic diagram of the attribute setting of the basic graphic S201;

[0030] Figure 4 for Figure 2 Schematic diagram of property setting of picture S202;

[0031] Figure 5 for Figure 2 Schematic diagram of the attribute setting of Chinese character S203;

[0032] Figure 6Generate an independent layer display diagram of S101 for the HTML layout template;

[0033] Figure 7 A schematic diagram of generating a price tag for combined content data;

[0034] Figure 8 A schematic diagram of the process of printing and capturing an HTML snapshot S103;

[0035] Fig. 9 This is a schematic diagram of the process of removing the grayscale of the image S104. DETAILED DESCRIPTION

[0036] The present invention will be further described below by means of specific embodiments in conjunction with the accompanying drawings:

[0037] The method for generating an image based on an electronic price tag is as follows: Figure 1 , Figure 7 , Figure 8 and Fig. 9 As shown, including,

[0038] HTML layout template generation S101 is achieved by dragging elements into the basic framework;

[0039] HTML layout and content data combination S102, including content data S701, HTML template S702 and generating output price tag HTML S703;

[0040] Printing and capturing HTML snapshot S103, including first removing font grayscale S801, printing the HTML outputted in S102 to the background S802, and saving it as a picture S803;

[0041] Removing the grayscale of the image S104, removing the color grayscale of the image output by printing and capturing the HTML snapshot S103 through an algorithm, including the implementation process of reading the image in RGB mode S901, replacing it with the color of the electronic price tag S902 and saving the new image S903;

[0042] Convert to price tag recognition image format S105, read the image after removing the grayscale of the image S104 in RGB format, and convert it into a 3-color format image of 2-bit BIT;

[0043] The electronic price tag parses the image information and displays it S106, and sends the file converted into the price tag recognition image format S105 to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.

[0044] The basic framework is a module that describes the basic parameters of the price tag, which includes a set of HTML sets and a description table; the HTML set includes the template name, price tag resolution, HTML basic elements and background color; the description table includes the price tag resolution, rotation direction, template name, supported colors and supported models.

[0045] like Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 As shown, the basic elements include basic graphics S201, pictures S202 and texts S203, the basic graphics S201 include straight lines S208, rectangles S204, rounded rectangles S205, circles S206 and triangles S207, etc., and the setting attributes of the basic graphics S201 include content S301, font selection S302, font size S303, font color S304, font position S305, background color S306, border color S307, rotation S308 and coordinates S309, etc.;

[0046] The picture S202 includes a QR code S209, a barcode S210 and a product picture S211, and the setting attributes of the picture S202 include picture address S401, local upload S402, rotation S403 and coordinates S404, etc.;

[0047] The text S203 includes empty text, product name, pricing unit, place of origin, retail price, promotional price, member price, market price, item number, shelf life, production date, production time, ingredients, storage conditions, consumption method, production license, distributor, specifications and grades S212 and more S213, and the setting attributes of the text S203 include content S501, font selection S502, font size S503, font color S504, font position S505, background color S506, border color S507, rotation S508 and coordinates S509, etc.

[0048] There are two description methods for the association between content S301, image address S401, and content S501, namely text description method S601 and variable description method S602; text description method S601 is a constant description method, which is directly used in the subsequent template HTML. For image S202, text and links are automatically converted into corresponding graphic content; product image S211 is implemented by uploading a picture and automatically generating a link using a constant; the constant method for QR code S209 and barcode S210 is to input a string that conforms to the format of the QR code and barcode; the variable description method uses "{}" to contain the corresponding variable name, and the product name uses a variable mode, with the content being "{product name}".

[0049] The process of HTML layout template generation S101 is as follows: first, the basic framework parameters are set, and then the basic framework generates a set of HTML collections and a description table that support browser display. The browser directly displays the HTML collection. This HTML interface is a transparent rectangle with the same resolution as the target electronic price tag, and this rectangle is defined as the price tag operation table; then, the basic elements are dragged into the price tag operation table according to the electronic price tag display requirements, and the corresponding basic element attributes are modified to the corresponding ones according to the electronic price tag display target; in this drag and modify process, the HTML collection simultaneously adds the corresponding elements and the corresponding attributes of the elements, which are defined as element tags in the HTML collection and displayed in real time in the price tag operation table to achieve what you see is what you get; this HTML collection and description file are saved to the text or data when closing and saving, as the input source for subsequent steps;

[0050] Each element tag of HTML layout template generation S101 is an independent layer, which supports element modification, that is, select the element to be modified in the price tag operation platform, change the content corresponding to the attribute, and synchronize the modification to the element tag corresponding to the HTML collection at the same time, and update it to the price tag operation platform synchronously; HTML layout template generation S101 supports layer movement up and down, and moving the layer is realized by selecting the corresponding element tag for the price tag operation platform, and selecting to move up or down. When moving, the HTML collection adjusts the order of the tags according to the moving method.

[0051] The content data 701 may be a set of actual data corresponding to the elements, the actual data being the same variables as the template corresponding to the HTML, and the content data being provided as text records and / or databases; firstly selecting a single data record, and replacing the corresponding variables in the HTML with the content corresponding to the data record through a search method, while at the same time, the HTML directly displays the price tag operating console and its replaced data content through a standard browser method, and this output is the style that is finally displayed on the price tag, and the output HTML file with content is the input source for subsequent steps.

[0052] The grayscale of the font is canceled or reduced by removing the grayscale of the font S801, so as to ensure that the font of the output image is clearly displayed in the electronic price tag; the process of removing the grayscale of the font S801 is to first set the system parameters before printing the web page to turn off the font anti-aliasing function, which is achieved by automatically modifying the antialiasing attribute in FONTS to FLASE in the LINUX system. The method of turning off the automatic anti-aliasing mode in other systems should also be regarded as the same implementation method;

[0053] The Linux reference example is as follows:

[0054]

[0055]

[0056] HTML printing to the background S802 uses puppeteer open source control to display and print the web page in the background;

[0057] Save as picture S803 captures and implements the description table parameters generated in S101 generated by the HTML layout template to capture a picture with the same resolution as the electronic price tag; first remove the system's default font optimization display function, reduce the font grayscale to non-grayscale processing, then display the HTML in the form of a background web page and capture it as a picture, and capture the picture of the corresponding size through the description table saved in S101 generated by the HTML layout template.

[0058] Remove the grayscale of the image S104. Use RGB 24-bit color to convert to 256 colors, compare the three color values ​​close to the 256 colors, and convert the original image color to the corresponding displayable color of the electronic price tag; the formula for converting 256 color values ​​is: 0.299*R+0.587*G+0.114*B; the specific implementation process is: first read and print the image captured by HTML snapshot S103 in RGB mode, then remove the grayscale in the image through an algorithm, convert it to a color supported by the electronic price tag, and finally save the replaced data as a new image. After converting to 256 colors, the conversion colors are divided according to the following intervals as shown in the following table:

[0059]

[0060] The specific method of converting to the price tag identification image format S105 is as follows: the color of a point is composed of 2BIT. When the high bit of the point color is 2BIT, it is displayed in red, and 0 is not displayed. When the low bit is 1, it is displayed in black, and it is not displayed when it is 0. When both the high bit and the low bit are 0, it is displayed in white; when R is 255, it is displayed in red, and the two-bit identification is represented as 10. When R, G, and B are 0, it is displayed in black, and the two-bit identification is represented as 01. For other values, it is white, and the two-bit identification is represented as 00. All bits are converted into 2BIT color bits respectively, combined into a binary file, and saved.

[0061] The implementation method of electronic price tag parsing image information and displaying S106 is to convert the file saved in the price tag recognition image format S105 into a color control instruction of the electronic price tag through a 2BIT, 2BIT reading method, and send it to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.

[0062] The present invention has been described in detail above. The above description is only a preferred embodiment of the present invention and should not limit the scope of implementation of the present application. That is, all equivalent changes and modifications made within the scope of the present application should still fall within the scope of the present invention.

Claims

1. A method for generating an image based on an electronic price tag, characterized in that: include, HTML layout template generation (S101) is achieved by dragging elements into the basic framework; Combining HTML layout with content data (S102), including content data (S701), HTML template (S702) and generating output price tag HTML (S703); Printing and capturing HTML snapshot (S103), including first removing font grayscale (S801), printing the HTML outputted in (S102) to the background (S802), and saving it as a picture (S803); Removing the grayscale of the image (S104), removing the color grayscale of the image output by printing and capturing the HTML snapshot (S103) through an algorithm, including the implementation process of reading the image in RGB mode (S901), replacing it with the color of the electronic price tag (S902) and saving the new image (S903); Converting to a price tag recognition image format (S105), reading the image after removing the grayscale of the image (S104) in RGB format, and converting it into a 2-bit BIT 3-color format image; The electronic price tag parses the image information and displays it (S106), and sends the file converted into the price tag recognition image format (S105) to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.

2. The method for generating an image based on an electronic price tag according to claim 1, characterized in that: The basic framework is a module that describes the basic parameters of the price tag, which includes a set of HTML sets and a description table; the HTML set includes the template name, price tag resolution, HTML basic elements and background color; the description table includes the price tag resolution, rotation direction, template name, supported colors and supported models.

3. The method for generating an image based on an electronic price tag according to claim 2, characterized in that: The basic elements include basic graphics (S201), pictures (S202) and texts (S203), the basic graphics (S201) include straight lines (S208), rectangles (S204), rounded rectangles (S205), circles (S206) and triangles (S207), and the setting attributes of the basic graphics (S201) include content (S301), font selection (S302), font size (S303), font color (S304), font position (S305), background color (S306), border color (S307), rotation (S308) and coordinates (S309); The picture (S202) includes a QR code (S209), a barcode (S210) and a product picture (S211), and the setting attributes of the picture (S202) include a picture address (S401), local upload (S402), rotation (S403) and coordinates (S404); The text (S203) includes empty text, product name, pricing unit, origin, retail price, promotional price, member price, market price, item number, shelf life, production date, production time, ingredients, storage conditions, consumption method, production license, dealer, specifications and grades (S212) and more (S213), and the setting attributes of the text (S203) include content (S501), font selection (S502), font size (S503), font color (S504), font position (S505), background color (S506), border color (S507), rotation (S508) and coordinates (S509).

4. The method for generating an image based on an electronic price tag according to claim 3, characterized in that: There are two description methods for content (S301), image address (S401), and content (S501) association, namely text description method (S601) and variable description method (S602); the text description method (S601) is a constant description method, which is directly used in the subsequent template HTML. For the image (S202), the text and link are automatically converted into the corresponding graphic content; the product image (S211) adopts a constant method by uploading the image and automatically generating a link; the constant method of the QR code (S209) and barcode (S210) is to input a string that conforms to the QR code and barcode format; the variable description method uses "{}" to contain the corresponding variable name, and the product name adopts the variable mode, and the content is "{product name}".

5. The method for generating an image based on an electronic price tag according to claim 4, characterized in that: The process of HTML layout template generation (S101) is as follows: first, the basic framework parameters are set, and then the basic framework generates a set of HTML collections and a description table that support browser display. The browser directly displays the HTML collection. This HTML interface is a transparent rectangle with the same resolution as the target electronic price tag. This rectangle is defined as the price tag operation table. Then, according to the electronic price tag display requirements, the basic elements are dragged into the price tag operation table, and the corresponding basic element attributes are modified to the corresponding ones according to the electronic price tag display target. In this drag and modify process, the HTML collection simultaneously adds the corresponding elements and the corresponding attributes of the elements, which are defined as element tags in the HTML collection and displayed in real time in the price tag operation table to achieve what you see is what you get. This HTML collection and description file are saved to the text or data when closing and saving, as the input source for subsequent steps. Each element tag of HTML layout template generation (S101) is an independent layer, which supports element modification, that is, select the element to be modified in the price tag operation platform, change the content corresponding to the attribute, and when modifying, the modification will be synchronized to the element tag corresponding to the HTML collection, and will be synchronously updated to the price tag operation platform; HTML layout template generation (S101) supports layer movement up and down, moving the layer to select the corresponding element tag for the price tag operation platform, choose to move up or move down, and when moving, the HTML collection adjusts the order of the tags according to the moving method.

6. The method for generating an image based on an electronic price tag according to claim 4, characterized in that: The content data (S701) may be a set of actual data corresponding to the elements, the actual data having the same variables as the template corresponding to the HTML, and the content data being provided as text records and / or databases; a single data record is first selected, and the corresponding variables in the HTML are replaced with the contents corresponding to the data record by means of a search method, and at the same time, the HTML directly displays the price tag operation panel and the replaced data contents through a standard browser method, and this output is the style finally displayed on the price tag, and the output HTML file with contents is the input source for subsequent steps.

7. The method for generating an image based on an electronic price tag according to claim 1, characterized in that: The grayscale of the font is canceled or reduced by removing the grayscale of the font (S801) to ensure that the font of the output image is clearly displayed in the electronic price tag; the process of removing the grayscale of the font (S801) is to first set the system parameters before printing the web page to turn off the font anti-aliasing function, which is achieved by automatically modifying the antialias attribute in FONTS to FLASE in the LINUX system; HTML is printed to the background (S802) using the puppeteer open source control background display and print the web page; The save as picture (S803) captures the description table parameters generated in the HTML layout template generation (S101) to capture a picture with the same resolution as the electronic price tag; first, the system defaults to remove the optimized display function of the font, and reduces the processing of the font grayscale to the non-grayscale, and then displays the HTML in the form of a background web page and captures it as a picture, and captures the picture of the corresponding size from the description table saved by the HTML layout template generation (S101).

8. The method for generating an image based on an electronic price tag according to claim 7, characterized in that: Removing the grayscale of the image (S104) uses RGB 24-bit color to convert to 256 colors, compares the three color values ​​close to the 256 colors, and converts the original image color to the corresponding displayable color of the electronic price tag; the formula for converting the 256 color values ​​is: 0.299*R+0.587*G+0.114*B; the specific implementation process is: first read and print the image captured by HTML snapshot (S103) in RGB mode, then remove the grayscale in the image through an algorithm, convert it to the color supported by the electronic price tag, and finally save the replaced data again as a new image.

9. The method for generating an image based on an electronic price tag according to claim 1, characterized in that: The specific method of converting to the price tag identification image format (S105) is as follows: the color of a point is composed of 2BIT, and the color of the point is 2BIT. When the high bit is 1, it is displayed in red, and 0 is not displayed. When the low bit is 1, it is displayed in black, and it is not displayed when it is 0. When both the high bit and the low bit are 0, it is displayed in white; when R is 255, it is displayed in red, and the two-bit mark represents 10. When R, G, and B are 0, it is displayed in black, and the two-bit mark represents 01. When other values ​​are displayed, it is white, and the two-bit mark represents 00; all bits are converted into 2BIT color bits respectively, combined into a binary file, and saved.

10. The method for generating an image based on an electronic price tag according to claim 9, characterized in that: The implementation method of parsing the image information of the electronic price tag and displaying it (S106) is to convert the file converted into the price tag recognition image format (S105) and save it into the color control instruction of the electronic price tag through the 2BIT, 2BIT reading method, and send it to the electronic screen. The electronic screen receives the data, which is the color that the electronic screen needs to display.