[go: up one dir, main page]

CN117789664A - Display screen backlight adjusting method and device, storage medium and electronic equipment - Google Patents

Display screen backlight adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117789664A
CN117789664A CN202410140018.5A CN202410140018A CN117789664A CN 117789664 A CN117789664 A CN 117789664A CN 202410140018 A CN202410140018 A CN 202410140018A CN 117789664 A CN117789664 A CN 117789664A
Authority
CN
China
Prior art keywords
image data
backlight
display screen
brightness
parameter
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
CN202410140018.5A
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.)
Shenzhen Aixiesheng Technology Co Ltd
Original Assignee
Shenzhen Aixiesheng Technology 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 Shenzhen Aixiesheng Technology Co Ltd filed Critical Shenzhen Aixiesheng Technology Co Ltd
Priority to CN202410140018.5A priority Critical patent/CN117789664A/en
Publication of CN117789664A publication Critical patent/CN117789664A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The application discloses a display screen backlight adjusting method, a device, a storage medium and electronic equipment, wherein the display screen backlight adjusting method comprises the steps of obtaining image data; extracting brightness parameters and contrast parameters of the image data; acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter; adjusting the gray scale value of the image data based on the piecewise linear compensation curve; and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data. The scheme can give consideration to the image quality of the display screen and the backlight power consumption.

Description

