Image display method for improving contrast and grayscale of liquid crystal screen

By acquiring image and environmental brightness data, calculating the optimized contrast and performing contrast reconstruction, the problem of LCD screen contrast and grayscale improvement is solved, and efficient image display optimization in different environments is achieved.

CN118588038BActive Publication Date: 2024-10-11ANHUI HAIDE RUIFENG PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411060161.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-11
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing technology lacks effective methods to improve the contrast and grayscale of LCD screens, especially the problem of poor contrast performance in different environments.

Method used

By obtaining the grayscale data of the image to be displayed and the brightness data of the LCD screen environment, the overall and regional contrast is calculated, contrast reconstruction is performed based on the optimized contrast, and the contrast and grayscale of the LCD screen are improved through image reconstruction, combined with contrast detection to ensure the display effect.

Benefits of technology

It is possible to improve the contrast and grayscale of the LCD screen in different environments, improve the overall optimization effect of image display, and ensure that contrast reconstruction does not affect the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588038B_ABST
    Figure CN118588038B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses an image display method for improving the contrast and grayscale of a liquid crystal screen. The method includes obtaining grayscale data and calculating a first contrast and a second contrast, obtaining brightness data and obtaining an optimized contrast, capturing an area to be optimized and performing contrast reconstruction, performing image reconstruction, and performing contrast detection. In the present application, grayscale data is obtained to provide a data basis for calculating the overall first contrast and the second contrast of each area; brightness data is obtained to provide a data reference for obtaining the optimized contrast; contrast reconstruction is achieved by capturing the area to be optimized to improve the contrast and grayscale; overall image optimization is achieved by image reconstruction; and contrast detection is used to ensure that the reconstructed image does not reduce the display effect due to contrast reconstruction. Finally, image display with improved contrast and grayscale of the liquid crystal screen is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image display method for improving the contrast and grayscale of a liquid crystal screen. Background Art

[0002] LCD contrast and grayscale usually refer to the display performance of LCD in different brightness levels and color depths. Therefore, it is necessary to study the image display method for improving the contrast and grayscale of LCD screens.

[0003] Chinese patent number CN202211309799.3 discloses a method and device for improving the contrast of a liquid crystal display screen, the method comprising the following steps: S1. The distributor receives an external high-definition video signal, synchronously copies the high-definition video signal into two groups of signal data, and outputs them from two high-definition ports; S2. The liquid crystal screen module receives a group of high-definition video signals, and after decoding and processing the high-definition video signals, displays the image through the liquid crystal display screen; S3. The backlight module receives another group of high-definition video signals, and converts them into control signals for controlling the brightness change of LEDs, and adjusts the backlight switch and brightness change; S4. The backlight brightness display is projected onto the image display of the liquid crystal screen to form a high-contrast display screen. The external video signal is synchronously copied and processed, respectively input into the liquid crystal screen and the backlight module, and the display is controlled separately, so as to realize dynamic brightness adjustment of the backlight LED brightness as the picture changes, so as to improve the ultra-high contrast of the picture. The invention achieves the improvement of contrast, but its performance in terms of what environment and how much contrast is improved is general.

[0004] In summary, the prior art lacks a technical solution for improving the contrast and grayscale image display of a liquid crystal screen. Summary of the invention

[0005] The purpose of the present application is to provide an image display method for improving the contrast and grayscale of a liquid crystal screen, so as to solve the technical problems raised in the above-mentioned background technology.

[0006] To achieve the above objectives, this application discloses the following technical solutions:

[0007] An image display method for improving the contrast and grayscale of a liquid crystal screen, comprising:

[0008] S1: Acquire grayscale data of an image to be displayed, calculate a first contrast ratio of the entire image to be displayed; divide the image to be displayed into a plurality of regions, and calculate a second contrast ratio of each of the regions;

[0009] S2: Acquire brightness data of the environment where the LCD screen is located, and obtain a corresponding optimized contrast ratio based on a change in the brightness data;

[0010] S3: Based on the optimized contrast, capturing a region to be optimized in the region, and performing contrast reconstruction on the region to be optimized to obtain a corresponding reconstructed region;

