CN114429754A - RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment - Google Patents

RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment Download PDF

Info

Publication number
CN114429754A
CN114429754A CN202011183933.0A CN202011183933A CN114429754A CN 114429754 A CN114429754 A CN 114429754A CN 202011183933 A CN202011183933 A CN 202011183933A CN 114429754 A CN114429754 A CN 114429754A
Authority
CN
China
Prior art keywords
backlight
channel
brightness
data source
coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011183933.0A
Other languages
Chinese (zh)
Inventor
施建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN202011183933.0A priority Critical patent/CN114429754A/en
Publication of CN114429754A publication Critical patent/CN114429754A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The application is applicable to the technical field of image display, and provides a brightness control method and device based on RGB three channels, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: determining a data source corresponding to each channel based on backlight configuration and video data to be displayed; determining a backlight coefficient to control backlight brightness according to the data source. By the method, the local backlight adjusting function of the electronic equipment can support various backlight configurations, and the compatibility is good.

Description

RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment
Technical Field
The present application relates to the field of image display technologies, and in particular, to a brightness control method and apparatus based on RGB three channels, an electronic device, and a computer-readable storage medium.
Background
At present, electronic equipment such as a liquid crystal television and the like occupies an increasingly important position in daily life of people, and how to reduce the power consumption of the electronic equipment becomes a problem which needs to be solved urgently by various manufacturers. In the related art, a local backlight adjusting technique is usually adopted to adjust the backlight brightness of the electronic device in real time to reduce the power consumption of the electronic device.
However, the existing local backlight adjusting technology only supports white backlight, but cannot support RGB three-color backlight, YB two-color backlight, GP two-color backlight, and the like, and the compatibility is poor.
Disclosure of Invention
In view of this, the present application provides a brightness control method, device, electronic device and computer readable storage medium based on RGB three channels, which can enable a local backlight adjustment function of the electronic device to support multiple backlight configurations, and have good compatibility.
In a first aspect, the present application provides a brightness control method based on RGB three channels, including:
determining a data source corresponding to each channel based on backlight configuration and video data to be displayed;
and determining a backlight coefficient according to the data source to control the backlight brightness.
Optionally, after determining the backlight coefficient according to the data source to control the backlight brightness, the method further includes:
and compensating the display brightness according to the backlight coefficient.
Optionally, the performing of the compensation of the display brightness according to the backlight coefficient includes:
aiming at each pixel point of the video data, compensating the gray scale data of the pixel point in the corresponding channel by using the brightness contribution value of each backlight source of the pixel point in the preset area corresponding to the pixel point to obtain the compensated gray scale data;
and displaying the compensated gray scale data based on each pixel point.
Optionally, the compensating the gray scale data of the pixel point in the corresponding channel by the luminance contribution value of the pixel point of each backlight source of the preset area corresponding to the pixel point to obtain the compensated gray scale data includes:
calculating the current brightness of the pixel point in the corresponding channel based on the brightness contribution value of each backlight source of the preset area to the pixel point;
calculating the ratio of the current brightness of the pixel point in the corresponding channel to the original brightness of the pixel point in the corresponding channel;
and compensating the gray scale data of the pixel points in the corresponding channels based on the comparison values to obtain compensated gray scale data.
The determining a data source corresponding to each channel based on the backlight configuration and the video data to be displayed includes:
determining a configuration scheme corresponding to the backlight configuration according to a preset configuration relation;
and selecting a data source corresponding to the channel from the video data according to the configuration scheme.
Optionally, the selecting a data source corresponding to the channel from the video data according to the configuration scheme includes:
and taking the pixel value of each channel of the video data in the channel combination as a data source corresponding to the channel.
Optionally, the determining a backlight coefficient according to the data source to control backlight brightness includes:
calculating a corresponding backlight coefficient according to the data source;
and adjusting the backlight brightness of the corresponding partition based on the backlight coefficient.
Optionally, the calculating the corresponding backlight coefficient according to the data source includes:
aiming at each pixel point in the data source, acquiring the pixel value of the pixel point in each channel;
generating a target histogram according to target pixel values corresponding to all pixel points in the data source, wherein the target pixel values are the maximum values of the corresponding pixel points in the acquired pixel values of all channels, the target histogram represents the number of the pixels of the data source under each target pixel value, the abscissa of the target histogram represents the pixel value, and the ordinate represents the number of the pixel points corresponding to the pixel value;
and calculating a corresponding backlight coefficient according to the target histogram.
Optionally, the calculating the corresponding backlight coefficient according to the target histogram includes:
and performing accumulative superposition based on the coordinate values of the target histogram, wherein the coordinate values of which the accumulative values are greater than or equal to a preset value are used as the backlight coefficients.
Optionally, the adjusting the backlight brightness of the corresponding partition based on the backlight coefficient includes:
determining target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness comparison table, wherein the backlight brightness comparison table is used for indicating the corresponding relation between the backlight coefficient and the backlight brightness;
and adjusting the brightness of the corresponding backlight source of the corresponding partition to the target backlight brightness.
In a second aspect, the present application provides an RGB three-channel-based luminance control apparatus, including:
a data source determining unit, configured to determine a data source corresponding to each of the channels based on a backlight configuration and video data to be displayed;
and the coefficient determining unit is used for determining the backlight coefficient according to the data source so as to control the backlight brightness.
In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the method as provided in the first aspect.
In a fifth aspect, the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to perform the method provided by the first aspect.
As can be seen from the above, in the present application, a data source corresponding to each channel is first determined based on the backlight configuration and the video data to be displayed, and then the backlight coefficient is determined according to the data source to control the backlight brightness. According to the scheme, the data source corresponding to each channel in the RGB three channels is determined, the corresponding backlight coefficient is calculated according to the data source corresponding to each channel, and the backlight brightness is controlled by the three backlight coefficients together, so that the local backlight adjusting function of the electronic equipment supports various backlight configurations, and the compatibility is good.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a brightness control method provided in an embodiment of the present application;
FIG. 2 is a sectional illustration of a display screen provided by an embodiment of the present application;
FIG. 3 is an exemplary diagram of a target histogram provided by an embodiment of the present application;
fig. 4 is a block diagram of a structure of a luminance control apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Fig. 1 shows a flowchart of an RGB three-channel-based brightness control method provided in an embodiment of the present application, which is applied to an electronic device having a display screen, and is detailed as follows:
step 101, determining a data source corresponding to each channel based on backlight configuration and video data to be displayed;
in the embodiment of the application, the video data to be displayed may be input to the electronic device by a user, or may be acquired from the inside of the electronic device, for example, the user may input the video data that needs to be played by the electronic device to the electronic device. Backlight configurations include, but are not limited to, white backlights, RGB tri-color backlights, YB bi-color backlights, GP bi-color backlights, and the like. The electronic device may determine, based on the video data and the backlight configuration of the electronic device itself, a data source corresponding to each channel of the RGB three channels, for example, a data source 1 corresponding to the R channel, a data source 2 corresponding to the G channel, and a data source 3 corresponding to the B channel.
It should be noted that, the electronic device includes at least two backlight units, each backlight unit includes at least one backlight source, and the number of the backlight sources is related to the backlight configuration, for example, if the backlight configuration of the electronic device is an RGB three-color backlight source, each backlight unit includes three backlight sources, which are a red backlight source, a green backlight source, and a blue backlight source; if the backlight of the electronic device is configured as a white backlight, each backlight unit comprises only one backlight, i.e. a white backlight. The display area may be divided into at least two partitions according to the distribution of the respective backlight units. Wherein each partition corresponds to one backlight unit, and the number of the partitions is equal to that of the backlight units. Exemplarily, referring to fig. 2, the display screen in fig. 2 is divided into 16 × 9 partitions, one partition corresponds to one backlight unit, i.e., one backlight unit provides light sources for one partition, and the backlight unit includes three backlights, i.e., a red backlight 21, a green backlight 22, and a blue backlight 23.
It is understood that in the local backlight adjusting technology, the same or similar operation is performed for each partition in the display screen, and therefore, for convenience of description, a partition in the display screen, that is, a partition requiring brightness control in the embodiment of the present application, will be described as an example.
Optionally, the step 101 may specifically include:
determining a configuration scheme corresponding to the backlight configuration according to a preset configuration relation;
and selecting a data source corresponding to the channel from the video data according to the configuration scheme.
In the embodiment of the present application, the preset configuration relationship includes a corresponding relationship between the backlight configuration and the configuration scheme, and for example, a preset configuration table may be stored in the electronic device, where the preset configuration table is used to record the configuration relationship. According to the configuration relationship, a configuration scheme corresponding to the backlight configuration of the electronic device can be determined, and the configuration scheme is used for indicating the configuration of the data source corresponding to each channel. According to this configuration, a 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 of RGB three channels, which is referred to as a channel combination, and the channel combination may include an R channel, or the channel combination may include a G channel and a B channel, or the channel combination may include an R channel, a G channel, and a B channel. For example, assuming that the configuration of the data source corresponding to the R channel is a channel combination 1, where the channel combination 1 includes a G channel and a B channel, the video data belonging to a corresponding partition (i.e., a partition that needs to be brightness controlled) may be determined from the video data, and the video data belonging to the partition, that is, the video data displayed in the partition, may be determined, and then, the pixel value of the video data belonging to the partition in the G channel and the pixel value of the video data belonging to the partition in the B channel may be used as the data source corresponding to the R channel.
Please refer to the following table, which is an example of a default configuration table:
Figure BDA0002750932120000071
based on the preset configuration table, assuming that the backlight of the electronic device is configured as an RGB three-color backlight source, for the R channel, the corresponding data source includes a pixel value of the video data belonging to the corresponding partition in the R channel; for the G channel, the corresponding data source comprises pixel values of the video data belonging to the corresponding partition in the G channel; for the B channel, the corresponding data source includes pixel values of the video data belonging to the corresponding partition in the B channel.
Assuming that the backlight of the electronic device is configured as a white backlight source, for the R channel, the corresponding data source includes pixel values of video data belonging to the corresponding partition in the RGB three channels; for the G channel, the corresponding data source comprises pixel values of video data belonging to the corresponding partition in the RGB three channels; for the B channel, the corresponding data source includes pixel values of the video data belonging to the corresponding partition in the RGB three channels.
Step 102, determining a backlight coefficient according to a data source to control backlight brightness;
in the embodiment of the application, after the electronic device acquires the data source corresponding to each channel in the RGB three channels, the corresponding backlight coefficient may be calculated according to the data source corresponding to each channel. It should be understood that since there are three channels of RGB, one for each data source, there are actually three backlight coefficients calculated, namely, the backlight coefficient for the R channel, the backlight coefficient for the G channel, and the backlight coefficient for the B channel. Wherein each of the calculated backlight coefficients is used to adjust the backlight brightness of the electronic device.
Optionally, the step 102 may specifically include:
a1, calculating a corresponding backlight coefficient according to a data source;
and A2, adjusting the backlight brightness of the corresponding partition based on the backlight coefficient.
In this embodiment, based on the preset configuration table, 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 pixel values of video data belonging to the corresponding partition in the RGB three channels, and therefore, 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, which are calculated according to the same data source, are the same.
When the backlight of the electronic device is configured as an RGB three-color backlight source, the data source corresponding to the R channel includes a pixel value of video data belonging to a corresponding partition in the R channel, the data source corresponding to the G channel includes a pixel value of video data belonging to a corresponding partition in the G channel, and the data source corresponding to the B channel includes a pixel value of video data belonging to a corresponding partition in the B channel, so that 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 calculated according to different data sources are different.
When the backlight of the electronic device is configured as a YB dual-color backlight, the data source corresponding to the R channel includes pixel values of video data belonging to the corresponding partition in R, G two channels, the data source corresponding to the G channel includes pixel values of video data belonging to the corresponding partition in R, G two channels, and the data source corresponding to the B channel includes pixel values of video data belonging to the corresponding partition in the B channel, so that the backlight coefficient corresponding to the R channel calculated according to the same data source is the same as the backlight coefficient corresponding to the G channel, and the backlight coefficient corresponding to the G channel calculated according to different data sources is different from the backlight coefficient corresponding to the B channel.
Specifically, after the corresponding backlight coefficient is obtained through calculation, the backlight brightness of the corresponding partition may be adjusted according to the backlight coefficient. For example, a backlight control signal may be generated for the backlight unit of the corresponding partition according to the backlight coefficient, and the backlight control signal is used to adjust the brightness of the backlight source included in the backlight unit, so as to improve the display effect of the display screen of the electronic device.
For example, a backlight control signal for adjusting the brightness of the corresponding backlight source in the corresponding partition may be generated according to the backlight coefficient corresponding to each channel in the RGB three channels. The channel and the backlight source have the following corresponding relation:
taking RGB three-color backlight as an example, the backlight corresponding to the R channel is a red backlight, the backlight corresponding to the G channel is a green backlight, and the backlight corresponding to the B channel is a blue backlight. Taking a white backlight source as an example, the backlight sources corresponding to the R channel, the G channel and the B channel are all white backlight sources. Taking YB (yellow-blue) dual-color backlight as an example, since red plus green is equal to yellow, the backlight corresponding to R channel and G channel is yellow backlight, and the backlight corresponding to B channel is blue backlight. Taking an RC (red-green) dual-color backlight as an example, since green plus blue is equal to cyan, the backlights corresponding to the G channel and the B channel are both cyan backlights, and the backlight corresponding to the R channel is a red backlight. Taking GP (green-violet) dual-color backlight as an example, since red plus blue is equal to violet, the backlights corresponding to the R channel and the B channel are both violet backlights, and the backlight corresponding to the G channel is a green backlight.
For example, if the backlight of the electronic device is configured as an RGB three-color backlight source, a first backlight control signal may be generated for the red backlight source in the corresponding partition according to the backlight coefficient corresponding to the R channel, where the first backlight control signal is used to adjust the brightness of the red backlight source; generating a second backlight control signal for the green backlight source in the corresponding partition according to the backlight coefficient corresponding to the G channel, wherein the second backlight control signal is used for adjusting the brightness of the green backlight source; a third backlight control signal may be generated for the blue backlight source in the corresponding partition according to the backlight coefficient corresponding to the B channel, and the third backlight control signal is used to adjust the brightness of the blue backlight source.
In the above, if the backlight of the electronic device is configured as a white backlight, 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 are the same. Therefore, a fourth backlight control signal for adjusting the brightness of the white backlight source of the corresponding partition can be generated according to the backlight coefficient corresponding to the R channel, the backlight coefficient corresponding to the G channel, or the backlight coefficient corresponding to the B channel.
In the above description, if the backlight of the electronic device is configured as a YB dual-color backlight, the backlight coefficient corresponding to the R channel is the same as the backlight coefficient corresponding to the G channel, and the backlight coefficient corresponding to the G channel is different from the backlight coefficient corresponding to the B channel. Therefore, a fifth backlight control signal can be generated for the yellow backlight source of the corresponding partition according to the backlight coefficient corresponding to the R channel or the backlight coefficient corresponding to the G channel, and the fifth backlight control signal is used for adjusting the brightness of the yellow backlight source; and generating a sixth backlight control signal for the blue backlight source of the corresponding partition according to the backlight coefficient corresponding to the B channel, wherein the sixth backlight control signal is used for adjusting the brightness of the blue backlight source.
Optionally, the step a2 may specifically include:
a21, determining target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness comparison table;
and A22, adjusting the brightness of the corresponding backlight source of the corresponding subarea to be the target backlight brightness.
In the embodiment of the present application, the preset backlight brightness comparison table is used for indicating a corresponding relationship between the backlight coefficient and the backlight brightness. For example, the value range of the backlight coefficient is 0 to 1, and the range of the backlight brightness is 0 to 800. Based on this assumption, when the backlight coefficient is 0, then the corresponding backlight brightness is 0; when the backlight coefficient is 1, the corresponding backlight brightness is 800; when the backlight coefficient is 0.5, the corresponding backlight brightness is 400. Based on the calculated backlight coefficient, the backlight brightness corresponding to the backlight coefficient can be found in the backlight brightness look-up table, and the backlight brightness is taken as the target backlight brightness. After the target backlight brightness is determined, the brightness of the corresponding backlight source of the corresponding partition may be adjusted to the target backlight brightness.
Optionally, the step a1 may specifically include:
a11, aiming at each pixel point in the data source, obtaining the pixel value of the pixel point in each channel;
a12, generating a target histogram according to the target pixel values corresponding to each pixel point in the data source;
and A13, calculating the corresponding backlight coefficient according to the target histogram.
In this embodiment of the present application, for each pixel point in the data source, for example, the pixel value of the pixel point p in each channel may be obtained, for example, the data source includes the pixel values of the video data belonging to the corresponding partition in R, G two channels, and then the pixel value of the pixel point p in the R channel and the pixel value of the pixel point p in the G channel are obtained. Then, which of the pixel value of the pixel point p in the R channel and the pixel value of the pixel point p in the G channel is larger is determined, and the larger pixel value is used as a target pixel value corresponding to the pixel point p, for example, the pixel value of the pixel point p in the R channel is 50, and the pixel value of the pixel point p in the G channel is 60, and then the pixel value of the image pixel point p in the G channel is the target pixel value corresponding to the pixel point p, that is, the target pixel value is 60.
After the target pixel values corresponding to the pixel points in the data source are obtained, a target histogram may be generated according to the target pixel values corresponding to the pixel points in the data source, where the target histogram is used to indicate the number of pixels of the data source under each target pixel value, for example, the abscissa of the target histogram represents the pixel value, and the ordinate represents the number of the pixel points. Referring to fig. 3, fig. 3 is an example of a target histogram, where a value range of a pixel value is 0-255, that is, there are 256 pixel values, and for each pixel value, the number of pixels of which the corresponding target pixel value is equal to the pixel value in the statistical data source is counted. As can be seen from the target histogram shown in fig. 3, the number of pixels corresponding to the target pixel value of 255 in the data source is 120, the number of pixels corresponding to the target pixel value of 254 is 160, and the number of pixels corresponding to the target pixel value of 253 is 100. Therefore, according to the target histogram, the distribution of the pixel values in the data source can be obtained, and the distribution of the pixel values is analyzed, so that the corresponding backlight coefficient can be calculated.
Optionally, the step a13 may specifically include:
and performing accumulative superposition based on the coordinates of the target histogram, wherein the coordinate value of which the accumulative value is greater than or equal to a preset value is used as a backlight coefficient.
In the embodiment of the application, the ordinate corresponding to the abscissa of the target histogram can be accumulated and superposed in sequence according to the descending order of the abscissa of the target histogram, after each accumulation, the accumulated value is compared with a preset accumulation threshold, and when the accumulated value is greater than or equal to the accumulation threshold, the next accumulation is not performed.
For example, referring to fig. 3, assuming that the preset accumulation threshold is 350, in the target histogram shown in fig. 3, the abscissa 255 corresponds to 120, the abscissa 254 corresponds to 160, and the abscissa 253 corresponds to 100. In the accumulation process, the ordinate corresponding to the abscissa 255, that is, 120, is accumulated first, the obtained accumulated value is 120, and since the accumulated value 120 is smaller than the accumulation threshold 350, the ordinate corresponding to the abscissa 254, that is, 160, is accumulated continuously, the obtained accumulated value is 120+160 to 280, since the accumulated value 280 is smaller than the accumulation threshold 350, the ordinate corresponding to the abscissa 253, that is, 100, is accumulated continuously, the obtained accumulated value is 280+100 to 380, and since the accumulated value 380 is larger than the accumulation threshold 350, the next accumulation is not performed, that is, the accumulation process is ended.
After the accumulation process is finished, the corresponding backlight coefficient can be calculated according to the abscissa corresponding to the ordinate accumulated for the last time. In the above example, the abscissa corresponding to the ordinate of the last accumulation is 253.
For example, in the embodiment of the present application, the abscissa corresponding to the ordinate accumulated last time may be directly determined as the corresponding backlight coefficient. For example, assuming that the abscissa corresponding to the ordinate accumulated for the last time is 253, the corresponding backlight coefficient is determined to be 253.
Optionally, after the step 102, the method further includes:
and B1, compensating the display brightness according to the backlight coefficient.
In the embodiment of the present application, the display brightness of the video data may be compensated according to the backlight coefficient. Specifically, the display brightness of the video data in the R channel, the G channel, and the B channel may be compensated according to the backlight coefficient, so that the video data after the display brightness compensation is adapted to the backlight brightness of the corresponding partition, thereby improving the display effect of the display screen of the electronic device.
Optionally, the step B1 may specifically include:
aiming at each pixel point of the video data, compensating the gray scale data of the pixel point in the corresponding channel by using the brightness contribution value of each backlight source of the preset area corresponding to the pixel point to obtain the compensated gray scale data;
and displaying the compensated gray scale data based on each pixel point.
In this embodiment, the preset region corresponding to the pixel point may be a square region with the pixel point as a center. In the preset area, at least one backlight source is included, and the specific number can be set according to actual conditions. Aiming at each pixel point of video data, firstly calculating the brightness contribution value of each backlight source in a preset area to the pixel point, then compensating the gray scale data of the pixel point in a corresponding channel according to the brightness contribution value to obtain compensated gray scale data, and finally displaying a video according to the compensated gray scale data.
Exemplarily, a brightness contribution value of each backlight source of the preset region corresponding to the pixel point can be calculated, then the current brightness of the pixel point in the corresponding channel is calculated according to the brightness contribution value of each backlight source of the preset region to the pixel point, then a ratio between the current brightness of the pixel point in the corresponding channel and the original brightness of the corresponding channel is calculated, and finally the gray scale data of the pixel point in the corresponding channel is compensated based on the ratio to obtain the compensated gray scale data.
Suppose the contribution value of the backlight source of any preset area to the brightness of any pixel is Li,jIf the backlight coefficients of the backlight sources in the predetermined number of predetermined regions are BL _ coeff (i, j), the luminance values of the pixel points in the corresponding channels under the backlight coefficients are:
Figure BDA0002750932120000121
when the pixel point is not subjected to backlight control, the original brightness value of the corresponding channel is as follows:
Figure BDA0002750932120000122
assuming that the corresponding channel is R channel, the gray scale data of the pixel point in the R channel is RinThen the compensated gray scale data R of the pixel pointoutComprises the following steps: rout=Rin*Lum_ori/Lum_dim。
As can be seen from the above, in the present application, a data source corresponding to each channel is first determined based on the backlight configuration and the video data to be displayed, and then the backlight coefficient is determined according to the data source to control the backlight brightness. According to the scheme, the data source corresponding to each channel in the RGB three channels is determined, the corresponding backlight coefficient is calculated according to the data source corresponding to each channel, and the backlight brightness is controlled by the three backlight coefficients together, so that the local backlight adjusting function of the electronic equipment supports various backlight configurations, and the compatibility is good.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 shows a block diagram of a RGB three-channel-based luminance control apparatus provided in an embodiment of the present application, and only the parts related to the embodiment of the present application are shown for convenience of description.
The luminance control apparatus 400 includes:
a data source determining unit 401, configured to determine a data source corresponding to each of the channels based on the backlight configuration and the video data to be displayed;
a coefficient determining unit 402, configured to determine a backlight coefficient according to the data source to control backlight brightness.
Optionally, the brightness control apparatus 400 further includes:
and the brightness compensation unit is used for compensating the display brightness according to the backlight coefficient.
Optionally, the brightness compensation unit is specifically configured to, for each pixel point of the video data, compensate the gray scale data of the pixel point in the corresponding channel with a brightness contribution value of each backlight source of the preset area corresponding to the pixel point to obtain compensated gray scale data; and displaying the compensated gray scale data based on each pixel point.
Optionally, the brightness compensation unit is specifically configured to calculate the current brightness of the pixel point in the corresponding channel based on a brightness contribution value of each backlight source of the preset area to the pixel point; calculating the ratio of the current brightness of the pixel point in the corresponding channel to the original brightness of the pixel point in the corresponding channel; and compensating the gray scale data of the pixel points in the corresponding channels based on the comparison values to obtain compensated gray scale data.
Optionally, the data source determining unit 401 includes:
a configuration scheme determining subunit, configured to determine, according to a preset configuration relationship, a configuration scheme corresponding to the backlight configuration;
and the data source selection subunit is used for selecting a data source corresponding to the channel from the video data according to the configuration scheme.
Optionally, the configuration scheme includes a channel combination corresponding to the channels, where the channel combination includes at least one channel of RGB three channels, and the data source selection subunit is specifically configured to use a pixel value of each channel of the video data in the channel combination as a data source corresponding to the channel.
Optionally, the coefficient determining unit 402 includes:
the coefficient calculation subunit is used for calculating a corresponding backlight coefficient according to the data source;
and the brightness adjusting subunit is used for adjusting the backlight brightness of the corresponding partition based on the backlight coefficient.
Optionally, the coefficient calculating subunit includes:
a pixel value obtaining subunit, configured to obtain, for each pixel point in the data source, a pixel value of the pixel point in each channel;
a histogram generation subunit, configured to generate a target histogram according to a target pixel value corresponding to each pixel point in the data source, where the target pixel value is a maximum value of corresponding pixel points in the acquired pixel values of all channels, the target histogram indicates the number of pixels of the data source at each target pixel value, an abscissa of the target histogram indicates a pixel value, and an ordinate indicates the number of pixel points corresponding to the pixel value;
and the backlight coefficient calculation subunit is used for calculating the corresponding backlight coefficient according to the target histogram.
Optionally, the backlight coefficient calculating subunit is specifically configured to perform cumulative overlapping based on the coordinate values of the target histogram, and the coordinate values with the cumulative value greater than or equal to a preset value are used as the backlight coefficients.
Optionally, the brightness adjusting subunit is specifically configured to determine, according to a preset backlight brightness comparison table, target backlight brightness corresponding to the backlight coefficient, where the backlight brightness comparison table is used to indicate a corresponding relationship between the backlight coefficient and the backlight brightness; and adjusting the brightness of the corresponding backlight source of the corresponding partition to the target backlight brightness.
As can be seen from the above, in the present application, a data source corresponding to each channel is first determined based on the backlight configuration and the video data to be displayed, and then the backlight coefficient is determined according to the data source to control the backlight brightness. According to the scheme, the data source corresponding to each channel in the RGB three channels is determined, the corresponding backlight coefficient is calculated according to the data source corresponding to each channel, and the backlight brightness is controlled by the three backlight coefficients together, so that the local backlight adjusting function of the electronic equipment supports various backlight configurations, and the compatibility is good.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: at least one processor 50 (only one is shown in fig. 5), a memory 51, a computer program 52 stored in the memory 51 and operable on the at least one processor 50, and a display 53, wherein the processor 50 implements the following steps when executing the computer program 52:
determining a data source corresponding to each channel based on backlight configuration and video data to be displayed;
and determining a backlight coefficient according to the data source to control the backlight brightness.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, after the corresponding backlight coefficients are calculated according to the data source, the processor 50 executes the computer program 52 to further implement the following steps:
and compensating the display brightness according to the backlight coefficient.
In a third possible embodiment based on the second possible embodiment, the compensating of the display luminance according to the backlight coefficient includes:
aiming at each pixel point of the video data, compensating the gray scale data of the pixel point in the corresponding channel by using the brightness contribution value of each backlight source of the pixel point in the preset area corresponding to the pixel point to obtain the compensated gray scale data;
and displaying the compensated gray scale data based on each pixel point.
In a fourth possible implementation manner provided on the basis of the third possible implementation manner, the compensating gray scale data of the pixel point in the corresponding channel by using the luminance contribution value of each backlight source of the preset area corresponding to the pixel point to obtain the compensated gray scale data includes:
calculating the current brightness of the pixel point in the corresponding channel based on the brightness contribution value of each backlight source of the preset area to the pixel point;
calculating the ratio of the current brightness of the pixel point in the corresponding channel to the original brightness of the pixel point in the corresponding channel;
and compensating the gray scale data of the pixel points in the corresponding channels based on the comparison values to obtain compensated gray scale data.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the determining a data source corresponding to each channel based on the backlight configuration and the video data to be displayed includes:
determining a configuration scheme corresponding to the backlight configuration according to a preset configuration relation;
and selecting a data source corresponding to the channel from the video data according to the configuration scheme.
In a sixth possible implementation manner provided based on the fifth possible implementation manner, the selecting a data source corresponding to the channel from the video data according to the configuration scheme includes:
and taking the pixel value of each channel of the video data in the channel combination as a data source corresponding to the channel.
In a seventh possible implementation manner provided on the basis of the first possible implementation manner, the determining a backlight coefficient according to the data source to control backlight brightness includes:
calculating a corresponding backlight coefficient according to the data source;
and adjusting the backlight brightness of the corresponding partition based on the backlight coefficient.
In an eighth possible implementation manner provided on the basis of the seventh possible implementation manner, the calculating the corresponding backlight coefficient according to the data source includes:
aiming at each pixel point in the data source, acquiring the pixel value of the pixel point in each channel;
generating a target histogram according to target pixel values corresponding to all pixel points in the data source, wherein the target pixel values are the maximum values of the corresponding pixel points in the acquired pixel values of all channels, the target histogram represents the number of the pixels of the data source under each target pixel value, the abscissa of the target histogram represents the pixel value, and the ordinate represents the number of the pixel points corresponding to the pixel value;
and calculating a corresponding backlight coefficient according to the target histogram.
In a ninth possible implementation manner provided based on the eighth possible implementation manner, the calculating a corresponding backlight coefficient according to the target histogram includes:
and performing accumulative superposition based on the coordinate values of the target histogram, wherein the coordinate values of which the accumulative values are greater than or equal to a preset value are used as the backlight coefficients.
In a tenth possible implementation manner provided based on the seventh possible implementation manner, the adjusting the backlight brightness of the corresponding partition based on the backlight coefficient includes:
determining target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness comparison table, wherein the backlight brightness comparison table is used for indicating the corresponding relation between the backlight coefficient and the backlight brightness;
and adjusting the brightness of the corresponding backlight source of the corresponding partition to the target backlight brightness.
The electronic device 5 may be a computing device such as a television, a notebook, a palm computer, or the like. The electronic device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of the electronic device 5, and does not constitute a limitation of the electronic device 5, and may include more or less components than those shown, or combine some of the components, or different components, such as an input-output device, a network access device, etc.
The Processor 50 may be a Central Processing Unit (CPU), and the Processor 50 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the electronic device 5 in some embodiments, for example, a hard disk or a memory of the electronic device 5. In other embodiments, the memory 51 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the electronic device 5. Further, the memory 51 may include both an internal storage unit and an external storage device of the electronic device 5. The memory 51 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, other programs, and the like, such as program codes of the computer programs. The above-mentioned memory 51 may also be used to temporarily store data that has been output or is to be output.
As can be seen from the above, in the present application, a data source corresponding to each channel is first determined based on the backlight configuration and the video data to be displayed, and then the backlight coefficient is determined according to the data source to control the backlight brightness. According to the scheme, the data source corresponding to each channel in the RGB three channels is determined, the corresponding backlight coefficient is calculated according to the data source corresponding to each channel, and the backlight brightness is controlled by the three backlight coefficients together, so that the local backlight adjusting function of the electronic equipment supports various backlight configurations, and the compatibility is good.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps in the above method embodiments.
Embodiments of the present application provide a computer program product, which, when running on an electronic device, causes the electronic device to perform the steps in the above-mentioned method embodiments.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or apparatus capable of carrying computer program code to an electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/electronic device are merely illustrative, and for example, the division of the above modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (13)

