Image processing method, device, equipment and storage medium based on ink screen
By establishing a grayscale mapping relationship table and constructing modulated waveform files, and converting the refresh sequence of the ink screen, the problems of large consumption of image processing resources and slow processing speed of traditional ink screens are solved, and more efficient and flexible image processing effects are achieved.
Patent Information
- Application Number
- CN202410402724.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-04-03
AI Technical Summary
Traditional ink screen image processing relies on CPU or software, resulting in high resource consumption and slow processing speed, making it difficult to achieve efficient and flexible image processing.
By establishing a mapping relationship table between the first grayscale and the second grayscale in the grayscale set, and constructing a modulated waveform file based on the table and the preset waveform file, the refresh sequence is converted to realize image processing.
This method can save equipment resources, improve processing efficiency, achieve more efficient and flexible effects of ink screen image processing, and provide users with faster response speed.
Smart Images

Figure CN118335021B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of ink screen technology, and in particular to an image processing method, device, equipment and storage medium based on an ink screen. Background Art
[0002] Electronic ink screen is also known as electronic paper display technology (EPD). The structure of this screen consists of two substrates, which are coated with electronic ink composed of countless tiny transparent particles. The ink consists of positively charged white particles and negatively charged black particles. If a positive charge is added to the two substrates, the black particles will move up and the white particles will sink, and the ink screen will display black; on the contrary, if a negative charge is added to the substrate, the white particles will move up and the black particles will sink, and the ink screen will display white. At this time, the electricity is removed, and the pattern can still remain unchanged on the screen for several months. At the same time, the ink screen particles do not emit light, but only reflect natural light, so it can play a good "eye protection" role.
[0003] In e-ink screen products, image processing is an important link. Traditional e-ink screen image processing mainly relies on CPU or software, but this often consumes a lot of resources and affects the processing speed. Therefore, how to achieve more efficient and flexible e-ink screen image processing on e-ink screen products has become an urgent problem to be solved in this field. Summary of the invention
[0004] The main purpose of this application is to provide an image processing method, device, equipment and storage medium based on ink screen, aiming to achieve more efficient and flexible effect of ink screen image processing.
[0005] To achieve the above-mentioned purpose, the present application provides an image processing method based on an ink screen, and the image processing method based on an ink screen comprises:
[0006] Establishing a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale;
[0007] Constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter;
[0008] A first modulated image of an image to be displayed is output based on the first modulation waveform file.
[0009] Optionally, before the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction, the method further includes:
[0010] After receiving the first image processing instruction, a grayscale set is created based on the full grayscale value of the ink screen, wherein the full grayscale value includes the first grayscale and the second grayscale.
[0011] Optionally, the step of constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file includes:
[0012] Searching for a first refresh sequence associated with the first grayscale index and a second refresh sequence associated with the second grayscale index in a preset waveform file;
[0013] The first grayscale index is associated with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file.
[0014] Optionally, the step of outputting a first modulated image of an image to be displayed based on the first modulated waveform file includes:
[0015] Perform pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data;
[0016] Querying the first modulation waveform file for a target refresh sequence corresponding to the first index data;
[0017] The first modulated image of the image to be displayed is output according to the target refresh sequence.
[0018] Optionally, after the step of constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, the method further includes:
[0019] Establishing a second mapping relationship table between the first grayscale and a third grayscale based on the first image processing instruction and the second image processing instruction, wherein the third grayscale is a grayscale obtained after performing the first image processing and the second image processing on the first grayscale;
[0020] Constructing a second modulation waveform file according to the second mapping relationship table and the waveform file, so that the first refresh sequence associated with the first grayscale index in the second modulation waveform file is converted into a third refresh sequence associated with a third grayscale index, wherein the third grayscale index is a waveform index with the third grayscale as an index parameter;
[0021] A second modulated image of an image to be displayed is output based on the second modulation waveform file.
[0022] Optionally, the method further comprises:
[0023] After receiving the first image processing instruction, determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition;
[0024] If the first image processing instruction satisfies the mapping relationship table creation condition, the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction and subsequent steps are performed.
[0025] Optionally, after the step of determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition, the method further includes:
[0026] If the first image processing instruction does not satisfy the mapping relationship table creation condition, performing the first image processing on the image to be displayed to obtain a third image;
[0027] Perform pixel comparison operation on the last frame display image and the third image to obtain second index data;
[0028] A third modulated image is output according to the second index data.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides an image processing device based on an ink screen, and the image processing device based on the ink screen includes:
[0030] A mapping relationship table establishment module, used to establish a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale;
[0031] a modulation waveform file construction module, configured to construct a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter;
[0032] A modulated image output module is used to output a first modulated image of an image to be displayed based on the first modulated waveform file.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal device, which includes: a memory, a processor, and an ink screen-based image processing program stored in the memory and runnable on the processor, and the ink screen-based image processing program, when executed by the processor, implements the steps of the ink screen-based image processing method as described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and on which is stored an ink screen-based image processing program. When the ink screen-based image processing program is executed by a processor, the steps of the ink screen-based image processing method as described above are implemented.
[0035] The present application proposes an ink screen-based image processing method, device, equipment and storage medium. The ink screen-based image processing method includes: establishing a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after a first image processing is performed on the first grayscale; constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter; outputting a first modulated image of an image to be displayed based on the first modulation waveform file.
[0036] The present application first establishes a mapping relationship between grayscales based on a first image processing instruction, and establishes a first relationship mapping table between a first grayscale and a second grayscale in a grayscale set, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale, to ensure that each grayscale in the grayscale set has a clear mapping conversion rule; then, a first modulation waveform file is constructed according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter, to ensure that the ink screen can refresh according to the grayscale after the first image processing when displaying an image; finally, based on the constructed first modulation waveform file, the image to be displayed is modulated, and a first modulated image is generated and output, to ensure that the image finally presented can accurately reflect the effect after image processing.
[0037] In this way, the present application realizes the effect of image processing on the ink screen display image by modifying the waveform file. Compared with the traditional image processing of the ink screen device, it can save device resources and improve processing efficiency, thereby achieving more efficient and flexible effect of ink screen image processing and providing users with better response speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application;
[0039] Figure 2 This is a schematic diagram of the flow of the first embodiment of the image processing method based on the ink screen of the present application;
[0040] Figure 3 This is a schematic diagram of the gamma processing flow involved in an embodiment of an image processing method based on an ink screen of the present application;
[0041] Figure 4 This is another gamma processing flow diagram involved in an embodiment of the image processing method based on the ink screen of the present application;
[0042] Figure 5 This is a schematic diagram of the functional modules of an embodiment of an image processing device based on an ink screen of the present application.
[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] 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.
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0047] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0048] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0049] An embodiment of the present application provides a terminal device, which may be an ink screen device.
[0050] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application.
[0051] like Figure 1 As shown, in the hardware operating environment of the terminal device, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0052] Those skilled in the art will understand that Figure 1The terminal device structure shown in the figure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an image processing program based on an ink screen.
[0054] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the ink screen-based image processing program stored in the memory 1005 and perform the following operations:
[0055] Establishing a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale;
[0056] Constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter;
[0057] A first modulated image of an image to be displayed is output based on the first modulation waveform file.
[0058] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0059] After receiving the first image processing instruction, a grayscale set is created based on the full grayscale value of the ink screen, wherein the full grayscale value includes the first grayscale and the second grayscale.
[0060] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0061] Searching for a first refresh sequence associated with the first grayscale index and a second refresh sequence associated with the second grayscale index in a preset waveform file;
[0062] The first grayscale index is associated with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file.
[0063] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0064] Perform pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data;
[0065] Querying the first modulation waveform file for a target refresh sequence corresponding to the first index data;
[0066] The first modulated image of the image to be displayed is output according to the target refresh sequence.
[0067] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0068] Establishing a second mapping relationship table between the first grayscale and a third grayscale based on the first image processing instruction and the second image processing instruction, wherein the third grayscale is a grayscale obtained after performing the first image processing and the second image processing on the first grayscale;
[0069] Constructing a second modulation waveform file according to the second mapping relationship table and the waveform file, so that the first refresh sequence associated with the first grayscale index in the second modulation waveform file is converted into a third refresh sequence associated with a third grayscale index, wherein the third grayscale index is a waveform index with the third grayscale as an index parameter;
[0070] A second modulated image of an image to be displayed is output based on the second modulation waveform file.
[0071] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0072] After receiving the first image processing instruction, determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition;
[0073] If the first image processing instruction satisfies the mapping relationship table creation condition, the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction and subsequent steps are performed.
[0074] Optionally, the processor 1001 may also be used to call an ink screen-based image processing program stored in the memory 1005, and perform the following operations:
[0075] If the first image processing instruction does not satisfy the mapping relationship table creation condition, performing the first image processing on the image to be displayed to obtain a third image;
[0076] Perform pixel comparison operation on the last frame display image and the third image to obtain second index data;
[0077] A third modulated image is output according to the second index data.
[0078] Based on the above hardware structure, the overall concept of each embodiment of the image processing method based on the ink screen of the present application is proposed.
[0079] Electronic ink screen is also known as electronic paper display technology. The structure of this screen consists of two substrates, which are coated with electronic ink composed of countless tiny transparent particles. The ink consists of positively charged white particles and negatively charged black particles. If a positive charge is added to the two substrates, the black particles will move up and the white particles will sink, and the ink screen will display black; on the contrary, if a negative charge is added to the substrate, the white particles will move up and the black particles will sink, and the ink screen will display white. At this time, the electricity is removed, and the pattern can still remain unchanged on the screen for several months. At the same time, the ink screen particles do not emit light, but only reflect natural light, so it can play a good "eye protection" role.
[0080] Image processing is an important link in e-ink screen products. Traditional e-ink screen image processing mainly relies on CPU or software, but this often consumes a lot of resources and affects the processing speed. Specifically, in e-ink screen products, traditional image processing generally has two implementation methods. One is that the CPU contains relevant hardware modules for image processing; the other is to perform image processing calculations on RGB through software, similar to exponential functions. However, the former requires specific hardware modules and is relatively rare in e-ink screen products. The latter supports any platform, but consumes the CPU resources and DDR bandwidth resources of the device. In order to be more universal, the latter is usually used. As the resolution of e-ink screens becomes higher and higher, the refresh speed requirements become higher and higher, and the time consumption of image processing algorithms cannot be ignored.
[0081] Therefore, how to achieve more efficient and flexible ink screen image processing on ink screen products has become an urgent problem to be solved in this field.
[0082] In response to the above problems, an embodiment of the present application proposes an image processing method based on an ink screen, the method comprising: establishing a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale; constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter; outputting a first modulated image of an image to be displayed based on the first modulation waveform file.
[0083] In an embodiment of the present application, a mapping relationship between grayscales is first established based on a first image processing instruction, and a first relationship mapping table between a first grayscale and a second grayscale in a grayscale set is established, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale, to ensure that each grayscale in the grayscale set has a clear mapping conversion rule; then, a first modulation waveform file is constructed according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, the first grayscale index being a waveform index with the first grayscale as an index parameter, and the second grayscale index being a waveform index with the second grayscale as an index parameter, to ensure that the ink screen can refresh according to the grayscale after the first image processing when displaying an image; finally, based on the constructed first modulation waveform file, the image to be displayed is modulated, and a first modulated image is generated and output, to ensure that the image finally presented can accurately reflect the effect after image processing.
[0084] In this way, compared with the traditional image processing method based on the ink screen, the present application realizes the effect of image processing on the ink screen display image by modifying the waveform file. Compared with the traditional image processing of the ink screen device, it can save device resources and improve processing efficiency at the same time, thereby achieving a more efficient and flexible effect of ink screen image processing, and providing users with a better response speed.
[0085] Based on the above-mentioned overall concept of the image processing method based on the ink screen of the present application, various embodiments of the image processing method based on the ink screen of the present application are proposed.
[0086] Please refer to Figure 2 , Figure 2 This is a flowchart of the first embodiment of the image processing method based on the ink screen of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order than here.
[0087] In this embodiment, for ease of understanding and explanation, the ink screen device is used as the direct execution subject in this embodiment to explain the image processing method based on the ink screen of this application.
[0088] like Figure 2 As shown, in this embodiment, the image processing method based on the ink screen of the present application may include:
[0089] Step S10: establishing a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale;
[0090] It should be noted that, in the present embodiment, the first image processing instruction is an instruction corresponding to the image processing algorithm applied to the ink screen product, and the instruction may be grayscale adjustment, grayscale enhancement, gamma processing, etc.
[0091] In this embodiment, the ink screen device identifies and analyzes the first image processing instruction to be executed, determines the mapping relationship of the grayscale conversion according to the specific requirements of the instruction, and after the determination, selects the grayscale set for which a mapping relationship needs to be established from the supported grayscale range, and records the correspondence between the first grayscale and the second grayscale that have a mapping relationship in the grayscale set in a mapping relationship table, i.e., the first mapping relationship table, wherein the second grayscale is the grayscale obtained after performing the first image processing on the first grayscale, and the first grayscale is any grayscale in the grayscale set.
[0092] Furthermore, in a feasible embodiment, before the above step S10, the ink screen-based image processing method of the present application may further include:
[0093] Step A10: after receiving the first image processing instruction, create a grayscale set based on the full grayscale value of the ink screen, wherein the full grayscale value includes the first grayscale and the second grayscale.
[0094] In this embodiment, after receiving the first image processing, the ink screen device creates a grayscale set based on its own full grayscale value, wherein the full grayscale value of the ink screen device refers to the grayscale range supported by the ink screen device, and the full grayscale value includes the first grayscale and the second grayscale.
[0095] For example, if the grayscale range supported by the ink screen device is 16 grayscales, the first mapping relationship table established includes 16*16 grayscale mapping relationships. If the grayscale range supported by the ink screen device is 32 grayscales, the first mapping relationship table established includes 32*32 grayscale mapping relationships.
[0096] In addition, in another feasible embodiment, the e-ink screen device can also pre-create a grayscale set according to its full grayscale value, and then call the grayscale set after receiving the first image processing.
[0097] Step S20: Construct a first modulation waveform file according to the first mapping table and a preset waveform file, so that the first refresh sequence associated with the first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with the second grayscale index, where the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter;
[0098] It should be noted that in this embodiment, the waveform file is usually provided by the manufacturer of the e-ink screen, and the waveform file defines the changes in voltage or current signals required when different contents are displayed on the e-ink screen; the first grayscale index is a waveform index with the first grayscale as an index parameter, and the expression of the first grayscale index is index=(Gx<<n)|Gy, where Gx is the grayscale value before the screen refresh, Gy is the grayscale value after the screen refresh. In this expression, both Gx and Gy represent index parameters, and n is the number of bits of the waveform file, usually 4 or 5, and can also be other values, which is specifically consistent with the definition of the waveform file. In this embodiment, the value of n is not specifically limited. The first refresh sequence associated with the first grayscale index is the refresh sequence corresponding to the waveform index when the first grayscale is Gx or the first grayscale is Gy. The second grayscale index is a waveform index with the second grayscale as an index parameter, which is the same as the first grayscale index and will not be elaborated in this embodiment.
[0099] In this embodiment, the e-ink screen device loads the pre-stored waveform file, then finds the second grayscale corresponding to each first grayscale according to the first mapping table, matches these mapping relationships with the refresh sequences in the waveform file, and adjusts the first refresh sequence associated with the first grayscale index according to the mapping relationship to make it converted into a second refresh sequence associated with the second grayscale index. Among them, the first refresh sequence associated with the first grayscale index includes the refresh sequence with the first grayscale as the grayscale value before the screen refresh and the refresh sequence with the first grayscale as the grayscale value after the screen refresh. The e-ink screen device integrates the adjusted refresh sequences into a new waveform file, that is, the first modulation waveform file, to ensure that each grayscale in this file has a correct refresh sequence corresponding to it.
[0100] In a feasible embodiment, the first image processing is gamma processing, the Gx grayscale is converted to Gx_new after gamma processing, and the Gy grayscale is converted to Gy_new after gamma processing, then the expression of the first grayscale index is converted to index_new = (Gx_new<<4)|Gy_new, exemplarily, the grayscale set includes G0, G1, G2, G3, G4...G16 grayscales, and the grayscales obtained after gamma processing of these grayscales are G0, G0, G1, G2, G3...G15, and the ink screen device establishes a first mapping relationship table according to its mapping relationship. In the waveform file pre-stored in the ink screen device, the refresh sequence of GO->GO is recorded as sequence A, the refresh sequence of G0->G1 is sequence B, the refresh sequence of GO->G2 is sequence C, the refresh sequence of GO->G3 is sequence D, and the refresh sequence of G1->G2 is sequence C. is sequence E, the refresh sequence of G2->G3 is sequence F..., after mapping according to the first mapping relationship table, in the first modulation waveform file obtained, GO->G1 is actually the sequence of GO->GO, that is, sequence A, GO->G1 is actually the sequence of G0->GO, that is, sequence A, G0->G2 is actually the sequence of G0->G1, that is, sequence B, GO->G3 is actually the sequence of G0->G2, that is, sequence C, G1->G2 is actually the sequence of G0->G1, that is, sequence B, G2->G3 is actually the sequence of G1->G2, that is, sequence E..., that is, in the first modulation waveform file, it is recorded that the refresh sequence of GO->GO is sequence A, the refresh sequence of G0->G1 is sequence A, the refresh sequence of GO->G2 is sequence B, the refresh sequence of GO->G3 is sequence C, the refresh sequence of G1->G2 is sequence B, and the refresh sequence of G2->G3 is sequence E.
[0101] In addition, in a feasible embodiment, the ink screen device needs to rebuild the waveform file when the refresh mode, the first image processing switch, or the first image processing level changes.
[0102] Exemplarily, when the refresh mode of the ink screen device switches between multiple refresh modes such as full refresh, fast refresh and partial refresh, due to the differences in the refresh sequences of different refresh modes, the first modulation waveform file of the ink screen needs to be constructed according to the refresh sequences of different refresh modes; taking the first image processing as gamma processing as an example, after the ink screen device receives a gamma processing instruction, a gamma processing off instruction or a gamma processing level change instruction, due to the change in the mapping relationship between grayscales, the first modulation waveform file of the ink screen needs to be constructed according to the new grayscale mapping relationship table.
[0103] Step S30: outputting a first modulated image of an image to be displayed based on the first modulation waveform file.
[0104] In this embodiment, the ink screen device searches for a refresh sequence corresponding to the grayscale information of the image to be displayed in the first modulation waveform file, and generates and outputs a first modulated image of the image to be displayed according to the refresh sequence. The effect of the first modulated image presented on the display screen of the ink screen device is the effect of the image to be displayed after the first image processing.
[0105] Exemplarily, in a feasible embodiment, taking gamma processing as the first image processing as an example, assuming that old_gray is used to represent the grayscale before gamma processing, and new_gray is used to represent the grayscale after gamma processing, the traditional gamma image processing solution for the ink screen device is to search for the waveform file according to new_gray, for example, the sequence A=[1 11 1 0 0 0 0] is found, while in this embodiment, the modified waveform file, that is, the first modulated waveform file, is directly searched according to old_gray, and the data of new_gray is replaced with the position of old_gray in the first modulated waveform file, thereby achieving the same display effect as the traditional image processing, but because the data of one frame of the waveform file is very small, generally 256 bytes, which is much smaller than the data of several MB of the image to be displayed, the processing speed of the ink screen device can be greatly improved, giving the user a smoother refresh experience when using the ink screen device, while saving the computing resources of the ink screen device.
[0106] In an embodiment of the present application, a mapping relationship between grayscales is first established based on a first image processing instruction, and a first relationship mapping table between a first grayscale and a second grayscale in a grayscale set is established, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale, to ensure that each grayscale in the grayscale set has a clear mapping conversion rule; then, a first modulation waveform file is constructed according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, the first grayscale index being a waveform index with the first grayscale as an index parameter, and the second grayscale index being a waveform index with the second grayscale as an index parameter, to ensure that the ink screen can refresh according to the grayscale after the first image processing when displaying an image; finally, based on the constructed first modulation waveform file, the image to be displayed is modulated, and a first modulated image is generated and output, to ensure that the image finally presented can accurately reflect the effect after image processing.
[0107] In this way, the embodiment of the present application achieves the effect of performing image processing on the ink screen display image by modifying the waveform file. Compared with the traditional image processing of the ink screen device, it can save device resources and improve processing efficiency, thereby achieving a more efficient and flexible effect of ink screen image processing and providing users with a better response speed.
[0108] Furthermore, based on the above-mentioned first embodiment of the image processing method based on the ink screen of the present application, a second embodiment of the image processing method based on the ink screen of the present application is proposed.
[0109] In this embodiment, the above step S20: constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file includes:
[0110] Step S201: searching a preset waveform file for a first refresh sequence associated with the first grayscale index and a second refresh sequence associated with the second grayscale index;
[0111] In this embodiment, the ink screen device searches for a first refresh sequence associated with a first grayscale index and a second refresh sequence associated with a second grayscale index in a preset waveform file, wherein the first refresh sequence associated with the first grayscale index includes a refresh sequence with the first grayscale as the grayscale before the screen refreshes and a refresh sequence with the first grayscale as the grayscale after the screen refreshes, and the second refresh sequence associated with the second grayscale index includes a refresh sequence with the second grayscale as the grayscale before the screen refreshes and a refresh sequence with the second grayscale as the grayscale after the screen refreshes.
[0112] Step S202: Associating the first grayscale index with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file.
[0113] In this embodiment, the ink screen device associates the first grayscale index with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file. It should be noted that when the first grayscale is used as the grayscale before the screen refreshes, the second grayscale originally corresponding to the second refresh sequence is also used as the grayscale before the screen refreshes, and when the first grayscale is used as the grayscale after the screen refreshes, the second grayscale originally corresponding to the second refresh sequence is also used as the grayscale after the screen refreshes.
[0114] Exemplarily, the first refresh sequence associated with the first grayscale G2' includes sequence 1 corresponding to G2'->G0' and sequence 2 corresponding to G0'->G2', the second grayscale G1' is the grayscale after G2' performs the first image processing, and the second refresh sequence associated with the second grayscale G1' includes sequence 3 corresponding to G1'->G0' and sequence 4 corresponding to G0'->G1'. In the first modulation waveform file obtained after mapping conversion, the refresh sequence associated with the first grayscale G2' becomes sequence 3 corresponding to G2'->G0' and sequence 4 corresponding to G0'->G2'.
[0115] Further, in a feasible embodiment, the above step S30: outputting a first modulated image of an image to be displayed based on the first modulated waveform file includes:
[0116] Step S301: performing a pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data;
[0117] In this embodiment, the last frame of displayed image is the original image of the image currently displayed on the display interface of the ink screen device, and the image to be displayed is the original image of the image to be displayed on the display interface. The ink screen device performs a pixel comparison operation on the last frame of displayed image and the image to be displayed to obtain the grayscale value change of each pixel in the two images. The grayscale value change data of each pixel in the two images is the first index data.
[0118] Step S302: Querying the target refresh sequence corresponding to the first index data in the first modulation waveform file;
[0119] In this embodiment, the ink screen device queries the target refresh sequence corresponding to the first index data in the first modulation waveform file. There are usually multiple target refresh sequences queried. The ink screen device refreshes the display interface according to these multiple target refresh sequences to obtain the effect image of the image to be displayed after the first image processing.
[0120] Step S303: outputting the first modulated image of the image to be displayed according to the target refresh sequence.
[0121] In this embodiment, the ink screen device controls the pixel points to reach the expected pixel grayscale value by sending a driving pulse corresponding to the target refresh sequence to the display controller configured by itself. The driving pulse includes a change signal of the voltage difference (driving voltage) between the electrodes on both sides of the ink capsule and the duration of the change signal (represented in the form of frames). The display controller controls the ink capsule according to the driving pulse to change the pixel grayscale value, so that the display interface of the ink screen device outputs the first modulated image of the image to be displayed.
[0122] Further, in a feasible embodiment, after the above step S20: constructing the first modulation waveform file according to the first mapping relationship table and the preset waveform file, the image processing method based on the ink screen of the present application may also include:
[0123] Step S40: establishing a second mapping relationship table between the first grayscale and a third grayscale based on the first image processing instruction and the second image processing instruction, wherein the third grayscale is a grayscale obtained after performing the first image processing and the second image processing on the first grayscale;
[0124] It should be noted that in this embodiment, when the ink screen device receives more than one image processing instructions, the ink screen device will determine the mapping relationship of the grayscale conversion in turn according to the specific requirements of the instructions. The first image instruction and the second image instruction are instructions corresponding to two different image processing algorithms applied to the ink screen device.
[0125] In this embodiment, the ink screen device establishes a second mapping relationship table between the first grayscale and the third grayscale based on the received first image processing instructions and the second image processing instructions, wherein the third grayscale is the grayscale obtained after performing the first image processing and the second image processing on the first grayscale.
[0126] Step S50: constructing a second modulation waveform file according to the second mapping relationship table and the waveform file, so that the first refresh sequence associated with the first grayscale index in the second modulation waveform file is converted into a third refresh sequence associated with a third grayscale index, wherein the third grayscale index is a waveform index with the third grayscale as an index parameter;
[0127] In this embodiment, the ink screen device loads the waveform file, and then finds the third gray scale corresponding to each first gray scale according to the second mapping relationship table, matches these mapping relationships with the refresh sequence in the waveform file, and adjusts the first refresh sequence associated with the first gray scale index according to the mapping relationship to convert it into a third refresh sequence associated with the third gray scale index. The ink screen device integrates the adjusted refresh sequence into a new waveform file, namely the second modulated waveform file, to ensure that each gray scale in the file has a corresponding correct refresh sequence.
[0128] Exemplarily, in a feasible embodiment, Exemplarily, in a feasible embodiment, the first image processing is gamma processing, the second image processing is image flip processing, the grayscale set includes G0", G1", G2", G3", and G4" grayscales, and the grayscales obtained after gamma processing on the grayscales in the grayscale set are G0", G0", G1", G2", and G3", and the grayscales obtained after image flipping processing on the grayscales in the grayscale set are 255-G0", 255-G1", 255-G2", 255-G3", and 255-G4" grayscales. In the waveform file pre-stored in the ink screen device, the refresh sequence of GO"->GO" is recorded as sequence A, the refresh sequence of G0"->G1" is sequence B, the refresh sequence of GO"->G2" is sequence C, the refresh sequence of GO"->G3" is sequence D, and the refresh sequence of G1"->G2" is sequence E, and the refresh sequence of G2"->G3" is sequence D. ->G3" is sequence F", the refresh sequence of 255-GO"->255-GO" is sequence 1", the refresh sequence of 255-G0"->255-G1" is sequence 2", the refresh sequence of 255-GO"->255-G2" is sequence 3", the refresh sequence of 255-GO"->255-G3" is sequence 4", the refresh sequence of 255-G1"->255-G2" is sequence 5", and the refresh sequence of 255-G2"->255-G3" is sequence 6"; after mapping according to the second mapping relationship table, in the second modulation waveform file obtained, the refresh sequence of GO"->GO" is sequence 1", the refresh sequence of G0"->G1" is sequence 1", the refresh sequence of GO"->G2" is sequence 2", the refresh sequence of GO"->G3" is sequence 3", the refresh sequence of G1"->G2" is sequence 2", and the refresh sequence of G2"->G3" is sequence 5".
[0129] Step S60: outputting a second modulated image of an image to be displayed based on the second modulation waveform file.
[0130] In this embodiment, the ink screen device searches for a refresh sequence corresponding to the grayscale information of the image to be displayed in the second modulation waveform file, and generates and outputs a second modulated image of the image to be displayed according to the refresh sequence. The effect of the second modulated image presented on the display screen of the ink screen device is the effect of the image to be displayed after the first image processing and the second image processing are performed in sequence.
[0131] In addition, in a feasible embodiment, the ink screen device can of course perform more image processing operations in sequence, and generate a corresponding modulation waveform file according to the specific requirements of each image processing, which is not elaborated in this embodiment.
[0132] Furthermore, in a feasible embodiment, the ink screen-based image processing method of the present application may also include:
[0133] Step B10: after receiving the first image processing instruction, determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition;
[0134] In this embodiment, after receiving the first image processing instruction, the ink screen device first parses the instruction, and determines whether the first image processing operation corresponding to the instruction satisfies the preset mapping relationship table creation condition based on the analysis result, wherein the mapping relationship table creation condition is that there is a fixed mapping relationship between the first grayscale and the second grayscale and the mapping relationship is independent of the grayscale position.
[0135] Step B20: If the first image processing instruction satisfies the mapping relationship table creation condition, the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction and subsequent steps are executed.
[0136] In this embodiment, after the ink screen device determines that the first image processing instruction satisfies the mapping relationship table creation condition, it can establish a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction, and construct a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that the first refresh sequence associated with the first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with the second grayscale index; and output a first modulated image of the image to be displayed based on the first modulation waveform file.
[0137] Furthermore, in another feasible embodiment, after step B10, the ink screen-based image processing method of the present application may further include:
[0138] Step B30: if the first image processing instruction does not satisfy the mapping relationship table creation condition, performing the first image processing on the image to be displayed to obtain a third image;
[0139] Step B40: performing a pixel comparison operation on the last frame display image and the third image to obtain second index data;
[0140] Step B50: Output a third modulated image according to the second index data.
[0141] In this embodiment, if the first image processing instruction does not meet the mapping relationship table creation conditions, the ink screen device will directly perform the first image processing on the image to be displayed to obtain the third image, and then perform a pixel comparison operation on the previous frame display image and the third modulated image to obtain the second index data, and query the corresponding refresh sequence in the waveform file according to the second index data, and drive the device display interface to output the third modulated image according to the refresh sequence.
[0142] For example, in a feasible embodiment, taking the first image processing as gamma processing as an example, after receiving the gamma processing instruction, the ink screen device first determines whether the gamma processing meets the mapping relationship table creation condition. Assuming that the gamma processing does not meet the mapping relationship table creation condition, Figure 3 As shown, the ink screen device sends the original image RGB to be displayed to the gamma processing module, performs contrast stretching processing on the color, and obtains the current frame image, that is, the third image. Then, the previous frame image and the current frame image are compared to generate an index value, that is, the second index data. Assuming that a pixel value of the previous frame is Gx grayscale, and the pixel of the current frame is Gy grayscale, then the index value index = Gx->Gy, that is, the grayscale change relationship of the pixel is included. The encoding module of the ink screen device searches the waveform file according to the index value, finds the refresh sequence of this grayscale change, and then sends it to the screen for display according to certain rules.
[0143] If the gamma processing meets the conditions for creating a mapping relationship table, then Figure 4 As shown, the ink screen device does not need to perform gamma processing on the input image. After comparing the previous frame image with the current frame image, an index value is generated. Then, through the modified waveform file, that is, the first modulation waveform file, the first modulation waveform file is searched according to the generated index value to find the refresh sequence of this grayscale change in the first modulation waveform file, and then send it to the screen for display.
[0144] In this way, in response to the unique screen refreshing process of the ink screen device, in this embodiment, the waveform file that occupies a small amount of data resources is modified according to the mapping relationship of the grayscale changes before and after the image processing process, instead of performing image processing on the displayed image, which saves a lot of CPU resources and DDR resources of the ink screen device. Compared with the traditional image processing process, it is almost time-consuming, which brings faster response speed to users.
[0145] In addition, an embodiment of the present application also proposes an image processing device based on an ink screen.
[0146] Please refer to Figure 5 The image processing device based on the ink screen of the present application includes:
[0147] A mapping relationship table establishing module 10, configured to establish a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale;
[0148] a modulation waveform file construction module 20, configured to construct a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter;
[0149] The modulated image output module 30 is used to output a first modulated image of an image to be displayed based on the first modulation waveform file.
[0150] Optionally, the image processing device based on the ink screen of the present application further includes:
[0151] A grayscale set creation module is used to create a grayscale set based on the full grayscale value of the ink screen after receiving the first image processing instruction, wherein the full grayscale value includes the first grayscale and the second grayscale.
[0152] Optionally, the modulation waveform file construction module 20 is further used to:
[0153] Searching for a first refresh sequence associated with the first grayscale index and a second refresh sequence associated with the second grayscale index in a preset waveform file;
[0154] The first grayscale index is associated with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file.
[0155] Optionally, the modulated image output module 30 is further used for:
[0156] Perform pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data;
[0157] Querying the first modulation waveform file for a target refresh sequence corresponding to the first index data;
[0158] The first modulated image of the image to be displayed is output according to the target refresh sequence.
[0159] Optionally, the mapping relationship table establishing module 10 is further used to establish a second mapping relationship table between the first grayscale and a third grayscale based on the first image processing instruction and the second image processing instruction, wherein the third grayscale is a grayscale obtained after performing the first image processing and the second image processing on the first grayscale;
[0160] The modulation waveform file construction module 20 is further used to construct a second modulation waveform file according to the second mapping relationship table and the waveform file, so that the first refresh sequence associated with the first grayscale index in the second modulation waveform file is converted into a third refresh sequence associated with a third grayscale index, wherein the third grayscale index is a waveform index with the third grayscale as an index parameter;
[0161] The modulated image output module 30 is further configured to output a second modulated image of an image to be displayed based on the second modulated waveform file.
[0162] Optionally, the image processing device based on the ink screen of the present application further includes:
[0163] A judgment module is used to determine whether the first image processing instruction satisfies a preset mapping relationship table creation condition after receiving the first image processing instruction; if the first image processing instruction satisfies the mapping relationship table creation condition, then execute the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction and subsequent steps.
[0164] Optionally, the judging module is further configured to:
[0165] If the first image processing instruction does not satisfy the mapping relationship table creation condition, performing the first image processing on the image to be displayed to obtain a third image;
[0166] Perform pixel comparison operation on the last frame display image and the third image to obtain second index data;
[0167] A third modulated image is output according to the second index data.
[0168] Among them, the functional implementation of each module in the above-mentioned ink screen-based image processing device corresponds to the various steps in the above-mentioned ink screen-based image processing method embodiment, and its functions and implementation processes will not be repeated here one by one.
[0169] In addition, the present application also proposes a storage medium, on which a program for image processing based on an ink screen is stored. When the program for image processing based on an ink screen is executed by a processor, the steps of the image processing method based on an ink screen of the present application as described above are implemented.
[0170] The specific embodiments of the storage medium of the present application are basically the same as the embodiments of the above-mentioned ink screen-based image processing method, and will not be repeated here.
[0171] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0172] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and 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 image processing method based on ink screen, characterized in that: The ink screen-based image processing method comprises: A first mapping relationship table between a first grayscale and a second grayscale in a grayscale set is established based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale, and the first image processing instruction is an instruction corresponding to an image processing algorithm applied to an ink screen product; Constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter; Outputting a first modulated image of an image to be displayed based on the first modulated waveform file; The step of outputting a first modulated image of an image to be displayed based on the first modulated waveform file comprises: Perform pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data; Querying the first modulation waveform file for a target refresh sequence corresponding to the first index data; The first modulated image of the image to be displayed is output according to the target refresh sequence.
2. The image processing method based on ink screen according to claim 1, characterized in that: Before the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction, the method further includes: After receiving the first image processing instruction, a grayscale set is created based on the full grayscale value of the ink screen, wherein the full grayscale value includes the first grayscale and the second grayscale.
3. The image processing method based on ink screen according to claim 1, characterized in that: The step of constructing a first modulation waveform file according to the first mapping relationship table and a preset waveform file includes: Searching for a first refresh sequence associated with the first grayscale index and a second refresh sequence associated with the second grayscale index in a preset waveform file; The first grayscale index is associated with the second refresh sequence according to the first mapping relationship table to obtain a first modulation waveform file.
4. The image processing method based on ink screen according to claim 1, characterized in that: The method further comprises: Establishing a second mapping relationship table between the first grayscale and a third grayscale based on the first image processing instruction and the second image processing instruction, wherein the third grayscale is a grayscale obtained after performing the first image processing and the second image processing on the first grayscale; Constructing a second modulation waveform file according to the second mapping relationship table and the waveform file, so that the first refresh sequence associated with the first grayscale index in the second modulation waveform file is converted into a third refresh sequence associated with a third grayscale index, wherein the third grayscale index is a waveform index with the third grayscale as an index parameter; A second modulated image of an image to be displayed is output based on the second modulation waveform file.
5. The image processing method based on ink screen according to claim 1, characterized in that: The method further comprises: After receiving the first image processing instruction, determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition; If the first image processing instruction satisfies the mapping relationship table creation condition, the step of establishing a first mapping relationship table between the first grayscale and the second grayscale in the grayscale set based on the first image processing instruction and subsequent steps are performed.
6. The image processing method based on ink screen according to claim 5, characterized in that: After the step of determining whether the first image processing instruction satisfies a preset mapping relationship table creation condition, the method further includes: If the first image processing instruction does not satisfy the mapping relationship table creation condition, performing the first image processing on the image to be displayed to obtain a third image; Perform pixel comparison operation on the last frame display image and the third image to obtain second index data; A third modulated image is output according to the second index data.
7. An image processing device based on an ink screen, characterized in that: The ink screen-based image processing device comprises: a mapping relationship table establishment module, used to establish a first mapping relationship table between a first grayscale and a second grayscale in a grayscale set based on a first image processing instruction, wherein the second grayscale is a grayscale obtained after performing a first image processing on the first grayscale, and the first image processing instruction is an instruction corresponding to an image processing algorithm applied to an ink screen product; a modulation waveform file construction module, configured to construct a first modulation waveform file according to the first mapping relationship table and a preset waveform file, so that a first refresh sequence associated with a first grayscale index in the first modulation waveform file is converted into a second refresh sequence associated with a second grayscale index, wherein the first grayscale index is a waveform index with the first grayscale as an index parameter, and the second grayscale index is a waveform index with the second grayscale as an index parameter; A modulated image output module, used for outputting a first modulated image of an image to be displayed based on the first modulated waveform file; The modulated image output module is also used for: Perform pixel comparison operation on the last displayed image and the image to be displayed to obtain first index data; Querying the first modulation waveform file for a target refresh sequence corresponding to the first index data; The first modulated image of the image to be displayed is output according to the target refresh sequence.
8. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and an ink screen-based image processing program stored in the memory and executable on the processor. When the ink screen-based image processing program is executed by the processor, the steps of the ink screen-based image processing method as described in any one of claims 1 to 6 are implemented.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which is stored a program for implementing an image processing method based on an ink screen. The program for implementing an image processing method based on an ink screen is executed by a processor to implement the steps of the image processing method based on an ink screen as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Electronic ink screen driving method and device based on GPU, medium and equipment
CN116364023A
Color ink screen driving method and device and storage medium
CN117198232A