Full-color electronic paper brightness adjustment optimization method and device based on jitter algorithm, terminal equipment and storage medium

Through the full-color electronic paper brightness adjustment method based on the jitter algorithm, the problems of data overflow and color error in the prior art are solved, and efficient and accurate brightness adjustment is achieved.

CN119920208AActive Publication Date: 2025-05-02JIANGXI XINGTAI TECH INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510175765.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-05-02
Estimated Expiration
2045-02-18

AI Technical Summary

Technical Problem

In the prior art, when the brightness adjustment of the input screen is directly performed, the brightest point is already the brightest and cannot increase the brightness, resulting in data overflow and color errors.

Method used

The full-color electronic paper brightness adjustment method based on the jitter algorithm is adopted. By obtaining all pixel points in the picture to be adjusted, the three primary color values ​​of each color of the full-color electronic paper are adjusted, the target color of each pixel point is determined, and the adjustment is made according to the European distance and color error to avoid data overflow.

Benefits of technology

The brightness adjustment of full-color electronic paper is achieved without data overflow, reducing color errors during the brightness adjustment process, and ensuring the integrity of picture information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119920208A_ABST
    Figure CN119920208A_ABST
Patent Text Reader

Abstract

The invention discloses a full-color electronic paper brightness adjustment optimization method and device based on a jitter algorithm, terminal equipment and a storage medium. The method comprises the steps of obtaining all pixel points of a picture to be subjected to brightness adjustment; correspondingly adjusting the original three-primary-color value of each color of the full-color electronic paper based on the brightness adjustment requirement of the to-be-adjusted picture to obtain the adjusted three-primary-color value of each color of the full-color electronic paper; repeatedly executing the target color determination operation until a target color corresponding to each pixel point in the to-be-adjusted picture after brightness adjustment is determined; determining an original three-primary color value corresponding to each target color, and obtaining a three-primary color value corresponding to each pixel point in the to-be-adjusted picture after brightness adjustment; and outputting the picture after brightness adjustment through the full-color electronic paper according to the corresponding three-primary color value required after the brightness adjustment of each pixel point in the picture to be adjusted. According to the invention, the brightness of the to-be-adjusted brightness picture can be adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing and display technology, and in particular to a full-color electronic paper brightness adjustment optimization method, device, terminal equipment and storage medium based on a dithering algorithm. Background Art

[0002] In the prior art, the brightness adjustment method of the picture is usually to directly adjust the brightness of the input picture to increase the brightness. Of course, the problem of this method is also obvious. If it is already the brightest point, it cannot be brighter, and the whole picture will have color errors. For example: A=(200, 200, 200) increases the brightness by 1.2, then A=(240, 240, 240). Adjusting the brightness in this way will not cause errors, but if A=(220, 220, 220) increases the brightness by 1.2, 220*1.2=264, then A is not (264, 264, 264) but (255, 255, 255), which will produce 1-255 / 264=0.03, that is, there will be a 3% error. Therefore, the method of directly adjusting the brightness of the input picture has limitations. If it is already the brightest point, increasing the brightness will cause data overflow, and the overflowed part of the data cannot be expressed, and the whole picture will have color errors. Summary of the invention

[0003] The embodiments of the present invention provide a full-color electronic paper brightness adjustment optimization method, device, terminal equipment and storage medium based on a dithering algorithm. The present invention can adjust the brightness of a picture to be adjusted through full-color electronic paper based on the dithering algorithm.

[0004] An embodiment of the present invention provides a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm, comprising:

[0005] Get all the pixels of the image whose brightness is to be adjusted;

[0006] Based on the brightness adjustment requirement of the image to be adjusted, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper;

[0007] Repeat the target color determination operation until the target color corresponding to each pixel in the image to be adjusted after brightness adjustment is determined;

[0008] Determine the original three primary color values ​​corresponding to each target color, and obtain the three primary color values ​​corresponding to each pixel in the image to be adjusted after brightness adjustment;

[0009] The full-color electronic paper is used to adjust the brightness of each pixel in the image to be adjusted according to the three primary color values ​​required to correspond to the brightness, and output the image after the brightness adjustment;

[0010] The target color determination operation includes: selecting a current pixel point of an undetermined target color from the image to be adjusted;

[0011] According to the current three primary color values ​​of the current pixel point and the adjusted three primary color values ​​of each color of the full-color electronic paper, the Euclidean distance between the current pixel point and each color of the full-color electronic paper is calculated, and the color with the smallest Euclidean distance is selected as the target color;

