Brightness control method and device of liquid crystal display screen and electronic equipment
By performing target detection and brightness adjustment on the image of the LCD screen, the problem of the LCD screen's brightness being unable to adapt is solved, automatic brightness adjustment is realized, and the visual experience and energy saving effect are improved.
Patent Information
- Application Number
- CN202410604736.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-17
AI Technical Summary
The LCD screen cannot adaptively adjust image brightness, requiring users to manually operate it, affecting the visual experience and increasing energy consumption.
By performing target detection on the image to be processed, the area of user concern is identified and the brightness of the LCD screen is adjusted according to its average brightness value to achieve automated brightness adjustment.
It improves the user's visual experience, reduces the user's operational burden, protects vision health, and reduces energy consumption through precise control of brightness, achieving effective use of energy.
Smart Images

Figure CN118658433A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing, and in particular to a brightness control method and device for a liquid crystal display screen and an electronic device. Background Art
[0002] With the advancement of technology and the popularization of digital life, LCD screens, as the main medium for image display, have been widely used in various terminal devices such as mobile phones, computers, and televisions.
[0003] However, in the related art, after the terminal device sends the image to the LCD screen for display, it often faces a common problem, that is, the brightness of the image displayed on the LCD screen cannot be adaptively adjusted. Specifically, although the LCD screen itself has a certain brightness adjustment function, this function usually relies on the user's manual operation, such as adjusting the brightness setting of the display screen. However, this adjustment method is not only cumbersome to operate, but also affects the user's visual experience. Therefore, how to adaptively adjust the brightness of the image displayed on the LCD screen is an urgent problem to be solved.
[0004] Therefore, there is an urgent need for a brightness control method and device for a liquid crystal display screen and an electronic device. Summary of the invention
[0005] The present application provides a method, device and electronic device for controlling the brightness of a liquid crystal display screen, which facilitates adaptive adjustment of the brightness of the liquid crystal display screen.
[0006] In the first aspect of the present application, a brightness control method for a liquid crystal display is provided, the method comprising: receiving an image to be processed sent by a terminal device, the image to be processed being an image displayed by a liquid crystal display; performing target detection on the image to be processed to obtain a first area, the first area being any one of multiple areas of the image to be processed, and the first area satisfies a preset attention mechanism; calculating an average brightness value of the first area; if it is determined that the average brightness value of the first area is less than a preset brightness threshold, obtaining a second area and reducing the brightness of the second area, the second area being an area where the first area is proportionally mapped and displayed on the liquid crystal display.
[0007] By adopting the above technical solution, by performing target detection on the processed image, the method can identify the area (i.e., the first area) that the user is most likely to pay attention to, and adjust the brightness of the LCD screen according to the average brightness value of these areas. In this way, when the user views the display screen, the brightness of the important area will be more appropriate, thereby improving the user's visual experience. The method realizes automatic adjustment of the brightness without manual intervention by the user. Through the preset attention mechanism and brightness threshold, the system can automatically detect the key areas in the image and determine whether the brightness needs to be adjusted. This automated and intelligent processing method greatly reduces the user's operating burden, thereby reducing the stimulation of the eyes in a dark environment, thereby protecting the user's vision health. By accurately controlling the brightness of the LCD screen, the method can reduce unnecessary energy consumption and contribute to energy conservation and environmental protection. When the brightness is low, the power consumption of the display screen will also be reduced accordingly, thereby achieving effective use of energy. As a result, it is convenient to adaptively adjust the brightness of the LCD screen.
[0008] Optionally, performing target detection on the image to be processed to obtain the first area specifically includes: obtaining the color value of each pixel block in the image to be processed under a preset color mode; calculating the color difference between a first pixel block and a second pixel block, the first pixel block and the second pixel block being any two adjacent pixel blocks among a plurality of the pixel blocks; judging the size relationship between the color difference and a preset difference; if the color difference is less than or equal to the preset difference, dividing the first pixel block and the second pixel block into the first area, and the preset attention mechanism is an attention mechanism for detecting color vividness, and the preset attention mechanism is set corresponding to the preset color mode.
[0009] By adopting the above technical solution, by obtaining the color value of each pixel block in the image to be processed under the preset color mode, the method can accurately analyze the details and features of the image. The color value is an important attribute of the pixel in the image, which can reflect the brightness, hue and other information of the image, and provide basic data for subsequent target detection. By calculating the color difference between adjacent pixel blocks and judging the size relationship between the difference and the preset difference, this processing method can accurately identify the area with small color change in the image. These areas often correspond to continuous and stable parts in the image, which may be the focus of user attention. By introducing a preset attention mechanism, the method can detect the color vividness, so as to more accurately identify the key areas in the image. This attention mechanism can be set and adjusted according to actual needs, making target detection more flexible and effective. Based on the processing method of pixel blocks and color differences, the method can quickly traverse the entire image and effectively identify the target area. Compared with traditional image processing methods, this method avoids complex algorithms and calculation processes and improves processing efficiency. At the same time, since the color difference is directly judged, the possibility of misjudgment is reduced and the accuracy of target detection is improved.
[0010] Optionally, the calculation to obtain the average brightness value of the first area specifically includes: calculating the HSV value of each pixel block in the first area; determining the corresponding brightness value based on multiple HSV values; and obtaining the average brightness value of the first area by calculating the average value based on the multiple brightness values.
[0011] By adopting the above technical solution, by calculating the HSV value of each pixel block in a specific area, this method can capture the color information of each pixel more accurately, so as to accurately determine its brightness value based on the color attribute of each pixel. This method not only considers the brightness of a single pixel, but also analyzes multiple pixel blocks in the area. This pixel block-based calculation method can reduce the interference of noise and take into account the texture and details that may exist in the image, so as to obtain more stable and reliable results. By averaging multiple brightness values, the average brightness value of the area can be obtained. This statistical method can reflect the overall brightness level of the entire area, rather than relying on a specific pixel or pixel block.
[0012] Optionally, acquiring the second area and reducing the brightness of the second area specifically includes: acquiring image parameters of the first area, the image parameters including shape parameters, size parameters and position parameters; and performing image matching in the image displayed on the LCD screen according to the image parameters to determine the second area.
[0013] By adopting the above technical solution, the characteristics of the area can be accurately described by obtaining the shape parameters, size parameters and position parameters of the first area. These parameters help to accurately match the second area similar to the first area in the overall image. This parameter matching-based method is more accurate and reliable than simple color or brightness matching. Using an image matching algorithm, the identification and positioning of the second area can be completed automatically. Compared with manual operation, this automated method greatly improves processing efficiency, reduces human errors, and is suitable for processing large amounts of image data. Since the matching is based on image parameters, this method can be applied to different types of images and areas of different sizes. By reducing the brightness of the second area, a variety of visual effects and purposes can be achieved.
[0014] Optionally, obtaining the second area and reducing the brightness of the second area specifically also includes: obtaining an average brightness value of the first area; obtaining a brightness adjustment value corresponding to the second area based on a pre-constructed correspondence between the average brightness value and the brightness adjustment value; and reducing the brightness of the second area according to the brightness adjustment value.
[0015] By adopting the above technical solution, by obtaining the average brightness value of the first area, adaptive adjustment of the brightness of the second area can be achieved. Different images or different areas may have different brightness characteristics, and the adjustment method based on the average brightness value can be flexibly adjusted according to the actual situation, avoiding the problems that may be caused by simple fixed value adjustment. The correspondence between the average brightness value and the brightness adjustment value is constructed to make the adjustment of the brightness of the second area more accurate. This correspondence can be formulated based on experimental data, user feedback or expert knowledge to ensure that a suitable brightness adjustment value can be obtained under different average brightness values. Since the adjustment is based on a pre-constructed correspondence, it can be ensured that the adjustment result of the brightness of the second area is consistent and predictable under different circumstances. This helps to maintain the stability and reliability of the image processing results. By adjusting the brightness of the second area, the visual effect of the overall image can be improved. For example, if the first area is the focus or important information in the image, by reducing the brightness of the second area, the first area can be highlighted to improve the clarity and readability of the image. This method can adjust the brightness distribution of the image according to user needs and preferences, thereby optimizing the user's visual experience. Different users may have different requirements for image brightness, and this adaptive adjustment method can meet the needs of different users.
[0016] Optionally, the receiving the image to be processed sent by the terminal device specifically includes: receiving the original image sent by the terminal device; preprocessing the original image to obtain the image to be processed, and the preprocessing includes denoising, filtering, data format conversion and proportional processing.
[0017] By adopting the above technical solution, through the denoising and filtering steps in the preprocessing, the noise and interference in the original image can be effectively removed, and the image quality can be improved. This helps the subsequent image processing and analysis work to ensure the accuracy and reliability of the results. The data format conversion step in the preprocessing process can convert the original image into a unified data format, which helps to ensure that the image data sent by different terminal devices can be processed consistently in the system. Standardized data formats can also improve processing efficiency and reduce errors or delays caused by incompatible formats. The proportional processing step can ensure that the size and proportion of the image are consistent. This is crucial for subsequent image processing and analysis, because images of different sizes may cause calculation errors or inconsistent results. Through proportional processing, it can be ensured that all images have the same processing conditions in the system, improving the accuracy and comparability of the results. The preprocessing step can eliminate abnormal data in the original image that may cause system errors or crashes. By cleaning and standardizing image data, the stability and reliability of the entire system can be improved, and system failures or interruptions caused by data problems can be reduced.
[0018] Optionally, the method further includes: if it is determined that the average brightness value of the first area is greater than or equal to the preset brightness threshold, determining the brightness adjustment value to be 0.
[0019] By adopting the above technical solution, when the average brightness of the first area is high enough (i.e., greater than or equal to the preset brightness threshold), the brightness adjustment value of the corresponding second area is set to 0, which can avoid unnecessary brightness reduction operations on the area. This can prevent image distortion or information loss caused by excessive adjustment and ensure the quality and readability of the image. By comparing the average brightness value and the preset threshold, it can be quickly determined whether the brightness needs to be adjusted, thereby avoiding unnecessary calculations and processing steps. When the brightness adjustment value is 0, the subsequent brightness adjustment process can be skipped directly, improving the overall processing efficiency.
[0020] In a second aspect of the present application, a brightness control device for a liquid crystal display screen is provided, the brightness control device comprising a receiving module and a processing module, wherein the receiving module is used to receive an image to be processed sent by a terminal device, the image to be processed is an image displayed by a liquid crystal display screen; the processing module is used to perform target detection on the image to be processed to obtain a first area, the first area is any one of multiple areas of the image to be processed, and the first area satisfies a preset attention mechanism; the processing module is also used to calculate an average brightness value of the first area; the processing module is also used to obtain a second area and reduce the brightness of the second area if it is determined that the average brightness value of the first area is less than a preset brightness threshold, the second area is the area where the first area is proportionally mapped and displayed on the liquid crystal display screen.
[0021] In the third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs the method described above.
[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, the method described above is executed.
[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By performing target detection on the image to be processed, the method can identify the area that the user is most likely to pay attention to (i.e., the first area), and adjust the brightness of the LCD screen according to the average brightness value of these areas. In this way, when the user views the display, the brightness of the important area will be more appropriate, thereby improving the user's visual experience. The method realizes automatic adjustment of brightness without manual intervention by the user. Through the preset attention mechanism and brightness threshold, the system can automatically detect the key areas in the image and determine whether the brightness needs to be adjusted. This automated and intelligent processing method greatly reduces the user's operating burden, thereby reducing the stimulation to the eyes in a dark environment, thereby protecting the user's vision health. By accurately controlling the brightness of the LCD screen, the method can reduce unnecessary energy consumption and contribute to energy conservation and environmental protection. When the brightness is low, the power consumption of the display will also be reduced accordingly, thereby realizing the effective use of energy. As a result, the brightness of the LCD screen is easily adaptively adjusted; 2. By calculating the HSV value of each pixel block in a specific area, this method can capture the color information of each pixel more accurately, thereby accurately determining its brightness value based on the color attributes of each pixel. This method not only considers the brightness of a single pixel, but also analyzes multiple pixel blocks in the area. This pixel block-based calculation method can reduce the interference of noise and take into account the texture and details that may exist in the image, thereby obtaining more stable and reliable results. By averaging multiple brightness values, the average brightness value of the area can be obtained. This statistical method can reflect the overall brightness level of the entire area, rather than relying on a specific pixel or pixel block. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic flow chart of a brightness control method for a liquid crystal display screen provided in an embodiment of the present application.
[0025] Figure 2 Another schematic diagram of a flow chart of a brightness control method for a liquid crystal display screen provided in an embodiment of the present application.
[0026] Figure 3 A module schematic diagram of a brightness control device for a liquid crystal display provided in an embodiment of the present application.
[0027] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0028] Explanation of the reference numerals: 31, receiving module; 32, processing module; 41, processor; 42, communication bus; 43, user interface; 44, network interface; 45, memory. DETAILED DESCRIPTION
[0029] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0030] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0031] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0032] With the rapid development of science and technology and the widespread popularity of digital life, LCD screens have become the core medium for image display and are widely used in various terminal devices such as mobile phones, computers, and televisions. However, in the relevant technical field, when terminal devices transmit images to LCD screens for display, there is generally a key problem: the brightness of the images displayed by the LCD screen cannot be adjusted adaptively.
[0033] Although LCD screens have the ability to adjust brightness, this adjustment usually relies on active user operations, such as adjusting the brightness settings of the screen. However, this adjustment method is not only complicated and cumbersome to operate, but may also have a negative impact on the user's visual experience. Therefore, how to achieve adaptive adjustment of the brightness of images displayed on LCD screens has become an important issue that needs to be solved urgently.
[0034] In order to solve the above technical problems, the present application provides a brightness control method for a liquid crystal display screen. Figure 1 , Figure 1 The present invention provides a flow chart of a brightness control method of a liquid crystal display screen provided in an embodiment of the present invention. The brightness control method is applied to a liquid crystal display screen controller, and includes steps S110 to S140, which are as follows: S110: receiving an image to be processed sent by a terminal device, where the image to be processed is an image displayed on a liquid crystal display screen.
[0035] Specifically, the LCD controller is a device or module responsible for controlling what is displayed on the LCD. It receives image or video data from an external source (such as a terminal device) and processes the data so that it can be displayed correctly on the LCD. Among them, the LCD controller is capable of receiving data from one or more terminal devices. These terminal devices may be smartphones, computers, cameras, or any other devices that can generate or process images. To-be-processed images are those that have not yet been displayed on the LCD, but are about to be processed by the controller and prepared for display. These images are not for storage, analysis, or other purposes, but for visual display on the LCD.
[0036] In a possible implementation, receiving an image to be processed sent by a terminal device specifically includes: receiving an original image sent by the terminal device; preprocessing the original image to obtain an image to be processed, wherein the preprocessing includes denoising, filtering, data format conversion, and proportional processing.
[0037] Specifically, since the original image may contain noise, incompatible formats, or mismatched sizes, preprocessing is required to optimize the image quality and make it suitable for display on the LCD screen. The preprocessing steps usually include multiple links such as denoising, filtering, data format conversion, and proportional processing. The image may be interfered by various noises during the generation or transmission process, such as pixel errors, color distortion, etc. The denoising operation aims to eliminate or reduce these noises and improve the clarity of the image. The filtering operation further smoothes the image, reduces discontinuities and burrs in details, and makes the image look smoother and more natural. Different terminal devices may use different image formats. In order to ensure that the image can be displayed correctly on the LCD screen, the data format of the original image needs to be converted into a format that can be recognized by both the controller and the display. The size of the original image may not match the resolution of the LCD screen. Proportional processing can ensure that the image will not be deformed or distorted when displayed, and maintain the original proportions and appearance.
[0038] For example, suppose a shopping mall's promotional advertising screen uses an LCD screen to display advertisements for various products. The mall's operators use a computer as a terminal device to create and edit advertising images. After the operators complete the design of the advertising images, they send these original images to the LCD screen controller through the computer. If the original image has noise or color noise during the shooting or editing process, the controller will perform a denoising operation to make the image clearer. To further improve the image quality, the controller filters the image to eliminate minor flaws and uneven areas. If the original image uses the JPEG format and the LCD screen controller requires the RGB format, the controller will perform a format conversion to ensure that the image data can be displayed correctly. If the size of the original image does not match the resolution of the advertising screen, the controller will scale the image proportionally to ensure that the image is displayed on the advertising screen in full and without deformation. The preprocessed image, that is, the image to be processed, will be sent to the LCD screen for display for customers to watch. Through this preprocessing process, the LCD screen controller can ensure that the received original image can be displayed on the LCD screen with high quality, improving the customer's visual experience.
[0039] S120, performing target detection on the image to be processed to obtain a first region, where the first region is any one of multiple regions of the image to be processed, and the first region satisfies a preset attention mechanism.
[0040] Specifically, target detection is a key technology in the field of computer vision, which aims to identify specific objects or regions from an image. In this scenario, the LCD controller applies a target detection algorithm to the image to be processed to identify different objects or regions in the image. Through the target detection algorithm, the controller can identify multiple regions in the image. These regions may correspond to different objects or features in the image. Among these regions, according to the preset attention mechanism, the controller selects one of the regions as the first region. This means that the first region is not a pre-set fixed region, but is dynamically determined according to the result of target detection. It can be any region in the image, depending on the content of the image and the output of the target detection algorithm. In addition to identifying the region through target detection, the selection of the first region also needs to meet the preset attention mechanism. The attention mechanism is usually used to guide the algorithm to focus on the most important part of the image. Here, it involves considering the size, shape, position, color, texture or other features of the region to ensure that the selected first region meets a certain standard or condition. For example, in an image to be displayed containing a portrait part and a blank part, the area of the portrait part and the area of the blank part both meet the part of the preset attention mechanism, but in order to make the portrait part more prominent, the blank part will be screened out as the first region.
[0041] In a possible implementation, target detection is performed on the image to be processed to obtain the first area, specifically including: obtaining the color value of each pixel block in the image to be processed under a preset color mode; calculating the color difference between the first pixel block and the second pixel block, the first pixel block and the second pixel block being any two adjacent pixel blocks among a plurality of pixel blocks; judging the size relationship between the color difference and the preset difference; if the color difference is less than or equal to the preset difference, dividing the first pixel block and the second pixel block into the first area, the preset attention mechanism is an attention mechanism for detecting color vividness, and the preset attention mechanism is set corresponding to the preset color mode.
[0042] Specifically, first, the LCD controller needs to set a color mode (such as RGB, HSV, etc.), and then extract the specific color value of each pixel block in the image to be processed under this color mode. These color values represent the color information of the pixel block and are the basis for subsequent analysis and judgment. Next, the LCD controller selects two adjacent pixel blocks (the first pixel block and the second pixel block) and calculates the color difference between them. This difference can measure the similarity or difference between the two pixel blocks in color. The LCD controller presets a color difference threshold (i.e., a preset difference) to determine whether the two pixel blocks are close enough in color. If the calculated color difference is less than or equal to the preset difference, then the two pixel blocks can be considered to be similar in color. If the color difference between two adjacent pixel blocks meets the above conditions (i.e., less than or equal to the preset difference), then the two pixel blocks will be divided into the first area. This process will continue to iterate until all pixel blocks that meet the conditions are classified into the first area. The attention mechanism mentioned here is designed based on the vividness of the color. It focuses on the areas with large color changes in the image because these areas often contain important visual information or boundaries. In order for the attention mechanism to work accurately, it is necessary to select a preset color mode that matches the attention mechanism. Different color modes may have different effects on the representation and calculation of color, so it is necessary to select a suitable color mode according to the needs of the attention mechanism.
[0043] For example, suppose there is an image to be processed that contains a variety of fruits, and our task is to detect strawberries. Strawberries are usually characterized by bright red, so we can set an attention mechanism based on the vividness of red. The LCD controller first extracts the red, green, and blue component values of each pixel block in the image in the RGB color mode. The LCD controller traverses each pixel block in the image and calculates the difference between it and the adjacent pixel blocks in the red component. If the difference between the adjacent pixel blocks in the red component is less than or equal to the preset difference threshold (indicating that they are close enough in red), the two pixel blocks are considered to be part of the same region. By continuously iterating this process, the LCD controller can identify all pixel blocks that are similar in red and divide them into the first region. This first region is likely to be the strawberry part in the image because it has a vivid feature in color. In this way, the LCD controller can automatically detect and divide specific areas in the image based on the vividness of the color, providing a basis for subsequent processing and analysis.
[0044] S130. Calculate and obtain an average brightness value of the first area.
[0045] Specifically, the first region is a specific region identified by the target detection algorithm, which is an object or a part of an object in the image. Luminance is a measure of the brightness of pixels in an image, usually expressed as a numerical range, such as 0 to 255. The higher the luminance value, the brighter the pixel; the lower the luminance value, the darker the pixel. The average luminance value refers to the average luminance value of all pixels in the first region. By calculating this average value, the overall brightness level of the region can be obtained, which is convenient for subsequent image processing or analysis.
[0046] In a possible implementation, the average brightness value of the first area is calculated, specifically including: calculating the HSV value of each pixel block in the first area; determining the corresponding brightness value based on multiple HSV values; and based on the multiple brightness values, calculating the average value to obtain the average brightness value of the first area.
[0047] Specifically, HSV stands for Hue, Saturation, and Value. This is a commonly used color space, especially for color recognition and analysis, because it decomposes color information into three separate components, making color processing more intuitive and convenient. The LCD controller will traverse each pixel block in the first region and convert the RGB value of each pixel block into HSV values. This conversion process involves a series of mathematical operations to convert the color information of the pixel from the RGB space to the HSV space. In the HSV color space, the lightness component directly represents the brightness or lightness of the color. Therefore, once the HSV values of the pixel blocks are calculated, the controller can directly extract the lightness component from these values. The controller collects the lightness values of all the pixel blocks in the first region and averages these values. This average value is the average lightness value of the first region, which reflects the overall brightness level of the region.
[0048] For example, suppose the LCD controller is processing an image that contains a field of grass. The field is identified as the first region. The field has some dark green and light green grass, and it looks green overall, but with different brightness. The controller goes through each pixel block in the grass region and converts the RGB values of these pixel blocks to HSV values. For example, a dark green pixel block might be converted to HSV values of (60, 100, 40), while a light green pixel block might be converted to (60, 80, 80). The third value here is the brightness value. From the HSV value of each pixel block, the controller extracts the brightness component. In the above example, the dark green pixel block has a brightness value of 40 and the light green pixel block has a brightness value of 80. The controller collects the brightness values of all the pixel blocks and calculates their average. If the grass region contains 100 pixel blocks, the controller will add up the 100 brightness values and divide them by 100. The result is the average brightness value of the grass region, which will reflect the overall brightness level of the grass in the field.
[0049] S140: If it is determined that the average brightness value of the first area is less than a preset brightness threshold, a second area is acquired and the brightness of the second area is reduced, where the second area is a region where the first area is proportionally mapped and displayed on the liquid crystal display screen.
[0050] Specifically, the LCD controller first calculates the average brightness value of the first area, which reflects the overall brightness level of the first area. Then, the controller compares the average brightness value with a preset brightness threshold. This threshold is usually set based on factors such as the characteristics of the LCD, the user's visual comfort, and energy consumption requirements. If the average brightness value is less than the preset brightness threshold, it means that the overall brightness of the first area is low and needs to be adjusted. Once it is determined that the brightness of the first area needs to be adjusted, the controller obtains information about the second area. This second area is the area where the first area is proportionally mapped and displayed on the LCD. In other words, the position and size of the second area on the display screen correspond to the position and size of the first area in the original image or data. The specific method of reducing the brightness may involve adjusting the backlight brightness of the display screen, adjusting the brightness level of the pixel, or other display parameters.
[0051] For example, suppose you are viewing a landscape photo on a smartphone, where the sky is the first region. Because it was cloudy when the photo was taken, the sky appears dim, i.e., the average brightness value of the first region is low. The LCD controller calculates the average brightness value of the sky region and finds that it is less than the preset brightness threshold. The second region corresponding to the sky is the part of the screen that displays the sky. To enhance the visibility of details other than the sky in the image, the controller reduces the brightness of the part of the phone screen that displays the sky. In this way, although the brightness of the entire screen is reduced, other parts will appear brighter and more prominent.
[0052] Therefore, by performing target detection on the processed image, the method can identify the area (i.e., the first area) that the user is most likely to pay attention to, and adjust the brightness of the LCD screen according to the average brightness value of these areas. In this way, when the user views the display screen, the brightness of the important area will be more appropriate, thereby improving the user's visual experience. The method realizes automatic adjustment of the brightness without manual intervention by the user. Through the preset attention mechanism and brightness threshold, the system can automatically detect the key areas in the image and determine whether the brightness needs to be adjusted. This automated and intelligent processing method greatly reduces the user's operating burden, thereby reducing the stimulation of the eyes in a dark environment, thereby protecting the user's vision health. By accurately controlling the brightness of the LCD screen, the method can reduce unnecessary energy consumption and contribute to energy conservation and environmental protection. When the brightness is low, the power consumption of the display screen will also be reduced accordingly, thereby achieving effective use of energy. As a result, it is convenient to adaptively adjust the brightness of the LCD screen.
[0053] In a possible implementation, acquiring the second area and reducing the brightness of the second area specifically includes: acquiring image parameters of the first area, the image parameters including shape parameters, size parameters and position parameters; and performing image matching in the image displayed on the LCD screen according to the image parameters to determine the second area.
[0054] Specifically, before adjusting the brightness of the LCD screen, it is first necessary to obtain the image parameters of the first area, which describe the specific features of the first area in the original image or data. Image parameters generally include shape parameters (such as circular, rectangular, irregular shape, etc.), size parameters (such as length, width, area, etc.) and position parameters (such as coordinates, position relationship, etc.). These parameters are the key to subsequent image matching on the LCD screen. After obtaining the image parameters of the first area, the next step is to perform image matching in the image displayed on the LCD screen. This process is similar to finding a small image with a specific shape, size and position in a large image. The controller will search and match the current display content of the LCD screen according to the image parameters of the first area to find the second area corresponding to the first area. This second area is the area on the LCD screen that actually displays the content corresponding to the first area. Once an image matching the first area is found on the LCD screen, the position and range of the second area are determined. This second area will be used as the target area for subsequent brightness adjustment. After determining the second area, the controller will perform an operation to reduce the brightness of the area. This can be achieved by adjusting the backlight, pixel brightness or other relevant parameters of the display screen.
[0055] In one possible implementation, refer to Figure 2 , Figure 2Another flow chart of a brightness control method for a liquid crystal display provided in an embodiment of the present application. Obtaining a second area and reducing the brightness of the second area specifically includes steps S210 to S230, the steps are as follows: S210, obtaining an average brightness value of the first area; S220, obtaining a brightness adjustment value corresponding to the second area based on a pre-constructed correspondence between the average brightness value and the brightness adjustment value; S230, reducing the brightness of the second area according to the brightness adjustment value.
[0056] Specifically, in order to quantify the brightness level of the first area, the average brightness value is a numerical value that represents the overall brightness of the first area. This value is obtained by calculating the brightness values of all pixels in the first area and then taking the average value. In order to more accurately control the adjustment of the brightness, the LCD display controller will pre-build a correspondence table or function, which describes the brightness adjustment values corresponding to different average brightness values. After obtaining the average brightness value of the first area, the LCD display controller will find the corresponding brightness adjustment value according to this correspondence. This brightness adjustment value is a specific value or ratio indicating a reduction in brightness. After obtaining the brightness adjustment value, the LCD display controller will reduce the brightness of the second area according to this value. Specific adjustment methods may include adjusting the backlight intensity, changing the brightness level of pixels, or applying other image processing techniques.
[0057] For example, suppose you are watching a movie on a laptop with intelligent brightness adjustment. A night scene (the first area) in the movie has a low average brightness value due to the dark environment. The display controller of the notebook calculates the average brightness value of the night scene (the first area), which represents the brightness level of the scene. Based on the pre-built correspondence between the average brightness value and the brightness adjustment value, the controller finds the brightness adjustment value corresponding to the current average brightness value. For example, if the average brightness value is below 50, the corresponding brightness adjustment value may be reduced by 20%. The controller reduces the brightness of the night scene (the second area) on the display according to the brightness adjustment value (reduced by 20%). In this way, although the brightness of the entire screen has not changed, the night scene part will appear relatively brighter, which improves the visual contrast and enables the audience to see the details in the night scene more clearly.
[0058] In a possible implementation, if it is determined that the average brightness value of the first area is greater than or equal to a preset brightness threshold, the brightness adjustment value is determined to be 0.
[0059] Specifically, the preset brightness threshold is a pre-set brightness standard used to determine whether the brightness of the first area is high enough and no brightness adjustment is required. If the average brightness value of the first area is greater than or equal to the preset brightness threshold, this means that the brightness of the first area has reached or exceeded the set standard and no brightness increase or decrease is required. Therefore, the LCD controller determines that the brightness adjustment value is 0, indicating that no adjustment is made to the brightness of the second area (the area corresponding to the first area).
[0060] The present application also provides a brightness control device for a liquid crystal display screen, referring to Figure 3 , Figure 3 A module schematic diagram of a brightness control device for a liquid crystal display provided in an embodiment of the present application. The brightness control device is a liquid crystal display brightness controller, comprising a receiving module 31 and a processing module 32, wherein the receiving module 31 receives an image to be processed sent by a terminal device, and the image to be processed is an image displayed by a liquid crystal display; the processing module 32 performs target detection on the image to be processed to obtain a first area, the first area is any one of multiple areas of the image to be processed, and the first area satisfies a preset attention mechanism; the processing module 32 calculates the average brightness value of the first area; if the processing module 32 determines that the average brightness value of the first area is less than a preset brightness threshold, the second area is obtained, and the brightness of the second area is reduced, and the second area is the area where the first area is proportionally mapped and displayed on the liquid crystal display.
[0061] In a possible implementation, the processing module 32 performs target detection on the image to be processed to obtain the first area, which specifically includes: the receiving module 31 obtains the color value of each pixel block in the image to be processed under a preset color mode; the processing module 32 calculates the color difference between the first pixel block and the second pixel block, the first pixel block and the second pixel block are any two adjacent pixel blocks among a plurality of pixel blocks; the processing module 32 determines the size relationship between the color difference and the preset difference; if the color difference is less than or equal to the preset difference, the processing module 32 divides the first pixel block and the second pixel block into the first area, and the preset attention mechanism is an attention mechanism for detecting color vividness, and the preset attention mechanism is set corresponding to the preset color mode.
[0062] In a possible implementation, the processing module 32 calculates the average brightness value of the first area, specifically including: the processing module 32 calculates the HSV value of each pixel block in the first area; the processing module 32 determines the corresponding brightness value based on multiple HSV values; the processing module 32 calculates the average value based on multiple brightness values to obtain the average brightness value of the first area.
[0063] In a possible implementation, the receiving module 31 acquires the second area and reduces the brightness of the second area, specifically including: the receiving module 31 acquires image parameters of the first area, the image parameters include shape parameters, size parameters and position parameters; the processing module 32 performs image matching in the image displayed on the LCD screen according to the image parameters to determine the second area.
[0064] In a possible implementation, the receiving module 31 obtains the second area and reduces the brightness of the second area, which specifically also includes: the receiving module 31 obtains the average brightness value of the first area; the processing module 32 obtains the brightness adjustment value corresponding to the second area based on the pre-constructed correspondence between the average brightness value and the brightness adjustment value; the processing module 32 reduces the brightness of the second area according to the brightness adjustment value.
[0065] In a possible implementation, the receiving module 31 receives the image to be processed sent by the terminal device, specifically including: the receiving module 31 receives the original image sent by the terminal device; the processing module 32 preprocesses the original image to obtain the image to be processed, and the preprocessing includes denoising, filtering, data format conversion and proportional processing.
[0066] In a possible implementation manner, if the processing module 32 determines that the average brightness value of the first area is greater than or equal to a preset brightness threshold, then the brightness adjustment value is determined to be 0.
[0067] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0068] The present application also provides an electronic device, referring to Figure 4 , Figure 4 The electronic device may include: at least one processor 41 , at least one network interface 44 , a user interface 43 , a memory 45 , and at least one communication bus 42 .
[0069] The communication bus 42 is used to realize the connection and communication between these components.
[0070] The user interface 43 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 43 may also include a standard wired interface and a wireless interface.
[0071] The network interface 44 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0072] Among them, the processor 41 may include one or more processing cores. The processor 41 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 45, and calling data stored in the memory 45. Optionally, the processor 41 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 41 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 41, and it can be implemented separately through a chip.
[0073] Among them, the memory 45 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 45 includes a non-transitory computer-readable storage medium. The memory 45 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 45 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 45 may also be optionally at least one storage device located away from the aforementioned processor 41. As Figure 4 As shown, the memory 45 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a method for controlling brightness of a liquid crystal display screen.
[0074] exist Figure 4In the electronic device shown, the user interface 43 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 41 can be used to call an application program for storing a brightness control method of a liquid crystal display screen in the memory 45. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.
[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0076] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.
[0077] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0078] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0079] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0082] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for controlling brightness of a liquid crystal display, characterized in that: The method comprises: Receiving an image to be processed sent by a terminal device, wherein the image to be processed is an image displayed on a liquid crystal display screen; Performing target detection on the image to be processed to obtain a first region, where the first region is any one of multiple regions of the image to be processed, and the first region satisfies a preset attention mechanism; Calculate and obtain an average brightness value of the first area; If it is determined that the average brightness value of the first area is less than a preset brightness threshold, a second area is acquired and the brightness of the second area is reduced. The second area is an area where the first area is proportionally mapped and displayed on the liquid crystal display screen.
2. The brightness control method of a liquid crystal display according to claim 1, characterized in that: The performing target detection on the image to be processed to obtain the first area specifically includes: Obtaining the color value of each pixel block in the image to be processed under a preset color mode; Calculating a color difference between a first pixel block and a second pixel block, where the first pixel block and the second pixel block are any two adjacent pixel blocks among the plurality of pixel blocks; Determining the size relationship between the color difference value and a preset difference value; If the color difference is less than or equal to the preset difference, the first pixel block and the second pixel block are divided into the first area, and the preset attention mechanism is an attention mechanism for detecting color vividness, and the preset attention mechanism is set corresponding to the preset color mode.
3. The brightness control method of a liquid crystal display according to claim 1, characterized in that: The calculating and obtaining the average brightness value of the first area specifically includes: Calculating the HSV value of each pixel block in the first area; Determine a corresponding brightness value according to the multiple HSV values; Based on the multiple brightness values, an average value is calculated to obtain an average brightness value of the first area.
4. The brightness control method of a liquid crystal display according to claim 1, characterized in that: The acquiring the second area and reducing the brightness of the second area specifically includes: Acquire image parameters of the first area, where the image parameters include shape parameters, size parameters, and position parameters; Image matching is performed in the image displayed on the liquid crystal display screen according to the image parameters to determine the second area.
5. The brightness control method of a liquid crystal display according to claim 4, characterized in that: The acquiring the second area and reducing the brightness of the second area specifically further includes: Obtaining an average brightness value of the first area; Based on a pre-constructed correspondence relationship between the average brightness value and the brightness adjustment value, obtaining a brightness adjustment value corresponding to the second area; The brightness of the second area is reduced according to the brightness adjustment value.
6. The brightness control method of a liquid crystal display according to claim 1, characterized in that: The receiving the image to be processed sent by the terminal device specifically includes: Receiving the original image sent by the terminal device; The original image is preprocessed to obtain the image to be processed, wherein the preprocessing includes denoising, filtering, data format conversion and proportional processing.
7. The brightness control method of a liquid crystal display according to claim 5, characterized in that: The method further comprises: If it is determined that the average brightness value of the first area is greater than or equal to the preset brightness threshold, the brightness adjustment value is determined to be 0.
8. A brightness control device for a liquid crystal display, characterized in that: The brightness control device comprises a receiving module (31) and a processing module (32), wherein: The receiving module (31) is used to receive an image to be processed sent by a terminal device, wherein the image to be processed is an image displayed on a liquid crystal display screen; The processing module (32) is used to perform target detection on the image to be processed to obtain a first region, wherein the first region is any one of multiple regions of the image to be processed, and the first region satisfies a preset attention mechanism; The processing module (32) is further used to calculate and obtain an average brightness value of the first area; The processing module (32) is further used to obtain a second area and reduce the brightness of the second area if it is determined that the average brightness value of the first area is less than a preset brightness threshold, wherein the second area is an area where the first area is proportionally mapped and displayed on the liquid crystal display screen.
9. An electronic device, characterized in that: The electronic device comprises a processor (41), a memory (45), a user interface (43) and a network interface (44), wherein the memory (45) is used to store instructions, the user interface (43) and the network interface (44) are both used to communicate with other devices, and the processor (41) is used to execute the instructions stored in the memory (45) so that the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Image display method, electronic equipment and readable storage medium
CN116825048A
Control method and device of outdoor liquid crystal display and electronic equipment
CN117524154A
Image processing method, terminal and non-transitory computer-readable storage medium
US20220044369A1
Image brightness adjustment method, image brightness adjustment apparatus, and electronic device
WO2022174428A1
