Electronic ink screen gray scale display method and driving device
By using grayscale display method and random grayscale dispersion table on the electronic ink screen, the problems of uneven grayscale display and texture distortion are solved, and a more realistic grayscale display effect and rich grayscale levels are achieved.
Patent Information
- Application Number
- CN202411245901.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-09-06
AI Technical Summary
The grayscale display effect of existing electronic ink screens is uneven, the brightness sense is uneven, and the texture display is easily distorted, which cannot effectively improve the authenticity of the display effect.
Using the grayscale display method, the grayscale diagram is decomposed into multiple grayscale display areas, and the randomly distributed grayscale spreading table is used to display white or black according to pixel comparison. The grayscale spreading table internal values are determined according to the set grayscale. Randomly distributed, decomposed into 64, 16, 8 or 4 gray scales to ensure display uniformity and texture clarity.
The brightness sense of the entire picture is more uniform, the texture display is clear and not distorted, the display effect is more realistic, and the calculation amount is small. It is suitable for various grayscale images, and the grayscale levels are displayed more abundant.
Smart Images

Figure CN119007664A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of display technology, and specifically relates to an image data processing method and device suitable for an electronic ink screen. Background Art
[0002] E-paper has the characteristics of ultra-low power consumption, paper-like texture, and visibility in sunlight. It is widely used in industries such as retail, education, medical care, and advertising. It saves various resources while improving the level of intelligence in the industry. For example, in the retail industry, using electronic price tags to replace traditional paper labels can effectively save labor costs.
[0003] Currently, common electronic ink screens can be divided into black and white screens, black and white yellow screens, black and white red screens, black and white yellow red screens, and seven-color screens. Images need to be processed and converted into fewer colors to be better displayed on electronic ink screens. End customers have higher and higher requirements for the display effect of electronic paper, hoping that the display effect will be more realistic.
[0004] Therefore, how to process images to achieve a more realistic effect with fewer colors is particularly important in the e-paper industry. The number of grayscales in current black and white e-paper screens is very limited, usually only 16 grayscales, and as few as 8 grayscales or 4 grayscales.
[0005] The grayscale is realized by using the point grayscale algorithm, which uses the density of white dots and black dots to represent the grayscale. The density distribution of white dots and black dots has a great influence on the display effect.
[0006] This algorithm is based on symmetrical energy to complete the point grayscale. In this way, the layout of the points in the entire picture will be much more symmetrical. It will be relatively symmetrical when viewed from a close distance.
[0007] It is a point grayscale algorithm that makes the picture uniform. It can make the brightness of the whole picture more uniform. Summary of the invention
[0008] In order to solve the problems in the prior art of jitter algorithm, uneven display effect, excessive concentration of energy on the right side, and uneven brightness of the entire picture, an electronic ink screen grayscale display method is provided to make the brightness of the entire picture more uniform.
[0009] It can also further solve the problem that the texture display is distorted after the brightness of the entire picture is uniform, and provide an electronic ink screen grayscale display method that can make the brightness of the entire picture more uniform while the texture display is clear and not distorted.
[0010] The technical solution of this application to solve the above technical problems is an electronic ink screen gray-scale display method, including: decomposing a grayscale image into more than one gray-scale display area, where the pixel array size of the gray-scale display area is less than or equal to the size of the gray-scale scatter table; comparing the gray-scale display area with the gray-scale scatter table pixel by pixel, if the gray value is less than the value in the gray-scale scatter table, display white; comparing the gray-scale display area with the gray-scale scatter table pixel by pixel, if the gray value is greater than the value in the gray-scale scatter table, display black; the values inside the gray-scale scatter table are randomly distributed according to the set gray levels, and the set gray levels are 64, 16, 8 or 4.
[0011] The grayscale image is obtained by converting a color picture.
[0012] The gray-scale scatter table is a 64-gray-scale table, with 8 rows and 8 columns, and 64 pixel points.
[0013] The gray-scale scatter table is divided into 4 gray-scale scatter sub-tables, and each gray-scale scatter sub-table has 16 pixel points.
[0014] The pixel values inside the gray-scale scatter sub-table are distributed randomly in size.
[0015] The pixel values inside the gray-scale scatter sub-table are distributed in a "rice" shape.
[0016] The value of the gray-scale scatter sub-table is calculated according to pixel number × 4 + sub-table number.
[0017] The technical solution of this application to solve the above technical problems can also be an electronic ink screen driving device, and the driving device displays gray values according to the above electronic ink screen gray-scale display method.
[0018] The technical solution of this application to solve the above technical problems can also be a data storage device, and the data storage device stores the gray-scale scatter table in the above electronic ink screen gray-scale display method.
[0019] One of the beneficial effects of the technical solution in this application is that the values inside the gray-scale scatter table are randomly distributed according to the set gray levels, which can make the display more uniform.
[0020] One of the beneficial effects of the technical solution in this application is that the grayscale image is obtained by converting a color picture, which is applicable to various grayscale images.
[0021] One of the beneficial effects of the technical solution in this application is that the gray-scale scatter table is a 64-gray-scale table, with 8 rows and 8 columns, and 64 pixel points, which can display more gray levels than the prior art and has richer gray levels.
[0022] One of the beneficial effects of the technical solution in the present application is that the sizes of the pixel values inside the grayscale scatter sub-table are distributed according to random sizes, which can make the grayscale image display more uniform.
[0023] One of the beneficial effects of the technical solution in the present application is that the grayscale is scattered in the sub-table value and calculated according to the pixel number × 4 + sub-table number, which reduces the amount of calculation and can make the grayscale display more uniform.
[0024] One of the beneficial effects of the technical solution in the present application is that the size of the pixel value inside the grayscale scattered sub-table is distributed in a "M" shape, which can better display the grayscale image with texture. On the basis of maintaining the display uniformity effect, it can also maintain the texture display effect without distortion due to uniformity.
[0025] One of the beneficial effects of the technical solution in the present application is that the electronic ink screen driving device uses the above method to display grayscale values, the effect is uniform, and the texture is not distorted. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is the grayscale display of the electronic ink screen Figure 1 ;
[0027] Figure 2 This is the grayscale display of the electronic ink screen Figure 2 ;
[0028] Figure 3 This is the grayscale display of the electronic ink screen Figure 3 ;
[0029] Figure 4 This is a schematic diagram of the grayscale dispersion table. Figure 1 ;
[0030] Figure 5 This is a schematic diagram of the grayscale dispersion table. Figure 2 ;
[0031] Figure 6 This is a schematic diagram of the grayscale dispersion table. Figure 3 ;
[0032] Figure 7 is the local code of the picture to be displayed;
[0033] Figure 8 is the calculated encoding number of the image to be displayed;
[0034] Fig. 9 It is a randomly scattered black and white picture code;
[0035] Fig.10 This is a schematic diagram of the grayscale display method of the electronic ink screen Figure 1 ;
[0036] Fig.11This is the grayscale display of the electronic ink screen Figure 4 ;
[0037] Fig.12 This is the grayscale display of the electronic ink screen Figure 5 ;
[0038] Fig.13 This is the grayscale display of the electronic ink screen Figure 6 ;
[0039] Fig.14 This is a schematic diagram of the grayscale dispersion table. Figure 4 ;
[0040] Fig.15 yes Fig.14 Schematic diagram of the calculation process of the local grayscale scattering table;
[0041] Fig.16 yes Fig.15 Schematic diagram of the calculation process of obtaining black and white image coding by calculating the local grayscale scattering table;
[0042] Fig.17 This is a schematic diagram of the grayscale display method of the electronic ink screen Figure 1 ;
[0043] Fig.18 This is a schematic diagram of the grayscale display method of the electronic ink screen Figure 2 ;
[0044] Fig.19 This is a schematic diagram of the grayscale display method of the electronic ink screen Figure 3 ;
[0045] Fig. 20 This is a schematic diagram of the grayscale display method of the electronic ink screen Figure 4 . DETAILED DESCRIPTION
[0046] The implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings.
[0047] It should be noted that the following is a description of the preferred embodiments of the present application, which does not constitute any limitation to the present application. The description of the preferred embodiments of the present application is only an explanation of the general principles of the present application. The embodiments described in this application are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", and technical features numbered with Arabic numerals 1, 2, 3, etc., and numbers such as "A" and "B", are only used for descriptive purposes and are only for the convenience of explanation, and do not represent a sequential relationship in time or space; they cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", and numbered with Arabic numerals 1, 2, 3, etc. may explicitly or implicitly include one or more of the features. In the description of the present application, “several” means two or more than two, unless otherwise clearly and specifically defined.
[0049] like Fig.17 As shown, a grayscale display method for an electronic ink screen includes decomposing a grayscale image into more than one grayscale display area, wherein the pixel array size of the grayscale display area is less than or equal to the size of a grayscale scattering table; the grayscale display area is compared with the grayscale scattering table according to pixels, and if the grayscale value is less than the value of the grayscale scattering table, white is displayed; the grayscale display area is compared with the grayscale scattering table according to pixels, and if the grayscale value is greater than the value of the grayscale scattering table, black is displayed; the values inside the grayscale scattering table are randomly distributed according to a set grayscale, and the set grayscale is 64, 16, 8 or 4.
[0050] like Fig.17 As shown, the grayscale image and the grayscale scattering table are compared and calculated to obtain the black and white image code, and the display is driven according to the black and white image code. Fig.18 , the grayscale image is obtained by converting the color image.
[0051] like Figures 4 to 9 ,as well as Figures 14 to 16 The grayscale scattering table has 64 grayscales, and the grayscale scattering table has 8 rows and 8 columns, with 64 pixels.
[0052] like Figures 4 to 9 ,as well as Figures 14 to 16 The grayscale scattering table is divided into 4 grayscale scattering sub-tables, each grayscale scattering sub-table has 16 pixels. The value of the grayscale scattering sub-table is calculated according to the pixel number × 4 + sub-table number.
[0053] like Fig.19, the magnitudes of the pixel values within the gray-scale dispersion sub-table are distributed randomly.
[0054] Such as Fig. 20 , the magnitudes of the pixel values within the gray-scale dispersion sub-table are distributed in a "rice" shape.
[0055] Such as Figure 1 As shown, it is a normal screen for electronic paper display testing. In electronic paper display, the number of gray scales is very limited, usually 16 gray scales; in some cases, there are only 8 gray scales or 4 gray scales. In the implementation of gray scales, the dot gray-scale algorithm is generally used. The dot gray-scale algorithm represents gray scales by the density of white dots and black dots.
[0056] Such as Figure 2 As shown is a black-and-white dot matrix displayed using the conventional dot gray-scale algorithm in the prior art. The conventional dot gray-scale algorithm in the prior art is the dithering algorithm. The dithering algorithm sacrifices resolution to increase the number of colors. The gray scale is displayed by the density of black dots. If the screen can only display black and white, a part of the area matrix can be sampled, for example, a 2×2 matrix, to display 5 levels of gray scale. Regarding 4 pixels as one pixel, there will be 5 levels of gray scale. Such as Figure 2 As shown, for the dithering algorithm, the display effect is uneven. The main reason is that the energy is too concentrated on the right side. Therefore, the dot matrix on the right side is relatively concentrated.
[0057] How to make the display effect better and make the layout of the dots on the entire screen even, especially when viewed closely, the display effect can be relatively even is a technical problem to be solved.
[0058] Such as Figure 3 As shown, it is a black-and-white dot matrix displayed by the dot gray-scale algorithm in the present application. In the present application, a random gray-scale dispersion table is used to complete the dot gray-scale algorithm. It can not only achieve the effect of dot gray scale but also greatly simplify the calculation.
[0059] In the present application, first, it is set how many gray scales the dot gray-scale algorithm is to represent. For example: represent 64 gray scales. Other gray scales are also possible. Usually, it is 64, 128 gray scales, or 256 gray scales. Such as Figure 4 And Figure 5 , is a random gray-scale dispersion table set for representing 64 gray scales.
[0060] Such as Figure 4 And Figure 5The grayscale scatter table is divided into 4 areas. The upper left 16 dots are the first area; the upper right 16 dots are the second area; the lower left 16 dots are the fourth area; the lower right 16 dots are the third area. The grayscale scatter table can be 8×8 or 16×4. Rectangular and square frames are usually relatively good choices. This solution uses 4 partitions, namely 16×4. More partitions are also possible, such as: 8 partitions, 6 partitions. Fill the area with data, and it is not limited to the status in the case. It can be relatively uniform.
[0061] like Figure 5 , the first area is filled with data: 1, 1×4+1=5, 2×4+1=9, 3×4+1=13, 4×4+1=17, 5×4+1=21, 6×4+1=25, 7×4+1=29, 8×4+1=33, 9×4+1=37, 10×4+1=41, 11×4+1=45, 12×4+1=49, 13×4+1=53, 14×4+1=57, 15×4+1=61.
[0062] like Figure 5 , the second area is filled with data: 2, 1×4+2, 2×4+2, 3×4+2, 4×4+2,... 15×4+2=62.
[0063] like Figure 5 , the third area is filled with data: 3, 1×4+3, 2×4+3, 3×4+3, 4×4+3,... 15×4+3=63.
[0064] like Figure 5 , the fourth area is filled with data: 4, 1×4+4, 2×4+4, 3×4+4, 4×4+4,... 15×4+4=64.
[0065] like Figure 6 , is Figure 5 Each partition is randomly scattered based on the data distribution. Figure 7 Yes, the grayscale image to be displayed with 256 grayscales, i.e. 8 grayscales, is a 4×4 unit grayscale structure. The corresponding position relationship is as follows Figure 8 shown.
[0066] use Figure 6 The data at the corresponding position in the table × 4 and Figure 7 Compare the data at the corresponding position in the , and assign the grayscale of each point according to the comparison result; the assignment result is output and calculated to Figure 8 , for display. If Figure 6 Data × 4 is greater than Figure 7 The gray value of the corresponding position in the data is assigned to 255. Figure 6 Data × 4 is less than Figure 7The data at the corresponding position in the , the point is assigned a value of 0. The calculation result is 0, which is displayed in white; the calculation result is 255, which is displayed in black.
[0067] like Figures 6 to 8 The calculation process is shown as follows:
[0068] The point N[x][y] is 0<61×4, so N[x][y] is 0 after calculation.
[0069] The point N[x+1][y] is 120>21×4, so N[x+1][y] is 255 after calculation.
[0070] At the point N[x+2][y] 65<53×4, N[x+2][y] is 0 after calculation.
[0071] At the point N[x+3][y], 129>13×4, so N[x+3][y] is 255 after calculation.
[0072] like Fig. 9 is based on Figure 6 and Figure 7 The calculation result of Figure 3 The following is the display effect of using the above algorithm. This algorithm is a point grayscale algorithm based on regional probability statistics. The calculation rule of this algorithm is to compare the size of a pixel point in the picture with the points in the random grayscale scatter table to determine whether it is 0 or 255, that is, black or white.
[0073] Take any point in the pixel. For example, the brightness is 100. Then the probability that the brightness of 100 is 0 is 39 / 64, and the probability that it is 255 is 25 / 64. If the brightness value of 100 appears 64 times in the whole picture, then it is very likely that 39 of these 64 brightness values of 100 are 0 and 25 are 255. The result is the same as the jitter algorithm. From a perceptual description, the jitter algorithm means that the probability of 0 appearing in the darker place is higher, and the probability of 255 appearing in the whiter place is higher. In this way, grayscale is formed. The same work can be done using a matrix probability table.
[0074] The algorithm in this application uses a random grayscale scattering table to scan the entire screen once. According to the algorithm, a black and white dot map of 0 and 255 is formed. The random grayscale scattering table needs to be re-scattered after several executions. The uniformity of the picture depends on the random grayscale scattering table. In the random grayscale scattering table, the points are evenly dispersed, so the picture is also evenly dispersed.
[0075] When the start command is clicked, the initialization state is completed, such as: reading in electronic paper related data, resetting basic parameters, etc. Then the image is input and stored in DDR. After a picture is stored, the point grayscale algorithm is started to calculate. The result of the calculation is put back into DDR. After a picture is calculated, the point grayscale image is read out. Output to the electronic paper for display. Process the front-end image data into a grayscale image, and then store the grayscale image in DDR3 (memory). Then perform the algorithm calculation and save the calculated value. After saving, when ready to display, find the appropriate waveform according to the read brightness value to complete the lighting.
[0076] This algorithm uses a random grayscale scattering table to complete the point grayscale algorithm, which can not only achieve the point grayscale effect, but also greatly simplify the calculation.
[0077] like Figure 3 As shown, the above algorithm can make the layout of the points of the whole picture more symmetrical. It will be relatively symmetrical when viewed from a close distance. In places with relatively large screens, the uniformity will look more comfortable.
[0078] But in the display Fig.11 When the image contains text, tables, etc. with many ridges, especially when the text, tables, etc. have many ridges and are more prominent. The uniform algorithm will destroy the ridges and the display will appear Fig.13 The display shown is abnormal. Fig.12 Then it is more symmetrical and well-proportioned. Fig.13 When there are corrugations in the image, the corrugation display will be damaged and a better effect will not be achieved. For example, a rectangular table in the image will have its corrugations skewed after being equalized. Fig.12 As shown in the figure, although the display effect of the ridge line is not destroyed, the display effect is uneven. The main reason is that the energy is too concentrated on the right side. Therefore, the dot matrix on the right side is relatively concentrated. How to make the display uniform and protect the display effect of the ridge line in a balanced state?
[0079] exist Figure 6 Based on Fig.14 As shown, the grayscale scattering table is randomly scattered in a "M" shape. As shown in the figure, there are some rules for randomness here. The standard grain state can be called a "M" shape. Therefore, the scattering rule is to scatter in the direction of the "M". Therefore, the scattering rule seems to be relatively strict. The current case distribution rule is: "\" " / " "—" "|" sequential layout.
[0080] To display Figure 7 Take the partial picture of as an example, first Fig.15 The calculations shown are Fig.16 ,Will Fig.15 The calculated results and Figure 7 Perform comparative calculation to obtain the dot matrix data for displaying black and white, that is, the black and white image coding dot matrix data. Fig.16 The black and white image encoding is used for display driving.
[0081] Compared with the previous embodiment, the rules of this embodiment are different. The principle of random scattering is to scatter all similar ones. Therefore, the grayscale scattering table is completely irregular. And it needs to be scattered multiple times during operation. But it is different for texture. It is to make similar ones appear in the direction of texture. Therefore, the grayscale scattering table is laid out according to the direction of texture. The texture grayscale scattering table does not need to be updated. Only one is needed. The grayscale scattering table does not need to be partitioned. Random scattering is evenly distributed. Texture scattering is uneven. Random scattering is uniform for the picture, and the grayscale is obvious. Texture scattering is for scenes with more textures and fewer grayscales. Therefore, in the random grayscale scattering table, there can be multiple 1s, multiple 60s, etc., or there can be no 20, 23, etc. According to the texture characteristics, in the picture, the grayscale will be concentrated in black and white, and there will be fewer grayscales in the middle.
[0082] When the start command is clicked, the initialization state is completed, such as: reading in electronic paper related data, resetting basic parameters, etc. Then the image is input and stored in the DDR. After a picture is stored, the point grayscale algorithm is started to calculate. The calculated result is put back into the DDR. After a picture is calculated, the point grayscale image is read out. Output to the electronic paper for display. Process the front-end image data into a grayscale image, and then store the grayscale image in the DDR3 memory. Then perform the algorithm calculation and save the calculated value. After saving, when ready to display, find the appropriate waveform according to the read brightness value to complete the lighting.
[0083] An electronic ink screen driving device displays grayscale values according to the electronic ink screen grayscale display method.
[0084] A data storage device, the data storage device stores the grayscale dispersion table in the above-mentioned electronic ink screen grayscale display method.
[0085] As shown in the accompanying drawings, the above description is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the invention description and the accompanying drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An electronic ink screen grayscale display method, characterized in that: It includes: Decompose a grayscale image into more than one grayscale display area, and the pixel array size of the grayscale display area is less than or equal to the size of the grayscale scattering table; Compare the grayscale display area with the grayscale scattering table pixel by pixel. If the grayscale value is less than the value of the grayscale scattering table, display white; Compare the grayscale display area with the grayscale scattering table pixel by pixel. If the grayscale value is greater than the value of the grayscale scattering table, display black; The values inside the grayscale scattering table are randomly distributed according to the set grayscale levels, and the set grayscale levels are 64, 16, 8 or 4.
2. The grayscale display method of electronic ink screen according to claim 1, characterized in that: The grayscale image is obtained by converting a color picture.
3. The electronic ink screen grayscale display method according to claim 1, characterized in that: The grayscale scattering table is a 64 - grayscale table, with 8 rows and 8 columns, and has 64 pixel points.
4. The electronic ink screen grayscale display method according to claim 3, characterized in that: The grayscale scattering table is divided into 4 grayscale scattering sub - tables, and each grayscale scattering sub - table has 16 pixel points.
5. The grayscale display method of electronic ink screen according to claim 4, characterized in that: The pixel values inside the grayscale scattering sub - table are distributed according to random sizes.
6. The grayscale display method of electronic ink screen according to claim 4, characterized in that: The pixel values inside the grayscale scattering sub - table are distributed in a "cross" shape.
7. The grayscale display method of electronic ink screen according to claim 4, characterized in that: The value of the grayscale scattering sub - table is calculated according to pixel number × 4+sub - table number.
8. An electronic ink screen driving device, characterized in that: The driving device displays the grayscale value according to the electronic ink screen grayscale display method described in any one of claims 1 to 7.
9. A data storage device, characterized in that: The data storage device stores the grayscale scattering table in the electronic ink screen grayscale display method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Display device brightness compensation method, device and equipment based on neural network
CN109935206A
Method and device for improving image display uniformity, terminal equipment and storage medium
CN117253460A
Red, white and black electronic ink screen data conversion method and driving device
CN118248101A
Driving method of display device and display device
US20110063339A1