[0011] S4: replacing the area to be optimized with the reconstructed area, and performing image reconstruction on the image to be displayed to obtain a reconstructed image;

[0012] S5: Perform contrast detection on the reconstructed image, and display the reconstructed image after the contrast detection.

[0013] Preferably, the calculating of the first contrast ratio of the entire image to be displayed specifically includes:

[0014] Calculating the first contrast using a first contrast calculation formula, where the first contrast is used to characterize the overall contrast of the image to be displayed and is used to correct the reconstructed image;

[0015] The first contrast calculation formula is specifically:

[0016] ;

[0017] in, is the minimum value in the grayscale data of the image to be displayed, is the maximum value of the grayscale data of the image to be displayed, is the first contrast.

[0018] Preferably, the calculating the second contrast of each of the regions specifically includes:

[0019] Calculate the average grayscale corresponding to each of the regions ,in, Obtaining numbers corresponding to a plurality of regions for segmenting the image to be displayed;

[0020] The pixels in each of the regions whose grayscale is greater than or equal to the average grayscale corresponding to the region are defined as bright pixels, and the pixels whose grayscale is less than or equal to the average grayscale corresponding to the region are defined as dark pixels;

[0021] Calculate the bright average grayscale corresponding to the bright pixel The dark average grayscale corresponding to the dark pixel ;

[0022] Calculating the second contrast using a second contrast calculation formula, where the second contrast is used to characterize the contrast of each of the regions;

[0023] The second contrast calculation formula is specifically:

[0024] ;

[0025] in, For the number The second contrast of the area.

[0026] Preferably, the step of obtaining brightness data of the environment where the LCD screen is located specifically includes:

[0027] The brightness data of the environment where the LCD screen is located is obtained based on the time series to obtain the corresponding relationship between the environment brightness and time.

[0028] Preferably, obtaining the corresponding optimized contrast based on the change of the brightness data specifically includes:

[0029] Preset contrast adjustment cycle;

[0030] The brightness change before and after a contrast adjustment cycle is calculated by using the ambient brightness time correspondence relationship. ;

[0031] The optimized contrast calculation formula is used to calculate the optimized contrast correction value corresponding to the brightness change, and the optimized contrast calculation formula is specifically:

[0032] ;

[0033] in, To optimize the control parameters of the contrast correction value, The optimized contrast correction value.

[0034] Preferably, capturing the area to be optimized in the area based on the optimized contrast specifically includes:

[0035] Preset region optimization threshold ,when Output the current number , and the area corresponding to the number is captured and determined as the area to be optimized, otherwise it is not captured.

[0036] Preferably, the contrast reconstruction of the area to be optimized specifically includes:

[0037] The reconstructed third contrast of each of the regions is calculated using a contrast reconstruction calculation formula, wherein the contrast reconstruction calculation formula is specifically:

[0038] ;

[0039] in, is the third contrast, and the third contrast is a target value for contrast reconstruction;

[0040] Based on the third contrast, any one or more of the bright pixels and the dark pixels in each of the regions to be optimized are correspondingly adjusted so that the adjusted second contrast of the optimized region is equal to the third contrast, thereby obtaining the reconstructed region.

[0041] Preferably, the replacing the area to be optimized with the reconstructed area specifically includes:

[0042] Based on number , using the reconstructed area to replace the area to be optimized.

[0043] Preferably, reconstructing the image to be displayed to obtain a reconstructed image specifically includes:

[0044] Acquire edges of each of the regions where replacement has occurred in the image to be displayed after replacement;

[0045] Image splicing and edge fusion are performed on the edges, and the image to be displayed obtained by fusion is defined as the reconstructed image.

[0046] Preferably, the performing contrast detection on the reconstructed image and displaying the reconstructed image after the contrast detection specifically includes:

[0047] Preset overall optimization threshold ;

[0048] The first contrast of the reconstructed image is calculated using the first contrast calculation formula ;

[0049] The configuration for performing contrast detection on the reconstructed image is:

[0050] Calculate and judge Is it true? If so, it means that the contrast detection is passed and the reconstructed image is output and displayed. Otherwise, the control parameter of the optimized contrast correction value is modified. , and execute steps S2-S5 again until the contrast detection is passed.

