A display control method and device of four-color electronic paper, equipment and storage medium

By identifying and segmenting the RGB color brightness values ​​of the electronic paper module, the problem of poor display effect of black, white, red and yellow electronic paper modules was solved, achieving efficient and accurate color processing and improving image quality.

CN119600957BActive Publication Date: 2025-12-30JIANGXI XINGTAI TECH INC
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing black-and-white, red-and-yellow electronic paper modules have poor color display algorithms, and full-color electronic paper algorithms are complex, have high equipment performance requirements, and low data processing efficiency.

Method used

By identifying the RGB color brightness value of each pixel in the image to be displayed, the image is divided into image blocks of different sizes according to the image type, the color to be displayed for each pixel is determined, and a color dispersion operation is performed to generate a display image suitable for electronic paper.

Benefits of technology

It improves the efficiency and accuracy of image color processing, reduces the amount of computation, and enhances the aesthetics of images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119600957B_ABST
    Figure CN119600957B_ABST
Patent Text Reader

Abstract

The present application relates to electronic paper module display technical field, disclose a kind of four-color electronic paper display control method, device, equipment and storage medium, the method comprises: obtaining image to be shown and image type, image type is obtained by user setting;Identify the RGB value of each pixel in the image to be shown;If the color type of the image to be shown is mixed color type, then the image to be shown is divided into several equal parts, obtain several image blocks;According to the RGB value of each pixel in the image to be shown, determine the color type of image block;According to the color type of image block and the RGB value of each pixel in image block, determine the color to be shown of each pixel in the image to be shown;According to the color to be shown of each pixel in the image to be shown, generate display graph;Display graph is transported to electronic paper drive controller and is shown.The technical scheme of the application can improve the efficiency and accuracy of image color processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic paper module display technology, specifically to a display control method, apparatus, device, and computer-readable storage medium for four-color electronic paper. Background Technology

[0002] An electronic paper module is a display module that uses electronic ink screen technology, featuring an ultra-thin design, low power consumption, and a paper-like display effect. It achieves this paper-like effect through electrophoretic display technology while maintaining extremely low power consumption. In the electronic paper industry, mainstream electronic paper is categorized into three types based on color: black and white, black and white with red and yellow hues, and full color.

[0003] Existing algorithms for monochrome, red, and yellow electronic paper (ECP) impose significant limitations on the colors of the displayed images, resulting in poor color reproduction when applied to four-color ECP modules. Current technology allows the application of full-color ECP algorithms to four-color ECP modules to improve display quality. However, for four-color ECP modules, full-color algorithms are more complex, require higher equipment performance, and have lower data processing efficiency. Summary of the Invention

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

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

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

[0007] The image type is set by the user, including: 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 mixed color, then the image to be displayed is divided into several equal parts according to the number of first pixels to obtain several corresponding first image blocks; each first image block has the same size.

[0010] The target color type of the first target image block is determined based on 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 of the four display colors in four-color electronic paper;

[0011] Based on 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, the color to be displayed for each pixel in the first target image block is determined; wherein, the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper;

[0012] A display image is generated based on the color to be displayed for each pixel in the image to be displayed; the display image is then sent to the electronic paper driver controller for display.

[0013] The four-color electronic paper display control method provided by this invention performs color processing on images with complex colors. It identifies the RGB color brightness values ​​of pixels through a display control device, performs color mapping and color identification based on the color level or RGB color brightness value of each pixel, and determines the color to be displayed for each pixel, thereby processing the colors of the colorful image into a color range suitable for electronic paper. Compared to full-color algorithms, the four-color electronic paper display control method provided by this invention requires less computation and is more efficient; compared to traditional four-color algorithms, the four-color electronic paper display control method provided by this invention has higher color accuracy.

[0014] In one optional approach, determining the color to be displayed for each pixel in the first target image block based on 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] Based on 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, determine the color level of each pixel in the first target image block under the target color type;

[0016] The color to be displayed for each pixel is determined based on the color level of each pixel in the first target image block under the target color type; wherein, there is a correspondence between the color to be displayed for each pixel in each first target image block and the color level under the target color type.

[0017] In one optional approach, determining the target color type of the first target image block based on the RGB color luminance value of each pixel in the image to be displayed includes:

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

[0019] If the number of initial colors of the pixels in the first target image block exceeds one, then the 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 type of the first target image block.

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

[0021] In one optional approach, determining the color to be displayed for each pixel in the first target image block based on 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] The RGB color brightness value of each pixel in the first target image block is subtracted 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 differences that meet the preset range is used as the display color of the corresponding pixel, and the display color of each pixel in each first target image block is determined.

[0024] In an optional approach, determining the color to be displayed for each pixel in the first target image block based on 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] A color dispersion operation is performed sequentially on the color to be displayed for each of the first target image blocks;