Display screen backlight adjusting method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of display, in particular to a display screen backlight adjusting method, a display screen backlight adjusting device, a storage medium and electronic equipment.
Background
In a display system of a liquid crystal display (Liquid Crystal Display, LCD), a backlight is required to provide backlight because the liquid crystal itself does not emit light. The power consumption of the backlight is a main source of the power consumption of the whole display system, and in order to reduce the power consumption of the display screen, a backlight adjustment technology is developed. The dynamic backlight control (Content Adaptive Backlight Control, CABC) technology is an adaptive backlight control technology, and the principle is that the brightness of a backlight source is adjusted according to the content of a display image, and meanwhile, the gray scale value of a pixel is adjusted, so that the same display effect is realized while the power consumption of the backlight is reduced.
The CABC technique has two core parts, one of which is a backlight extraction algorithm, i.e., adjusting the appropriate backlight brightness according to the image content. And the pixel compensation algorithm changes the light transmittance of the liquid crystal by adjusting the pixel value, so that the liquid crystal is matched with the backlight to achieve the same display effect as before adjustment.
However, the current CABC technology cannot achieve both the image quality and the backlight power consumption of the LCD, which seriously affects the user experience.
Disclosure of Invention
The embodiment of the application provides a display screen backlight adjusting method, a device, a storage medium and electronic equipment, which can give consideration to the image quality and the backlight consumption of a display screen.
In a first aspect, an embodiment of the present application provides a method for adjusting backlight of a display screen, including:
acquiring image data;
extracting brightness parameters and contrast parameters of the image data;
acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter;
adjusting the gray scale value of the image data based on the piecewise linear compensation curve;
and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the obtaining a piecewise linear compensation curve and a backlight coefficient of the display screen according to the contrast parameter and the brightness parameter includes:
calculating a backlight coefficient of the display screen according to the contrast parameter and the brightness parameter;
acquiring a first pixel linear mapping coefficient, a second pixel linear mapping coefficient and a breakpoint gray level value of a piecewise linear compensation curve based on the contrast parameter and the brightness parameter;
and generating a piecewise linear compensation curve according to the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the obtaining, based on the contrast parameter and the brightness parameter, the first pixel linear mapping coefficient, the second pixel linear mapping coefficient, and the breakpoint gray level value of the piecewise linear compensation curve includes:
calculating a first pixel linear mapping coefficient of a piecewise linear compensation curve according to the contrast parameter and the brightness parameter;
and calculating a breakpoint gray level value of the piecewise linear compensation curve and a second pixel linear mapping coefficient based on the first pixel linear mapping coefficient.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the calculating, based on the first pixel linear mapping coefficient, a breakpoint gray level value of a piecewise linear compensation curve and a second pixel linear mapping coefficient includes:
calculating a breakpoint gray level value of a piecewise linear compensation curve according to the first pixel linear mapping coefficient;
and calculating a second pixel linear mapping coefficient of the piecewise linear compensation curve according to the first pixel linear mapping coefficient and the breakpoint gray level value.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the extracting the brightness parameter and the contrast parameter of the image data includes:
acquiring a cumulative probability density distribution curve of the image data;
and calculating brightness parameters and contrast parameters of the image data according to the cumulative probability density distribution curve.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the calculating, according to the cumulative probability density distribution curve, a brightness parameter and a contrast parameter of the image data includes:
acquiring a first quantile, a second quantile and a third quantile of the cumulative probability density distribution curve;
calculating brightness parameters and contrast parameters of the image data using the first quantile, the second quantile and the third quantile.
In the method for adjusting backlight of a display screen provided in the embodiment of the present application, the calculating, by using the first division point, the second division point, and the third division point, a brightness parameter and a contrast parameter of the image data includes:
calculating brightness parameters of the image data according to the third quantile;
acquiring preset interval duty ratio and sensitivity parameters of the image data according to the first dividing point, the second dividing point and the third dividing point;
and calculating contrast parameters of the image data by using the preset interval duty ratio and the sensitivity parameters.
In a second aspect, an embodiment of the present application provides a display screen backlight adjustment device, including:
an acquisition unit configured to acquire image data;
an extracting unit for extracting a brightness parameter and a contrast parameter of the image data;
the computing unit is used for acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter;
an adjusting unit for adjusting the gray-scale value of the image data based on the piecewise linear compensation curve;
and the output unit is used for controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
In a third aspect, the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform a display screen backlight adjustment method according to any one of the preceding claims.
In a fourth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for adjusting backlight of a display screen according to any one of the above when executing the computer program.
In summary, the method for adjusting backlight of a display screen provided in the embodiment of the present application includes obtaining image data; extracting brightness parameters and contrast parameters of the image data; acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter; adjusting the gray scale value of the image data based on the piecewise linear compensation curve; and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data. According to the scheme, the contrast parameter of the image data is added to the backlight coefficient calculation process of the display screen, the characteristics of the image data can be more comprehensively represented, and the image quality and the backlight power consumption of the display screen can be better considered by combining the brightness parameter and the contrast parameter of the image data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a display screen backlight adjustment system according to an embodiment of the present application.
Fig. 2 is a flowchart of a method for adjusting backlight of a display screen according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a quantile provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a piecewise linear compensation curve provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a backlight adjusting device for a display screen according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the present application may have the same meaning or may have different meanings, a particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
In the description of the present application, it should be noted that the positional or positional relationship indicated by the terms such as "upper", "lower", "left", "right", "inner", "outer", etc. are based on the positional or positional relationship shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or element in question must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The CABC technique has two core parts, one of which is a backlight extraction algorithm, i.e., adjusting the appropriate backlight brightness according to the image content. And the pixel compensation algorithm changes the light transmittance of the liquid crystal by adjusting the pixel value, so that the liquid crystal is matched with the backlight to achieve the same display effect as before adjustment.
However, the current CABC technology cannot achieve both the image quality and the backlight power consumption of the LCD, which seriously affects the user experience.
Based on this, the embodiment of the application provides a display screen backlight adjusting method, a device, a storage medium and an electronic device, and in particular, the display screen backlight adjusting device can be integrated in the electronic device, and the electronic device can be a server or a terminal and other devices; the terminal can comprise a mobile phone, a wearable intelligent device, a tablet computer, a notebook computer, a personal computer (Personal Computer, PC) and the like; the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like.
The technical solutions shown in the present application will be described in detail below through specific examples. The following description of the embodiments is not intended to limit the priority of the embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a backlight adjustment system for a display screen according to an embodiment of the present application. The display screen backlight adjustment system may include an image acquirer 100, a content analyzer 200, a backlight adjuster 300, a pixel compensator 400, a backlight 500, and a liquid crystal panel (display screen) 600.
In an implementation, image data may be acquired by an image acquirer and sent to the content analyzer 200; then, extracting brightness parameters and contrast parameters of the image data by the content analyzer 200, and acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameters and the brightness parameters; then, the content analyzer 200 transmits the backlight coefficient of the display screen to the backlight regulator 300, and the backlight regulator 300 regulates the backlight of the backlight source 500 so that the backlight source 500 performs brightness output on the liquid crystal panel 500 according to the backlight coefficient; meanwhile, the content analyzer 200 transmits the image data and the piecewise linear compensation curve to the pixel compensator 400, adjusts a gray scale value of the image data based on the piecewise linear compensation curve by the pixel compensator 400, and outputs the adjusted image data to the liquid crystal panel 600, so that the liquid crystal panel 600 can display the adjusted image data according to the brightness of the backlight coefficient.
In the display screen backlight adjusting system provided by the embodiment, the characteristics of the image data can be more comprehensively represented by adding the contrast parameter of the image data into the backlight coefficient calculation process of the display screen, and the image quality and the backlight power consumption of the display screen can be better considered by combining the brightness parameter and the contrast parameter of the image data. And the gray scale value of the image data can be adjusted through the pixel compensator, so that the complete loss of the contrast ratio of the high gray scale pixel value of the image data is avoided, and the 'truncated' distortion effect is weakened.
Referring to fig. 2, fig. 2 is a flowchart of a method for adjusting backlight of a display screen according to an embodiment of the present application. The specific flow of the display screen backlight adjusting method can be as follows:
101. image data is acquired.
Typically, image data is stored in the form of digital signals. The image data may include values for three channels, red, green, and blue (RGB), with each channel typically ranging from 0-255.
The image data is to-be-displayed image data of the display screen. It will be appreciated that the image data may comprise single frame images in pictures and video.
In a specific implementation process, when the image data is a picture, the image data can be directly subjected to subsequent processing. When the image data is a single frame image in the video, after the video data is received through the video port, the image decoding module can be utilized to decode the video data, and the image acquisition module and the image processing module can be utilized to obtain the image data of the current frame as frame image data. The decoding modes corresponding to the video data received by different ports are different, and the initial backlight brightness corresponding to the video data in different formats is different.
102. Brightness parameters and contrast parameters of the image data are extracted.
Specifically, an accumulated probability density distribution curve of image data may be first acquired; the brightness parameter and the contrast parameter of the image data are then calculated from the cumulative probability density distribution curve.
The cumulative probability density distribution curve (Cumulative Distribution Function, CDF) is a function describing the cumulative probability distribution of the random variable. The cumulative probability density distribution curve is typically a non-decreasing, right continuous curve. It represents the possible random variable values on the horizontal axis and the cumulative probability on the vertical axis. Histograms associated with cumulative probability density distribution curves are a common graphical method for visualizing probability distributions of random variables. The histogram divides the possible value range into several bins, the height of each bin representing the frequency or probability density of observations within that bin. By gradually accumulating the heights of these histograms, a cumulative probability density distribution curve can be obtained.
In the embodiment of the present application, the cumulative probability density distribution curve may reflect the overall brightness distribution of the image data. The histogram is a gray level histogram, and may show the pixel distribution at different brightness levels.
Thus, in some embodiments, the gray level histogram of the image data may be obtained first, and then the bins of the gray level histogram may be accumulated step by step to generate the cumulative probability density distribution curve of the image data.
In the implementation process, the brightness level conversion can be performed on each pixel of the image data to obtain the brightness level of each pixel, and then the number of pixels of each brightness level is counted based on a preset brightness range to generate a gray level histogram of the image data.
Note that, in the embodiment of the present application, the maximum value in the sub-pixels (R, G, and B) is used as the luminance level of each pixel. The preset brightness range is 0-255.
In some embodiments, calculating the brightness parameter and the contrast parameter of the image data from the cumulative probability density distribution curve may specifically be: acquiring a first quantile, a second quantile and a third quantile of the cumulative probability density distribution curve; the brightness parameter and the contrast parameter of the image data are calculated using the first quantile, the second quantile and the third quantile.
In the embodiment of the present application, as shown in fig. 3, the first quantile is a 1% quantile of the cumulative probability density distribution curve, the second quantile is an 85% quantile of the cumulative probability density distribution curve, and the third quantile is a 95% quantile of the cumulative probability density distribution curve.
In some embodiments, the step of calculating the brightness parameter and the contrast parameter of the image data using the first quantile, the second quantile and the third quantile may comprise:
calculating brightness parameters of the image data according to the third division point;
acquiring preset interval duty ratio and sensitivity parameters of the image data according to the first dividing point, the second dividing point and the third dividing point;
and calculating contrast parameters of the image data by using the preset interval duty ratio and the sensitivity parameters.
The preset interval duty ratio and the sensitivity parameter for acquiring the image data according to the first dividing point, the second dividing point and the third dividing point specifically may be preset interval duty ratio for acquiring the image data according to the first dividing point, the second dividing point and the third dividing point; a sensitivity parameter of the image data is calculated from the second quantile.
In this embodiment, the preset interval duty refers to a high gray scale interval duty.
The calculation process of the above-described luminance parameter, preset section duty ratio, sensitivity parameter, and contrast parameter will be described below by way of specific examples.
Let the value of the first quantile be P_01, the value of the second quantile be P_85, and the value of the third quantile be P_95.
At this time, the luminance parameter f=p_95/256 of the image data. Preset interval duty cycle r= (p_95-
The value of P_85)/(P_95-P_01) can represent the contrast information of the image to a certain extent, and the larger r is, the wider the highlighting gray scale interval of the image is, the more gray scale of the image is, and the more sensitive the image is to distortion. Sensitivity parameter m=a+b× (1- (P) 85 256), wherein a and b are influencing factors.
At this time, the contrast parameter w=1+m× (1-r) of the image data.
103. And obtaining a piecewise linear compensation curve and a backlight coefficient of the display screen according to the contrast parameter and the brightness parameter.
Specifically, the backlight coefficient of the display screen can be calculated according to the contrast parameter and the brightness parameter; acquiring a first pixel linear mapping coefficient, a second pixel linear mapping coefficient and a breakpoint gray level value of a piecewise linear compensation curve based on the contrast parameter and the brightness parameter; and generating a piecewise linear compensation curve according to the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value.
The step of obtaining the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value of the piecewise linear compensation curve based on the contrast parameter and the brightness parameter may specifically include: calculating a first pixel linear mapping coefficient of the piecewise linear compensation curve according to the contrast parameter and the brightness parameter; and calculating the breakpoint gray-scale value of the piecewise linear compensation curve and the second pixel linear mapping coefficient based on the first pixel linear mapping coefficient.
The step of calculating the breakpoint gray level value of the piecewise linear compensation curve based on the first pixel linear mapping coefficient and the second pixel linear mapping coefficient may specifically be calculating the breakpoint gray level value of the piecewise linear compensation curve according to the first pixel linear mapping coefficient; and calculating a second pixel linear mapping coefficient of the piecewise linear compensation curve according to the first pixel linear mapping coefficient and the breakpoint gray level value.
It should be noted that, the first pixel linear mapping coefficient refers to a first segment slope of the piecewise linear compensation curve, the second pixel linear mapping coefficient refers to a second segment slope of the piecewise linear compensation curve, and the breakpoint gray level value refers to a connection point between the first segment and the second segment of the piecewise linear compensation curve.
The following describes the above-described calculation process of the backlight coefficient, the first pixel linear mapping coefficient, the second pixel linear mapping coefficient, and the breakpoint gray level value by way of specific examples.
For example, let the brightness parameter of the image data be F and the contrast parameter be W.
Then at this time, the backlight coefficient k= (F/W) γ Where γ is the gamma (gamma) value of the display screen. First pixel linear mapping coefficient k1= (W/F). The breakpoint gray level p= (255/k 1) c, where c is a scale factor. The second pixel linear mapping coefficient k2= (255-k1×p)/(255-p).
And then, drawing according to the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value to generate a piecewise linear compensation curve.
104. The gray scale value of the image data is adjusted based on the piecewise linear compensation curve.
It will be appreciated that the purpose of adjusting the gray scale value (pixel value) of the image data is to increase the light transmittance of the liquid crystal to compensate for the brightness loss after the backlight is reduced.
As shown in fig. 4 (the dotted line is an existing pixel compensation curve, the solid line is a piecewise linear compensation curve provided in the embodiment of the present application), the existing pixel compensation method adopts a linear mapping amplifying mode, and improves the gray scale value of a pixel while reducing backlight, the lower the backlight brightness is, the larger the slope of the linear mapping is, and the larger the output pixel value is, but the higher gray scale in an image has a "truncated" distortion phenomenon due to no improved space, and the quality of the image is damaged. Based on the above, the embodiment of the application uses a piecewise linear mapping mode, so that the complete loss of the contrast of the high-gray-scale pixel value of the image can be avoided, and the 'truncated' distortion effect is weakened.
105. And controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
In addition, the gray level distribution correlation between the front and rear adjacent two frames of images is not considered in the conventional algorithm, but when partial areas change, the calculated backlight has differences, and the phenomenon of backlight jitter can occur in the areas without the change, so that visual perception is affected.
In order to solve the above problem, after counting the number of pixels of each brightness level, it is necessary to extract the brightness distribution characteristics of the front and rear frame image data, and perform scene determination according to the brightness distribution characteristics, if the similarity of the brightness distribution of the front and rear frame image data is high, the difference between the front and rear frame image data is limited, the backlight is maintained unchanged, and the backlight jitter possibly caused by small changes of the image data can be avoided.
In some embodiments, the number of pixels with 256 (0-255) brightness levels may be sorted to obtain 8 brightness gray levels with the largest number of pixels and the number of pixels X1-X8. Then, the difference values D1-D8 of the pixel numbers of the 8 gray scales between the previous and the next frames are calculated, and the sum of absolute values is takenIf the S value does not exceed the threshold value T, the output backlight is the same as the previous frame, and the pixel compensation parameters (the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value) are also the same as the previous frame.
The threshold T may be set according to actual situations, and the embodiment of the present application is not limited thereto.
That is, in the embodiment of the present application, after counting the number of pixels of each brightness level, the brightness distribution characteristics of the front and rear frame image data may be extracted first, and the brightness distribution characteristics of the front and rear frame image data may be compared, so as to determine whether adjustment of the backlight coefficient and the pixel compensation parameter is required. If adjustment is required, a subsequent step (e.g., acquiring a gray level histogram of the image data, then gradually accumulating each bin of the gray level histogram to generate a cumulative probability density distribution curve of the image data, calculating a brightness parameter and a contrast parameter of the image data according to the cumulative probability density distribution curve, etc.) may be performed. If no adjustment is required, the execution of the subsequent steps may be stopped. In addition, the brightness distribution characteristics of the current frame (namely, the 8 brightness gray scales with the largest number of pixels and the number of pixels corresponding to the brightness gray scales) are reserved as comparison objects of the next frame data.
It will be appreciated that for high brightness but low contrast images, some loss of brightness does not cause too much visual distortion and therefore lower backlight power consumption can be achieved; for images that are wholly at medium-low brightness but have a small portion of high contrast bright areas, only considering the brightness level may use too low a backlight, and thus a phenomenon of loss of gray level in the bright areas may occur, resulting in unacceptable distortion. The method for adjusting the backlight of the display screen provided by the embodiment of the application can more comprehensively represent the characteristics of the image data by adding the contrast parameter of the image data into the backlight coefficient calculation process of the display screen, and can better consider the image quality and the backlight power consumption of the display screen by combining the brightness parameter and the contrast parameter of the image data.
In summary, the method for adjusting backlight of a display screen provided in the embodiment of the present application includes obtaining image data; extracting brightness parameters and contrast parameters of the image data; acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter; adjusting the gray scale value of the image data based on the piecewise linear compensation curve; and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data. According to the scheme, the contrast parameter of the image data is added to the backlight coefficient calculation process of the display screen, the characteristics of the image data can be more comprehensively represented, and the image quality and the backlight power consumption of the display screen can be better considered by combining the brightness parameter and the contrast parameter of the image data. In addition, the embodiment of the application adopts a piecewise linear mapping mode, so that the complete loss of the contrast of the high-gray-scale pixel value of the image can be avoided, and the 'truncated' distortion effect is weakened.
In order to facilitate better implementation of the display screen backlight adjusting method provided by the embodiment of the application, the embodiment of the application also provides a display screen backlight adjusting device. The meaning of the term is the same as that of the method for adjusting the backlight of the display screen, and specific implementation details can be referred to the description of the embodiment of the method.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a backlight adjusting device for a display screen according to an embodiment of the present application. The display screen backlight adjusting apparatus may include an acquisition unit 201, an extraction unit 202, a calculation unit 203, an adjustment unit 204, and an output unit 205. Wherein,
an acquisition unit 201 for acquiring image data.
An extraction unit 202 for extracting a brightness parameter and a contrast parameter of the image data.
A calculating unit 203, configured to obtain the piecewise linear compensation curve and the backlight coefficient of the display screen according to the contrast parameter and the brightness parameter.
An adjusting unit 204 for adjusting the gray-scale value of the image data based on the piecewise linear compensation curve.
And an output unit 205, configured to control the display screen to perform brightness output according to the backlight coefficient, so as to display the adjusted image data.
The specific embodiments of the above units can be referred to the above embodiments of the method for adjusting backlight of a display screen, and will not be described herein in detail.
In summary, the display screen backlight adjustment apparatus provided in the embodiments of the present application may acquire image data through the acquisition unit 201. The brightness parameter and the contrast parameter of the image data are extracted by the extraction unit 202. The piecewise linear compensation curve and the backlight coefficients of the display screen are obtained by the computing unit 203 from the contrast parameter and the brightness parameter. The gray-scale value of the image data is adjusted based on the piecewise linear compensation curve by the adjustment unit 204. The output unit 205 controls the display screen to perform luminance output according to the backlight coefficient to display the adjusted image data. According to the scheme, the contrast parameter of the image data is added to the backlight coefficient calculation process of the display screen, the characteristics of the image data can be more comprehensively represented, and the image quality and the backlight power consumption of the display screen can be better considered by combining the brightness parameter and the contrast parameter of the image data. In addition, the embodiment of the application adopts a piecewise linear mapping mode, so that the complete loss of the contrast of the high-gray-scale pixel value of the image can be avoided, and the 'truncated' distortion effect is weakened.
The embodiment of the application also provides an electronic device, in which the display screen backlight adjusting device of the embodiment of the application may be integrated, as shown in fig. 6, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, wireless fidelity (Wireless Fidelity, wiFi) module 607, processor 608 including one or more processing cores, and power supply 609. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (Subscriber Identity Module, SIM) card, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 may execute various functional applications and information processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 603 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a touch sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 604 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, which may alternatively be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission via the RF circuit 601 to, for example, another electronic device, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 607, so that wireless broadband Internet access is provided for the user. Although fig. 6 shows a WiFi module 607, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 608 is a control center of the electronic device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the electronic device and processing the data by running or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 608 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions, for example:
acquiring image data;
extracting brightness parameters and contrast parameters of the image data;
acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter;
adjusting the gray scale value of the image data based on the piecewise linear compensation curve;
And controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
In summary, the electronic device provided in the embodiment of the present application may obtain image data; extracting brightness parameters and contrast parameters of the image data; acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter; adjusting the gray scale value of the image data based on the piecewise linear compensation curve; and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data. According to the scheme, the contrast parameter of the image data is added to the backlight coefficient calculation process of the display screen, the characteristics of the image data can be more comprehensively represented, and the image quality and the backlight power consumption of the display screen can be better considered by combining the brightness parameter and the contrast parameter of the image data. In addition, the embodiment of the application adopts a piecewise linear mapping mode, so that the complete loss of the contrast of the high-gray-scale pixel value of the image can be avoided, and the 'truncated' distortion effect is weakened.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of a certain embodiment that are not described in detail may be referred to the above detailed description of the backlight adjustment method for the display screen, which is not repeated herein.
It should be noted that, for the display backlight adjustment method in the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the display backlight adjustment method in the embodiment of the present application may be implemented by controlling related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and the execution may include, for example, the flow of the embodiment of the display backlight adjustment method.
For the display screen backlight adjusting device of the embodiment of the application, each functional module of the display screen backlight adjusting device can be integrated in one processing chip, each module can exist alone physically, and two or more modules can be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
To this end, embodiments of the present application provide a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the display screen backlight adjustment methods provided by embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only MeMory (ROM), a random access MeMory (Random Access Memory, RAM), or the like.
The method, the device, the storage medium and the electronic equipment for adjusting the backlight of the display screen provided by the application are respectively described in detail, and specific examples are applied to the explanation of the principle and the implementation of the application, and the explanation of the above examples is only used for helping to understand the core ideas of the application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in summary.