[0051] Beneficial effects: The image display method for improving the contrast and grayscale of a liquid crystal screen of the present application provides a data basis for calculating the overall first contrast and the second contrast of each area by acquiring grayscale data; provides a data reference for obtaining the optimized contrast by acquiring brightness data; realizes contrast reconstruction by capturing the area to be optimized to improve the contrast and grayscale; realizes overall image optimization by image reconstruction; and ensures that the display effect of the reconstructed image is not reduced due to contrast reconstruction through contrast detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0053] Figure 1 A flowchart of an image display method for improving the contrast and grayscale of a liquid crystal screen provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application are described clearly and completely below. 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 the present application.

[0055] In this article, the term "comprising" is 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0056] This embodiment discloses Figure 1 An image display method for improving the contrast and grayscale of a liquid crystal screen is shown, comprising:

[0057] S1: Obtaining grayscale data of the image to be displayed, calculating the first contrast of the entire image to be displayed; dividing the image to be displayed into several regions, and calculating the second contrast of each region;

[0058] S2: Obtaining brightness data of the environment where the LCD screen is located, and obtaining a corresponding optimized contrast ratio based on changes in the brightness data;

[0059] S3: based on the optimized contrast, capturing the area to be optimized in the region, and reconstructing the contrast of the area to be optimized to obtain the corresponding reconstructed area;

[0060] S4: replacing the area to be optimized with the reconstructed area, and reconstructing the image to be displayed to obtain a reconstructed image;

[0061] S5: Perform contrast detection on the reconstructed image, and display the reconstructed image after contrast detection.

[0062] By acquiring grayscale data, a data basis is provided for calculating the overall first contrast and the second contrast of each area; by acquiring brightness data, a data reference is provided for obtaining the optimized contrast; by capturing the area to be optimized, contrast reconstruction is achieved to improve the contrast and grayscale; by image reconstruction, the overall image optimization is achieved; by contrast detection, it is ensured that the reconstructed image does not suffer from a reduction in display effect due to contrast reconstruction.

[0063] Specifically, calculating the first contrast of the entire image to be displayed includes:

[0064] The first contrast is calculated using a first contrast calculation formula. The first contrast is used to characterize the contrast of the entire image to be displayed and is used to correct the reconstructed image. It should be noted that in this embodiment, the first contrast of the reconstructed image is compared with the first contrast of the image to be displayed, so as to limit the overall contrast of the reconstructed image within a preset range, thereby ensuring that the display effect of the image after the contrast and grayscale are improved is not affected.

[0065] The first contrast calculation formula is as follows:

[0066] ;

[0067] in, is the minimum value in the grayscale data of the image to be displayed, is the maximum value of the grayscale data of the image to be displayed, is the first contrast.

[0068] Specifically, calculating the second contrast of each area includes:

[0069] Calculate the average grayscale corresponding to each area ,in, Obtaining numbers corresponding to a number of regions for segmenting the image to be displayed;

[0070] The pixels in each region whose grayscale is greater than or equal to the average grayscale of the region are defined as bright pixels, and those whose grayscale is less than or equal to the average grayscale of the region are defined as dark pixels;

[0071] Calculate the bright average grayscale corresponding to the bright pixel The dark average grayscale corresponding to the dark pixels ;

[0072] The second contrast is calculated using a second contrast calculation formula, where the second contrast is used to characterize the contrast of each area;

[0073] The second contrast calculation formula is as follows:

[0074] ;

[0075] in, For the number It should be noted that in this embodiment, the second contrast is calculated using the average value of each pixel to more accurately compare each area, provide a data basis for screening the area to be optimized, and also provide a data basis for contrast reconstruction.

[0076] Specifically, the brightness data of the environment where the LCD screen is located is obtained, including:

[0077] The brightness data of the environment where the LCD screen is located is obtained based on the time series, and the corresponding relationship between the ambient brightness and time is obtained. It should be noted that in this embodiment, the contrast adjustment is based on a contrast cycle, and there is no need to predict the brightness data; but further, when the LCD screen is installed outdoors and other areas where the brightness data changes significantly over time, the image display method for improving the contrast and grayscale of the LCD screen in this embodiment also realizes the early generation of optimized contrast by predicting the brightness data.

