Display control method, device and equipment for four-color electronic paper and storage medium

By identifying and processing the RGB color brightness values ​​in the image, determining the color to be displayed for each pixel, the problem of poor color effect of the existing four-color electronic paper module when displaying the image is solved, and efficient and accurate color processing and image aesthetics are achieved.

CN119600957AActive Publication Date: 2025-03-11JIANGXI XINGTAI TECH INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411981943.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-11
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

The existing black, white, red and yellow electronic paper modules have poor color effects when displaying images, and the algorithm of full-color electronic paper is complex, the equipment performance requirements are high, and the data processing efficiency is low.

Method used

A display control method for four-color electronic paper is provided, by identifying the RGB color brightness value of each pixel in the image, dividing image blocks, determining the target color type, and determining the color to be displayed based on the color level or RGB color brightness value of each pixel, thereby generating a display diagram suitable for electronic paper.

Benefits of technology

The image color processing efficiency and accuracy are improved, and the calculation volume is less and the efficiency is higher than the full color algorithm; compared with the traditional four-color algorithm, the color accuracy is higher, and the image is more beautiful through color dispersion operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119600957A_ABST
    Figure CN119600957A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic paper module display, and discloses a four-color electronic paper display control method, device and equipment and a storage medium, the method comprises the following steps: obtaining a to-be-displayed image and an image type, the image type being set by a user; identifying the RGB value of each pixel in the to-be-displayed image; if the color type of the to-be-displayed image is a mixed color type, dividing the to-be-displayed image into a plurality of equal parts to obtain a plurality of image blocks; determining the color type of the image block according to the RGB value of each pixel in the to-be-displayed image; determining a to-be-displayed color of each pixel of the to-be-displayed image according to the color type of the image block and the RGB value of each pixel in the image block; generating a display image according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display. By applying the technical scheme of the invention, the image color processing efficiency and precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of electronic paper module display, and specifically to a display control method, device, equipment and computer-readable storage medium for four-color electronic paper. Background Art

[0002] The electronic paper module is a display screen module that uses electronic ink screen technology. It is ultra-thin, low power, and has a paper-like display effect. It uses electrophoretic display technology to achieve a paper-like display effect while maintaining extremely low power consumption. In the electronic paper industry, the mainstream electronic paper is divided into three types based on color: black and white, black and white, red and yellow, and full color.

[0003] The existing black, white, red and yellow electronic paper algorithm has great restrictions on the color of the displayed image. The color effect of the image displayed by using the existing black, white, red and yellow electronic paper algorithm on the black, white, red and yellow four-color electronic paper module is poor. The existing technology can apply the full-color electronic paper algorithm to the black, white, red and yellow four-color electronic paper module to improve the display effect of the electronic paper module. However, for the four-color electronic paper module, the full-color electronic paper algorithm is relatively complex, the equipment performance requirements are relatively high, and the data processing efficiency is relatively low. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention provide a display control method, device, equipment and computer-readable storage medium for four-color electronic paper, which are used to improve the efficiency and accuracy of image color processing.

[0005] According to one aspect of an embodiment of the present invention, a display control method of a four-color electronic paper is provided, the method comprising:

[0006] Get the image to be displayed and the image type;

[0007] The image type is set by the user and includes: mixed color type;

[0008] Identify the RGB color brightness value of each pixel in the image to be displayed;

[0009] If the color type of the image to be displayed is a mixed color type, the image to be displayed is divided into a number of equal parts according to the number of first pixels to obtain a number of corresponding first image blocks; each of the first image blocks has the same size;

[0010] Determine a target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the first target image block is any one of the first image blocks; the target color type includes one or two colors of the four display colors in the four-color electronic paper;

[0011] Determine the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper;

[0012] A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

[0013] The display control method of the four-color electronic paper provided by the present invention performs color processing on images with relatively complex colors, identifies the RGB color brightness value of the pixel through the display control device, performs color mapping and color identification according to the color level or RGB color brightness value of each pixel, and determines the color to be displayed of each pixel, so as to process the color of the colorful image into a color range suitable for the electronic paper. Compared with the full-color algorithm, the display control method of the four-color electronic paper provided by the present invention has less calculation amount and higher efficiency; compared with the traditional four-color algorithm, the display control method of the four-color electronic paper provided by the present invention has higher color accuracy.

[0014] In an optional manner, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes:

[0015] Determining, according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, a color level of each pixel in the first target image block under the target color type;

[0016] Determine the color to be displayed of each pixel according to the color level of each pixel in the first target image block under the target color type; wherein there is a corresponding relationship between the color to be displayed of each pixel in each first target image block and the color level under the target color type.

[0017] In an optional manner, determining the target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed includes:

[0018] Determine the initial color of each pixel in the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper;

[0019] If the pixels of the first target image block have more than one type of initial color, two initial colors with the largest number of pixels are selected as the first color and the second color respectively, and the first color and the second color are used as the target color types of the first target image block;

[0020] If there is only one type of initial color of the pixels of the first target image block, the initial color is used as the target color type of the first target image block.

[0021] In an optional manner, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes:

[0022] Subtract the RGB color brightness value of each pixel in the first target image block from the RGB color brightness values ​​of the first color and the second color, respectively, to obtain two sets of corresponding RGB color brightness difference values;

[0023] The first color or the second color corresponding to a set of RGB color brightness difference values ​​that meet the preset range is used as the color to be displayed of the corresponding pixel, and the color to be displayed of each pixel in each of the first target image blocks is determined.

[0024] In an optional manner, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block further includes:

[0025] performing a color dispersion operation on the to-be-displayed color of each of the first target image blocks in sequence;

[0026] The color dispersion operation includes:

[0027] Dividing the first target image block into a number of equal parts according to the second number of pixels to obtain a number of corresponding sub-image blocks; each of the sub-image blocks has the same size;

[0028] If the colors to be displayed of all first pixels in the target sub-image block are the same, determining whether the colors to be displayed of all first pixels are different from those of the second pixels adjacent to them;

[0029] The target sub-image block is any sub-image block in the first target image block, the second pixel is a pixel in the first target image block, and the second pixel is adjacent to the first pixel;