Claims (10)

1. A method for adjusting backlight of a display screen, comprising:
acquiring image data;
extracting brightness parameters and contrast parameters of the image data;
acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter;
adjusting the gray scale value of the image data based on the piecewise linear compensation curve;
and controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
2. The method for adjusting backlight of a display screen according to claim 1, wherein the step of obtaining a piecewise linear compensation curve and backlight coefficients of the display screen according to the contrast parameter and the brightness parameter comprises:
Calculating a backlight coefficient of the display screen according to the contrast parameter and the brightness parameter;
acquiring a first pixel linear mapping coefficient, a second pixel linear mapping coefficient and a breakpoint gray level value of a piecewise linear compensation curve based on the contrast parameter and the brightness parameter;
and generating a piecewise linear compensation curve according to the first pixel linear mapping coefficient, the second pixel linear mapping coefficient and the breakpoint gray level value.
3. The method for adjusting backlight of a display screen according to claim 2, wherein the obtaining the first pixel linear mapping coefficient, the second pixel linear mapping coefficient, and the breakpoint gray level value of the piecewise linear compensation curve based on the contrast parameter and the brightness parameter comprises:
calculating a first pixel linear mapping coefficient of a piecewise linear compensation curve according to the contrast parameter and the brightness parameter;
and calculating a breakpoint gray level value of the piecewise linear compensation curve and a second pixel linear mapping coefficient based on the first pixel linear mapping coefficient.
4. A method of backlight adjustment of a display screen as recited in claim 3, wherein said calculating breakpoint gray level values of a piecewise linear compensation curve and second pixel linear mapping coefficients based on said first pixel linear mapping coefficients comprises:
Calculating a breakpoint gray level value of a piecewise linear compensation curve according to the first pixel linear mapping coefficient;
and calculating a second pixel linear mapping coefficient of the piecewise linear compensation curve according to the first pixel linear mapping coefficient and the breakpoint gray level value.
5. The display screen backlight adjustment method of claim 1, wherein the extracting the brightness parameter and the contrast parameter of the image data comprises:
acquiring a cumulative probability density distribution curve of the image data;
and calculating brightness parameters and contrast parameters of the image data according to the cumulative probability density distribution curve.
6. The display screen backlight adjustment method of claim 5, wherein the calculating the brightness parameter and the contrast parameter of the image data from the cumulative probability density distribution curve comprises:
acquiring a first quantile, a second quantile and a third quantile of the cumulative probability density distribution curve;
calculating brightness parameters and contrast parameters of the image data using the first quantile, the second quantile and the third quantile.
7. The display screen backlight adjustment method of claim 6, wherein the calculating the brightness parameter and the contrast parameter of the image data using the first quantile, the second quantile, and the third quantile comprises:
Calculating brightness parameters of the image data according to the third quantile;
acquiring preset interval duty ratio and sensitivity parameters of the image data according to the first dividing point, the second dividing point and the third dividing point;
and calculating contrast parameters of the image data by using the preset interval duty ratio and the sensitivity parameters.
8. A display screen backlight adjustment device, comprising:
an acquisition unit configured to acquire image data;
an extracting unit for extracting a brightness parameter and a contrast parameter of the image data;
the computing unit is used for acquiring a piecewise linear compensation curve and a backlight coefficient of a display screen according to the contrast parameter and the brightness parameter;
an adjusting unit for adjusting the gray-scale value of the image data based on the piecewise linear compensation curve;
and the output unit is used for controlling the display screen to output brightness according to the backlight coefficient so as to display the adjusted image data.
9. A storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the display backlight adjustment method of any of claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the display backlight adjustment method according to any one of claims 1-7 when the computer program is executed by the processor.
CN202410140018.5A 2024-01-30 2024-01-30 Display screen backlight adjusting method and device, storage medium and electronic equipment Pending CN117789664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410140018.5A CN117789664A (en) 2024-01-30 2024-01-30 Display screen backlight adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410140018.5A CN117789664A (en) 2024-01-30 2024-01-30 Display screen backlight adjusting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117789664A true CN117789664A (en) 2024-03-29

