Electronic paper multi-gray-scale driving method, electronic paper and storage medium
By acquiring and storing pixel data in electronic paper and obtaining waveforms according to grayscale encoding rules, the problem of low grayscale driving efficiency of traditional electronic paper is solved, and a more efficient multi-grayscale display effect is achieved.
Patent Information
- Application Number
- CN202411937251.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-02-28
AI Technical Summary
Traditional electronic papers are loaded and inefficient when performing grayscale driving, resulting in multiple superimposed layers when realizing complex grayscale images, which is large in workload and redundant in operation.
By providing an electronic paper multi-grayscale driving method, including obtaining pixel data of the picture to be displayed and storing it in a register, comparing array elements in the register according to preset grayscale encoding rules, and obtaining the waveform of the pixels to realize multi-grayscale display.
This method reduces the complexity of multi-gray level display of electronic paper, improves display efficiency and refresh speed, and enriches the display effect of electronic paper.
Smart Images

Figure CN119541371A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic paper, and in particular to a multi-grayscale driving method for electronic paper, electronic paper and a storage medium. Background Art
[0002] As a display technology with excellent reading experience, electronic paper is widely used in e-book readers, smart tags, digital wall stickers and other fields. However, the overlay problem in the grayscale rendering of electronic paper has always been one of the important factors restricting its performance improvement and wide application. In traditional electronic paper display technology, grayscale is usually achieved by controlling the degree of aggregation of black particles at the pixel position. However, due to the physical properties of electronic paper, the pixel refresh speed is slow, and the grayscale rendering requires multiple refreshes to present different grayscales, resulting in the need to overlay multiple layers when realizing complex grayscale images, which results in a large workload and redundant operations. Summary of the invention
[0003] The main technical problem solved by the embodiments of the present application is that the traditional electronic paper has a step load and low efficiency when performing grayscale driving.
[0004] In order to solve the above technical problems, the first technical solution adopted by the embodiment of the present application is: to provide an electronic paper multi-grayscale driving method, comprising: obtaining pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, each of the pixel data includes 2 n array elements, where n is an integer greater than or equal to 2; sequentially obtain the mth array element in each pixel data according to the set order, and store all the obtained array elements in the mth register in the set order, so that the 1st to 2nd in each pixel data n The array elements are stored in the 1st to 2nd n registers, where 1≤m≤2 n , and m is an integer; from 1 to 2 n The kth array element is obtained from the registers and combined into the kth pixel data to obtain the waveform of the kth pixel, where 1≤k≤2 n , and k is an integer.
[0005] Optionally, before the step of acquiring pixel data of each pixel of the picture to be displayed pre-stored in the array in a set order, the method further includes: selecting a black and white mode during system settings, and opening the m registers corresponding to the black and white mode.
[0006] Optionally, the first to second n The step of obtaining the kth array element from the registers to combine into the kth pixel data to obtain the waveform of the kth pixel comprises: respectively obtaining the kth pixel from the 1st to the 2ndn obtain the kth array element from the register; compare the 1st to 2nd according to the preset grayscale encoding rule n The array elements obtained from the registers are used to obtain the grayscale encoding result corresponding to the k-th pixel data; and the waveform of the k-th pixel is obtained according to the grayscale encoding result.
[0007] Optionally, the first to second grayscale codes are compared according to a preset grayscale coding rule. n The step of obtaining the grayscale encoding result corresponding to the k-th pixel data by obtaining the array elements from the first to the second register comprises: comparing the grayscale encoding result corresponding to the k-th pixel data by comparing the first to the second n Whether all the array elements obtained in the registers are the same; if all are the same, the grayscale encoding result is set to the corresponding black pixel encoding result or white pixel encoding result; if not all are the same, query the preset grayscale pixel encoding comparison table to obtain the corresponding grayscale value, and set the grayscale value to the grayscale encoding result.
[0008] Optionally, if they are not all the same, then querying a preset grayscale pixel encoding comparison table to obtain a corresponding grayscale value, and setting the grayscale value to the grayscale encoding result comprises: respectively counting the first to second grayscale pixels. n A first number of 0s and a second number of 1s in an array element obtained from a register, wherein 0 represents black and 1 represents white, or 0 represents white and 1 represents black; the grayscale pixel encoding comparison table is searched according to the first number and the second number to obtain a corresponding grayscale value, wherein the grayscale loudness encoding comparison table contains different grayscale values corresponding to different numbers of 1s and 0s.
[0009] Optionally, the first to second n After the step of obtaining the kth array element from the register to form the kth pixel data to obtain the waveform of the kth pixel, the step further includes: checking whether each pixel of the to-be-displayed picture has been driven; if there are still undriven pixels, using the undriven pixels to execute the step of sequentially obtaining the mth array element in each pixel data according to the set order to the step of obtaining the mth array element in each pixel data from the 1st to the 2nd respectively. n The steps between obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel.
[0010] Optionally, before the step of obtaining the waveform of the k-th pixel according to the grayscale encoding result, it also includes: generating a driving time classification of the driving time according to the type of the grayscale encoding result; after the step of obtaining the waveform of the k-th pixel according to the grayscale encoding result, it also includes: after obtaining the waveform of the k-th pixel, extracting the current driving time classification of the waveform; obtaining the target driving time classification corresponding to the grayscale encoding result; if the current driving time classification is different from the target driving time classification, modifying the driving waveform data to the driving time corresponding to the target driving time classification; if the current driving time classification is the same as the target driving time classification, not modifying the driving waveform data.
[0011] In order to solve the above technical problems, the second technical solution adopted by the embodiment of the present application is: to provide an electronic paper multi-grayscale driving device, including: a pixel data acquisition module, used to acquire pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, each of the pixel data includes 2 n array elements, wherein n is an integer greater than or equal to 2; a pixel data transfer module, used to sequentially obtain the mth array element in each pixel data according to the set order, and store all the obtained array elements in the mth register in the set order, so that the 1st to 2nth array elements in each pixel data are respectively stored in the 1st to 2nth registers, wherein 1≤m≤2n, and m is an integer; a pixel waveform acquisition module, used to respectively obtain the kth array element from the 1st to 2nth registers to combine into the kth pixel data, so as to obtain the waveform of the kth pixel.
[0012] To solve the above technical problems, the third technical solution adopted in the implementation manner of the present application is: to provide an electronic paper, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electronic paper multi-grayscale driving method as described above.
[0013] In order to solve the above-mentioned technical problems, the fourth technical solution adopted in the implementation manner of the present application is: providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by the electronic paper, the electronic paper executes the electronic paper multi-grayscale driving method as described above.
[0014] Different from the related art, the present application converts image data into a grayscale image array, compares the grayscale image data stored in a preset register through a preset data comparison rule, and obtains the corresponding driving waveform according to the comparison result to control the corresponding multi-grayscale display effect. This not only enriches the display effect of the electronic paper, reduces the complexity of the multi-grayscale display of the electronic paper, but also improves the display efficiency and refresh speed of the electronic paper. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0016] Figure 1 It is a schematic diagram of the execution flow of the electronic paper multi-grayscale driving method provided in an embodiment of the present application.
[0017] Figure 2 This is an example diagram of an image representation corresponding to the data stored in the first register in the electronic paper multi-grayscale driving method provided in an embodiment of the present application.
[0018] Figure 3 This is an example diagram of an image representation corresponding to the data stored in the second register in the electronic paper multi-grayscale driving method provided in an embodiment of the present application.
[0019] Figure 4 A schematic diagram of an execution flow of obtaining a pixel waveform in the electronic paper multi-grayscale driving method provided in an embodiment of the present application.
[0020] Figure 5 This is an example diagram of an image representation corresponding to a pixel data representation result in the electronic paper multi-grayscale driving method provided in an embodiment of the present application.
[0021] Figure 6 This is an example diagram of the display effect of the pixel data representation result on the electronic paper in the electronic paper multi-grayscale driving method provided in the embodiment of the present application.
[0022] Figure 7 Schematic diagram of the system structure of the electronic paper multi-grayscale driving device provided in the embodiment of the present application.
[0023] Figure 8 Schematic diagram of the hardware structure of the electronic paper for executing the electronic paper multi-grayscale driving method provided in the embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.
[0026] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0027] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an execution flow of the electronic paper multi-grayscale driving method provided in an embodiment of the present application. Figure 1 As shown, the following steps may be included:
[0028] S1, obtain the pixel data of each pixel of the image to be displayed stored in the array in advance according to the set order, and each pixel data contains 2 n array elements, where n is an integer greater than or equal to 2.
[0029] In the process of converting the image data into a grayscale image array, a linear weighting method, an average method, a single channel method, a desaturation method, etc. may be used. For example, in the linear weighting method, a weighting coefficient is usually used to calculate the grayscale value, and the weighting coefficient is determined according to the sensitivity of the human eye to different colors.
[0030] As a preferred implementation, the grayscale image array is a bit array, that is, each element in the grayscale image array is 1 bit, and in the bit array, every two array elements constitute a pixel representation code in the order of ascending index, that is, 2 bits represent the code of a pixel of the image to be displayed. By representing the grayscale image data by the smallest unit bit in the computer storage system, the storage space occupied by the grayscale image array can be further saved.
[0031] S2, sequentially obtain the mth array element in each pixel data according to the set order, and store all the obtained array elements in the mth register in the set order, so that the first to second elements in each pixel data are stored in the mth register. n The array elements are stored in the 1st to 2nd n registers, where 1≤m≤2 n , and m is an integer.
[0032] In the embodiment of the present application, two registers are used as an example for explanation, namely the first register and the second register. When the number of registers is not equal to 2, the case is similar.
[0033] For example, the elements of the grayscale image array are acquired according to their order in the array, the first array element and the second array element of the grayscale image array are acquired for the first time, the third array element and the fourth array element of the grayscale image array are acquired for the second time, the fifth array element and the sixth array element of the grayscale image array are acquired for the third time, and the subsequent array element acquisition methods are analogous until the last array element of the grayscale image array is acquired. According to the aforementioned acquisition method, the number of elements of the grayscale image array should be an even number, and the number of elements of the grayscale image array can be controlled in the aforementioned conversion process, or the last element of the grayscale image array can be discarded when the number of elements of the grayscale image array is an odd number.
[0034] S3, storing the first array element and the second array element into a preset first register and a preset second register.
[0035] As a preferred implementation, before the above step S1, when the system of the target electronic paper is initialized, the black and white mode of the target electronic paper is turned on in advance, that is, the mode that can display in grayscale is entered. At the same time, in the black and white mode of a general electronic paper, there is also a register set corresponding to the black and white mode. After the black and white mode of the target electronic paper is turned on, the above first register and the second register set corresponding to the black and white mode are also turned on. In addition, in order to prevent errors in subsequent data operations, the above first register and the second register can also be reset. By displaying multi-grayscale images through the black and white mode of the electronic paper, the occupation of electronic paper hardware resources can be further saved compared to other display models. As an example, 1 can be set to represent black and 0 to represent white in the black and white mode of the electronic paper. Please continue to refer to Figure 2 , Figure 2 : is an example diagram of an image representation corresponding to the data stored in the first register in the electronic paper multi-grayscale driving method provided by the embodiment of the present application, such as Figure 2 As shown, if the data stored in the first register is 1010, the first part of the picture corresponding to the representation is in black and white order (from left to right). Please continue to refer to Figure 3 , Figure 3 : is an example diagram of an image representation corresponding to the data stored in the second register in the electronic paper multi-grayscale driving method provided by an embodiment of the present application, such as Figure 3 As shown, if the data stored in the second register is 1100, the corresponding second part of the picture is in black-white-white order (from left to right).
[0036] As an optional implementation, please continue to refer to Figure 4 , Figure 4 A schematic diagram of the execution flow of obtaining pixel waveforms in the electronic paper multi-grayscale driving method provided in the embodiment of the present application is shown in FIG. Figure 4 As shown, the process of comparing the first array element and the second array element according to the preset data comparison rule in the above step S4 may include steps S41 to S43:
[0037] S31, respectively from 1 to 2 n Get the kth array element from registers.
[0038] S32, compare the first to the second according to the preset grayscale coding rule n The array elements obtained from the registers are used to obtain the grayscale encoding result corresponding to the k-th pixel data.
[0039] S33. Obtain the waveform of the kth pixel according to the grayscale encoding result.
[0040] As an optional implementation, the above step S32 may specifically include: first, comparing the first to the second n Are all the array elements obtained from the registers the same? Then, if they are all the same, set the grayscale encoding result to the corresponding black pixel encoding result or white pixel encoding result. If they are not all the same, query the preset grayscale pixel encoding comparison table to obtain the corresponding grayscale value, and set the grayscale value to the grayscale encoding result obtained by the corresponding query. As another optional implementation, the above-mentioned step of "if they are not all the same, query the preset grayscale pixel encoding comparison table to obtain the corresponding grayscale value, and set the grayscale value to the grayscale encoding result obtained by the corresponding query" can specifically include: counting the 1st to 2nd pixels respectively. n The first number of 0s and the second number of 1s in the array elements obtained from the registers, wherein 0 represents black and 1 represents white, or 0 represents white and 1 represents black. The grayscale pixel encoding comparison table is queried according to the first number and the second number to obtain the corresponding grayscale value, wherein the grayscale pixel encoding comparison table contains different grayscale values corresponding to different numbers of 1s and 0s. In the above data comparison process, the traditional data fusion calculation process is replaced by the simplest comparison method, which further improves the data processing efficiency of the electronic paper in the multi-grayscale driving process.
[0041] As an example, in the above example, the data stored in the first register is 1010, and the data stored in the second register is 1100. According to the above data comparison rules, the data stored in the first register and the second register are compared, and the comparison results of 11-01-10-00 (from left to right) can be obtained respectively. Please continue to refer to Figure 5 , Figure 5 is an example diagram of an image representation corresponding to a pixel data representation result in the electronic paper multi-grayscale driving method provided in an embodiment of the present application, such as Figure 5 As shown, the above 11-01-10-00 comparison results can be expressed as black-black, white-black, black-white, and white-white image comparison results. Please continue to refer to Figure 6 , Figure 6 is an example diagram of the display effect of the pixel data representation result on the electronic paper in the electronic paper multi-grayscale driving method provided in the embodiment of the present application, such as Figure 6 As shown, according to the above data comparison rules, the comparison result of 11 is set to black display, the comparison result of 00 is set to white display, the comparison result of 01 is set to dark gray display, and the comparison result of 10 is set to light gray display, and finally we can get Figure 6 The multi-grayscale display effect shown.
[0042] Among them, by modifying the driving time of the corresponding driving waveform, the distance that the particles move under the electric field can also be changed, so that the black and white particles can be driven to different position states, achieving the effect of mixing black and white particles, and finally realizing different grayscale levels of display.
[0043] As an optional implementation, after the above step S3, it is also possible to check whether each pixel of the image to be displayed has been driven; if there are still undriven pixels, the undriven pixels are used to perform the above steps of sequentially obtaining the mth array element in each pixel data in the set order to the above steps of respectively obtaining the mth array element in each pixel data from the 1st to the 2nd. n The steps between obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel.
[0044] As another optional implementation, before the above step S3, the driving time classification of the above driving time can also be generated according to the type of grayscale encoding result. For example, there are four types of black, white, dark gray, and light gray in the above multi-grayscale display results, and the driving time of the corresponding waveform can also be divided into four categories. Then, after the above step of obtaining the waveform of the k-th pixel according to the grayscale encoding result, it can also include: after obtaining the waveform of the k-th pixel, extracting the current driving time classification of the waveform, and obtaining the target driving time classification corresponding to the grayscale encoding result. If the current driving time classification is different from the target driving time classification, the driving waveform data is modified to the driving time corresponding to the target driving time classification. For example, the current driving time classification of the acquired waveform represents dark gray, while the target driving time classification should represent light gray. In this case, the current driving time of the acquired waveform should be modified. Otherwise, if they are the same, no modification is required. That is, if the current driving time classification is the same as the target driving time classification, the driving waveform data is not modified. Whether the driving time needs to be modified is determined based on the comparison of the classification results. This not only further reduces the judgment and calculation time performed by the electronic paper when performing multi-grayscale driving display, but also further improves the multi-grayscale refresh time of the electronic paper.
[0045] The electronic paper driving method provided in the embodiment of the present application obtains pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, and each pixel data includes 2 n array elements, where n is an integer greater than or equal to 2; sequentially obtain the mth array element in each pixel data in a set order, and store all the obtained array elements in the mth register in a set order, so that the 1st to 2nd elements in each pixel data are stored in the mth register. n The array elements are stored in the 1st to 2nd n registers, where 1≤m≤2 n , and m is an integer; from 1 to 2 n The kth array element is obtained from the registers and combined into the kth pixel data to obtain the waveform of the kth pixel, where 1≤k≤2 n , and k is an integer, which not only enriches the display effect of the electronic paper, reduces the complexity of the multi-grayscale display of the electronic paper, but also improves the display and refresh efficiency of the electronic paper.
[0046] Please continue reading Figure 7 , Figure 7 is a schematic diagram of the system structure of the electronic paper multi-grayscale driving device provided in the embodiment of the present application, such as Figure 7 As shown, the device 70 includes: a pixel data acquisition module 71, a pixel data transfer module 72 and a pixel waveform acquisition module 73.
[0047] The pixel data acquisition module 71 is used to acquire the pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, and each of the pixel data includes 2 n array elements, where n is an integer greater than or equal to 2;
[0048] The pixel data transfer module 72 is used to sequentially obtain the mth array element in each pixel data according to the set order, and sequentially store all the obtained array elements in the mth register according to the set order, so that the 1st to 2nth array elements in each pixel data are stored in the 1st to 2nth registers respectively, where 1≤m≤2n, and m is an integer;
[0049] The pixel waveform acquisition module 73 is used to obtain the kth array elements from the 1st to 2nth registers respectively to form the kth pixel data, so as to obtain the waveform of the kth pixel.
[0050] As an optional implementation, the pixel data acquisition module 71 is further used to select a black and white mode when the system is set up, and open the m registers corresponding to the black and white mode.
[0051] As an optional implementation, the pixel waveform acquisition module 73 is further configured to respectively obtain the pixel waveform from the first to the second pixel waveforms. n obtain the kth array element from the register; compare the 1st to 2nd according to the preset grayscale encoding rule n The pixel waveform acquisition module 73 is further configured to compare the first to second pixel data. n Whether all the array elements obtained in the registers are the same; if all are the same, the grayscale encoding result is set to the corresponding black pixel encoding result or white pixel encoding result; if not all are the same, query the preset grayscale pixel encoding comparison table to obtain the corresponding grayscale value, and set the grayscale value to the grayscale encoding result.
[0052] As an optional implementation, the pixel waveform acquisition module 73 is further configured to count the first to second n A first number of 0s and a second number of 1s in an array element obtained from a register, wherein 0 represents black and 1 represents white, or 0 represents white and 1 represents black; the grayscale pixel encoding comparison table is searched according to the first number and the second number to obtain a corresponding grayscale value, wherein the grayscale loudness encoding comparison table contains different grayscale values corresponding to different numbers of 1s and 0s.
[0053] As an optional implementation, the pixel waveform acquisition module 73 is also used to check whether each pixel of the to-be-displayed image has been driven; if there are still undriven pixels, the undriven pixels are used to execute the step of sequentially acquiring the mth array element in each pixel data according to the set order to the step of sequentially acquiring the mth array element in each pixel data according to the set order to the step of sequentially acquiring the mth array element in each pixel data according to the set order. n The steps between obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel.
[0054] As an optional implementation, the pixel waveform acquisition module 73 is also used to generate a driving time classification of the driving time according to the type of the grayscale encoding result; after the step of acquiring the waveform of the kth pixel according to the grayscale encoding result, it also includes: after acquiring the waveform of the kth pixel, extracting the current driving time classification of the waveform; acquiring the target driving time classification corresponding to the grayscale encoding result; if the current driving time classification is different from the target driving time classification, modifying the driving waveform data to the driving time corresponding to the target driving time classification; if the current driving time classification is the same as the target driving time classification, not modifying the driving waveform data.
[0055] It should be noted that the electronic paper multi-grayscale driving device can execute the electronic paper multi-grayscale driving method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the embodiment of the electronic paper multi-grayscale driving device, please refer to the electronic paper multi-grayscale driving method provided in the embodiment of the present application.
[0056] Please continue reading Figure 8 , Figure 8 is a schematic diagram of the hardware structure of the electronic paper 800 for executing the electronic paper multi-grayscale driving method provided in an embodiment of the present application, such as Figure 8 As shown, the electronic paper 800 includes:
[0057] One or more processors 810 and memory 820, Figure 8 A processor 810 is taken as an example.
[0058] The processor 810 and the memory 820 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0059] The memory 820, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the electronic paper multi-grayscale driving method in the embodiment of the present application. The processor 810 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 820, that is, the electronic paper multi-grayscale driving method in the above method embodiment is realized.
[0060] The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the electronic paper multi-grayscale driving device, etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 820 may optionally include a memory remotely arranged relative to the processor 810, and these remote memories may be connected to the electronic paper multi-grayscale driving device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0061] The one or more modules are stored in the memory 820, and when executed by the one or more processors 810, the electronic paper multi-grayscale driving method in any of the above method embodiments is executed, for example, the above described Figure 1 Steps S1 to S3 of the method, Figure 4 Steps S31 to S33 of the method are implemented Figure 7 The functions of modules 71-73 in.
[0062] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0063] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 8 A processor 810 in the embodiment may enable the one or more processors to execute the electronic paper multi-grayscale driving method in any of the above method embodiments, for example, to execute the above described Figure 1 Steps S1 to S3 of the method, Figure 4 Steps S31 to S33 of the method are implemented Figure 7 The functions of modules 71-73 in.
[0064] The present application provides a computer program product, wherein the computer program product includes a computer program stored in a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by the electronic paper, the electronic paper is enabled to execute the electronic paper multi-grayscale driving method in any of the above method embodiments, for example, executing the above described Figure 1 Steps S1 to S3 of the method, Figure 4 Steps S31 to S33 of the method are implemented Figure 7 The functions of modules 71-73 in.
[0065] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0066] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0067] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A multi-grayscale driving method for electronic paper, characterized in that: include: Obtain pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, each of the pixel data includes 2 n array elements, where n is an integer greater than or equal to 2; The mth array element in each pixel data is sequentially acquired according to the set order, and all the acquired array elements are sequentially stored in the mth register according to the set order, so that the first to second elements in each pixel data are sequentially stored in the mth register. n The array elements are stored in the 1st to 2nd n registers, where 1≤m≤2 n , and m is an integer; From 1st to 2nd n The kth array element is obtained from the registers and combined into the kth pixel data to obtain the waveform of the kth pixel, where 1≤k≤2 n , and k is an integer.
2. The electronic paper multi-grayscale driving method according to claim 1, characterized in that: Before the step of obtaining pixel data of each pixel of the picture to be displayed pre-stored in the array in a set order, the method further includes: When setting the system, the black and white mode is selected, and the m registers corresponding to the black and white mode are opened.
3. The electronic paper multi-grayscale driving method according to claim 1, characterized in that: The above are respectively from 1 to 2 n The step of obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel includes: From 1st to 2nd n Get the kth array element from the register; Compare the first to the second according to the preset grayscale coding rule n The array elements obtained from the registers are used to obtain the grayscale encoding result corresponding to the k-th pixel data; The waveform of the k-th pixel is obtained according to the grayscale encoding result.
4. The electronic paper multi-grayscale driving method according to claim 3, characterized in that: The first to second grayscale codes are compared according to a preset grayscale coding rule. n The step of obtaining the grayscale encoding result corresponding to the k-th pixel data by using the array elements obtained from the registers comprises: Compare the 1st to 2nd n Are all the array elements obtained from the registers the same? If all are the same, the grayscale encoding result is set to the corresponding black pixel encoding result or white pixel encoding result; If they are not all the same, a preset grayscale pixel encoding comparison table is queried to obtain a corresponding grayscale value, and the grayscale value is set as the grayscale encoding result.
5. The electronic paper multi-grayscale driving method according to claim 4, characterized in that: If they are not all the same, the step of querying a preset grayscale pixel encoding comparison table to obtain a corresponding grayscale value, and setting the grayscale value as the grayscale encoding result includes: Count the 1st to 2nd n A first number of 0s and a second number of 1s in an array element obtained from a register, wherein 0 represents black and 1 represents white, or 0 represents white and 1 represents black; The grayscale pixel encoding comparison table is queried according to the first number and the second number to obtain corresponding grayscale values, wherein the grayscale loudness encoding comparison table contains different grayscale values corresponding to different numbers of 1s and 0s.
6. The electronic paper multi-grayscale driving method according to claim 1, characterized in that: The above are respectively from 1 to 2 n After the step of obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel, the method further includes: Checking whether each pixel of the image to be displayed has been driven; If there are still undriven pixels, the undriven pixels are used to perform the steps of sequentially acquiring the mth array element in each pixel data according to the set sequence to the steps of sequentially acquiring the mth array element in each pixel data according to the set sequence. n The steps between obtaining the kth array element from the registers and combining it into the kth pixel data to obtain the waveform of the kth pixel.
7. The electronic paper multi-grayscale driving method according to claim 3, characterized in that: Before the step of obtaining the waveform of the k-th pixel according to the grayscale encoding result, the method further includes: generating a driving time classification of the driving time according to the type of the grayscale encoding result; After the step of obtaining the waveform of the k-th pixel according to the grayscale encoding result, the method further includes: After acquiring the waveform of the k-th pixel, extracting the current driving time classification of the waveform; Obtaining a target driving time classification corresponding to the grayscale encoding result; If the current driving time classification is different from the target driving time classification, modifying the driving waveform data to the driving time corresponding to the target driving time classification; If the current driving time classification is the same as the target driving time classification, the driving waveform data is not modified.
8. An electronic paper multi-grayscale driving device, characterized in that: include: The pixel data acquisition module is used to acquire the pixel data of each pixel of the image to be displayed pre-stored in the array in a set order, and each of the pixel data includes 2 n array elements, where n is an integer greater than or equal to 2; A pixel data transfer module, used for sequentially acquiring the mth array element in each pixel data according to the set order, and sequentially storing all acquired array elements in the mth register according to the set order, so that the 1st to 2nth array elements in each pixel data are stored in the 1st to 2nth registers respectively, where 1≤m≤2n, and m is an integer; The pixel waveform acquisition module is used to obtain the kth array elements from the 1st to 2nth registers respectively to form the kth pixel data, so as to obtain the waveform of the kth pixel.
9. An electronic paper, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electronic paper multi-grayscale driving method according to any one of claims 1 to 7.
10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by the electronic paper, the electronic paper executes the electronic paper multi-grayscale driving method according to any one of claims 1 to 7.
Citation Information
Cited By
Method for driving four-color film material to display multiple colors through electronic paper three-color chip
CN121545462A
Method for displaying multi-colors by driving four-color film material with three-color chip of electronic paper
CN121545462B