[0078] Specifically, the corresponding optimized contrast is obtained based on the change of brightness data, including:

[0079] Preset contrast adjustment cycle;

[0080] Using the time correspondence of ambient brightness, calculate the brightness change before and after a contrast adjustment cycle ;

[0081] The optimized contrast calculation formula is used to calculate the optimized contrast correction value corresponding to the brightness change. The optimized contrast calculation formula is specifically as follows:

[0082] ;

[0083] in, To optimize the control parameters of the contrast correction value, To optimize the contrast correction value; it should be noted that the control parameters of the optimized contrast correction value in this embodiment are obtained by fitting based on the historical data of the contrast changed by artificial means at different brightness changes, and A set of range values ​​for improving contrast and grayscale is provided. The range values ​​are used to further correct and optimize the contrast after the contrast detection fails, so as to improve the contrast and grayscale without affecting the display effect of the reconstructed image.

[0084] Specifically, based on the optimized contrast, the area to be optimized is captured in the region, including:

[0085] Preset region optimization threshold , the regional optimization threshold is designed to screen out the contrast that needs to be optimized in each region. Output the current number , and capture the area corresponding to the number as the area to be optimized, otherwise it will not be captured.

[0086] Specifically, the contrast of the area to be optimized is reconstructed, including:

[0087] The third contrast after reconstruction of each region is calculated using the contrast reconstruction calculation formula. The contrast reconstruction calculation formula is specifically:

[0088] ;

[0089] in, is the third contrast, which is the target value for contrast reconstruction. There are positive and negative values, that is, correspondingly increasing the grayscale and decreasing the grayscale;

[0090] Based on the third contrast, any one or more of the bright pixels and dark pixels in each area to be optimized are correspondingly adjusted so that the adjusted second contrast of the optimized area is equal to the third contrast, thereby obtaining a reconstructed area.

[0091] Specifically, the reconstructed area is used to replace the area to be optimized, including:

[0092] Based on number , use the reconstructed area to replace the area to be optimized, so as to avoid errors during replacement.

[0093] Specifically, performing image reconstruction on the image to be displayed to obtain a reconstructed image specifically includes:

[0094] Obtaining edges of each replaced area in the replaced image to be displayed;

[0095] Image stitching and edge fusion are performed on the edges. The image stitching and edge fusion technology used in this embodiment is any one of the prior arts. The image to be displayed obtained by fusion is defined as a reconstructed image.

[0096] Specifically, performing contrast detection on the reconstructed image and displaying the reconstructed image after the contrast detection specifically includes:

[0097] Preset overall optimization threshold ;

[0098] The first contrast of the reconstructed image is calculated using the first contrast calculation formula ;

[0099] The contrast detection configuration for the reconstructed image is:

[0100] Calculate and judge Whether it is established, this judgment realizes the constraint on the display effect of the reconstructed image. If it is, it means that the contrast detection is passed and the reconstructed image is output and displayed. Otherwise, the control parameters of the optimized contrast correction value are modified. , that is, traverse within the range value to find the control parameters that meet the contrast detection, and execute steps S2-S5 again until the contrast detection is passed.

[0101] In summary, the image display method for improving the contrast and grayscale of the liquid crystal screen in this embodiment provides a data basis for calculating the overall first contrast and the second contrast of each area by acquiring grayscale data; provides a data reference for obtaining the optimized contrast by acquiring brightness data; realizes contrast reconstruction by capturing the area to be optimized to improve the contrast and grayscale; realizes overall image optimization by image reconstruction; and ensures that the display effect of the reconstructed image is not reduced due to contrast reconstruction through contrast detection.

[0102] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code, or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor, other electronic units designed to implement the functions described herein, or a combination thereof. For software implementation, part or all of the processes of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a computer. Computer-readable storage media can include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.