[0026] The color dispersion operation includes:

[0027] The first target image block is divided into several equal parts according to the second number of pixels to obtain several corresponding sub-image blocks; each sub-image block has the same size.

[0028] If all first pixels in the target sub-image block have the same display color, then determine whether all first pixels have a different display color from their adjacent second pixels.

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

[0030] If all the first pixels have different display colors from their adjacent second pixels, then based on the positional relationship between the target sub-image block and the first target image block, two of the first pixels are determined as pixels to be exchanged; wherein, in the first target image block, each pixel to be exchanged is adjacent to only one second pixel;

[0031] The display color of the pixel to be swapped is swapped with the display color of its adjacent second pixel.

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

[0033] In one alternative approach, the color type further includes: solid color;

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

[0035] The color to be displayed for each pixel in the image to be displayed is determined based on the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper; there is a correspondence between the color to be displayed for 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 based on the color to be displayed for each pixel in the image to be displayed; the display image is then sent to the electronic paper driver controller for display.

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

[0038] In one alternative approach, the color type further includes: gradient;

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

[0040] The image to be displayed is divided into several equal parts according to two pixel counts to obtain several corresponding second image blocks; each second image block has the same size.

[0041] The RGB color brightness values ​​of two pixels in the second target image block are subtracted to obtain the R color brightness difference, G color brightness difference, and B color brightness difference; the second target image block is any one of several second image blocks;

[0042] If any one of the R color brightness difference, G color brightness difference, and B color brightness difference does not meet the preset threshold range, then the gradient color of the second target image block is determined based on 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] Based on the R color brightness difference, G color brightness difference, or B color brightness difference, determine the color to be displayed for two pixels in the second target image block as the third color or the fourth color.

[0044] A display image is generated based on the color to be displayed for each pixel in the image to be displayed; the display image is then sent to the electronic paper driver controller for display.

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

[0046] In one optional approach, determining the display color of two pixels in the second target image block as a third or fourth color based on the R color brightness difference, G color brightness difference, or B color brightness difference includes:

[0047] Based on the gradient color of the second target image block, the target color brightness value to be compared is determined. The target color brightness value is one of the R color brightness difference, G color brightness difference, or B color brightness difference. There is a corresponding relationship between the gradient color of the second target image block and the target color brightness value.

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

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

[0050] In one optional approach, if the R color brightness difference, G color brightness difference, or B color brightness difference all meet a preset threshold range, then the color to be displayed for each pixel in the second target image block is determined based on the RGB color brightness value of each pixel in the second target image block; the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper; and there is a correspondence between the color to be displayed for 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 the present invention, a display control device for four-color electronic paper is provided, 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, including: mixed color type;

[0053] The recognition module is used to recognize the RGB color brightness value of each pixel in the image to be displayed;

[0054] The color processing module is used to divide the image to be displayed into several equal parts according to the number of first pixels if the color type of the image to be displayed is mixed color, thereby obtaining several corresponding first image blocks; each first image block has the same size.

[0055] The initial color of each pixel in the image to be displayed is determined based on 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] The target color type of the first target image block is determined based on the initial color of each pixel in the first target image block; the first target image block can be any one of the first image blocks; the color of the target color type is divided into several color levels according to the corresponding color brightness value;

[0057] Based on the color level or RGB color brightness value of each pixel in the first target image block, the color to be displayed for each pixel is determined; wherein, the color to be displayed for 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 based on the color to be displayed for each pixel in the image to be displayed; and to send the display image to the electronic paper driver controller for display.

[0059] According to another aspect 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 through the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction causes the processor to perform the operation of the display control method for four-color electronic paper as described in any of the above embodiments.

[0060] According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing at least one executable instruction that causes a four-color electronic paper display control device / apparatus to perform the operation of the four-color electronic paper display control method as described in any of the preceding claims.

[0061] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0062] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0063] Figure 1 A flowchart illustrating an embodiment of the display control method for four-color electronic paper provided by the present invention is shown.

[0064] Figure 2 This diagram illustrates 16 pixels of a first target image block before and after a color dispersion operation, according to an embodiment of the display control method for four-color electronic paper provided by the present invention.

[0065] Figure 3 A flowchart illustrating another embodiment of the display control method for four-color electronic paper provided by the present invention is shown.

[0066] Figure 4 A flowchart illustrating another embodiment of the display control method for four-color electronic paper provided by the present invention is shown.

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

[0068] Figure 6 A schematic diagram of an embodiment of the four-color electronic paper display control device provided by the present invention is shown. Detailed Implementation

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

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

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

