A brightness control method and device based on RGB three channels and electronic equipment
By using a brightness control method based on RGB three channels, the data source for each channel is determined and the backlight coefficient is calculated, which solves the problem of poor compatibility in existing technologies and enables support for multiple backlight configurations and improved display effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-29
- Publication Date
- 2026-03-24
AI Technical Summary
Existing local backlight adjustment technology only supports white backlights and cannot support RGB three-color backlights, YB two-color backlights, or GP two-color backlights, resulting in poor compatibility.
By using a brightness control method based on RGB three channels, the data source corresponding to each channel is determined, and the backlight coefficient is calculated based on the data source to control the backlight brightness, supporting multiple backlight configurations.
It enables the local backlight adjustment function of electronic devices to be compatible with various backlight configurations, improving display effect and power consumption management.
Smart Images

Figure CN114429754B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of image display technology, and in particular relates to a brightness control method, device, electronic device and computer-readable storage medium based on RGB three channels. Background Technology
[0002] Currently, electronic devices such as LCD TVs are playing an increasingly important role in people's daily lives, and reducing the power consumption of these devices has become a pressing issue for manufacturers. One common technology used is local backlight adjustment, which adjusts the backlight brightness of electronic devices in real time to reduce power consumption.
[0003] However, existing local backlight adjustment technologies only support white backlights and cannot support RGB three-color backlights, YB two-color backlights, and GP two-color backlights, resulting in poor compatibility. Summary of the Invention
[0004] In view of this, this application provides a brightness control method, device, electronic device and computer-readable storage medium based on RGB three channels, which enables the local backlight adjustment function of electronic devices to support multiple backlight configurations and has good compatibility.
[0005] In a first aspect, this application provides a brightness control method based on RGB three channels, including:
[0006] The data source corresponding to each of the above channels is determined based on the backlight configuration and the video data to be displayed.
[0007] The backlight coefficient is determined based on the above data source to control the backlight brightness.
[0008] Optionally, after determining the backlight coefficient based on the aforementioned data source to control the backlight brightness, the method further includes:
[0009] The display brightness is compensated based on the aforementioned backlight coefficient.
[0010] Optionally, the above-mentioned compensation for display brightness based on the backlight coefficient includes:
[0011] For each pixel of the above video data, the grayscale data of the pixel in the corresponding channel is compensated by the brightness contribution value of each backlight in the preset area corresponding to the pixel, so as to obtain the compensated grayscale data.
[0012] The display is based on the compensated grayscale data of each pixel.
[0013] Optionally, the grayscale data of the pixel in the corresponding channel is compensated by using the brightness contribution value of each backlight source in the preset area corresponding to the pixel to obtain the compensated grayscale data, including:
[0014] The current brightness of the pixel in the corresponding channel is calculated based on the brightness contribution value of each backlight in the preset area to the pixel.
[0015] Calculate the ratio between the current brightness of the above pixel in the corresponding channel and the original brightness in the corresponding channel;
[0016] Based on the above ratio, the grayscale data of the above pixels in the corresponding channels are compensated to obtain the compensated grayscale data.
[0017] The above determination of the data source corresponding to each of the above channels based on the backlight configuration and the video data to be displayed includes:
[0018] The configuration scheme corresponding to the above backlight configuration is determined based on the preset configuration relationship;
[0019] Based on the above configuration scheme, select the data source corresponding to the above channel from the above video data.
[0020] Optionally, the above configuration scheme includes channel combinations corresponding to the above channels, and the channel combinations include at least one of the RGB three channels. The selection of the data source corresponding to the above channels from the above video data according to the above configuration scheme includes:
[0021] The pixel values of each channel in the above-mentioned video data in the above-mentioned channel combination are used as the data source corresponding to the above-mentioned channel.
[0022] Optionally, determining the backlight coefficient based on the aforementioned data source to control the backlight brightness includes:
[0023] Calculate the corresponding backlight coefficient based on the above data source;
[0024] Adjust the backlight brightness of the corresponding zones based on the aforementioned backlight coefficient.
[0025] Optionally, the calculation of the corresponding backlight coefficient based on the aforementioned data source includes:
[0026] For each pixel in the above data source, obtain the pixel value of the pixel in each channel;
[0027] A target histogram is generated based on the target pixel value corresponding to each pixel in the above data source. The target pixel value is the maximum value of the corresponding pixel among all the pixel values of all acquired channels. The target histogram represents the number of pixels in the above data source under each target pixel value. The horizontal axis of the target histogram represents the pixel value, and the vertical axis represents the number of pixels corresponding to the pixel value.
[0028] Calculate the corresponding backlight coefficient based on the target histogram above.
[0029] Optionally, the calculation of the corresponding backlight coefficient based on the target histogram includes:
[0030] The coordinate values of the target histogram are accumulated and superimposed, and the coordinate values whose accumulated values are greater than or equal to the preset values are used as the backlight coefficients.
[0031] Optionally, adjusting the backlight brightness of the corresponding zone based on the aforementioned backlight coefficient includes:
[0032] The target backlight brightness corresponding to the aforementioned backlight coefficient is determined according to a preset backlight brightness lookup table, which is used to indicate the correspondence between the backlight coefficient and the backlight brightness.
[0033] Adjust the brightness of the corresponding backlight in the corresponding zone to the target backlight brightness mentioned above.
[0034] Secondly, this application provides a brightness control device based on RGB three channels, comprising:
[0035] The data source determination unit is used to determine the data source corresponding to each of the above channels based on the backlight configuration and the video data to be displayed.
[0036] The coefficient determination unit is used to determine the backlight coefficient based on the above data source in order to control the backlight brightness.
[0037] Thirdly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method provided in the first aspect above.
[0038] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in the first aspect.
[0039] Fifthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method provided in the first aspect.
[0040] As can be seen from the above, the solution in this application first determines the data source corresponding to each channel based on the backlight configuration and the video data to be displayed, and then determines the backlight coefficient to control the backlight brightness based on the aforementioned data source. This solution determines the data source corresponding to each of the three RGB channels and calculates the corresponding backlight coefficient based on the data source for each channel. The three backlight coefficients jointly control the backlight brightness, enabling the local backlight adjustment function of the electronic device to support multiple backlight configurations and providing good compatibility. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a schematic flowchart of the brightness control method provided in the embodiments of this application;
[0043] Figure 2 This is an example diagram of the partitioning of a display screen provided in an embodiment of this application;
[0044] Figure 3 This is an example diagram of the target histogram provided in the embodiments of this application;
[0045] Figure 4 This is a structural block diagram of the brightness control device provided in the embodiments of this application;
[0046] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0047] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0048] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0049] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0050] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0051] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0052] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0053] Figure 1 A flowchart of a brightness control method based on RGB three channels provided in an embodiment of this application is shown. This brightness control method is applied to electronic devices with a display screen, and is described in detail below:
[0054] Step 101: Determine the data source corresponding to each channel based on the backlight configuration and the video data to be displayed;
[0055] In this embodiment, the video data to be displayed can be input by the user into the electronic device or obtained from within the electronic device itself. For example, the user can input the video data that the electronic device currently needs to play into the electronic device. Backlight configurations include, but are not limited to, white backlights, RGB three-color backlights, YB dual-color backlights, and GP dual-color backlights. Based on the video data and the electronic device's own backlight configuration, the electronic device can determine the data source corresponding to each of the RGB three channels; for example, the R channel corresponds to data source 1, the G channel to data source 2, and the B channel to data source 3.
[0056] It should be noted that the electronic device includes at least two backlight units, and each backlight unit includes at least one backlight source. The specific number of backlight sources depends on the backlight configuration. For example, if the electronic device's backlight configuration is RGB three-color backlight, then each backlight unit includes three backlight sources: red, green, and blue. If the electronic device's backlight configuration is white, then each backlight unit includes only one backlight source, namely a white backlight. Based on the distribution of the backlight units, the display area can be divided into at least two partitions. Each partition corresponds to one backlight unit, and the number of partitions is equal to the number of backlight units. For example, please refer to... Figure 2 , Figure 2 The display screen is divided into 16×9 zones, with one zone corresponding to one backlight unit. That is, one backlight unit provides light source for one zone. The backlight unit includes three backlights, namely red backlight 21, green backlight 22 and blue backlight 23.
[0057] It is understood that in local backlight adjustment technology, the same or similar operations are performed on each zone of the display screen. Therefore, for ease of explanation, we will take one zone of the display screen as an example, which is the zone that needs to be brightness controlled in this application embodiment.
[0058] Optionally, step 101 above may specifically include:
[0059] The configuration scheme corresponding to the backlight configuration is determined based on the preset configuration relationship;
[0060] Select the data source corresponding to the channel from the video data according to the configuration scheme.
[0061] In this embodiment, the preset configuration relationship includes the correspondence between backlight configuration and configuration scheme. For example, a preset configuration table can be stored in the electronic device to record the configuration relationship. Based on the configuration relationship, a configuration scheme corresponding to the backlight configuration of the electronic device can be determined. This configuration scheme is used to indicate the configuration of the data source corresponding to each channel. Based on the configuration scheme, the data source corresponding to each channel can be selected from the video data. Specifically, the configuration of the data source corresponding to each channel is a combination of at least one channel among the RGB three channels. This combination is denoted as a channel combination. The channel combination may include the R channel, or the channel combination may include the G channel and the B channel, or the channel combination may include the R channel, the G channel, and the B channel. It should be understood that this is only an example of a channel combination and does not limit the channel combination in any way. For example, assuming the data source configuration for the R channel is channel combination 1, which includes the G channel and the B channel, the video data belonging to the corresponding partition (i.e., the partition that needs brightness control) can be determined from the video data first. The video data belonging to this partition is the video data displayed in this partition. Then, the pixel values of the video data belonging to this partition in the G channel and the pixel values of the video data belonging to this partition in the B channel can be used as the data source corresponding to the R channel.
[0062] Please refer to the table below, which is an example of a default configuration table:
[0063]
[0064] Based on the above preset configuration table, assuming that the backlight configuration of the electronic device is an RGB three-color backlight, then for the R channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the R channel; for the G channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the G channel; and for the B channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the B channel.
[0065] Assuming the backlight of the electronic device is configured as a white backlight, then for the R channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the RGB three channels; for the G channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the RGB three channels; and for the B channel, the corresponding data source includes the pixel values of the video data belonging to the corresponding partition in the RGB three channels.
[0066] Step 102: Determine the backlight coefficient based on the data source to control the backlight brightness;
[0067] In this embodiment, after the electronic device obtains the data source corresponding to each of the three RGB channels, it can calculate the corresponding backlight coefficient based on the data source for each channel. It should be understood that because there are three RGB channels, each corresponding to one data source, there are actually three calculated backlight coefficients: the backlight coefficient corresponding to the R channel, the backlight coefficient corresponding to the G channel, and the backlight coefficient corresponding to the B channel. Each calculated backlight coefficient is used to adjust the backlight brightness of the electronic device.
[0068] Optionally, step 102 above may specifically include:
[0069] A1. Calculate the corresponding backlight coefficient based on the data source;
[0070] A2. Adjust the backlight brightness of the corresponding zone based on the backlight coefficient.
[0071] In this embodiment of the application, based on the above-mentioned preset configuration table, it can be seen that when the backlight of the electronic device is configured as a white backlight, the data source corresponding to the R channel, the data source corresponding to the G channel, and the data source corresponding to the B channel all include the pixel values of the video data belonging to the corresponding partition in the RGB three channels. Therefore, the backlight coefficients corresponding to the R channel, the G channel, and the B channel calculated based on the same data source are the same.
[0072] When the backlight of an electronic device is configured as an RGB three-color backlight, the data source corresponding to the R channel includes the pixel values of the video data belonging to the corresponding partition in the R channel, the data source corresponding to the G channel includes the pixel values of the video data belonging to the corresponding partition in the G channel, and the data source corresponding to the B channel includes the pixel values of the video data belonging to the corresponding partition in the B channel. Therefore, the backlight coefficients corresponding to the R channel, G channel, and B channel calculated according to different data sources are all different.
[0073] When the backlight of an electronic device is configured as a YB dual-color backlight, the data source corresponding to the R channel includes the pixel values of the video data belonging to the corresponding partition in both the R and G channels. The data source corresponding to the G channel includes the pixel values of the video data belonging to the corresponding partition in both the R and G channels. The data source corresponding to the B channel includes the pixel values of the video data belonging to the corresponding partition in the B channel. Therefore, the backlight coefficients corresponding to the R channel and the G channel calculated based on the same data source are the same, while the backlight coefficients corresponding to the G channel and the B channel calculated based on different data sources are different.
[0074] Specifically, after calculating the corresponding backlight coefficient, the backlight brightness of the corresponding zone can be adjusted based on the backlight coefficient. For example, a backlight control signal can be generated for the backlight unit of the corresponding zone based on the backlight coefficient. This backlight control signal is used to adjust the brightness of the backlight source included in the backlight unit, thereby improving the display effect of the electronic device's screen.
[0075] For example, a backlight control signal can be generated for the corresponding backlight in the corresponding partition based on the backlight coefficient corresponding to each of the RGB three channels. This backlight control signal is used to adjust the brightness of the corresponding backlight. The channels and backlights have the following correspondence:
[0076] Taking an RGB three-color backlight as an example, the backlight corresponding to the R channel is red, the backlight corresponding to the G channel is green, and the backlight corresponding to the B channel is blue. Taking a white backlight as an example, the backlights corresponding to the R, G, and B channels are all white. Taking a YB (yellow-blue) dual-color backlight as an example, since red plus green equals yellow, the backlights corresponding to the R and G channels are both yellow, and the backlight corresponding to the B channel is blue. Taking an RC (red-cyan) dual-color backlight as an example, since green plus blue equals cyan, the backlights corresponding to the G and B channels are both cyan, and the backlight corresponding to the R channel is red. Taking a GP (green-violet) dual-color backlight as an example, since red plus blue equals violet, the backlights corresponding to the R and B channels are both violet, and the backlight corresponding to the G channel is green.
[0077] For example, if the backlight of an electronic device is configured as an RGB three-color backlight, a first backlight control signal can be generated for the red backlight in the corresponding partition based on the backlight coefficient corresponding to the R channel. This first backlight control signal is used to adjust the brightness of the red backlight. A second backlight control signal can be generated for the green backlight in the corresponding partition based on the backlight coefficient corresponding to the G channel. This second backlight control signal is used to adjust the brightness of the green backlight. A third backlight control signal can be generated for the blue backlight in the corresponding partition based on the backlight coefficient corresponding to the B channel. This third backlight control signal is used to adjust the brightness of the blue backlight.
[0078] As mentioned above, if the backlight of an electronic device is configured as a white backlight, then the backlight coefficients corresponding to the R channel, G channel, and B channel are the same. Therefore, a fourth backlight control signal can be generated for the corresponding white backlight area based on the backlight coefficients corresponding to the R channel, G channel, or B channel. This fourth backlight control signal is used to adjust the brightness of the white backlight.
[0079] As mentioned above, if the backlight of an electronic device is configured as a YB dual-color backlight, the backlight coefficients corresponding to the R channel and the G channel are the same, while the backlight coefficients corresponding to the G channel and the B channel are different. Therefore, a fifth backlight control signal can be generated for the yellow backlight of the corresponding zone based on the backlight coefficients corresponding to the R channel or the G channel. This fifth backlight control signal is used to adjust the brightness of the yellow backlight. Similarly, a sixth backlight control signal can be generated for the blue backlight of the corresponding zone based on the backlight coefficients corresponding to the B channel. This sixth backlight control signal is used to adjust the brightness of the blue backlight.
[0080] Optionally, step A2 above may specifically include:
[0081] A21. Determine the target backlight brightness corresponding to the backlight coefficient according to the preset backlight brightness reference table;
[0082] A22. Adjust the brightness of the corresponding backlight in the corresponding partition to the target backlight brightness.
[0083] In this embodiment, a preset backlight brightness lookup table is used to indicate the correspondence between the backlight coefficient and the backlight brightness. For example, it is assumed that the backlight coefficient ranges from 0 to 1, and the backlight brightness ranges from 0 to 800. Based on this assumption, when the backlight coefficient is 0, the corresponding backlight brightness is 0; when the backlight coefficient is 1, the corresponding backlight brightness is 800; and when the backlight coefficient is 0.5, the corresponding backlight brightness is 400. Based on the calculated backlight coefficient, the backlight brightness corresponding to that backlight coefficient can be found in the backlight brightness lookup table, and this backlight brightness is used as the target backlight brightness. After determining the target backlight brightness, the brightness of the corresponding backlight source in the corresponding zone can be adjusted to the target backlight brightness.
[0084] Optionally, step A1 above may specifically include:
[0085] A11. For each pixel in the data source, obtain the pixel value of the pixel in each channel;
[0086] A12. Generate a target histogram based on the target pixel values corresponding to each pixel in the data source;
[0087] A13. Calculate the corresponding backlight coefficient based on the target histogram.
[0088] In this embodiment, for each pixel in the data source, such as pixel p, the pixel value of pixel p in each channel can be obtained. For example, if the data source includes the pixel values of video data belonging to the corresponding partition in the R and G channels, then the pixel value of pixel p in the R channel and the pixel value of pixel p in the G channel are obtained. Then, it is determined which pixel value of pixel p in the R channel or the pixel value of pixel p in the G channel is larger, and the larger pixel value is taken as the target pixel value corresponding to pixel p. For example, if the pixel value of pixel p in the R channel is 50 and the pixel value of pixel p in the G channel is 60, then the pixel value of pixel p in the G channel is taken as the target pixel value corresponding to pixel p, that is, the target pixel value is 60.
[0089] After obtaining the target pixel values corresponding to each pixel in the data source, a target histogram can be generated based on these values. This target histogram indicates the number of pixels in the data source at each target pixel value. For example, the horizontal axis of the target histogram represents the pixel value, and the vertical axis represents the number of pixels. Please refer to [reference needed]. Figure 3 , Figure 3 Here is an example of a target histogram, where pixel values range from 0 to 255, meaning there are 256 pixel values. For each pixel value, the number of pixels in the statistical data source whose corresponding target pixel value equals that pixel value is counted. Based on... Figure 3 As shown in the target histogram, there are 120 pixels in the data source with a target pixel value of 255, 160 pixels with a target pixel value of 254, and 100 pixels with a target pixel value of 253. Therefore, based on the target histogram, the distribution of pixel values in the data source can be obtained. By analyzing this distribution, the corresponding backlight coefficient can be calculated.
[0090] Optionally, step A13 above may specifically include:
[0091] The coordinates of the target histogram are cumulatively superimposed, and the coordinate values whose cumulative values are greater than or equal to the preset values are used as the backlight coefficients.
[0092] In this embodiment of the application, the vertical coordinates corresponding to the horizontal coordinates of the target histogram can be accumulated and superimposed in descending order of the horizontal coordinates of the target histogram. After each accumulation, the accumulated value is compared with a preset accumulation threshold. When the accumulated value is greater than or equal to the accumulation threshold, the next accumulation will not be performed.
[0093] For example, please refer to [the relevant documentation]. Figure 3 Assuming the preset accumulation threshold is 350, Figure 3In the target histogram shown, the ordinate corresponding to the x-coordinate 255 is 120, the ordinate corresponding to the x-coordinate 254 is 160, and the ordinate corresponding to the x-coordinate 253 is 100. During the accumulation process, the ordinate corresponding to the x-coordinate 255 (120) is accumulated first, resulting in a cumulative value of 120. Since the cumulative value of 120 is less than the accumulation threshold of 350, the ordinate corresponding to the x-coordinate 254 (160) is accumulated, resulting in a cumulative value of 120 + 160 = 280. Since the cumulative value of 280 is less than the accumulation threshold of 350, the ordinate corresponding to the x-coordinate 253 (100) is accumulated, resulting in a cumulative value of 280 + 100 = 380. Since the cumulative value of 380 is greater than the accumulation threshold of 350, no further accumulation is performed, and the accumulation process ends.
[0094] After the accumulation process is complete, the corresponding backlight coefficient can be calculated based on the x-coordinate corresponding to the last accumulated ordinate. In the example above, the x-coordinate corresponding to the last accumulated ordinate is 253.
[0095] For example, in this embodiment of the application, the abscissa corresponding to the last accumulated ordinate can be directly determined as the corresponding backlight coefficient. For instance, assuming the abscissa corresponding to the last accumulated ordinate is 253, the corresponding backlight coefficient is determined to be 253.
[0096] Optionally, after step 102 above, the method further includes:
[0097] B1. Compensate for display brightness based on backlight coefficient.
[0098] In this embodiment, the display brightness of video data can be compensated based on the backlight coefficient. Specifically, the display brightness of the video data in the R, G, and B channels can be compensated based on the backlight coefficient, so that the video data after brightness compensation is adapted to the backlight brightness of the corresponding zone, thereby improving the display effect of the electronic device's screen.
[0099] Optionally, step B1 above may specifically include:
[0100] For each pixel in the video data, the grayscale data of the pixel in the corresponding channel is compensated by the brightness contribution value of each backlight in the preset area corresponding to the pixel, so as to obtain the compensated grayscale data.
[0101] The display is based on the compensated grayscale data of each pixel.
[0102] In this embodiment, the preset area corresponding to a pixel can be a square area centered on that pixel. This preset area includes at least one backlight source, the specific number of which can be set according to actual conditions. For each pixel in the video data, firstly, the brightness contribution value of each backlight source in the preset area to the pixel is calculated. Then, the grayscale data of the pixel in the corresponding channel is compensated based on the brightness contribution value to obtain the compensated grayscale data. Finally, the video can be displayed based on the compensated grayscale data.
[0103] For example, the brightness contribution value of each backlight in the preset area corresponding to the pixel can be calculated for the pixel. Then, the current brightness of the pixel in the corresponding channel can be calculated based on the brightness contribution value of each backlight in the preset area. Next, the ratio between the current brightness of the pixel in the corresponding channel and the original brightness in the corresponding channel can be calculated. Finally, the grayscale data of the pixel in the corresponding channel can be compensated based on the ratio to obtain the compensated grayscale data.
[0104] Assume that the backlight contribution of any preset area to the brightness of any pixel is L. i,j If the backlight coefficient of the backlight in a preset number of preset areas is BL_coeff(i, j), then under the above backlight coefficient, the brightness value of the pixel in the corresponding channel is:
[0105] When this pixel is not under backlight control, its original brightness value in the corresponding channel is:
[0106] Assuming the corresponding channel is the R channel, the grayscale data of this pixel in the R channel is R. in Then the compensated grayscale data R of that pixel out For: R out =R in *Lum_ori / Lum_dim.
[0107] As can be seen from the above, the solution in this application first determines the data source corresponding to each channel based on the backlight configuration and the video data to be displayed, and then determines the backlight coefficient to control the backlight brightness based on the aforementioned data source. This solution determines the data source corresponding to each of the three RGB channels and calculates the corresponding backlight coefficient based on the data source for each channel. The three backlight coefficients jointly control the backlight brightness, enabling the local backlight adjustment function of the electronic device to support multiple backlight configurations and providing good compatibility.
[0108] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0109] Figure 4 The diagram shows a structural block diagram of a brightness control device based on RGB three channels according to an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0110] The brightness control device 400 includes:
[0111] The data source determination unit 401 is used to determine the data source corresponding to each of the above channels based on the backlight configuration and the video data to be displayed.
[0112] The coefficient determination unit 402 is used to determine the backlight coefficient based on the above data source in order to control the backlight brightness.
[0113] Optionally, the brightness control device 400 further includes:
[0114] A brightness compensation unit is used to compensate for the display brightness based on the aforementioned backlight coefficient.
[0115] Optionally, the brightness compensation unit is specifically used to compensate the grayscale data of the pixel in the corresponding channel for each pixel of the video data by using the brightness contribution value of each backlight in the preset area corresponding to the pixel to the pixel, so as to obtain the compensated grayscale data; and to display the compensated grayscale data of each pixel.
[0116] Optionally, the brightness compensation unit is specifically used to calculate the current brightness of the pixel in the corresponding channel based on the brightness contribution value of each backlight in the preset area to the pixel; calculate the ratio between the current brightness of the pixel in the corresponding channel and the original brightness in the corresponding channel; and compensate the grayscale data of the pixel in the corresponding channel based on the ratio to obtain the compensated grayscale data.
[0117] Optionally, the aforementioned data source determination unit 401 includes:
[0118] The configuration scheme determination sub-unit is used to determine the configuration scheme corresponding to the above backlight configuration based on the preset configuration relationship;
[0119] The data source selection subunit is used to select the data source corresponding to the above channel from the above video data according to the above configuration scheme.
[0120] Optionally, the above configuration scheme includes channel combinations corresponding to the above channels, the channel combinations include at least one of the three RGB channels, and the above data source selection subunit is specifically used to use the pixel values of each channel of the above video data in the above channel combinations as the data source corresponding to the above channels.
[0121] Optionally, the coefficient determining unit 402 includes:
[0122] The coefficient calculation subunit is used to calculate the corresponding backlight coefficient based on the above data source.
[0123] The brightness adjustment subunit is used to adjust the backlight brightness of the corresponding zone based on the aforementioned backlight coefficient.
[0124] Optionally, the above coefficient calculation subunit includes:
[0125] The pixel value acquisition subunit is used to acquire the pixel value of each pixel in each channel for each pixel in the above data source.
[0126] The histogram generation subunit is used to generate a target histogram based on the target pixel value corresponding to each pixel in the above data source. The target pixel value is the maximum value of the corresponding pixel among all the pixel values of all acquired channels. The target histogram represents the number of pixels in the above data source under each target pixel value. The horizontal axis of the target histogram represents the pixel value, and the vertical axis represents the number of pixels corresponding to the pixel value.
[0127] The backlight coefficient calculation subunit is used to calculate the corresponding backlight coefficient based on the target histogram mentioned above.
[0128] Optionally, the aforementioned backlight coefficient calculation subunit is specifically used to accumulate and superimpose the coordinate values based on the aforementioned target histogram, and the coordinate values whose accumulated values are greater than or equal to a preset value are used as the aforementioned backlight coefficient.
[0129] Optionally, the brightness adjustment subunit is specifically used to determine the target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness lookup table, wherein the backlight brightness lookup table is used to indicate the correspondence between the backlight coefficient and the backlight brightness; and to adjust the brightness of the corresponding backlight source of the corresponding zone to the target backlight brightness.
[0130] As can be seen from the above, the solution in this application first determines the data source corresponding to each channel based on the backlight configuration and the video data to be displayed, and then determines the backlight coefficient to control the backlight brightness based on the aforementioned data source. This solution determines the data source corresponding to each of the three RGB channels and calculates the corresponding backlight coefficient based on the data source for each channel. The three backlight coefficients jointly control the backlight brightness, enabling the local backlight adjustment function of the electronic device to support multiple backlight configurations and providing good compatibility.
[0131] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 5 of this embodiment includes: at least one processor 50 ( Figure 5(Only one is shown in the image), memory 51, computer program 52 stored in memory 51 and executable on at least one processor 50, and display screen 53. When the processor 50 executes the computer program 52, it performs the following steps:
[0132] The data source corresponding to each of the above channels is determined based on the backlight configuration and the video data to be displayed.
[0133] The backlight coefficient is determined based on the above data source to control the backlight brightness.
[0134] Assuming the above is the first possible implementation, in the second possible implementation based on the first possible implementation, after calculating the corresponding backlight coefficient according to the data source, the processor 50 further performs the following steps when executing the computer program 52:
[0135] The display brightness is compensated based on the aforementioned backlight coefficient.
[0136] In a third possible implementation based on the second possible implementation described above, the compensation for display brightness according to the backlight coefficient includes:
[0137] For each pixel of the above video data, the grayscale data of the pixel in the corresponding channel is compensated by the brightness contribution value of each backlight in the preset area corresponding to the pixel, so as to obtain the compensated grayscale data.
[0138] The display is based on the compensated grayscale data of each pixel.
[0139] In the fourth possible implementation provided based on the third possible implementation described above, the compensation of the grayscale data of the pixel in the corresponding channel by using the brightness contribution value of each backlight source in the preset area corresponding to the pixel to the pixel, to obtain the compensated grayscale data, includes:
[0140] The current brightness of the pixel in the corresponding channel is calculated based on the brightness contribution value of each backlight in the preset area to the pixel.
[0141] Calculate the ratio between the current brightness of the above pixel in the corresponding channel and the original brightness in the corresponding channel;
[0142] Based on the above ratio, the grayscale data of the above pixels in the corresponding channels are compensated to obtain the compensated grayscale data.
[0143] In the fifth possible implementation provided based on the first possible implementation described above, the determination of the data source corresponding to each of the aforementioned channels based on the backlight configuration and the video data to be displayed includes:
[0144] The configuration scheme corresponding to the above backlight configuration is determined based on the preset configuration relationship;
[0145] Based on the above configuration scheme, select the data source corresponding to the above channel from the above video data.
[0146] In the sixth possible implementation provided based on the fifth possible implementation described above, the configuration scheme includes a channel combination corresponding to the channel, the channel combination including at least one of the RGB three channels, and the selection of the data source corresponding to the channel from the video data according to the configuration scheme includes:
[0147] The pixel values of each channel in the above-mentioned video data in the above-mentioned channel combination are used as the data source corresponding to the above-mentioned channel.
[0148] In the seventh possible implementation provided based on the first possible implementation described above, the determination of the backlight coefficient to control the backlight brightness according to the data source includes:
[0149] Calculate the corresponding backlight coefficient based on the above data source;
[0150] Adjust the backlight brightness of the corresponding zones based on the aforementioned backlight coefficient.
[0151] In the eighth possible implementation provided based on the seventh possible implementation described above, the calculation of the corresponding backlight coefficient based on the data source includes:
[0152] For each pixel in the above data source, obtain the pixel value of the pixel in each channel;
[0153] A target histogram is generated based on the target pixel value corresponding to each pixel in the above data source. The target pixel value is the maximum value of the corresponding pixel among all the pixel values of all acquired channels. The target histogram represents the number of pixels in the above data source under each target pixel value. The horizontal axis of the target histogram represents the pixel value, and the vertical axis represents the number of pixels corresponding to the pixel value.
[0154] Calculate the corresponding backlight coefficient based on the target histogram above.
[0155] In the ninth possible implementation provided based on the eighth possible implementation described above, the calculation of the corresponding backlight coefficient based on the target histogram includes:
[0156] The coordinate values of the target histogram are accumulated and superimposed, and the coordinate values whose accumulated values are greater than or equal to the preset values are used as the backlight coefficients.
[0157] In the tenth possible implementation provided based on the seventh possible implementation described above, the adjustment of the backlight brightness of the corresponding zone based on the backlight coefficient includes:
[0158] The target backlight brightness corresponding to the aforementioned backlight coefficient is determined according to a preset backlight brightness lookup table, which is used to indicate the correspondence between the backlight coefficient and the backlight brightness.
[0159] Adjust the brightness of the corresponding backlight in the corresponding zone to the target backlight brightness mentioned above.
[0160] The aforementioned electronic device 5 can be a computing device such as a television, laptop, or handheld computer. This electronic device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0161] The processor 50 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0162] In some embodiments, the aforementioned memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. In other embodiments, the aforementioned memory 51 may be an external storage device of the electronic device 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 5. Furthermore, the aforementioned memory 51 may include both internal storage units and external storage devices of the electronic device 5. The aforementioned memory 51 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of the aforementioned computer programs. The aforementioned memory 51 may also be used to temporarily store data that has been output or will be output.
[0163] As can be seen from the above, the solution in this application first determines the data source corresponding to each channel based on the backlight configuration and the video data to be displayed, and then determines the backlight coefficient to control the backlight brightness based on the aforementioned data source. This solution determines the data source corresponding to each of the three RGB channels and calculates the corresponding backlight coefficient based on the data source for each channel. The three backlight coefficients jointly control the backlight brightness, enabling the local backlight adjustment function of the electronic device to support multiple backlight configurations and providing good compatibility.
[0164] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0165] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0166] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the various method embodiments described above.
[0167] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps described in the various method embodiments above.
[0168] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0169] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0170] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0171] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0172] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0173] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for luminance control based on RGB three channels, characterized in that, The method comprises: determining a data source corresponding to each channel based on a backlight configuration and video data to be displayed; determining a backlight coefficient based on the data source to control backlight brightness; for each pixel point of the video data, compensating gray scale data of the pixel point in a corresponding channel by a luminance contribution value of each backlight source of a preset region corresponding to the pixel point to the pixel point, to obtain compensated gray scale data; displaying based on the compensated gray scale data of each pixel point.
2. The luminance control method according to claim 1, wherein The compensating gray scale data of the pixel point in the corresponding channel by the luminance contribution value of each backlight source of the preset region corresponding to the pixel point to the pixel point comprises: calculating a current luminance of the pixel point in the corresponding channel based on the luminance contribution value of each backlight source of the preset region to the pixel point; calculating a ratio between the current luminance of the pixel point in the corresponding channel and an original luminance of the pixel point in the corresponding channel; compensating the gray scale data of the pixel point in the corresponding channel based on the ratio to obtain compensated gray scale data.
3. The luminance control method according to claim 1, wherein The determining a data source corresponding to each channel based on a backlight configuration and video data to be displayed comprises: determining a configuration scheme corresponding to the backlight configuration according to a preset configuration relationship; selecting a data source corresponding to the channel from the video data according to the configuration scheme.
4. The luminance control method according to claim 3, wherein The configuration scheme comprises a channel combination corresponding to the channel, the channel combination comprises at least one channel in an RGB three-channel, and the selecting a data source corresponding to the channel from the video data according to the configuration scheme comprises: taking pixel values of the video data in each channel in the channel combination as the data source corresponding to the channel.
5. The luminance control method according to claim 1, wherein The determining a backlight coefficient based on the data source to control backlight brightness comprises: calculating a corresponding backlight coefficient according to the data source; adjusting a backlight brightness of a corresponding partition based on the backlight coefficient.
6. The luminance control method according to claim 5, wherein The calculating a corresponding backlight coefficient according to the data source comprises: for each pixel point in the data source, acquiring pixel values of the pixel point in each channel; generating a target histogram according to target pixel values corresponding to each pixel point in the data source, the target pixel value being a maximum value in the acquired pixel values of all channels of the corresponding pixel point, the target histogram representing a number of pixels of the data source at each target pixel value, the horizontal coordinate of the target histogram representing a pixel value, and the vertical coordinate representing a number of pixel points corresponding to the pixel value; calculating a corresponding backlight coefficient according to the target histogram.
7. The luminance control method according to claim 6, wherein The calculating a corresponding backlight coefficient according to the target histogram comprises: cumulatively superimposing coordinate values of the target histogram, and taking coordinate values with cumulative values greater than or equal to a preset value as the backlight coefficient.
8. The luminance control method according to claim 5, wherein The adjusting a backlight brightness of a corresponding partition based on the backlight coefficient comprises: determining a target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness reference table, the backlight brightness reference table being used to indicate a corresponding relationship between a backlight coefficient and a backlight brightness; adjusting a luminance of a corresponding backlight source of the corresponding partition to the target backlight brightness.
9. A luminance control device based on RGB three channels, characterized by, The method comprises: a data source determination unit configured to determine a data source corresponding to each of the channels based on a backlight configuration and video data to be displayed; a coefficient determination unit configured to determine a backlight coefficient according to the data source to control a backlight brightness; a brightness compensation unit configured to, for each pixel point of the video data, compensate, by a brightness contribution value of each backlight source of a preset region corresponding to the pixel point, a gray scale data of the pixel point in a corresponding channel to obtain compensated gray scale data; display based on the compensated gray scale data of each pixel point.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the method in any one of claims 1 to 8. 11.A computer readable storage medium, storing a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 8.
Citation Information
Patent Citations
Liquid crystal display
CN101622657A
Backlight brightness compensation method and display device
CN105448245A
Color panel display device
US5731794A