[0012] When it is determined that there are pixels whose target colors are not determined in the image to be adjusted, the color error is calculated according to the three primary color values ​​after the target colors are adjusted and the current three primary color values ​​of the current pixel;

[0013] The color error is distributed to the pixel points directly adjacent to the current pixel point according to a preset ratio, and the three primary color values ​​of the directly adjacent pixel points are adjusted.

[0014] Furthermore, based on the brightness adjustment requirement of the image to be adjusted, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper, including:

[0015] Get the original three primary color values ​​of each color of the full-color electronic paper;

[0016] Based on the brightness adjustment requirement of the image to be adjusted, determine the brightness adjustment factor and the brightness adjustment value;

[0017] Multiplying the original three primary color values ​​of each color of the full-color electronic paper by the brightness adjustment factor respectively to obtain the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment;

[0018] According to the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment and the brightness adjustment value, the three primary color values ​​of each color of the full-color electronic paper after adjustment are obtained.

[0019] Furthermore, the Euclidean distance between the current pixel and each color of the full-color electronic paper is calculated by the following formula:

[0020] d=((R P -R r ) 2 +(G P -G r ) 2 +(B P -B r ) 2 ) 1 / 2 ;

[0021] Where d is the Euclidean distance, R P is the red component value of the three primary colors of the current pixel, R rG is the red component value of the three primary colors of the full-color electronic paper after adjustment. P G is the green component value of the three primary colors of the current pixel. r B is the green component value of the three primary color values ​​of each color of the full-color electronic paper after adjustment. P is the blue component value of the three primary colors of the current pixel, B r It is the blue component value of the three primary color values ​​after adjustment of each color of the full-color electronic paper.

[0022] Furthermore, the color error is calculated by the following formula:

[0023] Color error = current three primary color values ​​of the pixel point - three primary color values ​​after target color adjustment.

[0024] Furthermore, the three primary color values ​​of directly adjacent pixels are adjusted through the following steps:

[0025] Calculate the color errors allocated to each pixel directly adjacent to the current pixel according to a preset allocation ratio;

[0026] Add the three primary color values ​​of each directly adjacent pixel to the corresponding assigned color error;

[0027] The adjusted three primary color values ​​of each directly adjacent pixel are obtained.

[0028] Another embodiment of the present invention provides a full-color electronic paper brightness adjustment optimization device based on a dithering algorithm, comprising: a pixel point acquisition module, a three-primary color value adjustment module, a target color determination module, a target color three-primary color value determination module, and a picture output module;

[0029] The pixel acquisition module is used to acquire all pixel points of the image to be adjusted in brightness;

[0030] The three primary color value adjustment module is used to adjust the original three primary color values ​​of each color of the full-color electronic paper accordingly based on the brightness adjustment requirements of the image to be adjusted, so as to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper;

[0031] The target color determination module is used to repeatedly perform the target color determination operation until the target color corresponding to each pixel point in the image to be adjusted after the brightness adjustment is determined; wherein the target color determination operation includes: selecting a current pixel point of an undetermined target color from the image to be adjusted; calculating the Euclidean distance between the current pixel point and each color of the full-color electronic paper according to the current three primary color values ​​of the current pixel point and the adjusted three primary color values ​​of each color of the full-color electronic paper, and selecting the color with the smallest Euclidean distance as the target color; when it is determined that there is a pixel point of an undetermined target color in the image to be adjusted, calculating the color error according to the adjusted three primary color values ​​of the target color and the current three primary color values ​​of the current pixel point; allocating the color error to the pixel points directly adjacent to the current pixel point according to a preset ratio, and adjusting the three primary color values ​​of the directly adjacent pixel points;

[0032] The target color three-primary color value determination module is used to determine the original three-primary color values ​​corresponding to each target color, and obtain the three-primary color values ​​corresponding to each pixel point in the image to be adjusted after brightness adjustment;

[0033] The picture output module is used to output the picture after brightness adjustment through the full-color electronic paper according to the three primary color values ​​corresponding to the brightness adjustment of each pixel in the picture to be adjusted.

[0034] Further, the three primary color value adjustment module includes: an original value acquisition unit, an adjustment parameter determination unit, a preliminary adjustment unit, and a final adjustment unit;