[0072] Specifically, the user inputs the image to be displayed and the image type into the display control device. Mixed-color image types indicate that the image colors are more complex, including not only the four pure colors (black, white, red, and yellow) but also many gradient colors. For example, a black-white gradient is gray, a black-red gradient is dark red, a black-yellow gradient is dark yellow, a white-red gradient is light red, a white-yellow gradient is light yellow, and a red-yellow gradient is orange. However, compared to full-color images, the colors of the image to be displayed are simpler.

[0073] Preferably, the image input by the user to be displayed generally contains only four pure colors: black, white, red, and yellow, as well as their gradient colors. If the image input by the user contains other colors, they are filtered out, and similar colors are selected to replace them.

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

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

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

[0077] Step 140: Determine the target color type of the first target image block based on 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 of the four display colors in four-color electronic paper.

[0078] In some embodiments of the present invention, the number of first pixels is preferably 16 pixels. For example, if 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, specifically selecting a 4×4 pixel size as the first image block, thus obtaining 256 first image blocks.

[0079] Step 150: Determine the color to be displayed for each pixel in the first target image block based on 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 for 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 based on the RGB color brightness value of each pixel in the image to be displayed includes:

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

[0082] If the number of initial colors of the pixels in the first target image block exceeds one, then the 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 type of the first target image block.

[0083] If the initial color of the pixels in the first target image block is only one type, then the initial color is taken 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 for each pixel in the first target image block based on 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] Based on 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, determine the color level of each pixel in the first target image block under the target color type;

[0086] The color to be displayed for each pixel is determined based on the color level of each pixel in the first target image block under the target color type; wherein, there is a correspondence between the color to be displayed for each pixel in each first target image block and the color level under the target color type.

[0087] For example, in the initial colors of the pixels of the first target image block, if the display control device selects the two initial colors with the most pixels as black and red, then the target color type of the first target image block is determined to be a black-red gradient. The black-red gradient color is divided into 8 color levels based on the corresponding color brightness value, with the RGB color brightness value of black-red level 1 being D. rgb ={D r ,0,0}and0≤D r <32; the RGB color brightness value of black and red 2 is D rgb ={D r ,0,0}and32≤D r <64; the RGB color brightness value of black and red 3 is D rgb ={D r ,0,0}and64≤D r <96; the RGB color brightness value of black and red 4 is D rgb ={D r ,0,0}and 96≤D r <128; the RGB color brightness value of black and red 5 is D rgb ={D r ,0,0}and128≤D r <160; the RGB color brightness value of black and red 6 is D rgb ={D r ,0,0}and160≤D r <192; the RGB color brightness value of black and red 7 is D rgb ={D r ,0,0}and192≤D r <224; the RGB color brightness value of black, red, etc. is D. rgb ={D r ,0,0}and224≤D r ≤255.

[0088] In a preferred embodiment of the present invention, the display control device can directly determine the display color of each pixel in the first target image block based on the color level of the pixels in the first target image block. For example, if the display control device determines that the display color of the pixels in the first target image block is black or red based on the color level of the first target image block from black-red 1 to black-red 8, then the display control device determines that the display color of the pixels in the first target image block is black or red. If the color of the pixels in the first target image block is black-red 1 to black-red 4, then the display color 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, then the display color 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 for each pixel in the first target image block based on 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] The RGB color brightness value of each pixel in the first target image block is subtracted 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 differences that meet the preset range is used as the display color of the corresponding pixel, and the display color of each pixel in each first target image block is determined.

[0092] In another preferred embodiment of the present invention, the display control device can determine the color to be displayed for a corresponding pixel based on the RGB color brightness values ​​of the pixels in the first target image block. For example, if the target color type of the first target image block is a black-red gradient, the RGB color brightness value of each pixel in the first target image block is subtracted from the RGB color brightness values ​​of black ({0, 0, 0}) and red ({255, 0, 0}) to obtain two sets of corresponding RGB color brightness difference values. Each set of RGB color brightness difference values ​​includes an R color brightness difference value, a G color brightness difference value, and a B color brightness difference value. If the R color brightness difference value, the G color brightness difference value, and the B color brightness difference value all fall within the range of [-127, 127], or if the absolute values ​​of the R color brightness difference value, the G color brightness difference value, and the B color brightness difference value are all less than or equal to 127, then this set of RGB color brightness difference values ​​is determined to fall within a preset range.

[0093] For example, if the RGB color brightness values ​​of four pixels in the first target image block are: D1 = {180, 0, 0}, D2 = {120, 0, 0}, D3 = {180, 0, 0}, and D4 = {120, 0, 0}, then the colors to be displayed for these four pixels are red, black, red, and black, respectively.

[0094] In some embodiments of the present invention, determining the color to be displayed for each pixel in the first target image block based on 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] A color dispersion operation is performed sequentially on the color to be displayed for each of the first target image blocks;