[0030] If the to-be-displayed colors of all the first pixels are different from those of the second pixels adjacent to them, two of the first pixels are determined as to-be-exchanged pixels according to the positional relationship between the target sub-image block and the first target image block; wherein each to-be-exchanged pixel is adjacent to only one second pixel in the first target image block;

[0031] The to-be-displayed color of the to-be-exchanged pixel is exchanged with the to-be-displayed color of the adjacent second pixel.

[0032] The display control method of four-color electronic paper provided by the present invention performs a color dispersion operation on the to-be-displayed colors of an image block, and can disperse overly concentrated colors, thereby making the image more beautiful and improving the color accuracy of the image.

[0033] In an optional manner, the color type also includes: a pure color type;

[0034] If the color type of the image to be displayed is a pure color type, it includes:

[0035] Determine the color to be displayed of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in the image to be displayed and the RGB color brightness value of each pixel in the image to be displayed;

[0036] A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

[0037] The display control method of four-color electronic paper provided by the present invention can perform color processing on images with relatively simple colors. The display control device determines the color range of the electronic paper by a threshold judgment method, and performs targeted processing on different images, thereby reducing workload and improving image color processing efficiency.

[0038] In an optional manner, the color type also includes: a gradient type;

[0039] If the color type of the image to be displayed is a gradient type, it includes:

[0040] Dividing the image to be displayed into a number of equal parts according to the number of two pixels to obtain a number of corresponding second image blocks; each of the second image blocks has the same size;

[0041] Subtracting the RGB color brightness values ​​of two pixels in the second target image block to obtain an R color brightness difference value, a G color brightness difference value, and a B color brightness difference value; the second target image block is any one of the plurality of second image blocks;

[0042] If any one of the R color brightness difference value, the G color brightness difference value, and the B color brightness difference value does not meet the preset threshold range, determining the gradient color of the second target image block according to the RGB color brightness value of each pixel in the second target image block; the gradient color includes a third color and a fourth color;

[0043] Determining, according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value, that the colors to be displayed of the two pixels in the second target image block are the third color or the fourth color;

[0044] A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

[0045] The display control method of four-color electronic paper provided by the present invention can also perform color processing on images with relatively simple colors but a small amount of gradient colors. The display control device calculates two pixels of the gradient colors, determines the gradient color type and the color range of the electronic paper, and performs targeted processing on different images, thereby reducing workload and improving image color processing efficiency.

[0046] In an optional manner, determining that the to-be-displayed colors of two pixels in the second target image block are the third color or the fourth color according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value includes:

[0047] Determine, according to the gradient color of the second target image block, a target color brightness value to be compared, wherein the target color brightness value is one of an R color brightness difference value, a G color brightness difference value, or a B color brightness difference value; and there is a corresponding relationship between the gradient color of the second target image block and the target color brightness value;

[0048] comparing target color brightness values ​​of two pixels in the second target image block;

[0049] The color to be displayed of the pixel with a larger target color brightness value is determined as the third color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, or the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the third color.

[0050] In an optional manner, if the R color brightness difference value, the G color brightness difference value or the B color brightness difference value all meet the preset threshold range, the color to be displayed of each pixel in the second target image block is determined according to the RGB color brightness value of each pixel in the second target image block; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in each second target image block and the RGB color brightness value of each pixel in the second target image block.

[0051] According to another aspect of an embodiment of the present invention, there is provided a display control device for a four-color electronic paper, comprising: an acquisition module, an identification module, a color processing module and a display control module;

[0052] The acquisition module is used to acquire the image to be displayed and the image type; the image type is set by the user and includes: mixed color type;

[0053] An identification module, used to identify the RGB color brightness value of each pixel in the image to be displayed;

[0054] A color processing module, configured to divide the image to be displayed into a plurality of equal parts according to the number of first pixels if the color type of the image to be displayed is a mixed color type, to obtain a plurality of corresponding first image blocks; each of the first image blocks has the same size;

[0055] Determine the initial color of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper;

[0056] Determining a target color type of the first target image block according to an initial color of each pixel in the first target image block; the first target image block is any one of the first image blocks; the color of the target color type is divided into a plurality of color levels according to corresponding color brightness values;

[0057] Determine the color to be displayed of each pixel according to the color level or RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper;

[0058] The display control module is used to generate a display image according to the color to be displayed of each pixel in the image to be displayed; and transmit the display image to the electronic paper driving controller for display.

[0059] According to another aspect of an embodiment of the present invention, a display control device for four-color electronic paper is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation of the display control method for four-color electronic paper as described in any one of the above items.

[0060] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a display control device / apparatus of a four-color electronic paper to perform an operation of a display control method of a four-color electronic paper as described in any one of the above.

[0061] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0063] Figure 1 A schematic flow chart showing an embodiment of a display control method for four-color electronic paper provided by the present invention;

[0064] Figure 2 A schematic diagram showing 16 pixels of a first target image block before and after a color dispersion operation in an embodiment of a display control method for four-color electronic paper provided by the present invention is shown;

[0065] Figure 3 A schematic flow chart showing another embodiment of a display control method for four-color electronic paper provided by the present invention;

[0066] Figure 4 A schematic flow chart showing another embodiment of the display control method of four-color electronic paper provided by the present invention;

[0067] Figure 5 A schematic structural diagram of an embodiment of a display control device for four-color electronic paper provided by the present invention is shown;

[0068] Figure 6 A schematic structural diagram of an embodiment of a display control device for four-color electronic paper provided by the present invention is shown. DETAILED DESCRIPTION

[0069] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0070] Figure 1 The flowchart of an embodiment of the display control method of the four-color electronic paper provided by the present invention is shown. The method is executed by a display control device. The display control method of the four-color electronic paper provided by the present invention is preferably applied to the electronic paper module of the four colors of black, white, red and yellow. Figure 1 As shown, the method comprises the following steps:

[0071] Step 110: Obtain the image to be displayed and the image type; the image type is set by the user, including: mixed color type.