Family

ID=90393038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410140018.5A Pending CN117789664A (en) 2024-01-30 2024-01-30 Display screen backlight adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117789664A (en)

Similar Documents

Publication Publication Date Title
CN110602473B (en) White balance calibration method and device
CN107451979B (en) Image processing method, device and storage medium
WO2018171493A1 (en) Image processing method and device, and storage medium
CN106296634B (en) A kind of method and apparatus detecting similar image
CN110675838B (en) Brightness adjusting method and device, computer readable storage medium and terminal
CN107249085B (en) Mobile terminal electric quantity display method, mobile terminal and computer readable storage medium
WO2020134789A1 (en) Mobile terminal and method for controlling on and off of screen, and computer storage medium
CN110099434A (en) A kind of power regulating method, terminal device and computer readable storage medium
CN112532958B (en) Image processing method, device, electronic equipment and readable storage medium
CN107845363A (en) A kind of display control method and mobile terminal
CN109729280B (en) Image processing method and mobile terminal
CN112749867A (en) Method and device for determining influence factors of efficiency of oil pumping well system and storage medium
CN112330564B (en) Image processing method, device, electronic equipment and readable storage medium
CN111263216B (en) Video transmission method, device, storage medium and terminal
CN113852751B (en) Image processing method, device, terminal and storage medium
US11109008B2 (en) Data transmission method, data loading device, data parsing device and data transmission system
CN107728774A (en) Parameter regulation means and mobile terminal
CN117789664A (en) Display screen backlight adjusting method and device, storage medium and electronic equipment
CN105184750A (en) Method and device of denoising real-time video images on mobile terminal
CN107835336B (en) Dual-camera frame synchronization method and device, user terminal and storage medium
CN113469923B (en) Image processing method and device, electronic equipment and storage medium
CN114155142A (en) Image processing method, apparatus, computer-readable storage medium, and computer device
CN114140655A (en) Image classification method and device, storage medium and electronic equipment
CN108632468B (en) Method for adjusting CABC level and mobile terminal
US12217648B2 (en) Adjustment of display panel

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