[0096] The color dispersion operation includes:

[0097] The first target image block is divided into several equal parts according to the second number of pixels to obtain several corresponding sub-image blocks; each sub-image block has the same size.

[0098] If all first pixels in the target sub-image block have the same display color, then determine whether all first pixels have a different display color from their adjacent second pixels.

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

[0100] If all the first pixels have different display colors from their adjacent second pixels, then based on the positional relationship between the target sub-image block and the first target image block, two of the first pixels are determined as pixels to be exchanged; wherein, in the first target image block, each pixel to be exchanged is adjacent to only one second pixel;

[0101] The display color of the pixel to be swapped is swapped with the display color of its adjacent second pixel.

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

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

[0104] The first target image block has a size of 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 each target sub-image block is 2×2 pixels, meaning that each target sub-image block includes four pixels: upper left, upper right, lower left, and lower right.

[0105] If the pixel of the target sub-image block located in the upper left of the first target image block has a different display color from the pixel of its neighboring pixel in the first target image block, then the two pixels in the upper right and lower left are determined as pixels to be swapped.

[0106] If the pixel of the target sub-image block located in the upper right of the first target image block has a different display color from the pixel of its neighbor in the first target image block, then the two pixels in the upper left and lower right are determined as pixels to be swapped.

[0107] If the pixel of the target sub-image block located in the lower left of the first target image block has a different display color from the pixel of its neighboring pixel in the first target image block, then the two pixels in the upper left and lower right are determined as pixels to be swapped.

[0108] If the pixel of the target sub-image block located at the lower right of the first target image block has a different display color from the pixel of its neighbor in the first target image block, then the two pixels at the upper right and lower left are determined as pixels to be swapped.

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

[0110] For example, such as Figure 2 As shown, Figure 2 The image shows 16 pixels D0-D15 of one of the first target image blocks before and after the color dispersion operation. 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, and D10, D11, D14, and D15 are black, indicating that the colors of sub-image blocks 1-4 are overly concentrated. Within the first target image block, the pixels of sub-image block 4 are not the same color as their neighboring pixels. Sub-image block 4 is located in the lower right of the first target image block. Therefore, the two pixels D11 and D14 in the upper right and lower left of sub-image block 4 are determined as pixels to be swapped.

[0112] The display control device performs a color swap operation on the pixels to be displayed in sub-image blocks 2-4. Specifically, it selects pixels D11 and D14 in the sub-image blocks as pixels to be swapped, swaps pixel D11 with the color to be displayed of pixel D7 in sub-image block 2, and swaps pixel D14 with the color to be displayed 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 based on the color to be displayed for each pixel in the image to be displayed; send the display image to the electronic paper driver controller for display.

[0115] In some embodiments of the present invention, before the display image is sent to the electronic paper driver controller for display, the electronic paper driver controller adjusts the waveform of the electronic paper, that is, controls the movement of particles by controlling the voltage to adjust the color of the electronic paper, so that the electronic paper color is as vibrant as possible. Preferably, the electronic paper driver controller adjusts the RGB color brightness value of the black of the electronic paper to be as close as possible to {0, 0, 0}, the RGB color brightness value of the white to be as close as possible to {255, 255, 255}, the RGB color brightness value of the yellow to be as close as possible to {255, 255, 0}, and the RGB color brightness value of the red to be as close as possible to {255, 0, 0}. At the same time, it is necessary to ensure that each value in the RGB color brightness value of the black is less than each value in the RGB color brightness value of the yellow. This is because the yellow color of the electronic paper is artificially presented by voltage control, and in the RGB color brightness value of the yellow, the smaller the B value, the more yellow the color. In order to avoid color bias and reduce errors in subsequent calculations, the B value needs to be greater than any value of the black RGB.

[0116] The four-color electronic paper display control method provided by this invention can perform color processing on images with complex colors. By identifying the RGB color brightness values ​​of pixels through a display control device, and performing color mapping and color identification based on the color level or RGB color brightness value of each pixel, the method determines the color to be displayed for each pixel, thereby processing the colors of a colorful image into a color range suitable for electronic paper. Compared to full-color algorithms, the four-color electronic paper display control method provided by this invention requires less computation and is more efficient; compared to traditional four-color algorithms, the four-color electronic paper display control method provided by this invention has higher color accuracy. Furthermore, the four-color electronic paper display control method provided by this invention performs a color dispersion operation on the colors to be displayed in image blocks, which can break up overly concentrated colors, making the image more aesthetically pleasing and improving image color accuracy.

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

[0118] Step 210: Obtain the image to be displayed and the image type; the image type is set by the user and includes: solid color.