1. A brightness control method based on RGB three channels is characterized by comprising the following steps:
determining a data source corresponding to each channel based on backlight configuration and video data to be displayed;
determining a backlight coefficient to control backlight brightness according to the data source.
2. The method of claim 1, wherein after determining the backlight coefficient to control the backlight brightness according to the data source, further comprising:
and compensating the display brightness according to the backlight coefficient.
3. The method according to claim 2, wherein the compensating the display luminance according to the backlight coefficient comprises:
aiming at each pixel point of the video data, compensating the gray scale data of the pixel point in the corresponding channel by using the brightness contribution value of each backlight source of a preset area corresponding to the pixel point to obtain the compensated gray scale data;
and displaying the compensated gray scale data based on each pixel point.
4. The method according to claim 3, wherein the compensating the gray scale data of the pixel point in the corresponding channel according to the luminance contribution value of the pixel point from each backlight source in the preset area corresponding to the pixel point to obtain the compensated gray scale data comprises:
calculating the current brightness of the pixel point in the corresponding channel based on the brightness contribution value of each backlight source of the preset area to the pixel point;
calculating the ratio of the current brightness of the pixel point in the corresponding channel to the original brightness of the corresponding channel;
and compensating the gray scale data of the pixel points in the corresponding channels based on the ratio to obtain the compensated gray scale data.
5. The method according to claim 1, wherein the determining a data source corresponding to each channel based on the backlight configuration and the video data to be displayed comprises:
determining a configuration scheme corresponding to the backlight configuration according to a preset configuration relation;
and selecting a data source corresponding to the channel from the video data according to the configuration scheme.
6. The luminance control method according to claim 5, wherein the configuration scheme includes a channel combination corresponding to the channels, the channel combination includes at least one channel of three channels RGB, and the selecting the data source corresponding to the channel from the video data according to the configuration scheme includes:
and taking the pixel value of each channel of the video data in the channel combination as a data source corresponding to the channel.
7. The method of claim 1, wherein determining a backlight coefficient to control backlight brightness according to the data source comprises:
calculating a corresponding backlight coefficient according to the data source;
and adjusting the backlight brightness of the corresponding partition based on the backlight coefficient.
8. The method of claim 7, wherein the calculating the corresponding backlight coefficient according to the data source comprises:
aiming at each pixel point in the data source, acquiring the pixel value of the pixel point in each channel;
generating a target histogram according to target pixel values corresponding to all pixel points in the data source, wherein the target pixel values are the maximum values of the corresponding pixel points in the acquired pixel values of all channels, the target histogram represents the number of pixels of the data source under each target pixel value, the abscissa of the target histogram represents the pixel value, and the ordinate represents the number of the pixel points corresponding to the pixel value;
and calculating a corresponding backlight coefficient according to the target histogram.
9. The method of claim 8, wherein the calculating the corresponding backlight coefficient according to the target histogram comprises:
and performing accumulative superposition based on the coordinate values of the target histogram, wherein the coordinate values of which the accumulative values are greater than or equal to a preset value are used as the backlight coefficients.
10. The method of claim 7, wherein the adjusting the backlight brightness of the corresponding partition based on the backlight coefficient comprises:
determining target backlight brightness corresponding to the backlight coefficient according to a preset backlight brightness comparison table, wherein the backlight brightness comparison table is used for indicating the corresponding relation between the backlight coefficient and the backlight brightness;
and adjusting the brightness of the corresponding backlight source of the corresponding partition to the target backlight brightness.
11. An RGB three-channel-based brightness control device, comprising:
the data source determining unit is used for determining a data source corresponding to each channel based on backlight configuration and video data to be displayed;
and the coefficient determining unit is used for determining a backlight coefficient according to the data source so as to control the backlight brightness.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 10.
CN202011183933.0A 2020-10-29 2020-10-29 RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment Pending CN114429754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011183933.0A CN114429754A (en) 2020-10-29 2020-10-29 RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011183933.0A CN114429754A (en) 2020-10-29 2020-10-29 RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114429754A true CN114429754A (en) 2022-05-03