[0035] The original value acquisition unit is used to acquire the original three primary color values ​​of each color of the full-color electronic paper;

[0036] The adjustment parameter determination unit is used to determine a brightness adjustment factor and a brightness adjustment value based on a brightness adjustment requirement of the picture to be adjusted;

[0037] The preliminary adjustment unit is used to multiply the original three primary color values ​​of each color of the full-color electronic paper by the brightness adjustment factor to obtain the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment;

[0038] The final adjustment unit is used to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper according to the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment and the brightness adjustment value.

[0039] Furthermore, the Euclidean distance between the current pixel and each color of the full-color electronic paper is calculated by the following formula:

[0040] d=((R P -R r ) 2 +(G P -G r) 2 +(B P -B r ) 2 ) 1 / 2 ;

[0041] Where d is the Euclidean distance, R P is the red component value of the three primary colors of the current pixel, R r G is the red component value of the three primary colors of the full-color electronic paper after adjustment. P G is the green component value of the three primary colors of the current pixel. r B is the green component value of the three primary color values ​​of each color of the full-color electronic paper after adjustment. P is the blue component value of the three primary colors of the current pixel, B r It is the blue component value of the three primary color values ​​after adjustment of each color of the full-color electronic paper.

[0042] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a full-color electronic paper brightness adjustment optimization method based on a jitter algorithm as described in any one of the embodiments is implemented.

[0043] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as described in any of the above embodiments.

[0044] The following beneficial effects are achieved by implementing the present invention:

[0045] The present invention discloses a full-color electronic paper brightness adjustment optimization method, device, terminal equipment and storage medium based on a dithering algorithm. The method obtains all pixel points of a brightness picture to be adjusted; based on the brightness adjustment requirements of the picture to be adjusted, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper; repeatedly performs a target color determination operation until a target color corresponding to each pixel point in the picture to be adjusted after brightness adjustment is determined; determines the original three primary color values ​​corresponding to each target color to obtain the three primary color values ​​required to correspond to each pixel point in the picture to be adjusted after brightness adjustment; and outputs the picture after brightness adjustment according to the three primary color values ​​required to correspond to each pixel point in the picture to be adjusted through the full-color electronic paper. In the present invention, the three primary color values ​​of all colors of the full-color electronic paper are adjusted according to the demand for brightness adjustment. The target color of the image to be adjusted in brightness is determined based on a dithering algorithm through the adjusted three primary color values ​​of all colors of the full-color electronic paper. Finally, the image after brightness adjustment is output through the original three primary color values ​​corresponding to the target color. The output image after brightness adjustment uses the original three primary color values ​​of the full-color electronic paper. Therefore, data overflow will not occur in the brightness adjustment of the present invention, thereby reducing errors in the brightness adjustment process. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 The present invention is a flowchart of a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm provided in an embodiment of the present invention.

[0047] Figure 2 It is a schematic diagram of adjusting the brightness of an image using a numerical method provided by an embodiment of the present invention.

[0048] Figure 3 It is a schematic diagram comparing the dithering algorithm provided by an embodiment of the present invention and the numerical method for adjusting the brightness of an image.

[0049] Figure 4 It is a structural schematic diagram of a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0052] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0053] like Figure 1 FIG. 1 is a flow chart of a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm provided by an embodiment of the present invention, comprising the following steps:

[0054] Step S1, obtaining all pixel points of the image to be adjusted in brightness;

[0055] In the present invention, all pixels in the image to be adjusted in brightness and the three primary color values ​​corresponding to all pixels are obtained to provide a data basis for calculation in subsequent brightness adjustment.

[0056] Indicatively, for a picture whose entire screen is orange and whose brightness is to be adjusted, the three primary color values ​​of all pixels of the picture are obtained as P(x, y)=RGB(255-128-0).

[0057] Step S2: based on the brightness adjustment requirement of the image to be adjusted, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper;

[0058] In the present invention, based on the brightness adjustment requirement of the picture to be adjusted, the brightness adjustment factor and the brightness adjustment value corresponding to the brightness adjustment requirement are determined, and the original three primary color values ​​of all colors of the full-color electronic paper are adjusted according to the brightness adjustment factor and the brightness adjustment value to obtain the adjusted three primary color values ​​of all colors of the full-color electronic paper.

[0059] In a preferred embodiment, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly based on the brightness adjustment requirement of the image to be adjusted to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper, including:

[0060] Get the original three primary color values ​​of each color of the full-color electronic paper;

[0061] Based on the brightness adjustment requirement of the image to be adjusted, determine the brightness adjustment factor and the brightness adjustment value;

[0062] Multiplying the original three primary color values ​​of each color of the full-color electronic paper by the brightness adjustment factor respectively to obtain the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment;

[0063] According to the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment and the brightness adjustment value, the three primary color values ​​of each color of the full-color electronic paper after adjustment are obtained.

[0064] Specifically, when the brightness adjustment value is an appreciation value, the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment are added to the brightness adjustment value to obtain the three primary color values ​​of each color of the full-color electronic paper after adjustment; when the brightness adjustment value is a subtraction value, the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment are subtracted from the brightness adjustment value to obtain the three primary color values ​​of each color of the full-color electronic paper after adjustment.

[0065] Indicatively, the colors that full-color electronic paper can express are A 黑 , A 白 , A 红 , A 绿 , A 蓝 , A 青 , A 洋 , A 黄 , where A 红 =(255-0-0), A 黄 =(255-255-0), A 白 =(255-255-255);

[0066] According to the brightness adjustment requirements, adjust the above three primary color values ​​to A 红 =(200-0-0), A 黄 =(200-200-0), A 白 =(255-200-200), and adjust other colors accordingly.

[0067] Step S3, repeatedly executing the target color determination operation until the target color corresponding to each pixel point in the image to be adjusted after the brightness adjustment is determined; wherein the target color determination operation includes: selecting a current pixel point of an undetermined target color from the image to be adjusted; calculating the Euclidean distance between the current pixel point and each color of the full-color electronic paper according to the current three primary color values ​​of the current pixel point and the three primary color values ​​of each color of the full-color electronic paper after adjustment, and selecting the color with the smallest Euclidean distance as the target color; when it is determined that there is a pixel point of an undetermined target color in the image to be adjusted, calculating the color error according to the three primary color values ​​after the target color is adjusted and the current three primary color values ​​of the current pixel point; allocating the color error to the pixel points directly adjacent to the current pixel point according to a preset ratio, and adjusting the three primary color values ​​of the directly adjacent pixel points;

[0068] In the present invention, a pixel point whose target color has not been determined is selected from the brightness picture to be adjusted, and the Euclidean distance between the current pixel point and each color of the full-color electronic paper is calculated according to the current three primary color values ​​of the current pixel point and the adjusted three primary color values ​​of each color of the full-color electronic paper. All the Euclidean distances are compared, and the color of the full-color electronic paper corresponding to the minimum Euclidean distance is selected as the target color, and the color error after the target color is determined is calculated. When there are still pixel points whose target color has not been determined in the brightness picture to be adjusted, according to the color error between the target color and the current pixel point, this error is distributed to the pixels directly adjacent to the current pixel point according to a preset ratio, and the three primary color values ​​of these adjacent pixels are adjusted accordingly. At this point, the color determination operation of one pixel point is completed, and the above color determination operation steps are repeatedly performed until the target colors of all pixels in the brightness picture to be adjusted are determined.

[0069] In a preferred embodiment, the Euclidean distance between the current pixel and each color of the full-color electronic paper is calculated by the following formula:

[0070] d=((R P -R r ) 2 +(G P -G r ) 2 +(B P -B r ) 2 ) 1 / 2 ;

[0071] Where d is the Euclidean distance, R P is the red component value of the three primary colors of the current pixel, R r G is the red component value of the three primary colors of the full-color electronic paper after adjustment. P G is the green component value of the three primary colors of the current pixel. rB is the green component value of the three primary color values ​​of each color of the full-color electronic paper after adjustment. P is the blue component value of the three primary colors of the current pixel, B r It is the blue component value of the three primary color values ​​after adjustment of each color of the full-color electronic paper.

[0072] In another preferred embodiment, the color error is calculated by the following formula:

[0073] Color error = current three primary color values ​​of the pixel point - three primary color values ​​after target color adjustment.

[0074] In another preferred embodiment, the three primary color values ​​of directly adjacent pixels are adjusted by the following steps:

[0075] Calculate the color errors allocated to each pixel directly adjacent to the current pixel according to a preset allocation ratio;

[0076] Add the three primary color values ​​of each directly adjacent pixel to the corresponding assigned color error;

[0077] The adjusted three primary color values ​​of each directly adjacent pixel are obtained.

[0078] Indicatively, a pixel point P(x, y) = RGB(255-128-0) is selected, and the Euclidean distance between the pixel point P(x, y) and each color of the adjusted full-color electronic paper is calculated. The color corresponding to the full-color electronic paper with the smallest Euclidean distance is calculated as A. 红 , select A 红 As the target color;

[0079] Calculate the color error after determining the target color, DeltaE = P(x, y) - A 红 =RGB(55-128-0), where DeltaE represents the color error. The error is distributed to adjacent points in a certain proportion. For example, assuming that all are given to the right side, the pixel on the right side is also P1(x, y)=RGB(255-128-0). The two are added together, P1+DeltaE=RGB(310-256-0), to obtain the adjusted three primary color values ​​of the adjacent pixel points.

[0080] Select P1 to continue color determination, and select A through the above steps. 黄 As the target color, the color error is DeltaE1 = RGB (110-56-0), and the target color of P2 is determined, P2 + DeltaE1 = RGB (365-184-0). After calculation, A is selected. 白 as the target color.

[0081] When the three primary color values ​​of each color of the full-color electronic paper are not adjusted, the color expression of the picture after calculation is red + yellow + red + yellow + red + yellow. After adjustment, the calculated expression is red + yellow + white + red + yellow + white. With the addition of white, the electronic paper will become brighter when displayed. Moreover, because there is no overflow in the calculation process, the error is reduced.

[0082] Step S4, determining the original three primary color values ​​corresponding to each target color, and obtaining the three primary color values ​​corresponding to each pixel point in the image to be adjusted after brightness adjustment;

[0083] In the present invention, for all pixel points of the determined target color in the picture to be adjusted, the original three primary color values ​​of the full-color electronic paper corresponding to the target color are determined, and the original three primary color values ​​of the full-color electronic paper corresponding to the target color are used as the three primary color values ​​required for all pixel points in the brightness picture to be adjusted;

[0084] Step S5, using the full-color electronic paper to adjust the brightness of each pixel in the image to be adjusted according to the three primary color values ​​required to correspond to the brightness adjustment, and outputting the image after the brightness adjustment;

[0085] In the present invention, the original three primary color values ​​of all pixels in the image to be adjusted in brightness are replaced with the original three primary color values ​​of the full-color electronic paper corresponding to the target color, and the image after brightness adjustment is output.

[0086] Preferably, all pixels of the brightness-adjusted picture output by the present invention are expressed using the original three primary color values ​​of the full-color electronic paper, and data overflow of the three primary color values ​​will not occur, thereby reducing color errors during the picture brightness adjustment process. Figure 2 As shown in the figure, a is the picture to be adjusted in brightness, and b is the picture whose brightness is adjusted by the numerical method. It can be seen that the brightness adjustment of the picture by the numerical method leads to overexposure and whitening, which will cause information loss, such as Figure 3 As shown in the figure, c is a normal jittering image, d is a brightness adjustment image based on the jittering algorithm, and e is a brightness adjustment image based on the numerical method. By comparing the brightness adjustment of the jittering algorithm with the numerical brightness adjustment, the brightness adjustment of the jittering algorithm can ensure that the image information loss after the brightness adjustment is less. For example: white and yellow grapes, the overall brightness is brighter after jittering, but the grapes lose less data.

[0087] like Figure 4 FIG. 1 is a schematic diagram of a full-color electronic paper brightness adjustment optimization device based on a dithering algorithm provided by an embodiment of the present invention, comprising:

[0088] Pixel acquisition module, three primary color value adjustment module, target color determination module, target color three primary color value determination module, image output module;

[0089] The pixel acquisition module is used to acquire all pixel points of the image to be adjusted in brightness;

[0090] The three primary color value adjustment module is used to adjust the original three primary color values ​​of each color of the full-color electronic paper accordingly based on the brightness adjustment requirements of the image to be adjusted, so as to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper;

[0091] The target color determination module is used to repeatedly perform the target color determination operation until the target color corresponding to each pixel point in the image to be adjusted after the brightness adjustment is determined; wherein the target color determination operation includes: selecting a current pixel point of an undetermined target color from the image to be adjusted; calculating the Euclidean distance between the current pixel point and each color of the full-color electronic paper according to the current three primary color values ​​of the current pixel point and the adjusted three primary color values ​​of each color of the full-color electronic paper, and selecting the color with the smallest Euclidean distance as the target color; when it is determined that there is a pixel point of an undetermined target color in the image to be adjusted, calculating the color error according to the adjusted three primary color values ​​of the target color and the current three primary color values ​​of the current pixel point; allocating the color error to the pixel points directly adjacent to the current pixel point according to a preset ratio, and adjusting the three primary color values ​​of the directly adjacent pixel points;

[0092] The target color three-primary color value determination module is used to determine the original three-primary color values ​​corresponding to each target color, and obtain the three-primary color values ​​corresponding to each pixel point in the image to be adjusted after brightness adjustment;

[0093] The picture output module is used to output the picture after brightness adjustment through the full-color electronic paper according to the three primary color values ​​corresponding to the brightness adjustment of each pixel in the picture to be adjusted.

[0094] It can be understood that the above-mentioned device item embodiments correspond to the method item embodiments of the present invention, and can implement a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm provided by any of the above-mentioned method item embodiments of the present invention.

[0095] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0096] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0097] Another preferred embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a full-color electronic paper brightness adjustment optimization method based on a jitter algorithm as described in any of the above embodiments.

[0098] It should be noted that the terminal device mentioned here can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that, for example, it may also include input and output devices, network access devices, buses, etc.

[0099] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0100] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0101] Another preferred embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as described in any one of the present invention.

[0102] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0103] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A full-color electronic paper brightness adjustment optimization method based on a dithering algorithm, characterized in that: include: Get all the pixels of the image whose brightness is to be adjusted; Based on the brightness adjustment requirement of the image to be adjusted, the original three primary color values ​​of each color of the full-color electronic paper are adjusted accordingly to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper; Repeat the target color determination operation until the target color corresponding to each pixel in the image to be adjusted after brightness adjustment is determined; Determine the original three primary color values ​​corresponding to each target color, and obtain the three primary color values ​​corresponding to each pixel in the image to be adjusted after brightness adjustment; The full-color electronic paper is used to adjust the brightness of each pixel in the image to be adjusted according to the three primary color values ​​required to correspond to the brightness, and output the image after the brightness adjustment; The target color determination operation includes: selecting a current pixel point of an undetermined target color from the image to be adjusted; According to the current three primary color values ​​of the current pixel point and the adjusted three primary color values ​​of each color of the full-color electronic paper, the Euclidean distance between the current pixel point and each color of the full-color electronic paper is calculated, and the color with the smallest Euclidean distance is selected as the target color; When it is determined that there are pixels whose target colors are not determined in the image to be adjusted, the color error is calculated according to the three primary color values ​​after the target colors are adjusted and the current three primary color values ​​of the current pixel; The color error is distributed to the pixel points directly adjacent to the current pixel point according to a preset ratio, and the three primary color values ​​of the directly adjacent pixel points are adjusted.

2. The full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as claimed in claim 1, characterized in that: The method of adjusting the original three primary color values ​​of each color of the full-color electronic paper based on the brightness adjustment requirement of the image to be adjusted to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper includes: Get the original three primary color values ​​of each color of the full-color electronic paper; Based on the brightness adjustment requirement of the image to be adjusted, determine the brightness adjustment factor and the brightness adjustment value; Multiplying the original three primary color values ​​of each color of the full-color electronic paper by the brightness adjustment factor respectively to obtain the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment; According to the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment and the brightness adjustment value, the three primary color values ​​of each color of the full-color electronic paper after adjustment are obtained.

3. The full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as claimed in claim 1, characterized in that: The Euclidean distance between the current pixel and each color of the full-color electronic paper is calculated by the following formula: d=((R P -R r ) 2 +(G P -G r ) 2 +(B P -B r ) 2 ) 1 / 2 ; Where d is the Euclidean distance, R P is the red component value of the three primary colors of the current pixel, R r G is the red component value of the three primary colors of the full-color electronic paper after adjustment. P G is the green component value of the three primary colors of the current pixel. r B is the green component value of the three primary color values ​​of each color of the full-color electronic paper after adjustment. P is the blue component value of the three primary colors of the current pixel, B r It is the blue component value of the three primary color values ​​after adjustment of each color of the full-color electronic paper.

4. The full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as claimed in claim 1, characterized in that: The color error is calculated by the following formula: Color error = current three primary color values ​​of the pixel point - three primary color values ​​after target color adjustment.

5. The full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as claimed in claim 1, characterized in that: The three primary color values ​​of directly adjacent pixels are adjusted through the following steps: Calculate the color errors allocated to each pixel directly adjacent to the current pixel according to a preset allocation ratio; Add the three primary color values ​​of each directly adjacent pixel to the corresponding assigned color error; The adjusted three primary color values ​​of each directly adjacent pixel are obtained.

6. A full-color electronic paper brightness adjustment optimization device based on a dithering algorithm, characterized in that: include: Pixel acquisition module, three primary color value adjustment module, target color determination module, target color three primary color value determination module, image output module; The pixel acquisition module is used to acquire all pixel points of the image to be adjusted in brightness; The three primary color value adjustment module is used to adjust the original three primary color values ​​of each color of the full-color electronic paper accordingly based on the brightness adjustment requirements of the image to be adjusted, so as to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper; The target color determination module is used to repeatedly perform the target color determination operation until the target color corresponding to each pixel point in the image to be adjusted after the brightness adjustment is determined; wherein, the target color determination operation includes: selecting a current pixel point whose target color has not been determined from the image to be adjusted; calculating the Euclidean distance between the current pixel point and each color of the full-color electronic paper according to the current three primary color values ​​of the current pixel point and the three primary color values ​​of each color of the full-color electronic paper after adjustment, and selecting the color with the smallest Euclidean distance as the target color; when it is determined that there is a pixel point whose target color has not been determined in the image to be adjusted, calculating the color error according to the three primary color values ​​after the target color is adjusted and the current three primary color values ​​of the current pixel point; allocating the color error to the pixel points directly adjacent to the current pixel point according to a preset ratio, and adjusting the three primary color values ​​of the directly adjacent pixel points; The target color three-primary color value determination module is used to determine the original three-primary color values ​​corresponding to each target color, and obtain the three-primary color values ​​corresponding to each pixel point in the image to be adjusted after brightness adjustment; The picture output module is used to output the picture after brightness adjustment through the full-color electronic paper according to the three primary color values ​​corresponding to the brightness adjustment of each pixel in the picture to be adjusted.

7. The full-color electronic paper brightness adjustment optimization device based on a dithering algorithm as claimed in claim 6, characterized in that: The three primary color value adjustment module includes: an original value acquisition unit, an adjustment parameter determination unit, a preliminary adjustment unit, and a final adjustment unit; The original value acquisition unit is used to acquire the original three primary color values ​​of each color of the full-color electronic paper; The adjustment parameter determination unit is used to determine a brightness adjustment factor and a brightness adjustment value based on a brightness adjustment requirement of the picture to be adjusted; The preliminary adjustment unit is used to multiply the original three primary color values ​​of each color of the full-color electronic paper by the brightness adjustment factor to obtain the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment; The final adjustment unit is used to obtain the adjusted three primary color values ​​of each color of the full-color electronic paper according to the three primary color values ​​of each color of the full-color electronic paper after preliminary adjustment and the brightness adjustment value.

8. The full-color electronic paper brightness adjustment optimization device based on a dithering algorithm as claimed in claim 6, characterized in that: The Euclidean distance between the current pixel and each color of the full-color electronic paper is calculated by the following formula: d=((R P -R r ) 2 +(G P -G r ) 2 +(B P -B r ) 2 ) 1 / 2 ; Where d is the Euclidean distance, R P is the red component value of the three primary colors of the current pixel, R r G is the red component value of the three primary colors of the full-color electronic paper after adjustment. P G is the green component value of the three primary colors of the current pixel. r B is the green component value of the three primary color values ​​of each color of the full-color electronic paper after adjustment. P is the blue component value of the three primary colors of the current pixel, B r It is the blue component value of the three primary color values ​​after adjustment of each color of the full-color electronic paper.

9. A terminal device, characterized in that: It comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a full-color electronic paper brightness adjustment optimization method based on a jitter algorithm as described in any one of claims 1 to 5 is implemented.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a full-color electronic paper brightness adjustment optimization method based on a dithering algorithm as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Display brightness adjusting method and device, electronic equipment and storage medium

    CN112863457A

  • Display screen brightness compensation method and device and electronic equipment

    CN113241030A

  • Brightness compensation method and device, storage medium and electronic equipment

    CN114283732A

  • Screen brightness adjustment method and apparatus, and storage medium

    US20210248975A1

  • Variable dithering for GIF

    US6844882B1