[0119] Specifically, the user inputs the image to be displayed and the image type into the display control device. A solid color image type indicates that the image has relatively simple colors, containing only black, white, red, and yellow. A simple threshold algorithm is needed to calculate the color to be displayed. For example, reminder or warning images are typically plain 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 luminance 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 solid color, determine the color to be displayed for each pixel in the image to be displayed based on the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper; there is a correspondence between the color to be displayed for 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 for each pixel in the image to be displayed is determined according to the following determination steps: the target pixel is any pixel in the image to be displayed;

[0124] If the target pixel's D b <50, D g <50 and D r If the value is less than 50, then the target pixel is determined to be black.

[0125] If D b <50, D g <50 and D r If the value is greater than 50, then the target pixel is determined to be red.

[0126] If D b <50, D g >200 and D r If the value is greater than 200, then the target pixel is determined to be yellow.

[0127] If D b >200, D g >200 and D r If the value is greater than 200, then the target pixel is determined to be white.

[0128] Step 240: Generate a display image based on the color to be displayed for each pixel in the image to be displayed; send the display image to the electronic paper driver controller for display.

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

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

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

[0132] Specifically, the user inputs the image to be displayed and the image type into the display control device. Gradient image type means that the image has a small number of gradient colors, with more of the four pure colors of black, white, red and yellow. It does not require a complicated algorithm to calculate the colors to be displayed in the image.

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

[0134] Specifically, the RGB color luminance 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 gradient, divide the image to be displayed into several equal parts according to the number of two pixels to obtain several corresponding second image blocks; each second image block has the same size.

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

[0137] Step 350: If any one of the R color brightness difference, G color brightness difference, and B color brightness difference does not meet the preset threshold range, then the gradient color of the second target image block is determined 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: Based on the R color brightness difference, G color brightness difference, or B color brightness difference, determine whether the color to be displayed for the two pixels in the second target image block is the third color or the fourth color.

[0139] Step 370: Generate a display image based on the color to be displayed for each pixel in the image to be displayed; send the display image to the electronic paper driver controller for display.

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

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

[0142] In some embodiments of the present invention, the gradient color of the second target image block is determined based on the RGB color brightness value of each pixel in the second target image block, specifically including:

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

[0144] Based on the D of the two pixels rgb The range is used to determine the gradient color. For example, if D1 = {180, 0, 0}, D2 = {150, 0, 0}, and the color brightness difference R is 30, then the second target image block D... r1 and D r2 The D corresponding to the black-red gradient does not meet the preset threshold range. rgb The range is: 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 the black-red gradient.

[0145] Specifically, the white-red gradient corresponds to D rgb The range is: 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 includes black and red, the black-yellow gradient includes black and yellow, the white-red gradient includes white and red, the white-yellow gradient includes white and yellow, and the red-yellow gradient includes yellow and red.

[0147] In some embodiments of the present invention, determining the display color of two pixels in the second target image block as a third color or a fourth color based on the R color brightness difference, G color brightness difference, or B color brightness difference includes:

[0148] Based on the gradient color of the second target image block, the target color brightness value to be compared is determined. The target color brightness value is one of the R color brightness value (R value), G color brightness value (G value), and B color brightness value (B value). There is a corresponding relationship between the gradient color of the second target image block and the target color brightness value.

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

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

[0151] Specifically, the correspondence between gradient colors and target color brightness values ​​is as follows: For a red-yellow gradient (orange), the target color brightness value to be compared is determined to be G; for a black-white gradient (gray), the target color brightness value to be compared is determined to be B; for a black-red gradient (dark red), the target color brightness value to be compared is determined to be R; for a black-yellow gradient (dark yellow), the target color brightness value to be compared is determined to be R; for a white-red gradient (light red), the target color brightness value to be compared is determined to be B; and for a white-yellow gradient (light yellow), the target color brightness value to be compared is determined to be B.

[0152] For example, the RGB color brightness values ​​of two pixels in a red-yellow gradient are D1 = {255, 150, 0} and D2 = {255, 180, 0}. The R values ​​in the red {255, 0, 0} and yellow {255, 255, 0} remain unchanged. Only the G values ​​change; therefore, compared to D... g1 and D g2 Pixels with larger G values ​​are more yellow, so the color to be displayed for pixels with larger G values ​​is determined to be yellow, and the color to be displayed for pixels with smaller G values ​​is determined to be red.

[0153] The RGB color brightness values ​​of the two pixels in the black-and-white gradient are D1 = {150, 150, 150} and D2 = {180, 180, 180}. Compared to D... b1 and D b2 Pixels with larger B values ​​are whiter, so the color to be displayed for pixels with larger B values ​​is determined to be white, and the color to be displayed for pixels with smaller B values ​​is determined to be black.

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

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

