Methods, systems, and computer-readable media for improving dynamic contrast
By acquiring images from the display screen and separating color channels to calculate brightness, the brightness of the display is dynamically adjusted, solving the problem of insufficient dynamic contrast in traditional LCD devices and achieving higher dynamic contrast and a more natural picture effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- YIBIN BENXIN ELECTRONIC TECH CO LTD
- Filing Date
- 2026-03-30
- Publication Date
- 2026-05-29
AI Technical Summary
Traditional LCD displays struggle to achieve both high brightness and deep black levels simultaneously, resulting in limited dynamic contrast, high energy consumption, and poor display quality.
By periodically acquiring images from the display screen, separating the red, green, and blue color channels, calculating the average brightness and overall brightness, and dynamically adjusting the display brightness to match human eye sensitivity, brightness percentage mapping is achieved, and backlight strategy is optimized.
It improves the dynamic contrast ratio of the display, resulting in natural transitions between light and dark areas and richer details. It also reduces energy consumption, minimizes eye strain, and is suitable for various LCD backlight architectures.
Smart Images

Figure CN122116825A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display technology, and more particularly to a method, system, and computer-readable storage medium for improving dynamic contrast. Background Technology
[0002] The contrast ratio of traditional LCD displays is determined by both the light transmittance of the LCD panel and the brightness of the backlight. Because the backlight typically uses a single-pane illumination structure, when both high-brightness and low-brightness areas exist on the screen, the backlight cannot differentiate brightness for different content: if the backlight brightness is increased to ensure the display effect of high-brightness areas, dark areas will be illuminated by the entire backlight, increasing black levels and losing detail in dark areas; if the backlight brightness is reduced to ensure the purity of dark areas, high-brightness areas will not reach the target brightness, resulting in insufficient bright-field performance. This contradiction makes it difficult for traditional displays to simultaneously achieve high brightness and deep black levels, limiting dynamic contrast.
[0003] Therefore, existing technologies have shortcomings and need to be improved. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method, system and computer-readable storage medium for improving dynamic contrast and reducing power consumption during display.
[0005] The technical solution of the present invention is as follows: a method for improving dynamic contrast is provided, comprising the following steps.
[0006] S1: Periodically capture the image currently displayed on the screen.
[0007] S2: Convert the currently displayed image into a NumPy array. The NumPy array stores all pixel information of the image in the structure of "height, width, pixel data at this position". The pixel data at this position is the pixel data of the three colors of red (R), green (G), and blue (B) at this position. The value of the three colors of pixel data at each position represents the brightness of the corresponding color of the pixel. The value range is 0-255, where 0 is the darkest and 255 is the brightest.
[0008] S3: Split the red, green, and blue color channels; extract the red, green, and blue values of all pixels from the NumPy array above to form three independent numerical matrices, namely the red matrix, green matrix, and blue matrix, with the matrix size of each color being the same as the pixel size of the image.
[0009] S4: Calculate the average brightness of each color channel; calculate the average value of all values in the red matrix, green matrix, and blue matrix respectively to obtain the red average value, green average value, and blue average value; these three average values can reflect the overall intensity of the whole image in the three color dimensions of red, green, and blue (for example, a high red average value indicates that the image is generally reddish).
[0010] S5: Calculate the overall brightness of the image; referencing the human eye's sensitivity to different colors (most sensitive to green, least sensitive to blue), use the brightness formula (industry standard): Overall Brightness = Red Coefficient a × Average Red Value + Green Coefficient b × Average Green Value + Blue Coefficient c × Average Blue Value, where the red coefficient a ranges from 0.299 ± 0.0299, the green coefficient b ranges from 0.587 ± 0.0587, and the blue coefficient c ranges from 0.114 ± 0.0114; the overall brightness value ranges from 0 to 255, with a larger value indicating a brighter image; the overall brightness result accurately reflects the actual perceived brightness of the image by the human eye.
[0011] S6: Output the overall brightness value of the image.
[0012] S7: Calculate the brightness percentage. The formula is: Brightness percentage = Overall brightness value / 255 * 100.
[0013] S8: Dynamically adjust the target brightness value of the display based on the brightness percentage; when the brightness percentage is 0%, the target brightness of the display is 0%; when the brightness percentage is < N%, the target brightness of the display is N%, where N is in the range of 1-100, and N is the integer closest to the brightness percentage value; when the brightness percentage is 100%, the target brightness of the display is 100%.
[0014] Furthermore, the periodicity in step S1 is every 1ms-1s.
[0015] Furthermore, step S3 also includes converting the values in the red matrix, green matrix, and blue matrix into floating-point numbers.
[0016] Furthermore, step S6 also includes: outputting the average brightness values of the three colors, red, green and blue.
[0017] Furthermore, when the average brightness value of green is greater than the sum of the average brightness values of red and blue, the brightness percentage is less than N, and the target brightness of the display is increased by no more than 5% based on N%; when the average brightness value of blue is greater than the sum of the average brightness values of red and green, the brightness percentage is less than N, and the target brightness of the display is decreased by no more than 5% based on N%.
[0018] Furthermore, the present invention also provides a display system for improving dynamic contrast, comprising: a computer module, a display, and a human-computer interaction module; the human-computer interaction module is used to input control commands to determine the image displayed on the display, and the computer module is equipped with a computer program for executing the aforementioned method for improving dynamic contrast.
[0019] Furthermore, the display includes a main control MCU, and the computer module sends instructions to the main control MCU to adjust the brightness of the display.
[0020] Furthermore, the human-computer interaction module includes at least one of the following: a keyboard, a mouse, a touch screen, and a voice input microphone.
[0021] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program that, when executed, implements the aforementioned method for improving dynamic contrast.
[0022] This invention provides a method, system, and readable storage medium for improving dynamic contrast. This invention achieves higher peak brightness, deeper black levels, and stronger color purity, which significantly improves the dynamic contrast of the display device, resulting in more natural transitions between light and dark areas and richer details. It also provides superior display effects, especially in high dynamic range display scenarios. Attached Figure Description
[0023] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0024] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0025] Please see Figure 1 The present invention provides a method for improving dynamic contrast, comprising the following steps.
[0026] S1: Periodically captures the image currently displayed on the screen. It should be noted that the image currently displayed on the screen can be the image being displayed or the next frame that is about to be displayed.
[0027] S2: Convert the currently displayed image into a NumPy array. The NumPy array stores all pixel information of the image in the structure of "height, width, pixel data at this position". The pixel data at this position is the pixel data of the three colors of red (R), green (G), and blue (B) at this position. The value of the three colors of pixel data at each position represents the brightness of the corresponding color of the pixel. The value range is 0-255, where 0 is the darkest and 255 is the brightest.
[0028] S3: Split the red, green, and blue color channels; extract the red, green, and blue values of all pixels from the NumPy array above to form three independent numerical matrices, namely the red matrix, green matrix, and blue matrix, with the matrix size of each color being the same as the pixel size of the image.
[0029] S4: Calculate the average brightness of each color channel; calculate the average value of all values in the red matrix, green matrix, and blue matrix respectively to obtain the red average value, green average value, and blue average value; these three average values can reflect the overall intensity of the whole image in the three color dimensions of red, green, and blue (for example, a high red average value indicates that the image is generally reddish).
[0030] S5: Calculate the overall brightness of the image; referencing the human eye's sensitivity to different colors (most sensitive to green, least sensitive to blue), use the brightness formula (industry standard): Overall Brightness = Red Coefficient a × Average Red Value + Green Coefficient b × Average Green Value + Blue Coefficient c × Average Blue Value, where the red coefficient a ranges from 0.299 ± 0.0299, the green coefficient b ranges from 0.587 ± 0.0587, and the blue coefficient c ranges from 0.114 ± 0.0114; the overall brightness value ranges from 0 to 255, with a larger value indicating a brighter image; the overall brightness result accurately reflects the actual perceived brightness of the image by the human eye. Preferably, the red coefficient a is 0.299, the green coefficient b is 0.587, and the blue coefficient c is 0.114.
[0031] S6: Output the overall brightness value of the image.
[0032] S7: Calculate the brightness percentage. The formula is: Brightness percentage = Overall brightness value / 255 * 100.
[0033] S8: Dynamically adjusts the target brightness value of the monitor based on the brightness percentage; when brightness percentage = 0%, the target brightness of the monitor is 0%; when brightness percentage < N%, the target brightness of the monitor is N%, where N is the integer closest to the brightness percentage value; when brightness percentage = 100%, the target brightness of the monitor is 100%. Details are as follows: Brightness percentage = 0%, the target brightness of the monitor is set to 0%. If the brightness percentage (e.g., 0.6%) is less than 1%, the target brightness of the monitor should be set to 1%. If the brightness percentage (e.g., 1.7%) is less than 2%, the target brightness of the monitor should be set to 2%. ... If the brightness percentage (e.g., 62.6%) is less than 63%, the target brightness of the monitor should be set to 63%. ... If the brightness percentage (e.g., 99.1%) is less than 100%, the target brightness of the monitor should be set to 100%. Brightness percentage = 100%, the target brightness of the monitor is set to 100%.
[0034] In this embodiment, the periodicity in step S1 is every 1ms-1s.
[0035] In this embodiment, step S3 further includes converting the values in the red matrix, green matrix, and blue matrix into floating-point numbers.
[0036] In this embodiment, step S6 further includes: outputting the average brightness values of the three colors, red, green and blue.
[0037] In this embodiment, when the average brightness value of green is greater than the sum of the average brightness values of red and blue, the brightness percentage is less than N, and the target brightness of the display is increased by no more than 5% based on N%; when the average brightness value of blue is greater than the sum of the average brightness values of red and green, the brightness percentage is less than N, and the target brightness of the display is decreased by no more than 5% based on N%.
[0038] The present invention also provides a display system for improving dynamic contrast, comprising: a computer module, a display, and a human-computer interaction module; the human-computer interaction module is used to input control commands to determine the image displayed on the display, and the computer module is equipped with a computer program for executing the aforementioned method for improving dynamic contrast.
[0039] In this embodiment, the display includes a main control MCU, and the computer module sends instructions to the main control MCU to adjust the brightness of the display.
[0040] In this embodiment, the human-computer interaction module includes at least one of a keyboard, mouse, touch screen, and voice input microphone.
[0041] The present invention also provides a computer-readable storage medium storing a computer program that, when executed, implements the aforementioned method for improving dynamic contrast.
[0042] This invention employs a 1-100 level full-coverage brightness percentage hierarchical mapping to seamlessly adjust backlight brightness, avoiding flicker and brightness jump issues that occur with large-span dimming. While improving dynamic contrast, the transition between light and dark in the picture is smoother and more natural.
[0043] This invention conforms to the visual characteristics of the human eye, providing a comfortable and eye-friendly viewing experience. It optimizes the backlight strategy by combining the differences in human eye perception of RGB color brightness (green > red > blue), accurately controlling light in the low brightness range, reducing glare in dark scenes and eye strain in bright scenes, and making it less tiring to watch for a long time.
[0044] This invention significantly improves dynamic contrast and enhances image depth. Based on real-time brightness percentage adaptive global backlight gain control, it reduces backlight depth and black levels in dark areas and increases backlight to highlight details in bright areas, thereby improving black-and-white contrast and resulting in image depth and three-dimensionality far exceeding that of fixed backlight solutions.
[0045] The method of this invention is simple and efficient, with wide hardware adaptability. It eliminates redundant multiple judgment logic, which can be simplified and optimized. It has low computational load and fast response speed. It is compatible with mainstream LCD backlight architectures such as ordinary LED backlight and MiniLED local dimming backlight, such as mobile phones, monitors, industrial control screens and TVs.
[0046] The intelligent linkage dimming logic dynamically matches the backlight level in real time according to the content of the picture, resulting in strong real-time image quality adjustment.
[0047] This invention provides a method, system, and readable storage medium for improving dynamic contrast. This invention achieves higher peak brightness, deeper black levels, and stronger color purity, which significantly improves the dynamic contrast of the display device, resulting in more natural transitions between light and dark areas and richer details. It also provides superior display effects, especially in high dynamic range display scenarios.
[0048] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for improving dynamic contrast, characterized in that, Includes the following steps: S1: Periodically acquire the image currently displayed on the screen; S2: Convert the currently displayed image into a NumPy array. The NumPy array stores all pixel information of the image in the structure "height, width, pixel data at this position". The pixel data at this position is the pixel data of the three colors of red, green and blue at this position. The value of the three colors of pixel data at each position represents the brightness of the corresponding color of the pixel. The value range is 0-255, where 0 is the darkest and 255 is the brightest. S3: Split the red, green, and blue color channels; extract the red, green, and blue values of all pixels from the NumPy array above to form three independent numerical matrices, namely the red matrix, green matrix, and blue matrix, with the matrix size of each color being the same as the pixel size of the image; S4: Calculate the average brightness of each color channel; calculate the average value of all values in the red matrix, green matrix, and blue matrix respectively to obtain the average value of red, green, and blue. S5: Calculate the overall brightness of the image; using the brightness formula: Overall Brightness = Red Coefficient a × Average Red Value + Green Coefficient b × Average Green Value + Blue Coefficient c × Average Blue Value, where the red coefficient a ranges from 0.299 ± 0.0299, the green coefficient b ranges from 0.587 ± 0.0587, and the blue coefficient c ranges from 0.114 ± 0.0114; the overall brightness value ranges from 0 to 255, with a larger value indicating a brighter image. S6: Output the overall brightness value of the image; S7: Calculate the brightness percentage. The formula is: Brightness percentage = Overall brightness value / 255 * 100; S8: Dynamically adjust the target brightness value of the display based on the brightness percentage; when the brightness percentage is 0%, the target brightness of the display is 0%; when the brightness percentage is < N%, the target brightness of the display is N%, where N is in the range of 1-100, and N is the integer closest to the brightness percentage value; when the brightness percentage is 100%, the target brightness of the display is 100%.
2. The method for improving dynamic contrast according to claim 1, characterized in that, The periodicity in step S1 is every 1ms-1s.
3. The method for improving dynamic contrast according to claim 1, characterized in that, Step S3 also includes converting the values in the red matrix, green matrix, and blue matrix into floating-point numbers.
4. The method for improving dynamic contrast according to claim 1, characterized in that, Step S6 also includes: outputting the average brightness values of the three colors, red, green and blue.
5. The method for improving dynamic contrast according to claim 4, characterized in that, When the average brightness value of green is greater than the sum of the average brightness values of red and blue, the brightness percentage is less than N, and the target brightness of the monitor is increased by no more than 5% from the base of N%. When the average brightness value of blue is greater than the sum of the average brightness values of red and green, the brightness percentage is less than N, and the target brightness of the monitor is decreased by no more than 5% from the base of N.
6. A display system for improving dynamic contrast, characterized in that, include: The system comprises a computer module, a display, and a human-computer interaction module; the human-computer interaction module is used to input control commands to determine the image displayed on the display, and the computer module is equipped with a computer program for executing the method for improving dynamic contrast as described in any one of claims 1-5.
7. The display system for improving dynamic contrast according to claim 8, characterized in that, The display includes a main control MCU, and the computer module sends instructions to the main control MCU to adjust the brightness of the display.
8. The display system for improving dynamic contrast according to claim 6, wherein the human-computer interaction module comprises: At least one of a keyboard, mouse, touchscreen, and voice input microphone.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method for improving dynamic contrast as described in any one of claims 1-5.