| CPC G09G 3/2003 (2013.01) [G06T 11/001 (2013.01); G09G 2320/0666 (2013.01)] | 18 Claims |

|
1. A method for generating display information of an electronic price tag, wherein the method for generating display information of an electronic price tag is performed by at least one processor of a device for generating display information of an electronic price tag, and comprises:
acquiring to-be-displayed information and supported colors of the electronic price tag, wherein the to-be-displayed information comprises a display color of each pixel in at least one to-be-displayed region, and each of the supported colors is a color supported and displayed by the electronic price tag;
comparing the supported colors of the electronic price tag with the display color of each pixel in the at least one to-be-displayed region, and dividing the at least one to-be-displayed region into a to-be-adjusted display region and a normal display region according to a comparison result, wherein for each to-be-displayed region, in response to a display color of a pixel in the to-be-displayed region is different from the supported colors of the electronic price tag, the to-be-displayed region is determined as the to-be-adjusted display region; and for each to-be-displayed region, in response to the display colors of pixels in the to-be-displayed region are the same as the supported colors of the electronic price tag, the to-be-displayed region is determined as the normal display region;
determining a target color of each pixel in the to-be-adjusted display region from the supported colors of the electronic price tag according to a display color of the each pixel in the to-be-adjusted display region; and
generating a rendering result of the to-be-displayed information according to the target color of each pixel in the to-be-adjusted display region and a display color of each pixel in the normal display region, and sending the rendering result of the to-be-displayed information to the electronic price tag so that the electronic price tag displays the rendering result of the to-be-displayed information,
wherein determining the target color of the each pixel in the to-be-adjusted display region from the supported colors of the electronic price tag according to the display color of the each pixel in the to-be-adjusted display region comprises: for each pixel in the to-be-adjusted display region;
determining a similar color of the each pixel from the supported colors of the electronic price tag according to the display color of the each pixel;
determining a gradient color of the each pixel according to the similar color of the each pixel, display colors of adjacent pixels of the each pixel and similar colors of the adjacent pixels; and
determining the target color of the each pixel from the supported colors of the electronic price tag according to the gradient color of the each pixel.
|