Family

ID=81309902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011183933.0A Pending CN114429754A (en) 2020-10-29 2020-10-29 RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114429754A (en)

Similar Documents

Publication Publication Date Title
CN107293265B (en) Display screen picture adjusting method, display terminal and readable storage medium
JP2003319412A (en) Image processing back-up system, image processor, and image display device
US20060204139A1 (en) Image processing device, image processing method, display controller, and electronic instrument
CN112071267B (en) Brightness adjusting method, brightness adjusting device, terminal equipment and storage medium
CN107315275B (en) Display method and device and computer equipment
US20140204007A1 (en) Method and system for liquid crystal display color optimization with sub-pixel openings
CN113676713A (en) Image processing method, apparatus, device and medium
WO2023082859A1 (en) Image processing method, image processor, electronic device, and storage medium
CN114495812B (en) Display panel brightness compensation method and device, electronic equipment and readable storage medium
JP2003319411A (en) Signal processor
US20240046836A1 (en) Image processing methods and apparatuses, electronic devices and storage media
CN112468793B (en) Color adjusting method and device of OLED screen and computer readable storage medium
CN110618852A (en) View processing method, view processing device and terminal equipment
CN112181500A (en) Parameter adjusting method, device, terminal and storage medium
CN114429754A (en) RGB (red, green and blue) three-channel-based brightness control method and device and electronic equipment
CN111861965A (en) Image backlight detection method, image backlight detection device and terminal equipment
CN110704006B (en) Multi-screen picture display method and device, terminal equipment and storage medium
CN112951147B (en) Display chroma and visual angle correction method, intelligent terminal and storage medium
CN109996017B (en) Image adjusting method and terminal thereof
CN113114930B (en) Information display method, device, equipment and medium
CN113988649B (en) Display function testing method of display screen and related device
CN112185312B (en) Image data processing method and device
CN113590065A (en) Color adjustment method and device, storage medium and display equipment
US11955054B1 (en) Foveated display burn-in statistics and burn-in compensation systems and methods
CN113905126B (en) Image data processing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination