Method and device for adjusting brightness of display device
By dynamically adjusting the backlight current and contrast according to the scene type of the display device, the problem of limited brightness and contrast improvement of the display device is solved, achieving higher display effects and lower power consumption.
Patent Information
- Application Number
- CN202410942434.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The brightness adjustment method of current display devices is limited by the control method, resulting in less than ideal display effects, especially when peak brightness and dynamic contrast are limited under HDR signals.
By determining the display strategy according to the current scene type of the target display device, dynamically adjusting the current amplitude and contrast of the backlight source to achieve higher brightness and contrast, including grayscale processing and statistical processing of the display image to determine the brightness distribution information , identify low contrast, low brightness, high contrast and high brightness scenes, and set the current amplitude and contrast under specific scenes.
It improves the brightness and contrast performance of the display device, enhances the display effect, especially in high dynamic range scenarios, improves the user experience, and reduces power consumption.
Smart Images

Figure CN118506743B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display brightness control, and in particular to a method and apparatus for adjusting the brightness of a display device. Background Art
[0002] At present, high dynamic range image HDR (High-Dynamic Range) technology has gradually become a very popular technology in the field of television technology. The use of HDR technology can increase the expression of details in the picture and improve the picture quality display effect. The current development of HDR TV technology has once again set off a wave of application of regional dimming technology on TV. With the higher pursuit of TV picture quality by users, the use of hundreds or thousands of regional dimming HDR boost can meet the higher brightness, contrast and peak brightness requirements under HDR signals.
[0003] The current regional dimming is to divide the backlight panel into several areas in a matrix manner, determine the backlight brightness level of each partition according to the grayscale histogram distribution of each image area, and obtain a suitable backlight brightness value to output to the backlight, thereby achieving the effect of matrix backlight.
[0004] From the above logic, we can know that when the screen is not fully lit, the power supply actually has surplus output capacity. For LED lights, they can withstand currents exceeding the safe current for a short period of time, thereby emitting higher brightness. Based on this, a certain algorithm can be used to control the matrix backlight module so that it can emit higher brightness when the power supply has surplus power.
[0005] At present, most of the matrix backlight TV products on the market have a feedback circuit for LED driver control. In terms of control accuracy, this feedback circuit should be configured for each LED light control module, but due to production cost reasons, the feedback circuits of all the backlight LED light control modules are connected in parallel. As a result, when performing feedback control, only the feedback of the LED light with the maximum brightness can be used as the power protection standard, thus limiting the improvement of peak brightness and dynamic contrast.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a method and apparatus for adjusting the brightness of a display device, so as to at least solve the technical problem that the current brightness adjustment method of the display device is limited by the control method, resulting in an unsatisfactory display effect of the display device.
[0008] According to one aspect of an embodiment of the present invention, a method for adjusting the brightness of a display device is provided, comprising: determining a current scene type of a target display device based on a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device; determining a display strategy of the target display device based on the current scene type; and updating a current display mode of the target display device based on the display strategy to adjust the brightness of the target display device.
[0009] Optionally, determining the current scene type of the target display device based on the display image of the target display device includes: performing grayscale processing on the display image to obtain a grayscale image of the display image; performing statistical processing on the grayscale image to obtain a grayscale histogram of the display image; determining brightness distribution information of the display image based on the grayscale histogram; and determining the current scene type based on the brightness distribution information.
[0010] Optionally, determining the current scene type according to the brightness distribution information includes: when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than a first set value and / or the distribution interval of the peak is less than a first preset interval, determining that the current scene type is a low-contrast scene; when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than a second set value and / or the distribution interval of the peak is greater than a second preset interval, determining that the current scene type is a high-contrast scene, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is smaller than the range corresponding to the second preset interval; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than a first brightness threshold, determining that the current scene type is a low-brightness scene; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than a second brightness threshold, determining that the current scene type is a high-brightness scene, wherein the first brightness threshold is less than the second brightness threshold.
[0011] Optionally, the first brightness threshold and the second brightness threshold are brightness thresholds determined according to an Otsu binarization algorithm.
[0012] Optionally, the display strategy of the target display device is determined according to the current scene type, including: when it is determined that the current scene type is the high-brightness scene or the high-contrast scene, the display strategy is determined as: setting the current amplitude of the partition of the target display device for the high-brightness scene to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
[0013] Optionally, the display strategy of the target display device is determined according to the current scene type, including: when it is determined that the current scene type is the high-brightness scene, determining the scene property of the high-brightness scene; when the scene property is the target scene property, determining the display strategy as: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point.
[0014] Optionally, determining the scene property of the high-brightness scene includes: taking a current partition in a high-brightness area corresponding to the high-brightness scene as a starting point, performing a neighborhood traversal on each partition in the high-brightness area to determine the scene property of the high-brightness scene.
[0015] Optionally, taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point, a neighborhood traversal is performed on each partition in the high-brightness area to determine the scene property of the high-brightness scene, including: when the neighborhood of the current partition traverses to the low-brightness area, determining that the current neighborhood of the current partition is the edge of the high-brightness area; when all the neighborhoods of the current partition have not traversed to the low-brightness area, determining that the current partition is the center of the high-brightness area; repeating the above steps, when traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a center point.
[0016] Optionally, before taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point and performing a neighborhood traversal on each partition in the high-brightness area to determine the scene property of the high-brightness scene, the brightness adjustment method of the display device also includes: obtaining the bright area of each partition in the high-brightness area; when it is determined that there is a partition in the high-brightness area whose bright area is smaller than a bright area threshold, filtering out the partition whose bright area is smaller than the bright area threshold.
[0017] Optionally, obtaining the bright area of each partition in the high-brightness area includes: obtaining a spatial distribution map of the high-brightness area; reducing each partition according to a preset ratio according to the spatial distribution map to obtain each reduced partition; and obtaining the bright area of each reduced partition.
[0018] Optionally, the current display mode of the target display device is updated according to the display strategy to adjust the brightness of the target display device, including: adjusting the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjusting the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; when it is determined that the number of frames for displaying images by the target display device according to the adjusted brightness reaches a preset number of frames, restoring the current amplitude to the amplitude before adjustment, and / or adjusting the second contrast to the first contrast.
[0019] According to another aspect of an embodiment of the present invention, a brightness adjustment device for a display device is also provided, including: a first determination unit, used to determine a current scene type of a target display device based on a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device; a second determination unit, used to determine a display strategy of the target display device based on the current scene type; and an adjustment unit, used to update a current display mode of the target display device according to the display strategy to adjust the brightness of the target display device.
[0020] Optionally, the second determination subunit includes: a first determination module, used to determine that the current scene type is a low-contrast scene when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than a first set value and / or the distribution interval of the peak is less than a first preset interval; a second determination module, used to determine that the current scene type is a high-contrast scene when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than a second set value and / or the distribution interval of the peak is greater than a second preset interval, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is smaller than the range corresponding to the second preset interval; a third determination module, used to determine that the current scene type is a low-brightness scene when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than a first brightness threshold; a fourth determination module, used to determine that the current scene type is a high-brightness scene when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than a second brightness threshold, wherein the first brightness threshold is less than the second brightness threshold.
[0021] Optionally, the first brightness threshold and the second brightness threshold are brightness thresholds determined according to an Otsu binarization algorithm.
[0022] Optionally, the grayscale processing subunit includes: an acquisition module, which is used to trigger the system-level chip to perform image acquisition on the display screen of the target display device when detecting the arrival of the rising edge of the vertical synchronization signal generated by the system-level chip, so as to obtain the display image; a grayscale processing module, which is used to control the system-level chip to send the display image to the microcontroller unit through a serial peripheral interface after determining that the system-level chip has acquired the display image, so as to use the microcontroller unit to perform grayscale processing on the display image, so as to obtain the grayscale image.
[0023] Optionally, the second determination unit includes: a first determination subunit, which is used to determine the display strategy as follows when determining that the current scene type is the high-brightness scene or the high-contrast scene: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
[0024] Optionally, the second determination unit includes: a second determination subunit, used to determine the scene property of the high-brightness scene when it is determined that the current scene type is the high-brightness scene; a third determination subunit, used to determine that the display strategy is: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point when the scene property is a target scene property.
[0025] Optionally, the first determination subunit includes: a traversal module, which is used to perform a neighborhood traversal on each partition in the high-brightness area corresponding to the high-brightness scene, taking the current partition in the high-brightness area corresponding to the high-brightness scene as a starting point, so as to determine the scene property of the high-brightness scene.
[0026] Optionally, the traversal module includes: a first determination submodule, used to determine that the current neighborhood of the current partition is the edge of the high-brightness area when the neighborhood of the current partition traverses to the low-brightness area; a second determination submodule, used to determine that the current partition is the center of the high-brightness area when all the neighborhoods of the current partition have not traversed to the low-brightness area; a third determination submodule, used to repeat the above steps, and when traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a brightness area less than a region threshold.
[0027] Optionally, the brightness adjustment device of the display device also includes: an acquisition module, which is used to obtain the bright area of each partition in the high-brightness area before performing a neighborhood traversal on each partition in the high-brightness area corresponding to the high-brightness scene with the current partition in the high-brightness area as the starting point to determine the scene property of the high-brightness scene; and a filtering module, which is used to filter out the partition whose bright area is less than the bright area threshold when it is determined that there is a partition in the high-brightness area whose bright area is less than the bright area threshold.
[0028] Optionally, the acquisition module includes: a first acquisition submodule, used to acquire the spatial distribution map of the high-brightness area; a reduction submodule, used to reduce each partition according to a preset ratio based on the spatial distribution map to obtain each reduced partition; and a second acquisition submodule, used to acquire the bright area of each reduced partition.
[0029] Optionally, the adjustment unit includes: a first adjustment subunit, used to adjust the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjust the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; a second adjustment subunit, used to restore the current amplitude to the amplitude before adjustment when it is determined that the number of frames for displaying images according to the adjusted brightness by the target display device reaches a preset number of frames, and / or adjust the second contrast to the first contrast.
[0030] According to another aspect of an embodiment of the present invention, a display device is provided. The display device uses any one of the above-mentioned brightness adjustment methods for the display device.
[0031] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for adjusting the brightness of a display device.
[0032] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program; the processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes any one of the above-mentioned methods for adjusting the brightness of a display device.
[0033] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions, and when the computer instructions are executed by a processor, any one of the above-mentioned methods for adjusting the brightness of a display device is executed.
[0034] In an embodiment of the present invention, the current scene type of the target display device is determined according to the display image of the target display device, wherein the current scene type is used to indicate the brightness display type of the target display device; the display strategy of the target display device is determined according to the current scene type; and the current display mode of the target display device is updated according to the display strategy to adjust the brightness of the target display device. Through the technical solution provided by the present invention, it is achieved that the most suitable display strategy can be determined according to the current scene type of the target display device, and then the current display mode is updated using the display strategy, so that the brightness of the target display device can be adjusted, the display effect of the display device is improved, and the technical problem that the current brightness adjustment method of the display device is limited by the control method, resulting in the display effect of the display device being less than ideal, is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0036] Figure 1 It is a hardware structure block diagram of a mobile terminal of a brightness adjustment method of a display device according to an embodiment of the present invention;
[0037] Figure 2 is a flow chart of a brightness adjustment method of a display device according to an embodiment of the present invention;
[0038] Figure 3 is a schematic diagram of the light emitting characteristics of an LED lamp according to an embodiment of the present invention;
[0039] Figure 4 is a flowchart of software processing on the main chip side in a brightness adjustment method for a display device according to an embodiment of the present invention;
[0040] FIG5( a ) is a schematic diagram of a histogram without performing contrast equalization according to an embodiment of the present invention;
[0041] FIG5( b ) is a schematic diagram of performing contrast equalization on a histogram according to an embodiment of the present invention;
[0042] Figure 6 is a matrix backlight hardware signal block diagram according to an embodiment of the present invention;
[0043] Figure 7is a schematic diagram of a neighborhood traversal algorithm according to an embodiment of the present invention;
[0044] Figure 8 is a flowchart of partition traversal according to an embodiment of the present invention;
[0045] Fig. 9 is a flowchart of finding a suitable bright area according to an embodiment of the present invention;
[0046] Fig.10 is a schematic diagram of a brightness adjustment device for a display device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0049] As introduced in the background technology, the current brightness adjustment method of the display device is limited by the control method, so that the display effect of the display device is not ideal. In view of the above defects, a brightness adjustment method and device of a display device and a display device are provided in an embodiment of the present invention.
[0050] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0051] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for adjusting brightness of a display device according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the brightness adjustment method of the display device in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0053] According to an embodiment of the present invention, a method embodiment of a method for adjusting the brightness of a display device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0054] Figure 2 is a flow chart of a method for adjusting brightness of a display device according to an embodiment of the present invention. Figure 2As shown, the brightness adjustment method of the display device includes the following steps:
[0055] Step S202: determining a current scene type of the target display device according to a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device.
[0056] Optionally, the target display device may be a device capable of displaying data, such as a television set, a computer, etc. In the embodiment of the present invention, the target display device is taken as an example for description.
[0057] Optionally, the current scene type may be a brightness display type of a target display device, such as a large block highlight scene, a low brightness scene, a low contrast scene, a high contrast scene, and the like.
[0058] In this embodiment, the acquisition device can be used to acquire the current display image of the target display device, and then the current scene type of the target display device can be determined based on the display image, so as to facilitate the subsequent adjustment of the brightness of the target display device so that the display effect of the target display device can be optimized.
[0059] Step S204: determining a display strategy of the target display device according to the current scene type.
[0060] In this embodiment, the display strategy of the target display device can be determined according to the current scene type, so that the current display mode of the target display device can be adjusted according to the display strategy to optimize the display effect of the target display device.
[0061] Step S206: updating the current display mode of the target display device according to the display strategy to adjust the brightness of the target display device.
[0062] Here, we take the target display device as a TV as an example. For example, LED lights may be used as backlight sources in a TV to provide high-definition images and energy-saving effects. LED lights are mainly used for backlighting and display in a TV. Backlight LED lights provide brightness and contrast, making the picture clearer and more realistic.
[0063] Figure 3 is a schematic diagram of the light emitting characteristics of an LED lamp according to an embodiment of the present invention, wherein: Figure 3 The horizontal axis represents the given current, and the vertical axis represents the brightness of the LED lamp. Figure 3As shown in the figure, under a given DC current drive, the LED lamp quickly reaches the saturation zone after operation and remains stable, and the luminous brightness remains fixed. Given different current values, the luminous brightness of the LED lamp will also be different. However, if a current exceeding the rated value is given (still within the LED lamp drive current parameter range), the LED lamp will exceed the rated state in a short period of time, and then slowly fall back to the saturation zone, and keep the luminous intensity fixed. Based on the luminous characteristics of the LED, here we can dynamically adjust the driving current of the LED, and use a short-time overdrive LED under set conditions to achieve a greater contrast, so that the LED backlight can "go dark" in dark scenes, not only can the brightness be increased in a short time in bright scenes, but also in high dynamic range scenes. The scene can further improve the dynamic contrast, enhance the display effect, and reduce power consumption.
[0064] As can be seen from the above, in an embodiment of the present invention, the current scene type of the target display device can be determined based on the display image of the target display device, wherein the current scene type is used to indicate the brightness display type of the target display device; the display strategy of the target display device is determined based on the current scene type; the current display mode of the target display device is updated based on the display strategy to adjust the brightness of the target display device, thereby achieving the purpose of determining the most suitable display strategy for the current situation based on the current scene type of the target display device, and then using the display strategy to update the current display mode, so as to adjust the brightness of the target display device and improve the display effect of the display device.
[0065] Therefore, through the above-mentioned embodiments of the present invention, the technical problem that the brightness adjustment method of the current display device is limited by the control method, resulting in an unsatisfactory display effect of the display device, is solved.
[0066] According to the above-mentioned embodiment of the present invention, the current scene type of the target display device is determined according to the display image of the target display device, including: grayscale processing of the display image to obtain a grayscale image of the display image; statistical processing of the grayscale image to obtain a grayscale histogram of the display image; determining the brightness distribution information of the display image according to the grayscale histogram; and determining the current scene type according to the brightness distribution information.
[0067] Figure 4 FIG. 1 is a flowchart of software processing on the main chip side in a brightness adjustment method for a display device according to an embodiment of the present invention. Figure 4 As shown, histogram statistical processing can be performed first.
[0068] In this embodiment, the captured display image of the display device can be grayscaled to obtain a grayscale image of the display image, and then the grayscale image can be statistically processed to obtain a grayscale histogram corresponding to the display image; then the brightness distribution information of the display image can be determined based on the grayscale histogram, and then the current scene type can be determined based on the brightness distribution information.
[0069] The above grayscale histogram is obtained by graying the displayed image, which can reflect the grayscale distribution of the displayed image. Histogram algorithms can be used in histogram statistics, such as histogram equalization, histogram brightness threshold selection, etc., based on the principle of performing brightness and darkness analysis based on the histogram and using a certain method to calculate the threshold. The brightness distribution of the displayed image can be intuitively seen from the histogram of the displayed image. The steeper and more concentrated the histogram peak is, the more concentrated the brightness energy distribution of the displayed image is, and the contrast is poor. From the perspective of display observation, the grayscale histogram of the displayed image can be evenly distributed in the entire grayscale range, thereby improving the overall contrast of the displayed image and facilitating observation.
[0070] It should be noted that, in the embodiment of the present invention, an image corresponds to a unique histogram, and an image can be divided into multiple regions. The sum of the histograms of the multiple regions is the histogram of the original image. According to the grayscale classification of 0-255, the closer the image histogram distribution is to the left end of the horizontal axis, the darker the image is, and the closer it is to the right end of the horizontal axis, the brighter the image is. If the pixel distribution of an image tends to occupy the entire pixel range and is evenly distributed, the image will have high contrast and richer image details. Among them, H( ) ,in, is the i-th gray level, H( ) is the statistical histogram, is the number of pixels with pixel value i in the image, is the total number of pixels in the image. ,in, is the cumulative histogram of the image, It is a mapping table between the original image and the equalization result image.
[0071] FIG5(a) is a schematic diagram of a histogram without contrast equalization according to an embodiment of the present invention, and FIG5(b) is a schematic diagram of a histogram with contrast equalization according to an embodiment of the present invention. In FIG5(a), the histogram peaks are relatively steep and concentrated, indicating that the brightness energy distribution of the displayed image is concentrated and the contrast is poor; while in FIG5(b), the histogram after equalization is evenly distributed in the entire grayscale range, thereby improving the overall contrast of the image for easy observation.
[0072] According to the above embodiment of the present invention, determining the current scene type according to the brightness distribution information includes: when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than the first set value and / or the distribution interval of the peak is less than the first preset interval, determining that the current scene type is a low-contrast scene; when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than the second set value and / or the distribution interval of the peak is greater than the second preset interval, determining that the current scene type is a high-contrast scene, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is less than the range corresponding to the second preset interval; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than the first brightness threshold, determining that the current scene type is a low-brightness scene; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than the second brightness threshold, determining that the current scene type is a high-brightness scene, wherein the first brightness threshold is less than the second brightness threshold.
[0073] In this embodiment, the current scene type can be determined based on the brightness distribution information in the grayscale histogram. For example, if the brightness distribution information indicates that the peak value in the grayscale histogram is relatively steep and concentrated, the current scene type can be determined to be a low-contrast scene; if the brightness distribution information indicates that the peak value in the grayscale histogram is not so steep and is distributed relatively evenly, the current scene type can be determined to be a high-contrast scene.
[0074] In addition, when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than the first brightness threshold, the current scene type is determined to be a low-brightness scene; conversely, when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than the second brightness threshold, the current scene type can be determined to be a high-brightness scene.
[0075] It should be noted that in the embodiment of the present invention, the logic for determining whether a scene feature is present is as follows: first, a statistical histogram of the entire image is obtained, and when the histogram is unevenly distributed in the high-brightness and low-brightness areas, it can be identified as a special scene, and then it is classified according to the states of the high-brightness and low-brightness areas. Thus, large-block high-brightness scenes, low-brightness scenes, low-contrast scenes, and high-contrast scenes can be obtained.
[0076] Because video scenes have their own inherent rules: a scene or a shot is usually only 15 to 30 seconds. In this scene or this shot, there will be a visual focus, which is often a high-brightness area in the middle of the screen. Since the content displayed on TV is basically in the middle, users pay more attention to the content displayed in the middle of the TV.
[0077] When a special scene is identified, it can be processed for this special scene. For example, when a large block of high-brightness scene is identified, it is necessary to overdrive the LED light bar for a short time, set the current amplitude to the maximum driving current that the LED light bar can withstand, and improve the peak brightness and dynamic contrast. After maintaining 240 frames of images (the number of image frames is related to the excess current time that the LED light can withstand), adjust the current amplitude back to the typical value of the conventional current to prevent the light bar from burning out.
[0078] In the above embodiment of the present invention, the first brightness threshold and the second brightness threshold are brightness thresholds determined according to the Otsu binarization algorithm.
[0079] That is, in the embodiment of the present invention, the histogram brightness threshold may be selected according to the Otsu binarization method.
[0080] Among them, Otsu binarization algorithm is an adaptive threshold processing method used to segment grayscale images into black and white parts. The principle of this algorithm is to automatically select an optimal threshold value based on the grayscale histogram of the image to achieve the best image segmentation result. The specific steps are as follows: 1). Count the grayscale histogram of the image to obtain the number of pixels at each grayscale level; 2). Calculate the total number of pixels in the image and the cumulative number of pixels at each grayscale level; 3). Traverse each grayscale level and calculate the inter-class variance when the level is used as the threshold. The grayscale level with the smallest variance is the optimal threshold; 4). Binarize the image according to the optimal threshold, set pixels greater than the threshold to white, and pixels less than the threshold to black.
[0081] The advantage of the Otsu binarization algorithm is that it can automatically select the optimal threshold value and is suitable for segmentation processing of different images. Therefore, in the embodiment of the present invention, the histogram brightness threshold value can be selected according to the Otsu binarization method.
[0082] Figure 6 is a block diagram of matrix backlight hardware signals according to an embodiment of the present invention, such as Figure 6As shown in the figure, when the rising edge of the VSYNC (Vertical Synchronization) signal generated by the main SOC (Systemon Chip) arrives, the main SOC starts to collect image information and sends data to the MCU (Microcontroller Unit) through the SPI (Serial Peripheral Interface) interface. After the MCU processes the data, it sets the relevant register values of one or more constant current driver ICs (Integrated Circuit) through SPI, so that the constant current driver IC outputs different duty cycle PWM (Pulse width modulation) waveforms and drive current to control the display brightness of the LED light bar. When the rising edge of the next VSYNC signal arrives, the constant current driver IC will refresh the brightness of the light bar.
[0083] In the embodiment of the present invention, SOC and MCU use SPI communication mode. For different models of matrix backlight TVs, the number of matrix backlight partitions is inconsistent, so the communication protocol must carry the data of each partition; currently there is only one feedback signal to control the matrix backlight module, and there is a maximum feedback current control parameter when designing the communication protocol; finally, from the perspective of data communication stability, 0x00AA is selected as the data header and CRC check bit is selected as the data tail. The SPI 16-bit communication protocol between SOC and MCU is shown in Table 1:
[0084] Table 1
[0085]
[0086] In Table 1 above, the first parameter is used as a header check and is set to a fixed parameter "0x00AA". When the Boost current adjustment function is turned on, the second parameter is used to increase the transient current amplitude, or to match the typical value of the conventional current of the corresponding model when doing a multi-model compatible design. From the third parameter to the N-1th parameter, each parameter 16 bits represents the brightness data of each light zone. Taking zone A as an example, the third parameter is the brightness data of zone 1, the fourth parameter is the brightness data of zone 2, and so on. The N-1th parameter is the brightness data of zone A, and the Nth parameter is the SPI transmission check data, which is used by the sending and receiving ends to check the correctness of data transmission.
[0087] The second parameter includes setting bits bit7-bit0, bit7-bit6 is the function setting bit, which is used to enable or disable the current amplitude adjustment function. When the value is 00, the current amplitude adjustment function is disabled. At this time, the bit5-bit0 data does not work. If there is no Boost function or no current amplitude adjustment is required, it should be set to 00; when the value is 11, the current amplitude adjustment function is enabled. At this time, the bit5-bit0 data has a total of 64, 0 represents the typical value of the conventional current, 63 represents the Boost current value, the difference between the typical value of the conventional current and the current value is △I, and there are 63 steps in total. If the step span is too large, the screen may flicker, and if the step span is too small, the Boost effect may be delayed. When the current amplitude has reached the maximum driving current that the LED light bar can withstand, the current amplitude should be adjusted back to the typical value of the conventional current after a certain period of time to prevent the light bar from burning and causing permanent failure. Usually, the typical value of the conventional current recommended by LED light bar manufacturers is 120mA, and the Boost current value is the maximum driving current value of 200mA that the LED light bar can withstand, that is, the maximum current value.
[0088] It should be noted that the implementation of this function requires the cooperation of the following two items: 1) In the MCU program, an array is defined for the constant current of the power supply. This array contains current register data, and the size of this array is the step size of the constant current given by the power supply; 2) When Boost is turned on, the data header sent by the TV main chip gradually increases from 0xC0, generally in steps of 1, until it increases to the set step size. The constant current obtains the register data corresponding to the current from the corresponding step and sets it, thereby achieving the effect of adjusting the current amplitude.
[0089] According to the above-mentioned embodiment of the present invention, determining the display strategy of the target display device according to the current scene type may include: when determining that the current scene type is a high-brightness scene or a high-contrast scene, determining the display strategy as: setting the current amplitude of the partition of the target display device for the high-brightness scene to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
[0090] Optionally, the partition of the target display device for high brightness scene indicates the area of the target display device whose brightness display type is corresponding to the high brightness scene. The determination method of the brightness display type of each area in the target display device has been described in detail in the above embodiment and will not be repeated here.
[0091] In this embodiment, only when a special scene is identified can this special scene be processed. For example, when a large block of high-brightness scene is identified, the LED light bar needs to be overdriven for a short time, and the current amplitude is set to the maximum driving current that the LED light bar can withstand to improve the peak brightness and dynamic contrast. After maintaining 240 frames of images (the number of image frames is related to the excess current time that the LED light can withstand), the current amplitude is adjusted back to the typical value of the conventional current to prevent the light bar from burning out.
[0092] According to the above embodiment of the present invention, the display strategy of the target display device is determined according to the current scene type, including: when it is determined that the current scene type is a high-brightness scene, the scene property of the high-brightness scene is determined; when the scene property is a target scene property, the display strategy is determined as: setting the current amplitude of the partition of the target display device for the high-brightness scene to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point.
[0093] In this embodiment, when a high-brightness scene is identified, the properties of the current large high-brightness area can be determined, such as whether the current area has a center point or not. The center point here is often consistent with the center point displayed on the screen. When the scene property of the high-brightness scene is determined to be that the brightness area corresponding to the brightness scene is less than the area threshold or the brightness area corresponding to the high-brightness scene has a center point, the current amplitude is set to the maximum driving current that the LED light bar can withstand to improve the peak brightness and dynamic contrast. After maintaining 240 frames of images (the number of image frames is related to the excess current time that the LED light can withstand), the current amplitude is adjusted back to the typical value of the conventional current to prevent the light bar from burning out.
[0094] According to the above-mentioned embodiment of the present invention, determining the scene properties of the high-brightness scene may include: taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point, performing a neighborhood traversal on each partition in the high-brightness area to determine the scene properties of the high-brightness scene.
[0095] In this embodiment, when a highlight scene is identified, the property of the current large block of high brightness area can be determined by the neighborhood traversal method, such as whether the current area has a center point or not, where the center point is often consistent with the center point displayed on the screen. By performing neighborhood traversal on the data of the large block of high brightness area, it is determined whether it is an edge element or a center element of the large block of high brightness area.
[0096] That is, if Figure 4As shown, in the embodiment of the present invention, after performing histogram statistics, determining the type of the displayed image, and calculating the threshold, an operation of identifying large block brightness can be performed.
[0097] The traversal method is mainly used to identify large bright areas. The search for closed intervals is generally based on depth or breadth. The depth and breadth algorithms look simple, but they are essentially recursive algorithms. Before the end condition is met, the relevant functions will continue to perform recursive operations, which will cause the computing resources of the main chip to continue to increase, and as the number of matrix backlight partitions increases, this situation will increase exponentially. In addition, the recursive algorithm also has the problem of stack overflow, and the stack capacity of each process is limited. Since recursion requires a system stack, the space consumption is much larger than that of non-recursive code. And if the recursive depth is too large, it may cause system abnormalities.
[0098] Therefore, in the embodiment of the present invention, it is not based on recursive operation, but on a one-time traversal of the partitions of the related matrix backlight. The advantage of a one-time traversal is that the amount of calculation is fixed. The relevant logic is to create a new function, write a traversal loop in the function, and mark the access to each partition of the matrix backlight during the traversal. Once the partition has been visited, it will be skipped directly; for a partition that has not been visited, a threshold judgment is performed, and if it is greater than the threshold, it is judged as a qualified bright area and marked as a bright area. For the qualified bright area, the values of its 8 directions, that is, the 8 neighborhoods are searched to see if there are any qualified bright areas, such as Figure 7 ( Figure 7 ) is a schematic diagram of a neighborhood traversal algorithm according to an embodiment of the present invention: 8 neighborhoods include 8 adjacent areas horizontally, vertically and diagonally. If there is a qualified bright area, check whether it has an access mark. If it has an access mark, it is given the same bright area mark as the visited one. If it does not have an access mark, it is given the bright area mark obtained previously. In this way, the relevant bright area can be found after traversing once. The neighborhood traversal algorithm used here is as follows: ,in, represents the brightness mapping under normal conditions, represents the new brightness map, represents the brightness map of the bright partition, represents the partition coordinates, and N represents the boundary value.
[0099] Furthermore, after finding the relevant bright areas, the size of the bright areas is counted, and the bright areas that are too small are directly filtered out. For the bright areas that meet the standards, they are traversed and visited again. The 8 neighborhoods are still visited. If there are partitions that do not meet the requirements in the neighborhood, they are marked as boundary partitions; otherwise, they are center partitions. After finding the first wave of center partitions, continue to iterate to find the center point, and then process according to the center point. The relevant software process is as follows: Figure 8 shown.
[0100] Figure 8 is a flowchart of partition traversal according to an embodiment of the present invention, such as Figure 8 As shown, after initialization, each partition begins to be traversed. During the traversal process, it will determine whether the current element has been traversed; if so, it will return to continue traversing the partition; otherwise, it will determine whether the current partition is a highlighted partition; if so, the partition will be marked; otherwise, it will return to traversing the partition; after marking the partition, the surrounding partitions will be traversed and marked.
[0101] In the above embodiment, taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point, a neighborhood traversal is performed on each partition in the high-brightness area to determine the scene properties of the high-brightness scene, including: when the neighborhood of the current partition traverses to the low-brightness area, determining that the current neighborhood of the current partition is the edge of the high-brightness area; when all the neighborhoods of the current partition have not traversed to the low-brightness area, determining that the current partition is the center of the high-brightness area; repeating the above steps, when traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a center point.
[0102] In this embodiment, a search is performed in the neighborhood of partition 8 of the current matrix backlight to find out whether there is a low-brightness area. If there is, it means that the current area is a low-brightness area. Then the traversed area is marked as the edge of a large high-brightness area; otherwise, it is the center of a large high-brightness area. According to the above logical iteration operation, it is possible to find the center point of a large block of brightness in the end. This center point is the center that the image needs to highlight. If it is not found, it means that the current large bright area is relatively small. For example, the moon on the night of the Mid-Autumn Festival is round and bright, or the sun rises in the morning of summer. In these two scenes, only the moon and the sun are bright, and the other surrounding pictures are relatively dark, which belong to relatively small large bright area scenes. For relatively small large bright area scenes and large bright area scenes with a center point, the current amplitude needs to be set to the maximum driving current that the LED light bar can withstand, to improve the peak brightness and dynamic contrast, and after maintaining 240 frames of images, the current amplitude is adjusted back to the typical value of the conventional current to prevent the light bar from burning.
[0103] According to the above-mentioned embodiment of the present invention, before taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point and performing a neighborhood traversal on each partition in the high-brightness area to determine the scene properties of the high-brightness scene, the brightness adjustment method of the display device also includes: obtaining the bright area of each partition in the high-brightness area; when it is determined that there is a partition in the high-brightness area whose bright area is smaller than the bright area threshold, filtering out the partition whose bright area is smaller than the bright area threshold.
[0104] In this embodiment, after the relevant bright areas are found, the area of each bright area is counted; bright areas that are too small are directly filtered out to reduce the amount of data processing and improve the processing speed.
[0105] According to the above embodiment of the present invention, the bright area of each partition in the high-brightness area is obtained, including: obtaining a spatial distribution map of the high-brightness area; reducing each partition according to a preset ratio according to the spatial distribution map to obtain each reduced partition; and obtaining the bright area of each reduced partition.
[0106] Fig. 9 is a flow chart of searching for a suitable bright area according to an embodiment of the present invention. Fig. 9 As shown, the method for judging the qualified bright area is combined with the actual LD light type, specifically, the 2D LD data is scaled once according to the LD light type diagram. If the area after scaling can still be judged as a highlight partition, the related bright area is identified as a large bright area.
[0107] According to the above embodiment of the present invention, the current display mode of the target display device is updated according to the display strategy to adjust the brightness of the target display device, including: adjusting the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjusting the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; when it is determined that the number of frames of the target display device displaying the image according to the adjusted brightness reaches a preset number of frames, restoring the current amplitude to the amplitude before adjustment, and / or adjusting the second contrast to the first contrast.
[0108] In this embodiment, the current display mode of the target display device can be updated by setting the current amplitude to the maximum driving current that the LED light bar can withstand, thereby improving the peak brightness and dynamic contrast. After maintaining 240 frames of image, the current amplitude is adjusted back to the typical value of the conventional current to prevent the light bar from burning out.
[0109] Through the technical solution provided by the embodiment of the present invention, based on the light-emitting characteristics of the LED, by dynamically adjusting the driving current of the LED, the LED is overdriven for a short time under set conditions to achieve a greater contrast. The LED backlight can be "dark" in dark scenes, and can not only increase the brightness in a short time in bright scenes, but also further improve the dynamic contrast in scenes with a high dynamic range, enhance the display effect, and reduce power consumption. In addition, in the embodiment of the present invention, the image is first classified by the histogram, and then the backlight brightness of each partition is determined according to the classification results and the brightness characteristic values of each partition. This algorithm has strong versatility and low complexity.
[0110] Therefore, through the above technical solution provided by the embodiment of the present invention, HDR high-brightness display can be achieved without increasing costs. Through scene feature recognition, the TV can achieve a short-term brightness burst in special scenes, which significantly improves the picture quality and enhances the user experience.
[0111] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of combinations, but those skilled in the art should be aware that the present application is not limited by the described order, 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 modules involved are not necessarily required by the present application.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0113] According to an embodiment of the present invention, there is also provided a brightness adjustment device for a display device for implementing the brightness adjustment method for a display device. Fig.10 is a schematic diagram of a brightness adjustment device for a display device according to an embodiment of the present invention. Fig.10 As shown, the brightness adjustment device of the display device includes: a first determination unit 1001, a second determination unit 1003 and an adjustment unit 1005. The brightness adjustment device of the display device is described below.
[0114] The first determining unit 1001 is configured to determine a current scene type of a target display device according to a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device.
[0115] The second determining unit 1003 is configured to determine a display strategy of a target display device according to a current scene type.
[0116] The adjusting unit 1005 is used to update the current display mode of the target display device according to the display strategy to adjust the brightness of the target display device.
[0117] It should be noted here that the above-mentioned first determination unit 1001, second determination unit 1003 and adjustment unit 1005 correspond to steps S202 to S206 in the above-mentioned embodiments, and the three units and the corresponding steps implement the same instances and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0118] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, the first determination unit can be used to determine the current scene type of the target display device according to the display image of the target display device, wherein the current scene type is used to represent the brightness display type of the target display device; then the second determination unit is used to determine the display strategy of the target display device according to the current scene type; and the adjustment unit is used to update the current display mode of the target display device according to the display strategy to adjust the brightness of the target display device, thereby achieving the purpose of determining the most suitable display strategy for the current scene type of the target display device, and then using the display strategy to update the current display mode, so as to adjust the brightness of the target display device and improve the display effect of the display device.
[0119] Therefore, through the above-mentioned embodiments of the present invention, the technical problem that the brightness adjustment method of the current display device is limited by the control method, resulting in an unsatisfactory display effect of the display device, is solved.
[0120] Optionally, the first determination unit includes: a grayscale processing subunit, used to perform grayscale processing on the display image to obtain a grayscale image of the display image; a statistical processing subunit, used to perform statistical processing on the grayscale image to obtain a grayscale histogram of the display image; a first determination subunit, used to determine the brightness distribution information of the display image based on the grayscale histogram; and a second determination subunit, used to determine the current scene type based on the brightness distribution information.
[0121] Optionally, the second determination subunit includes: a first determination module, used to determine that the current scene type is a low-contrast scene when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than a first set value and / or the distribution interval of the peak is less than a first preset interval; a second determination module, used to determine that the current scene type is a high-contrast scene when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than a second set value and / or the distribution interval of the peak is greater than a second preset interval, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is smaller than the range corresponding to the second preset interval; a third determination module, used to determine that the current scene type is a low-brightness scene when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than a first brightness threshold; a fourth determination module, used to determine that the current scene type is a high-brightness scene when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than a second brightness threshold, wherein the first brightness threshold is less than the second brightness threshold.
[0122] Optionally, the first brightness threshold and the second brightness threshold are brightness thresholds determined according to an Otsu binarization algorithm.
[0123] Optionally, the second determination unit includes: a first determination subunit, which is used to determine the display strategy when determining that the current scene type is a high-brightness scene or a high-contrast scene: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
[0124] Optionally, the second determination unit includes: a second determination subunit, used to determine the scene property of the high-brightness scene when it is determined that the current scene type is a high-brightness scene; a third determination subunit, used to determine the display strategy when the scene property is a target scene property: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point.
[0125] Optionally, the second determination subunit includes: a traversal module, which is used to perform neighborhood traversal on each partition in the high-brightness area corresponding to the high-brightness scene with the current partition in the high-brightness area as a starting point to determine the scene property of the high-brightness scene.
[0126] Optionally, the traversal module includes: a first determination submodule, used to determine that the current neighborhood of the current partition is the edge of the high-brightness area when the neighborhood of the current partition traverses to the low-brightness area; a second determination submodule, used to determine that the current partition is the center of the high-brightness area when all the neighborhoods of the current partition have not traversed to the low-brightness area; a third determination submodule, used to repeat the above steps, and when traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a brightness area less than a regional threshold.
[0127] Optionally, the brightness adjustment device of the display device also includes: an acquisition module, which is used to obtain the bright area of each partition in the high-brightness area before performing a neighborhood traversal on each partition in the high-brightness area corresponding to the high-brightness scene with the current partition in the high-brightness area as the starting point to determine the scene properties of the high-brightness scene; and a filtering module, which is used to filter out the partitions with bright area less than the bright area threshold when it is determined that there are partitions with bright area less than the bright area threshold in the high-brightness area.
[0128] Optionally, the acquisition module includes: a first acquisition submodule, used to obtain a spatial distribution map of the high-brightness area; a reduction submodule, used to reduce each partition according to a preset ratio based on the spatial distribution map to obtain each reduced partition; and a second acquisition submodule, used to obtain the bright area of each reduced partition.
[0129] Optionally, the adjustment unit includes: a first adjustment subunit, used to adjust the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjust the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; a second adjustment subunit, used to restore the current amplitude to the amplitude before adjustment when it is determined that the number of frames for displaying images according to the adjusted brightness of the target display device reaches a preset number of frames, and / or adjust the second contrast to the first contrast.
[0130] According to another aspect of an embodiment of the present invention, a display device is provided. The display device uses any one of the above brightness adjustment methods for the display device.
[0131] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for adjusting the brightness of a display device.
[0132] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.
[0133] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: determining a current scene type of the target display device based on a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device; determining a display policy of the target display device based on the current scene type; and updating a current display mode of the target display device based on the display policy to adjust the brightness of the target display device.
[0134] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: grayscale processing the display image to obtain a grayscale image of the display image; statistical processing the grayscale image to obtain a grayscale histogram of the display image; determining brightness distribution information of the display image based on the grayscale histogram; and determining the current scene type based on the brightness distribution information.
[0135] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than a first set value and / or the distribution interval of the peak is less than a first preset interval, determining that the current scene type is a low-contrast scene; when the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than a second set value and / or the distribution interval of the peak is greater than a second preset interval, determining that the current scene type is a high-contrast scene, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is less than the range corresponding to the second preset interval; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than a first brightness threshold, determining that the current scene type is a low-brightness scene; when the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than a second brightness threshold, determining that the current scene type is a high-brightness scene, wherein the first brightness threshold is less than the second brightness threshold.
[0136] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when it is determined that the current scene type is a high-brightness scene or a high-contrast scene, the display strategy is determined as: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
[0137] Optionally, in this embodiment, a computer-readable storage medium is configured to store program code for executing the following steps: when it is determined that the current scene type is a high-brightness scene, determining the scene property of the high-brightness scene; when the scene property is a target scene property, determining the display strategy as follows: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point.
[0138] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point, performing a neighborhood traversal on each partition in the high-brightness area to determine the scene properties of the high-brightness scene.
[0139] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when the neighborhood of the current partition traverses to the low-brightness area, determining that the current neighborhood of the current partition is the edge of the high-brightness area; when all the neighborhoods of the current partition have not traversed to the low-brightness area, determining that the current partition is the center of the high-brightness area; repeating the above steps, when traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determining that the scene property of the high-brightness scene is a high-brightness area with a brightness area less than a regional threshold.
[0140] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: taking the current partition in the high-brightness area corresponding to the high-brightness scene as the starting point, performing a neighborhood traversal on each partition in the high-brightness area to determine the scene properties of the high-brightness scene, obtaining the bright area of each partition in the high-brightness area; when it is determined that there are partitions in the high-brightness area whose bright area is smaller than a bright area threshold, filtering out the partitions whose bright area is smaller than the bright area threshold.
[0141] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: obtaining a spatial distribution map of the high-brightness area; reducing each partition according to a preset ratio based on the spatial distribution map to obtain each reduced partition; and obtaining the bright area of each reduced partition.
[0142] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: adjusting the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjusting the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy to update the current display mode to adjust the brightness of the target display device; when it is determined that the number of frames for displaying images by the target display device according to the adjusted brightness reaches a preset number of frames, restoring the current amplitude to the amplitude before adjustment, and / or adjusting the second contrast to the first contrast.
[0143] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program; and the processor is used to execute the computer program stored in the memory, wherein when the computer program is executed, the processor executes any one of the above-mentioned methods for adjusting the brightness of a display device.
[0144] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions, and when the computer instructions are executed by a processor, any one of the above-mentioned methods for adjusting the brightness of a display device is executed.
[0145] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0146] In the above embodiments of the present invention, 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.
[0147] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0148] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0149] In addition, each functional unit in each embodiment of the present invention 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.
[0150] 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 storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0151] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for adjusting brightness of a display device, characterized in that: include: Determining a current scene type of the target display device according to a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device; Determining a display strategy of the target display device according to the current scene type; updating the current display mode of the target display device according to the display strategy to adjust the brightness of the target display device; Wherein, updating the current display mode of the target display device according to the display strategy to adjust the brightness of the target display device includes: According to the display strategy, the current amplitude corresponding to the current display mode of the target display device is adjusted to the maximum driving current that the backlight source of the target display device can withstand, and / or the first contrast corresponding to the current display mode is adjusted to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; When it is determined that the number of frames for displaying images according to the adjusted brightness of the target display device reaches a preset number of frames, the current amplitude is restored to the amplitude before adjustment, and / or the second contrast is adjusted to the first contrast.
2. The brightness adjustment method of a display device according to claim 1, characterized in that: Determining a current scene type of a target display device according to a display image of the target display device includes: Performing grayscale processing on the display image to obtain a grayscale image of the display image; Performing statistical processing on the grayscale image to obtain a grayscale histogram of the display image; Determining brightness distribution information of the displayed image according to the grayscale histogram; The current scene type is determined according to the brightness distribution information.
3. The brightness adjustment method of a display device according to claim 2, characterized in that: Determining the current scene type according to the brightness distribution information includes: When the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is greater than a first set value and / or the distribution interval of the peak is less than a first preset interval, determining that the current scene type is a low-contrast scene; When the brightness distribution information indicates that the steepness of the peak in the grayscale histogram is less than a second set value and / or the distribution interval of the peak is greater than a second preset interval, determining that the current scene type is a high contrast scene, wherein the first set value is greater than the second set value, and the range corresponding to the first preset interval is smaller than the range corresponding to the second preset interval; When the brightness distribution information indicates that the brightness values of the grayscale histogram are all less than a first brightness threshold, determining that the current scene type is a low brightness scene; When the brightness distribution information indicates that the brightness values of the grayscale histogram are all greater than a second brightness threshold, it is determined that the current scene type is a high-brightness scene, wherein the first brightness threshold is less than the second brightness threshold.
4. The brightness adjustment method of a display device according to claim 3, characterized in that: The first brightness threshold and the second brightness threshold are brightness thresholds determined according to the Otsu binarization algorithm.
5. The brightness adjustment method of a display device according to claim 3, characterized in that: Determining a display strategy of the target display device according to the current scene type includes: When it is determined that the current scene type is the high-brightness scene or the high-contrast scene, the display strategy is determined as: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time.
6. The brightness adjustment method of a display device according to claim 3, characterized in that: Determining a display strategy of the target display device according to the current scene type includes: When determining that the current scene type is the high-brightness scene, determining a scene property of the high-brightness scene; When the scene property is a target scene property, the display strategy is determined as follows: setting the current amplitude of the partition for the high-brightness scene in the target display device to the maximum driving current that the backlight source of the target display device can withstand, and restoring the current amplitude to the amplitude before adjustment after a preset time, wherein the target scene property is at least one of the following: the brightness area corresponding to the high-brightness scene is less than the area threshold, and the brightness area corresponding to the high-brightness scene has a center point.
7. The brightness adjustment method of a display device according to claim 6, characterized in that: Determining the scene property of the high brightness scene includes: Taking the current partition in the high-brightness area corresponding to the high-brightness scene as a starting point, a neighborhood traversal is performed on each partition in the high-brightness area to determine the scene property of the high-brightness scene.
8. The brightness adjustment method of a display device according to claim 7, characterized in that: Taking the current partition in the high-brightness area corresponding to the high-brightness scene as a starting point, performing neighborhood traversal on each partition in the high-brightness area to determine the scene property of the high-brightness scene, including: When the neighborhood of the current partition traverses to a low-brightness area, determining that the current neighborhood of the current partition is an edge of the high-brightness area; When all the neighbors of the current partition have not traversed to the low-brightness area, determining the current partition to be the center of the high-brightness area; Repeat the above steps, and when traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a center point; when not traversing to the center of the high-brightness area, determine that the scene property of the high-brightness scene is a high-brightness area with a brightness area less than a regional threshold.
9. The brightness adjustment method of a display device according to claim 7, characterized in that: Before performing neighborhood traversal on each partition in the high-brightness area with the current partition in the high-brightness area corresponding to the high-brightness scene as a starting point to determine the scene property of the high-brightness scene, the method further includes: Obtaining the bright area of each partition in the high brightness area; When it is determined that the partition whose bright area is smaller than the bright area threshold exists in the high-brightness region, the partition whose bright area is smaller than the bright area threshold is filtered out.
10. The brightness adjustment method of a display device according to claim 9, characterized in that: Obtaining the bright area of each partition in the high brightness area includes: Acquire a spatial distribution map of the high brightness area; According to the spatial distribution map, each of the partitions is reduced according to a preset ratio to obtain each of the partitions after reduction; The bright area of each partition after reduction is obtained.
11. A brightness adjustment device for a display device, characterized in that: include: A first determining unit, configured to determine a current scene type of a target display device according to a display image of the target display device, wherein the current scene type is used to represent a brightness display type of the target display device; A second determining unit, configured to determine a display strategy of the target display device according to the current scene type; an adjusting unit, configured to update a current display mode of the target display device according to the display strategy, so as to adjust the brightness of the target display device; Among them, the adjustment unit includes: a first adjustment subunit, which is used to adjust the current amplitude corresponding to the current display mode of the target display device to the maximum driving current that the backlight source of the target display device can withstand according to the display strategy, and / or adjust the first contrast corresponding to the current display mode to the second contrast corresponding to the display strategy, so as to update the current display mode and adjust the brightness of the target display device; a second adjustment subunit, which is used to restore the current amplitude to the amplitude before adjustment when it is determined that the number of frames for displaying images according to the adjusted brightness of the target display device reaches a preset number of frames, and / or adjust the second contrast to the first contrast.
12. A display device, characterized in that: The display device uses the brightness adjustment method of the display device according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the brightness adjustment method of the display device according to any one of claims 1 to 10.
14. An electronic device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes the brightness adjustment method of the display device according to any one of claims 1 to 10.
15. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the brightness adjustment method of a display device according to any one of claims 1 to 10 is executed.