[0072] Specifically, the user inputs the image to be displayed and the image type to the display control device. The mixed color image type indicates that the color of the image is relatively complex, including not only the four pure colors of black, white, red and yellow, but also many gradient colors. For example, the black-white gradient color is gray, the black-red gradient color is dark red, the black-yellow gradient color is dark yellow, the white-red gradient color is light red, the white-yellow gradient color is light yellow, and the red-yellow gradient color is orange. However, compared with the image of the full-color scene, the color of the image to be displayed is relatively simple.

[0073] Preferably, the image to be displayed input by the user generally has only four pure colors, black, white, red, and yellow, and their gradient colors. If the image to be displayed input by the user has other colors, it is filtered and replaced with a similar color.

[0074] Step 120: Identify the RGB color brightness value of each pixel in the image to be displayed.

[0075] Specifically, the RGB color brightness value of each pixel in the image to be displayed is identified as D rgb ={D r , D g , D b}. D r is the R (red) color brightness difference, D g is the brightness difference of G (green), D b is the brightness difference of B (blue) color.

[0076] Step 130: If the color type of the image to be displayed is a mixed color type, the image to be displayed is divided into a number of equal parts according to the number of first pixels to obtain a number of corresponding first image blocks; each of the first image blocks has the same size.

[0077] Step 140: Determine the target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the first target image block is any one of the first image blocks; the target color type includes one or two colors of the four display colors in the four-color electronic paper.

[0078] In some embodiments of the present invention, the first number of pixels is preferably 16 pixels. For example, the size of the image to be displayed is 256×256 pixels. The display control device divides the image to be displayed according to the number of 16 pixels, and specifically selects 4×4 pixels as the first image block, and 256 first image blocks can be obtained.

[0079] Step 150: Determine the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper.

[0080] In some embodiments of the present invention, determining the target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed includes:

[0081] Determine the initial color of each pixel in the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper;

[0082] If the pixels of the first target image block have more than one type of initial color, two initial colors with the largest number of pixels are selected as the first color and the second color respectively, and the first color and the second color are used as the target color types of the first target image block;

[0083] If there is only one type of initial color of the pixels of the first target image block, the initial color is used as the target color type of the first target image block.

[0084] In some embodiments of the present invention, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes:

[0085] Determining, according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, a color level of each pixel in the first target image block under the target color type;

[0086] Determine the color to be displayed of each pixel according to the color level of each pixel in the first target image block under the target color type; wherein there is a corresponding relationship between the color to be displayed of each pixel in each first target image block and the color level under the target color type.

[0087] Exemplarily, in the initial colors of the pixels of the first target image block, the display control device selects two initial colors with the largest number of pixels, black and red, and determines that the target color type of the first target image block is black-red gradient. The black-red gradient colors are divided into 8 color levels according to the corresponding color brightness values, and the RGB color brightness values ​​of black, red, etc. are D rgb ={D r , 0, 0} and 0≤D r <32; the RGB color brightness value of black and red 2 is D rgb ={D r , 0, 0} and 32≤D r <64; the RGB color brightness value of black, red, and 3 is D rgb ={D r , 0, 0} and 64≤D r <96; the RGB color brightness value of black, red and 4 is D rgb ={D r , 0, 0} and 96≤D r <128; the RGB color brightness value of black, red, and 5 is D rgb ={D r , 0, 0} and 128 ≤ D r <160; the RGB color brightness value of black, red and 6 is D rgb ={D r , 0, 0} and 160≤D r <192; the RGB color brightness value of black, red, and 7 is D rgb ={D r , 0, 0} and 192≤D r <224; the RGB color brightness value of black, red, and 8 is D rgb ={D r , 0, 0} and 224≤D r ≤255.

[0088] As a preferred embodiment of the present invention, the display control device can directly determine the color to be displayed of the pixels in each first target image block according to the color level of the pixels in the first target image block. For example, the display control device determines that the color to be displayed of the pixels in the first target image block is black or red according to the color level of the first target image block being black-red 1 to black-red 8. If the color of the pixels in the first target image block is black-red 1 to black-red 4, the color to be displayed of the corresponding pixels in the first target image block is determined to be black; if the color of the pixels in the first target image block is black-red 5 to black-red 8, the color to be displayed of the corresponding pixels in the first target image block is determined to be red.

[0089] In some embodiments of the present invention, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes:

[0090] Subtract the RGB color brightness value of each pixel in the first target image block from the RGB color brightness values ​​of the first color and the second color, respectively, to obtain two sets of corresponding RGB color brightness difference values;

[0091] The first color or the second color corresponding to a set of RGB color brightness difference values ​​that meet the preset range is used as the color to be displayed of the corresponding pixel, and the color to be displayed of each pixel in each of the first target image blocks is determined.

[0092] As another preferred embodiment of the present invention, the display control device can determine the color to be displayed of the corresponding pixel according to the RGB color brightness value of the pixel in the first target image block. For example, the target color type of the first target image block is black-red gradient, and the RGB color brightness value of each pixel in the first target image block is subtracted from the RGB color brightness value of black {0, 0, 0} and the RGB color brightness value of red {255, 0, 0} to obtain two sets of corresponding RGB color brightness difference values. Each set of RGB color brightness difference values ​​includes R color brightness difference value, G color brightness difference value and B color brightness difference value. If the R color brightness difference value, G color brightness difference value and B color brightness difference value all meet the range of [-127, 127], or the absolute values ​​of the R color brightness difference value, the G color brightness difference value and the B color brightness difference value are taken as less than or equal to 127, it is determined that this set of RGB color brightness difference values ​​meets the preset range.

[0093] For example, if the RGB color brightness values ​​of the four pixels in the first target image block are: 1 ={180,0,0},D 2 ={120,0,0},D 3={180,0,0},D 4 ={120, 0, 0}. Then the colors to be displayed corresponding to the four pixels are red, black, red and black respectively.

[0094] In some embodiments of the present invention, determining the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block further includes:

[0095] performing a color dispersion operation on the to-be-displayed color of each of the first target image blocks in sequence;

[0096] The color dispersion operation includes:

[0097] Dividing the first target image block into a number of equal parts according to the second number of pixels to obtain a number of corresponding sub-image blocks; each of the sub-image blocks has the same size;

[0098] If the colors to be displayed of all first pixels in the target sub-image block are the same, determining whether the colors to be displayed of all first pixels are different from those of the second pixels adjacent to them;

[0099] The target sub-image block is any sub-image block in the first target image block, the second pixel is a pixel in the first target image block, and the second pixel is adjacent to the first pixel;

[0100] If the to-be-displayed colors of all the first pixels are different from those of the second pixels adjacent to them, two of the first pixels are determined as to-be-exchanged pixels according to the positional relationship between the target sub-image block and the first target image block; wherein each to-be-exchanged pixel is adjacent to only one second pixel in the first target image block;

[0101] The to-be-displayed color of the to-be-exchanged pixel is exchanged with the to-be-displayed color of the adjacent second pixel.

[0102] In some embodiments of the present invention, the display control device preferably divides the first target image block according to the number of 4 pixels, and specifically selects 2×2 pixels as the sub-image block, and each first target image block obtains corresponding 4 sub-image blocks. The display control device performs a color dispersion operation on the color to be displayed of each first target image block in turn to check whether the first target image block has excessive color concentration. If the colors to be displayed of all pixels in the target sub-image block are the same, it means that the colors in the target sub-image block in the first target image block are excessively concentrated, then within the range of the first target image block, it is determined whether the colors to be displayed of the second pixels adjacent to the first pixel in the target sub-image block are all different from the colors to be displayed of the first pixel. If they are all different, two of the first pixels are determined as pixels to be exchanged based on the positional relationship between the target sub-image block and the first target image block.

[0103] Specifically, according to the positional relationship between the target sub-image block and the first target image block, two first pixels are determined as pixels to be exchanged, specifically:

[0104] The size of the first target image block is 4×4 pixels. The display control device divides the first target image block into four target sub-image blocks: upper left, upper right, lower left and lower right. The size of the target sub-image block is 2×2 pixels, that is, each target sub-image block includes four pixels: upper left, upper right, lower left and lower right.

[0105] If the pixels of the target sub-image block located at the upper left of the first target image block and the adjacent pixels in the first target image block have different colors to be displayed, the two pixels at the upper right and the lower left are determined as the pixels to be exchanged.

[0106] If the pixels of the target sub-image block located at the upper right of the first target image block and the adjacent pixels in the first target image block have different colors to be displayed, the upper left and lower right pixels are determined as pixels to be exchanged.

[0107] If the pixels of the target sub-image block at the lower left of the first target image block and the adjacent pixels in the first target image block have different colors to be displayed, the upper left and lower right pixels are determined as pixels to be exchanged.

[0108] If the pixels of the target sub-image block at the lower right of the first target image block and the adjacent pixels in the first target image block have different colors to be displayed, the upper right and lower left pixels are determined as the pixels to be exchanged.

[0109] It should be noted that if the first pixel is not located at the boundary of the first target image block, then there are two adjacent second pixels to the first pixel and the first pixel cannot be used as the pixel to be exchanged.

[0110] For example, Figure 2 As shown, Figure 2 16 pixels D0-D15 of one of the first target image blocks before and after the color dispersion operation are shown. The first target image block is divided into sub-image blocks 1-4, the pixels of sub-image block 1 are D0, D1, D4 and D5, the pixels of sub-image block 2 are D2, D3, D6 and D7, the pixels of sub-image block 3 are D8, D9, D12 and D13, and the pixels of sub-image block 4 are D10, D11, D14 and D15.

[0111] Before the color dispersion operation, D1-D9 and D12-D13 are red, D10, D11, D14 and D15 are black, and the colors of sub-image blocks 1-4 are too concentrated. Within the range of the first target image block, the colors of the pixels of sub-image block 4 are different from those of the adjacent pixels. Sub-image block 4 is located at the lower right of the first target image block, and the two pixels D11 and D14 at the upper right and lower left of sub-image block 4 are determined as the pixels to be exchanged.

[0112] The display control device performs a color exchange operation on the colors to be displayed of the pixels of sub-image blocks 2-4, specifically: select two pixels D11 and D14 in the sub-image blocks as pixels to be exchanged, and exchange the color to be displayed of pixel D11 with that of pixel D7 in sub-image block 2; and exchange the color to be displayed of pixel D14 with that of pixel D13 in sub-image block 3.

[0113] After the color dispersion operation, D7, D10, D13, and D15 are black, and the other pixels are red.

[0114] Step 160: Generate a display image according to the to-be-displayed color of each pixel in the to-be-displayed image; and transmit the display image to the electronic paper driving controller for display.

[0115] In some embodiments of the present invention, before the display image is transmitted to the electronic paper drive controller for display, the electronic paper drive controller debugs the waveform of the electronic paper, that is, controls the movement of the particles by controlling the voltage to debug the color of the electronic paper, so that the color of the electronic paper is the brightest. Preferably, the electronic paper drive controller debugs the black RGB color brightness value of the electronic paper to be closest to {0, 0, 0}, the white RGB color brightness value to be closest to {255, 255, 255}, the yellow RGB color brightness value to be closest to {255, 255, 0}, and the red RGB color brightness value to be closest to {255, 0, 0}. At the same time, it is necessary to ensure that each value in the black RGB color brightness value is smaller than each value in the yellow RGB color brightness value. Because the yellow color of the electronic paper is a color artificially presented by voltage control, in the yellow RGB color brightness value, the smaller the B value, the yellower the color. In order to calculate the color without color cast and reduce errors in the subsequent calculation, the B value needs to be greater than any value of the black RGB.

[0116] The display control method of the four-color electronic paper provided by the present invention can perform color processing on images with relatively complex colors, identify the RGB color brightness value of the pixel through the display control device, perform color mapping and color identification according to the color level or RGB color brightness value of each pixel, and determine the color to be displayed of each pixel, so as to process the color of the colorful image into a color range suitable for the electronic paper. Compared with the full-color algorithm, the display control method of the four-color electronic paper provided by the present invention has less calculation amount and higher efficiency; compared with the traditional four-color algorithm, the display control method of the four-color electronic paper provided by the present invention has higher color accuracy. At the same time, the display control method of the four-color electronic paper provided by the present invention performs color dispersion operation on the color to be displayed of the image block, which can disperse the overly concentrated colors, make the image more beautiful, and improve the image color accuracy.

[0117] Embodiment 2, Figure 3 A flowchart of another embodiment of the display control method of the four-color electronic paper provided by the present invention is shown. The method is executed by a display control device. The display control method of the four-color electronic paper provided by the present invention is preferably applied to the electronic paper module of the four colors of black, white, red and yellow. Figure 3 As shown, the method comprises the following steps:

[0118] Step 210: Acquire the image to be displayed and the image type; the image type is set by the user, including: pure color type.

[0119] Specifically, the user inputs the image to be displayed and the image type to the display control device. The pure color image type means that the color of the image is relatively simple, with only four pure colors: black, white, red and yellow. Only a simple threshold judgment algorithm is needed to calculate the color of the image to be displayed. For example, reminder or warning images are usually pure text images with white text on a red background.

[0120] Step 220: Identify the RGB color brightness value of each pixel in the image to be displayed.

[0121] Specifically, the RGB color brightness value of each pixel in the image to be displayed is identified as D rgb ={D r , D g , D b}.

[0122] Step 230: If the color type of the image to be displayed is a pure color type, determine the color to be displayed of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in the image to be displayed and the RGB color brightness value of each pixel in the image to be displayed.

[0123] In some embodiments of the present invention, the color to be displayed of each pixel in the image to be displayed is determined according to the following determination steps: the target pixel is any pixel in the display image;

[0124] If the D of the target pixel b <50, D g <50 and D r <50, it is determined that the color to be displayed of the target pixel is black;

[0125] If D b <50, D g <50 and D r >50, it is determined that the color to be displayed of the target pixel is red.

[0126] If D b <50, D g >200 and D r >200, it is determined that the color to be displayed of the target pixel is yellow.

[0127] If D b >200, D g >200 and D r >200, it is determined that the color to be displayed of the target pixel is white.

[0128] Step 240: Generate a display image according to the to-be-displayed color of each pixel in the to-be-displayed image; and transmit the display image to the electronic paper driving controller for display.

[0129] The display control method of four-color electronic paper provided by the present invention can perform color processing on images with relatively simple colors. The display control device determines the color range of the electronic paper by a threshold judgment method, and performs targeted processing on different images, thereby reducing workload and improving image color processing efficiency.

[0130] Embodiment 3, Figure 4 A flowchart of another embodiment of the display control method of the four-color electronic paper provided by the present invention is shown, and the method is executed by a display control device. Figure 4 As shown, the method comprises the following steps:

[0131] Step 310: Obtain the image to be displayed and the image type; the image type is set by the user, including: gradient type.

[0132] Specifically, the user inputs the image to be displayed and the image type to the display control device. The gradient image type means that the image has a small amount of gradient colors, and the four pure colors of black, white, red and yellow are more. There is no need to use a too complicated algorithm to calculate the color to be displayed of the image to be displayed.

[0133] Step 320: Identify the RGB color brightness value of each pixel in the image to be displayed.

[0134] Specifically, the RGB color brightness value of each pixel in the image to be displayed is identified as D rgb ={D r , D g , D b}.

[0135] Step 330: If the color type of the image to be displayed is a gradient type, the image to be displayed is divided into a number of equal parts according to the number of two pixels to obtain a number of corresponding second image blocks; each of the second image blocks has the same size.

[0136] Step 340: subtract the RGB color brightness values ​​of two pixels in the second target image block to obtain an R color brightness difference value, a G color brightness difference value, and a B color brightness difference value; the second target image block is any one of a plurality of the second image blocks.

[0137] Step 350: If any one of the R color brightness difference value, the G color brightness difference value and the B color brightness difference value does not meet the preset threshold range, determine the gradient color of the second target image block according to the RGB color brightness value of each pixel in the second target image block; the gradient color includes a third color and a fourth color.

[0138] Step 360: Determine, according to the R color brightness difference value, the G color brightness difference value or the B color brightness difference value, whether the to-be-displayed color of two pixels in the second target image block is the third color or the fourth color.

[0139] Step 370: Generate a display image according to the to-be-displayed color of each pixel in the to-be-displayed image; and transmit the display image to the electronic paper driving controller for display.

[0140] Specifically, the image to be displayed is divided according to the number of two pixels, and the left and right adjacent pixels or the top and bottom adjacent pixels are selected as the second image block.

[0141] Preferably, the threshold range is [-30, 30]. If any one of the R color brightness difference, the G color brightness difference and the B color brightness difference does not meet (-30, 30), that is, is greater than -30 and less than 30, it means that the color difference between the two pixels is large and there may be a gradual process.

[0142] In some embodiments of the present invention, determining the gradient color of the second target image block according to the RGB color brightness value of each pixel in the second target image block specifically includes:

[0143] The RGB color brightness value of a pixel in the second target image block is D1 ={D r1 , D g1 , D b1}, the RGB color brightness value of another pixel is D 2 ={D r2 , D g2 , D b2}.

[0144] According to the D of two pixels rgb The range of the gradient determines the color of the gradient. 1 ={180,0,0},D 2 ={150, 0, 0}, the R color brightness difference is equal to 30, then the second target image block D r1 and D r2 Does not meet the preset threshold range, black and red gradient corresponding to D rgb Range: 50 <D r1 <200,50 <D r2 <200, D g1 <50, D g2 <50, D b1 <50, D b2 <50 and |D r1 -D r2 |≥30, D of two pixels rgb The range belongs to black-red gradient.

[0145] Specifically, the white-red gradient corresponds to D rgb Range: 50 <D r1 <200,50 <D r2 <200, D g1 >200, D g2 >200, D b1 >200, D b2 >200 and |D r1 -D r2 |≥30.

[0146] Specifically, the black-red gradient color includes black and red, the black-yellow gradient color includes black and yellow, the white-red gradient color includes white and red, the white-yellow gradient color includes white and yellow, and the red-yellow gradient color includes yellow and red.

[0147] In some embodiments of the present invention, determining that the to-be-displayed colors of two pixels in the second target image block are the third color or the fourth color according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value includes:

[0148] Determine, according to the gradient color of the second target image block, a target color brightness value to be compared, wherein the target color brightness value is one of an R color brightness value (R value), a G color brightness value (G value), and a B color brightness value (B value); and there is a corresponding relationship between the gradient color of the second target image block and the target color brightness value;

[0149] comparing target color brightness values ​​of two pixels in the second target image block;

[0150] The color to be displayed of the pixel with a larger target color brightness value is determined as the third color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, or the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the third color.

[0151] Specifically, the corresponding relationship between the gradient color and the target color brightness value is: for the red-yellow gradient color, that is, orange, the brightness value of the target color to be compared is determined to be G value; for the black-white gradient color, that is, gray, the brightness value of the target color to be compared is determined to be B value; for the black-red gradient color, that is, dark red, the brightness value of the target color to be compared is determined to be R value; for the black-yellow gradient color, that is, dark yellow, the brightness value of the target color to be compared is determined to be R value; for the white-red gradient color, that is, light red, the brightness value of the target color to be compared is determined to be B value; for the white-yellow gradient color, that is, light yellow, the brightness value of the target color to be compared is determined to be B value.

[0152] For example, the RGB color brightness values ​​of two pixels with red and yellow gradients are D 1 ={255, 150, 0}, D 2 ={255, 180, 0}. The R value does not change in red {255, 0, 0} and yellow {255, 255, 0}. Only the G value changes. Therefore, compared with D g1 and D g2 , the pixel with a larger G value is more yellow, and the color to be displayed of the pixel with a larger G value is determined to be yellow, and the color to be displayed of the pixel with a smaller G value is determined to be red.

[0153] The RGB color brightness values ​​of the two pixels of the black and white gradient are D 1 ={150, 150, 150}, D 2 ={180, 180, 180}. Compared with D b1 and D b2 , the pixel with a larger B value is whiter, and the color to be displayed of the pixel with a larger B value is determined to be white, and the color to be displayed of the pixel with a smaller B value is determined to be black.

[0154] The RGB color brightness values ​​of the red and white pixels are D1 = {255, 150, 150} and D2 = {255, 180, 180} respectively. b1 and D b2 , pixels with larger B values ​​are whiter, and the color to be displayed of pixels with larger B values ​​is determined to be white, and the color to be displayed of pixels with smaller B values ​​is determined to be red.

[0155] The RGB color brightness values ​​of the two yellow and white pixels are D1 = {255, 250, 150} and D2 = {255, 255, 180} respectively. b1 and D b2 , pixels with larger B values ​​are whiter, and the color to be displayed of pixels with larger B values ​​is determined to be white, and the color to be displayed of pixels with smaller B values ​​is determined to be yellow.

[0156] The RGB color brightness values ​​of the two pixels, red and black, are D1 = {180, 0, 0} and D2 = {150, 0, 0}. r1 and D r2 , the pixel with a smaller R value is darker, and the color to be displayed of the pixel with a larger R value is determined to be red, and the color to be displayed of the pixel with a smaller R value is determined to be black.

[0157] The RGB color brightness values ​​of the two yellow and black pixels are D1 = {180, 180, 0} and D2 = {150, 150, 0}. r1 and D r2 , the pixel with a smaller R value is darker, and the color to be displayed of the pixel with a larger R value is determined to be yellow, and the color to be displayed of the pixel with a smaller R value is determined to be black.

[0158] In some embodiments of the present invention, if the R color brightness difference value, the G color brightness difference value or the B color brightness difference value all meet the preset threshold range, the color to be displayed of each pixel in the second target image block is determined according to the RGB color brightness value of each pixel in the second target image block; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in each second target image block and the RGB color brightness value of each pixel in the second target image block.

[0159] In some embodiments of the present invention, the color to be displayed of each pixel in the second target image block is determined according to the following determination steps: the target pixel is any pixel in the second target image block;

[0160] If the D of the target pixel b <50, D g <50 and D r <50, it is determined that the color to be displayed of the target pixel is black;

[0161] If D b <50, D g <50 and D r >50, it is determined that the color to be displayed of the target pixel is red.

[0162] If D b <50, D g >200 and D r >200, it is determined that the color to be displayed of the target pixel is yellow.

[0163] If D b >200, D g >200 and D r >200, it is determined that the color to be displayed of the target pixel is white.

[0164] The display control method of four-color electronic paper provided by the present invention can also perform color processing on images with relatively simple colors but a small amount of gradient colors. The display control device calculates two pixels of the gradient colors, determines the gradient color type and the color range of the electronic paper, and performs targeted processing on different images, thereby reducing workload and improving image color processing efficiency.

[0165] Embodiment 4, Figure 5 FIG. 1 is a schematic structural diagram of an embodiment of a display control device for four-color electronic paper provided by the present invention; Figure 5 As shown, the device 400 includes: an acquisition module 410, a recognition module 420, a color processing module 430 and a display control module 440;

[0166] An acquisition module 410 is used to acquire an image to be displayed and an image type;

[0167] The image type is set by the user and includes: mixed color type;

[0168] An identification module 420, used to identify the RGB color brightness value of each pixel in the image to be displayed;

[0169] A color processing module 430 is used for dividing the image to be displayed into a plurality of equal parts according to the first number of pixels to obtain a plurality of corresponding first image blocks if the color type of the image to be displayed is a mixed color type; each of the first image blocks has the same size;

[0170] Determine the initial color of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper;

[0171] Determining a target color type of the first target image block according to an initial color of each pixel in the first target image block; the first target image block is any one of the first image blocks; the color of the target color type is divided into a plurality of color levels according to corresponding color brightness values;

[0172] Determine the color to be displayed of each pixel according to the color level or RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper;

[0173] The display control module 440 is used to generate a display image according to the color to be displayed of each pixel in the image to be displayed; and transmit the display image to the electronic paper driving controller for display.

[0174] In an optional manner, the color processing module 430 determines the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, including:

[0175] Determining, according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, a color level of each pixel in the first target image block under the target color type;

[0176] Determine the color to be displayed of each pixel according to the color level of each pixel in the first target image block under the target color type; wherein there is a corresponding relationship between the color to be displayed of each pixel in each first target image block and the color level under the target color type.

[0177] In an optional manner, the step of determining the target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed in the color processing module 430 includes:

[0178] Determine the initial color of each pixel in the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper;

[0179] If the pixels of the first target image block have more than one type of initial color, two initial colors with the largest number of pixels are selected as the first color and the second color respectively, and the first color and the second color are used as the target color types of the first target image block;

[0180] If there is only one type of initial color of the pixels of the first target image block, the initial color is used as the target color type of the first target image block.

[0181] In an optional manner, the color processing module 430 determines the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, including:

[0182] Subtract the RGB color brightness value of each pixel in the first target image block from the RGB color brightness values ​​of the first color and the second color, respectively, to obtain two sets of corresponding RGB color brightness difference values;

[0183] The first color or the second color corresponding to a set of RGB color brightness difference values ​​that meet the preset range is used as the color to be displayed of the corresponding pixel, and the color to be displayed of each pixel in each of the first target image blocks is determined.

[0184] In an optional manner, the color processing module 430 determines the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, and further includes:

[0185] performing a color dispersion operation on the to-be-displayed color of each of the first target image blocks in sequence;

[0186] The color dispersion operation includes:

[0187] Dividing the first target image block into a number of equal parts according to the second number of pixels to obtain a number of corresponding sub-image blocks; each of the sub-image blocks has the same size;

[0188] If the colors to be displayed of all first pixels in the target sub-image block are the same, determining whether the colors to be displayed of all first pixels are different from those of the second pixels adjacent to them;

[0189] The target sub-image block is any sub-image block in the first target image block, the second pixel is a pixel in the first target image block, and the second pixel is adjacent to the first pixel;

[0190] If the to-be-displayed colors of all the first pixels are different from those of the second pixels adjacent to them, two of the first pixels are determined as to-be-exchanged pixels according to the positional relationship between the target sub-image block and the first target image block; wherein each to-be-exchanged pixel is adjacent to only one second pixel in the first target image block;

[0191] The to-be-displayed color of the to-be-exchanged pixel is exchanged with the to-be-displayed color of the adjacent second pixel.

[0192] In an optional manner, the color type in the color processing module 430 further includes: a pure color type; if the color type of the image to be displayed is a pure color type, it includes:

[0193] Determine the color to be displayed of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in the image to be displayed and the RGB color brightness value of each pixel in the image to be displayed;

[0194] A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

[0195] In an optional manner, the color type in the color processing module 430 further includes: a gradient type; if the color type of the image to be displayed is a gradient type, the image to be displayed is divided into a plurality of equal parts according to the number of two pixels to obtain a plurality of corresponding second image blocks; each of the second image blocks has the same size;

[0196] Subtracting the RGB color brightness values ​​of two pixels in the second target image block to obtain an R color brightness difference value, a G color brightness difference value, and a B color brightness difference value; the second target image block is any one of the plurality of second image blocks;

[0197] If any one of the R color brightness difference value, the G color brightness difference value, and the B color brightness difference value does not meet the preset threshold range, determining the gradient color of the second target image block according to the RGB color brightness value of each pixel in the second target image block; the gradient color includes a third color and a fourth color;

[0198] Determining, according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value, that the colors to be displayed of the two pixels in the second target image block are the third color or the fourth color;

[0199] A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

[0200] In an optional manner, determining that the to-be-displayed colors of two pixels in the second target image block are the third color or the fourth color according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value includes:

[0201] Determine, according to the gradient color of the second target image block, a target color brightness value to be compared, wherein the target color brightness value is one of an R color brightness difference value, a G color brightness difference value, or a B color brightness difference value; and there is a corresponding relationship between the gradient color of the second target image block and the target color brightness value;

[0202] comparing target color brightness values ​​of two pixels in the second target image block;

[0203] The color to be displayed of the pixel with a larger target color brightness value is determined as the third color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, or the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the third color.

[0204] If the R color brightness difference value, the G color brightness difference value or the B color brightness difference value all meet the preset threshold range, then the color to be displayed of each pixel in the second target image block is determined according to the RGB color brightness value of each pixel in the second target image block; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in each second target image block and the RGB color brightness value of each pixel in the second target image block.

[0205] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0206] Embodiment 5, Figure 6 A schematic structural diagram of an embodiment of a display control device for four-color electronic paper provided by the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the display control device for four-color electronic paper.

[0207] like Figure 6 As shown, the display control device of the four-color electronic paper may include: a processor (processor) 502, a communication interface (Communications Interface) 504, a memory (memory) 506, and a communication bus 508.

[0208] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above-mentioned embodiment of the display control method for four-color electronic paper.

[0209] Specifically, the program 510 may include program code including computer-executable instructions.

[0210] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the display control device of the four-color electronic paper may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0211] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0212] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

[0213] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0214] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0215] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A display control method for four-color electronic paper, characterized in that: The method comprises: Get the image to be displayed and the image type; The image type is set by the user and includes: mixed color type; Identify the RGB color brightness value of each pixel in the image to be displayed; If the color type of the image to be displayed is a mixed color type, the image to be displayed is divided into a number of equal parts according to the number of first pixels to obtain a number of corresponding first image blocks; each of the first image blocks has the same size; Determine a target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the first target image block is any one of the first image blocks; the target color type includes one or two colors of the four display colors in the four-color electronic paper; Determine the color to be displayed of each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

2. The display control method of four-color electronic paper according to claim 1, characterized in that: Determining a color to be displayed for each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes: Determining, according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, a color level of each pixel in the first target image block under the target color type; Determine the color to be displayed of each pixel according to the color level of each pixel in the first target image block under the target color type; wherein there is a corresponding relationship between the color to be displayed of each pixel in each first target image block and the color level under the target color type.

3. The display control method of four-color electronic paper according to claim 1, characterized in that: Determining the target color type of the first target image block according to the RGB color brightness value of each pixel in the image to be displayed includes: Determine the initial color of each pixel in the first target image block according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper; If the pixels of the first target image block have more than one type of initial color, two initial colors with the largest number of pixels are selected as the first color and the second color respectively, and the first color and the second color are used as the target color types of the first target image block; If there is only one type of initial color of the pixels of the first target image block, the initial color is used as the target color type of the first target image block.

4. The display control method of four-color electronic paper according to claim 3, characterized in that: Determining a color to be displayed for each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block includes: Subtract the RGB color brightness value of each pixel in the first target image block from the RGB color brightness values ​​of the first color and the second color, respectively, to obtain two sets of corresponding RGB color brightness difference values; The first color or the second color corresponding to a set of RGB color brightness difference values ​​that meet the preset range is used as the color to be displayed of the corresponding pixel, and the color to be displayed of each pixel in each of the first target image blocks is determined.

5. The display control method of four-color electronic paper according to claim 1, characterized in that: Determining a color to be displayed for each pixel in the first target image block according to the target color type of the first target image block and the RGB color brightness value of each pixel in the first target image block, further comprising: performing a color dispersion operation on the to-be-displayed color of each of the first target image blocks in sequence; The color dispersion operation includes: Dividing the first target image block into a number of equal parts according to the second number of pixels to obtain a number of corresponding sub-image blocks; each of the sub-image blocks has the same size; If the colors to be displayed of all first pixels in the target sub-image block are the same, determining whether the colors to be displayed of all first pixels are different from those of the second pixels adjacent to them; The target sub-image block is any sub-image block in the first target image block, the second pixel is a pixel in the first target image block, and the second pixel is adjacent to the first pixel; If the to-be-displayed colors of all the first pixels are different from those of the second pixels adjacent to them, two of the first pixels are determined as to-be-exchanged pixels according to the positional relationship between the target sub-image block and the first target image block; wherein each to-be-exchanged pixel is adjacent to only one second pixel in the first target image block; The to-be-displayed color of the to-be-exchanged pixel is exchanged with the to-be-displayed color of the adjacent second pixel.

6. The display control method of four-color electronic paper according to any one of claims 2 to 5, characterized in that: The color types also include: pure color type; If the color type of the image to be displayed is a pure color type, it includes: Determine the color to be displayed of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in the image to be displayed and the RGB color brightness value of each pixel in the image to be displayed; A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

7. The display control method of four-color electronic paper according to any one of claims 2 to 5, characterized in that: The color types also include: gradient type; If the color type of the image to be displayed is a gradient type, it includes: Dividing the image to be displayed into a number of equal parts according to the number of two pixels to obtain a number of corresponding second image blocks; each of the second image blocks has the same size; Subtracting the RGB color brightness values ​​of two pixels in the second target image block to obtain an R color brightness difference value, a G color brightness difference value, and a B color brightness difference value; the second target image block is any one of the plurality of second image blocks; If any one of the R color brightness difference value, the G color brightness difference value, and the B color brightness difference value does not meet the preset threshold range, determining the gradient color of the second target image block according to the RGB color brightness value of each pixel in the second target image block; the gradient color includes a third color and a fourth color; Determining, according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value, that the colors to be displayed of the two pixels in the second target image block are the third color or the fourth color; A display image is generated according to the to-be-displayed color of each pixel in the to-be-displayed image; and the display image is transmitted to the electronic paper driving controller for display.

8. The display control method of four-color electronic paper according to claim 7, characterized in that: Determining, according to the R color brightness difference value, the G color brightness difference value, or the B color brightness difference value, that the to-be-displayed colors of the two pixels in the second target image block are the third color or the fourth color, comprising: Determine, according to the gradient color of the second target image block, a target color brightness value to be compared, wherein the target color brightness value is one of an R color brightness difference value, a G color brightness difference value, or a B color brightness difference value; and there is a corresponding relationship between the gradient color of the second target image block and the target color brightness value; comparing target color brightness values ​​of two pixels in the second target image block; The color to be displayed of the pixel with a larger target color brightness value is determined as the third color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, or the color to be displayed of the pixel with a larger target color brightness value is determined as the fourth color, and the color to be displayed of the pixel with a larger target color brightness value is determined as the third color.

9. The display control method of four-color electronic paper according to claim 7, characterized in that: Also includes: If the R color brightness difference value, the G color brightness difference value or the B color brightness difference value all meet the preset threshold range, then the color to be displayed of each pixel in the second target image block is determined according to the RGB color brightness value of each pixel in the second target image block; the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; there is a corresponding relationship between the color to be displayed of each pixel in each second target image block and the RGB color brightness value of each pixel in the second target image block.

10. A display control device for four-color electronic paper, characterized in that: The device comprises: an acquisition module, a recognition module, a color processing module and a display control module; The acquisition module is used to acquire the image to be displayed and the image type; the image type is set by the user and includes: mixed color type; An identification module, used to identify the RGB color brightness value of each pixel in the image to be displayed; A color processing module, configured to divide the image to be displayed into a plurality of equal parts according to the number of first pixels if the color type of the image to be displayed is a mixed color type, to obtain a plurality of corresponding first image blocks; each of the first image blocks has the same size; Determine the initial color of each pixel in the image to be displayed according to the RGB color brightness value of each pixel in the image to be displayed; the initial color is one of the four display colors in the four-color electronic paper; Determining a target color type of the first target image block according to an initial color of each pixel in the first target image block; the first target image block is any one of the first image blocks; the color of the target color type is divided into a plurality of color levels according to corresponding color brightness values; Determine the color to be displayed of each pixel according to the color level or RGB color brightness value of each pixel in the first target image block; wherein the color to be displayed of each pixel is one of the four display colors in the four-color electronic paper; The display control module is used to generate a display image according to the color to be displayed of each pixel in the image to be displayed; and transmit the display image to the electronic paper driving controller for display.

Citation Information

Patent Citations

  • Driving method of four-color electronic paper module

    CN116453469A

  • Method for constructing waveform architecture of four-color electronic paper

    CN116543715A

  • Method for processing a digital video stream and corresponding device

    US20090135299A1

  • Color displays configured to convert RGB image data for display on advanced color electronic paper

    US20230351977A1