[0156] The RGB color brightness values ​​of the two pixels, one red and one black, are D1 = {180, 0, 0} and D2 = {150, 0, 0}, respectively. Compared to D... r1 and D r2 Pixels with smaller R values ​​are darker, and pixels with larger R values ​​are designated as red, while pixels with smaller R values ​​are designated as black.

[0157] The RGB color brightness values ​​of the two pixels, yellow and black, are D1 = {180, 180, 0} and D2 = {150, 150, 0}, respectively. Compared to D... r1 and D r2 Pixels with smaller R values ​​are darker, and pixels with larger R values ​​are designated as yellow, while pixels with smaller R values ​​are designated as black.

[0158] In some embodiments of the present invention, if the R color brightness difference, G color brightness difference, or B color brightness difference all meet the preset threshold range, then the color to be displayed for 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 for each pixel is one of the four display colors in the four-color electronic paper; there is a correspondence between the color to be displayed for 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 for 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 target pixel's D b <50, D g <50 and D r If the value is less than 50, then the target pixel is determined to be black.

[0161] If D b <50, D g <50 and D rIf the value is greater than 50, then the target pixel is determined to be red.

[0162] If D b <50, D g >200 and D r If the value is greater than 200, then the target pixel is determined to be yellow.

[0163] If D b >200, D g >200 and D r If the value is greater than 200, then the target pixel is determined to be white.

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

[0165] Example 4, Figure 5 This diagram illustrates a structural schematic of an embodiment of the four-color electronic paper display control device provided by the present invention; as shown. Figure 5 As shown, the device 400 includes: an acquisition module 410, an identification module 420, a color processing module 430, and a display control module 440;

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

[0167] The image type is set by the user, including: mixed color type;

[0168] The recognition module 420 is used to recognize the RGB color brightness value of each pixel in the image to be displayed;

[0169] The color processing module 430 is used to divide the image to be displayed into several equal parts according to the number of first pixels if the color type of the image to be displayed is a mixed color type, thereby obtaining several corresponding first image blocks; each first image block has the same size.

[0170] The initial color of each pixel in the image to be displayed is determined based on 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] The target color type of the first target image block is determined based on the initial color of each pixel in the first target image block; the first target image block can be any one of the first image blocks; the color of the target color type is divided into several color levels according to the corresponding color brightness value;

[0172] Based on the color level or RGB color brightness value of each pixel in the first target image block, the color to be displayed for each pixel is determined; wherein, the color to be displayed for 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 based on the color to be displayed for each pixel in the image to be displayed; and to send the display image to the electronic paper driver controller for display.

[0174] In an optional embodiment, the step of determining the color to be displayed for each pixel in the first target image block based on 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 in the color processing module 430 includes:

[0175] Based on 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, determine the color level of each pixel in the first target image block under the target color type;

[0176] The color to be displayed for each pixel is determined based on the color level of each pixel in the first target image block under the target color type; wherein, there is a correspondence between the color to be displayed for each pixel in each first target image block and the color level under the target color type.

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

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

[0179] If the number of initial colors of the pixels in the first target image block exceeds one, then the 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 type of the first target image block.

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

[0181] In an optional embodiment, the step of determining the color to be displayed for each pixel in the first target image block based on 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 in the color processing module 430 includes:

[0182] The RGB color brightness value of each pixel in the first target image block is subtracted 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 differences that meet the preset range is used as the display color of the corresponding pixel, and the display color of each pixel in each first target image block is determined.

[0184] In an optional embodiment, the color processing module 430, based on 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, determines the color to be displayed for each pixel in the first target image block, and further includes:

[0185] A color dispersion operation is performed sequentially on the color to be displayed for each of the first target image blocks;

[0186] The color dispersion operation includes:

[0187] The first target image block is divided into several equal parts according to the second number of pixels to obtain several corresponding sub-image blocks; each sub-image block has the same size.

[0188] If all first pixels in the target sub-image block have the same display color, then determine whether all first pixels have a different display color from their adjacent second pixels.

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

[0190] If all the first pixels have different display colors from their adjacent second pixels, then based on the positional relationship between the target sub-image block and the first target image block, two of the first pixels are determined as pixels to be exchanged; wherein, in the first target image block, each pixel to be exchanged is adjacent to only one second pixel;

[0191] The display color of the pixel to be swapped is swapped with the display color of its adjacent second pixel.

[0192] In one optional embodiment, the color type in the color processing module 430 further includes: solid color; if the color type of the image to be displayed is solid color, it includes:

[0193] The color to be displayed for each pixel in the image to be displayed is determined based on the RGB color brightness value of each pixel in the image to be displayed; the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper; there is a correspondence between the color to be displayed for 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 based on the color to be displayed for each pixel in the image to be displayed; the display image is then sent to the electronic paper driver controller for display.

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