[0103] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An image display method for improving the contrast and grayscale of a liquid crystal screen, characterized in that: include: S1: Acquire grayscale data of an image to be displayed, and calculate a first contrast ratio of the entire image to be displayed; Segmenting the image to be displayed to obtain a plurality of regions, and calculating a second contrast of each of the regions; S2: Acquire brightness data of the environment where the LCD screen is located, and obtain a corresponding optimized contrast ratio based on a change in the brightness data; S3: Based on the optimized contrast, capturing a region to be optimized in the region, and performing contrast reconstruction on the region to be optimized to obtain a corresponding reconstructed region; S4: replacing the area to be optimized with the reconstructed area, and performing image reconstruction on the image to be displayed to obtain a reconstructed image; S5: Perform contrast detection on the reconstructed image, and display the reconstructed image after the contrast detection.

2. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 1, characterized in that: The calculating of the first contrast ratio of the entire image to be displayed specifically includes: Calculating the first contrast using a first contrast calculation formula, where the first contrast is used to characterize the overall contrast of the image to be displayed and is used to correct the reconstructed image; The first contrast calculation formula is specifically: in, is the minimum value in the grayscale data of the image to be displayed, is the maximum value of the grayscale data of the image to be displayed, is the first contrast.

3. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 2, characterized in that: The calculating of the second contrast of each of the regions specifically includes: Calculate the average grayscale corresponding to each of the regions ,in, Obtaining numbers corresponding to a plurality of regions for segmenting the image to be displayed; The pixels in each region whose grayscale is greater than or equal to the average grayscale corresponding to the region are defined as bright pixels, otherwise, they are defined as dark pixels; Calculate the bright average grayscale corresponding to the bright pixel The dark average grayscale corresponding to the dark pixel ; Calculating the second contrast using a second contrast calculation formula, where the second contrast is used to characterize the contrast of each of the regions; The second contrast calculation formula is specifically: in, For the number The second contrast of the area.

4. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 3, characterized in that: The obtaining of brightness data of the environment where the LCD screen is located specifically includes: The brightness data of the environment where the LCD screen is located is obtained based on the time series to obtain the corresponding relationship between the environment brightness and time.

5. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 4, characterized in that: The obtaining of the corresponding optimized contrast based on the change of the brightness data specifically includes: Preset contrast adjustment cycle; The brightness change before and after a contrast adjustment cycle is calculated by using the ambient brightness time correspondence relationship. ; The optimized contrast calculation formula is used to calculate the optimized contrast correction value corresponding to the brightness change, and the optimized contrast calculation formula is specifically: in, To optimize the control parameters of the contrast correction value, The optimized contrast correction value.

6. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 5, characterized in that: The capturing of the area to be optimized in the area based on the optimized contrast specifically includes: Preset region optimization threshold ,when Output the current number , and the area corresponding to the number is captured and determined as the area to be optimized, otherwise it is not captured.

7. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 6, characterized in that: The performing contrast reconstruction on the area to be optimized specifically includes: The reconstructed third contrast of each of the regions is calculated using a contrast reconstruction calculation formula, wherein the contrast reconstruction calculation formula is specifically: in, is the third contrast, and the third contrast is a target value for contrast reconstruction; Based on the third contrast, any one or more of the bright pixels and the dark pixels in each of the regions to be optimized are correspondingly adjusted so that the adjusted second contrast of the optimized region is equal to the third contrast, thereby obtaining the reconstructed region.

8. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 7, characterized in that: The using the reconstructed area to replace the area to be optimized specifically includes: Based on number , using the reconstructed area to replace the area to be optimized.

9. The image display method for improving the contrast and grayscale of a liquid crystal screen according to claim 8, characterized in that: The step of reconstructing the image to be displayed to obtain a reconstructed image specifically includes: Acquire edges of each of the regions where replacement has occurred in the image to be displayed after replacement; Image splicing and edge fusion are performed on the edges, and the image to be displayed obtained by fusion is defined as the reconstructed image.

10. The image display method for improving the contrast and grayscale of a liquid crystal screen according to any one of claims 1 to 9, characterized in that: The performing contrast detection on the reconstructed image and displaying the reconstructed image after the contrast detection specifically includes: Preset overall optimization threshold ; The first contrast of the reconstructed image is calculated using the first contrast calculation formula ; The configuration for performing contrast detection on the reconstructed image is: Calculate and judge Is it true? If so, it means that the contrast detection is passed and the reconstructed image is output and displayed. Otherwise, the control parameter of the optimized contrast correction value is modified. , and execute steps S2-S5 again until the contrast detection is passed.