[0196] The RGB color brightness values ​​of two pixels in the second target image block are subtracted to obtain the R color brightness difference, G color brightness difference, and B color brightness difference; the second target image block is any one of several second image blocks;

[0197] If any one of the R color brightness difference, G color brightness difference, and B color brightness difference does not meet the preset threshold range, then the gradient color of the second target image block is determined based on 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] Based on the R color brightness difference, G color brightness difference, or B color brightness difference, determine the color to be displayed for two pixels in the second target image block as the third color or the fourth color.

[0199] A display image is generated based on the color to be displayed for each pixel in the image to be displayed; the display image is then sent to the electronic paper driver controller for display.

[0200] In one optional approach, determining the display color of two pixels in the second target image block as a third or fourth color based on the R color brightness difference, G color brightness difference, or B color brightness difference includes:

[0201] Based on the gradient color of the second target image block, the target color brightness value to be compared is determined. The target color brightness value is one of the R color brightness difference, G color brightness difference, or B color brightness difference. There is a corresponding relationship between the gradient color of the second target image block and the target color brightness value.

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

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

[0204] If the RGB color brightness difference, G color brightness difference, or B color brightness difference all meet the preset threshold range, then the color to be displayed for each pixel in the second target image block is determined based on the RGB color brightness value of each pixel in the second target image block; the color to be displayed for each pixel is one of the four display colors in the four-color electronic paper; there is a correspondence between the color to be displayed for 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 the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0206] Example 5, Figure 6 The diagram shows a structural schematic of an embodiment of the four-color electronic paper display control device provided by the present invention. The specific embodiments of the present invention do not limit the specific implementation of the four-color electronic paper display control device.

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

[0208] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508. Communication interface 504 is used to communicate with other network elements such as clients or other servers. The processor 502 executes program 510, specifically performing the relevant steps in the above-described embodiment of the display control method for four-color electronic paper.

[0209] Specifically, program 510 may include program code, which includes computer-executable instructions.

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

[0211] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

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

[0213] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. Similarly, for the sake of brevity and to aid in understanding one or more aspects of the invention, in the description of exemplary embodiments of the invention above, various features of the embodiments are sometimes grouped together in a single embodiment, figure, or description thereof. The claims, which follow the detailed description, are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.

[0214] Those skilled in the art will understand that the modules in the device of the embodiment can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiment can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components, 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 are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A display control method of four-color electronic paper, characterized by, The method comprises: acquiring an image to be displayed and an image type; the image type is obtained by user setting, comprising: mixed color type; identifying 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 mixed color type, then the image to be displayed is divided into several equal parts according to the first pixel quantity, obtaining corresponding several first image blocks; the size of each first image block is the same; 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; the first target image block is any one of the first image blocks; the target color type comprises one of the four display colors in the four-color electronic paper or two colors; determining the to-be-displayed color 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 to-be-displayed color of each pixel is one of the four display colors in the four-color electronic paper; generating a display image according to the to-be-displayed color of each pixel in the image to be displayed; and delivering the display image to an electronic paper driving controller for display.

2. The display control method of four-color electronic paper according to claim 1, characterized by, determining the to-be-displayed color 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, comprises: determining the color level of each pixel in the first target image block under the target color type 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; determining the to-be-displayed color of each pixel according to the color level of each pixel in the first target image block under the target color type; wherein the to-be-displayed color of each pixel in each first target image block and the color level under the target color type have a corresponding relationship. 3.The display control method of four-color electronic paper according to claim 1, characterized by, 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, comprises: determining 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 initial color of the pixel of the first target image block is more than one kind, then selecting the two initial colors with the largest pixel quantity as the first color and the second color respectively, and taking the first color and the second color as the target color type of the first target image block; if the initial color of the pixel of the first target image block is only one kind, then taking the initial color 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 by, determining the to-be-displayed color 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, comprises: differences between the RGB color brightness value of each pixel in the first target image block and the RGB color brightness value of the first color and the second color respectively, to obtain two groups of corresponding RGB color brightness differences respectively; taking the first color or the second color corresponding to the group of RGB color brightness differences within the preset range as the to-be-displayed color of the corresponding pixel, to determine the to-be-displayed color of each pixel in each of the first target image blocks.

5. The display control method of four-color electronic paper according to claim 1, characterized by, 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, the to-be-displayed color of each pixel in the first target image block is determined, and the method further comprises: performing color dispersion operation on the to-be-displayed color of each of the first target image blocks in sequence; the color dispersion operation comprises: dividing the first target image block into several equal parts according to the second pixel quantity, to obtain corresponding several sub-image blocks; each of the sub-image blocks has the same size; if the to-be-displayed colors of all the first pixels in the target sub-image block are the same, determining whether all the first pixels are different from the to-be-displayed colors of the adjacent second pixels; the target sub-image block is any one of the sub-image blocks in the first target image block, and the second pixel is a pixel in the first target image block, and the second pixel is adjacent to the first pixel; if all the first pixels are different from the to-be-displayed colors of the adjacent second pixels, determining two first pixels as to-be-swapped pixels according to the positional relationship between the target sub-image block and the first target image block; wherein each to-be-swapped pixel in the first target image block is adjacent to only one second pixel; swapping the to-be-displayed colors of the to-be-swapped pixels and the to-be-displayed colors of the adjacent second pixels.

6. The display control method of four-color electronic paper according to any one of claims 2 to 5, characterized by, the color type further comprises: a solid color type; if the color type of the to-be-displayed image is the solid color type, comprising: determining the to-be-displayed color of each pixel in the to-be-displayed image according to the RGB color brightness value of each pixel in the to-be-displayed image; the to-be-displayed color of each pixel is one of the four display colors in the four-color electronic paper; the to-be-displayed color of each pixel in each of the to-be-displayed image has a corresponding relationship with the RGB color brightness value of each pixel in the to-be-displayed image; generating a display image according to the to-be-displayed color of each pixel in the to-be-displayed image; and delivering the display image to an 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 by, the color type further comprises: a gradient type; if the color type of the to-be-displayed image is the gradient type, comprising: dividing the to-be-displayed image into several equal parts according to the two-pixel quantity, to obtain corresponding several second image blocks; each of the second image blocks has the same size; determining the R color brightness difference, the G color brightness difference and the B color brightness difference by subtracting the RGB color brightness value of two pixels in the second target image block; the second target image block is any one of the 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 conform to the preset threshold range, then according to the RGB color brightness value of each pixel in the second target image block, a gradient color of the second target image block is determined; the gradient color comprises a third color and a fourth color; According to the R color brightness difference value, the G color brightness difference value or the B color brightness difference value, it is determined that the to-be-displayed color of two pixels in the second target image block is the third color or the fourth color; According to the to-be-displayed color of each pixel in the to-be-displayed image, a display image is generated; the display image is sent to an electronic paper driving controller for display. 8.The display control method of the four-color electronic paper according to claim 7, wherein According to the R color brightness difference value, the G color brightness difference value or the B color brightness difference value, it is determined that the to-be-displayed color of two pixels in the second target image block is the third color or the fourth color, comprising: According to the gradient color of the second target image block, a target color brightness value needing comparison is determined, the target color brightness value being one of the R color brightness difference value, the G color brightness difference value or the B color brightness difference value; the gradient color of the second target image block and the target color brightness value have a corresponding relationship; Comparing the target color brightness values of the two pixels in the second target image block; The to-be-displayed color of the pixel with the greater target color brightness value is determined as the third color, the to-be-displayed color of the pixel with the greater target color brightness value is determined as the fourth color, or the to-be-displayed color of the pixel with the greater target color brightness value is determined as the fourth color, and the to-be-displayed color of the pixel with the greater target color brightness value is determined as the third color. 9.The display control method of the four-color electronic paper according to claim 7, wherein Further comprising: If the R color brightness difference value, the G color brightness difference value or the B color brightness difference value all conform to the preset threshold range, then according to the RGB color brightness value of each pixel in the second target image block, the to-be-displayed color of each pixel in the second target image block is determined; the to-be-displayed color of each pixel is one of the four display colors in the four-color electronic paper; the to-be-displayed color of each pixel in each second target image block has a corresponding relationship with the RGB color brightness value of each pixel in the second target image block.

10. A display control device of four-color electronic paper, characterized by comprising: The device comprises an acquisition module, an identification module, a color processing module and a display control module; The acquisition module is used to acquire a to-be-displayed image and an image type; the image type is obtained by user setting, and comprises a mixed color type; The identification module is used to identify the RGB color brightness value of each pixel in the to-be-displayed image; The color processing module is used to, if the color type of the to-be-displayed image is the mixed color type, divide the to-be-displayed image into several equal parts according to a first pixel quantity, to obtain corresponding several first image blocks; the size of each first image block is the same. According to the RGB color brightness value of each pixel in the to-be-displayed image, an initial color of each pixel in the to-be-displayed image is determined; the initial color is one of the four display colors in the four-color electronic paper; According to the initial color of each pixel in a first target image block, a target color type of the first target image block is determined; the first target image block is any one of the first image blocks; colors of the target color type are divided into several color grades according to corresponding color brightness values; According to the color grade or the RGB color brightness value of each pixel in the first target image block, a to-be-displayed color of each pixel is determined; wherein the to-be-displayed color of each pixel is one of four display colors in the four-color electronic paper; A display control module is configured to generate a display map according to the to-be-displayed color of each pixel in the to-be-displayed image, and to deliver the display map to an 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