CN116954771A - Screen backlight adjusting method and device - Google Patents

Screen backlight adjusting method and device Download PDF

Info

Publication number
CN116954771A
CN116954771A CN202210394363.2A CN202210394363A CN116954771A CN 116954771 A CN116954771 A CN 116954771A CN 202210394363 A CN202210394363 A CN 202210394363A CN 116954771 A CN116954771 A CN 116954771A
Authority
CN
China
Prior art keywords
brightness
screen
subarea
center
value
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
CN202210394363.2A
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.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen Information 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 Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202210394363.2A priority Critical patent/CN116954771A/en
Publication of CN116954771A publication Critical patent/CN116954771A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention provides a screen backlight adjusting method and device, wherein the method comprises the following steps: dividing a target screen into a plurality of subareas from the center of the screen to the edge of the screen; determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, wherein the brightness weight corresponding to each subarea is larger as the distance between the edge of each subarea and the center of the screen is smaller; respectively calculating the brightness of the corresponding display content in each sub-area; calculating the total brightness of all display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea; and calculating a difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value. The sensitivity of human eyes to different parts of the screen is utilized to divide the screen into a plurality of subareas, different brightness weights are set according to the distance between the edges of each subarea and the center of the screen, and the total brightness of the display content of the whole screen is calculated to serve as the basis for adjusting the backlight of the screen, so that the use experience of a user is improved.

Description

Screen backlight adjusting method and device
Technical Field
The invention relates to the technical field of screen display, in particular to a screen backlight adjusting method and a device,
background
Ink panels have been sought for the reading market due to their low power consumption, good display performance, and many other excellent characteristics. Under different reading scenes, a consumer obtains more comfortable reading experience by adjusting the backlight brightness of the screen. At this time, a comfortable reading is performed, and the total brightness value seen by human eyes is mainly affected by brightness of three parts, namely, the brightness value of the environment, the brightness value output by the backlight of the screen and the equivalent brightness value of the display content. Generally, once the backlight brightness of a screen is set, the brightness value sent out by the backlight module is a fixed value; however, as the content is read, the equivalent brightness value of the screen display content is changed. At this time, the human eye obtains the total brightness value which is changed continuously.
In the current industry, the backlight adjustment processing method is used as the basis of backlight adjustment by calculating the average value of the brightness of the display content of the whole screen under the condition that the ambient light is stable. The brightness calculating method is that when the page changes, the average value of the brightness of the whole display content is calculated, and backlight adjustment is carried out according to the size of the average value, however, because the human eyes are more sensitive to the middle position of the picture, the side is inferior, the edge is weakest, the field of view is limited and the like, the brightness feeling still has difference in the process of watching the screen by the human eyes in the backlight adjusting mode, and the use experience of users is influenced.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for adjusting a screen backlight, so as to solve the problem that in the prior art, after the screen backlight is adjusted by a screen backlight adjusting method, the user has a difference in the brightness feeling of watching the screen, and the use experience is affected.
According to a first aspect, an embodiment of the present invention provides a method for adjusting a screen backlight, including:
dividing a target screen into a plurality of subareas from the center of the screen to the edge of the screen;
determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, wherein the brightness weight corresponding to each subarea is larger as the distance between the edge of each subarea and the center of the screen is smaller;
respectively calculating the brightness of the corresponding display content in each sub-area;
calculating the total brightness of all display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea;
and calculating a difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value, wherein the preset total brightness threshold value is used for representing that eyes of a user are in a comfortable state and corresponding to the received brightness value.
Optionally, the calculating the brightness of the corresponding display content in each sub-area includes:
extracting the brightness of each pixel point in the current subarea;
and calculating the brightness sum of all the pixel points to obtain the brightness of the corresponding display content in the current subarea.
Optionally, the extracting the brightness of each pixel point in the current sub-area includes:
acquiring a current display mode of the target screen and RGB data of a current pixel point, wherein the current display mode comprises the following steps: a 16 gray scale display mode and a black and white display mode;
determining a brightness dividing section and equivalent brightness values corresponding to the brightness dividing sections according to the current display mode;
calculating the brightness value of the current pixel point based on the RGB data of the current pixel point;
determining an equivalent brightness value corresponding to the current pixel point based on a brightness dividing interval corresponding to the brightness value of the current pixel point;
and determining the equivalent brightness value as the brightness of the current pixel point.
Optionally, before calculating the total brightness of all display contents in the target screen based on the brightness of the corresponding display contents in each sub-area and the brightness weight corresponding to each sub-area, the method further includes:
monitoring the current distance between eyes of a user and the target screen;
and adjusting the brightness weight corresponding to each sub-region according to the relation between the current distance and a preset distance threshold value, wherein the preset distance threshold value is used for representing the standard distance between eyes of a user and the target screen.
Optionally, the adjusting the brightness weight corresponding to each sub-region according to the relationship between the current distance and the preset distance threshold includes:
judging whether the current distance is smaller than the preset distance threshold value or not;
when the preset distance threshold is smaller than the preset distance threshold, increasing the brightness weight corresponding to the first subarea with the smallest distance between the edge of the subarea and the center of the screen, and reducing the brightness weights of other subareas except the first subarea;
when the preset distance threshold is larger than the preset distance threshold, reducing the brightness weight corresponding to a second subarea with the smallest distance between the edge of the subarea and the center of the screen, and increasing the brightness weights of other subareas except the second subarea;
and when the preset distance threshold value is equal to the preset distance threshold value, maintaining the brightness weight of each subarea unchanged.
Optionally, the dividing the target screen into a plurality of sub-areas from the center of the screen to the edge of the screen includes:
acquiring the resolution of the target screen;
determining the number of the target screen division subareas based on the resolution;
and sequentially determining subareas from the center of the screen to the edges of the screen according to the number, wherein the center of the minimum bounding box of each subarea is the center of the screen.
Optionally, the adjusting the backlight of the target screen based on the difference value includes:
determining the difference value as a backlight brightness value of the target screen;
and carrying out backlight adjustment on the target screen according to the backlight brightness value.
According to a second aspect, an embodiment of the present invention provides a screen backlight adjustment apparatus, including:
the first processing module is used for dividing the target screen into a plurality of subareas from the center of the screen to the edge of the screen;
the second processing module is used for determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, and the smaller the distance between the edge of each subarea and the center of the screen is, the larger the corresponding brightness weight is;
the third processing module is used for respectively calculating the brightness of the corresponding display content in each sub-area;
the fourth processing module is used for calculating the total brightness of all the display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea;
and the fifth processing module is used for calculating the difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value, wherein the preset total brightness threshold value is used for representing that eyes of a user are in a comfortable state and corresponding to the received brightness value.
According to a third aspect, embodiments of the present invention provide a computer readable storage medium storing computer instructions which, when executed by a processor, implement a method according to the first aspect of the present invention and any one of its alternatives.
According to a fourth aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the method according to the first aspect of the invention and any optional mode thereof.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a screen backlight adjusting method and device, which divide a target screen into a plurality of subareas from the center of the screen to the edge of the screen; determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, wherein the brightness weight corresponding to each subarea is larger as the distance between the edge of each subarea and the center of the screen is smaller; respectively calculating the brightness of the corresponding display content in each sub-area; calculating the total brightness of all display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea; and calculating a difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value. The screen is divided into a plurality of subareas by utilizing the sensitivity of human eyes to different parts of the screen, different brightness weights are set according to the distance between the edges of each subarea and the center of the screen, the total brightness of the display content of the whole screen is calculated according to the brightness and the brightness weights of the display content in each subarea, the calculation result is ensured to accord with the watching experience of human eyes on the screen, the backlight of the screen is regulated by utilizing the difference value of the total brightness and the brightness value received by the human eyes corresponding to the comfortable state, the accurate regulation of the backlight of the screen is realized, the consistency of the brightness experience of the user in the process of watching the screen is ensured, the comfort of the eyes is improved, and the user experience is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for adjusting a backlight of a screen according to an embodiment of the present invention;
FIG. 2 is a diagram of a screen division result in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a screen backlight adjusting device according to an embodiment of the invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
In the current industry, the backlight adjustment processing method is used as the basis of backlight adjustment by calculating the average value of the brightness of the display content of the whole screen under the condition that the ambient light is stable. The brightness calculating method is that when the page changes, the average value of the brightness of the whole display content is calculated, and backlight adjustment is carried out according to the size of the average value, however, because the human eyes are more sensitive to the middle position of the picture, the side is inferior, the edge is weakest, the field of view is limited and the like, the brightness feeling still has difference in the process of watching the screen by the human eyes in the backlight adjusting mode, and the use experience of users is influenced.
Based on the above-mentioned problems, an embodiment of the present invention provides a method for adjusting a screen backlight, as shown in fig. 1, which specifically includes the following steps:
step S101: the target screen is divided into a number of sub-areas from the center of the screen to the edges of the screen.
In the embodiment of the present invention, the target screen is taken as an ink screen for example, and in practical application, the target screen may also be other display screens such as: LED display screen, etc., the invention is not limited thereto.
Specifically, the step S101 is specifically performed by acquiring the resolution of the target screen; determining the number of dividing subareas of the target screen based on the resolution; and determining subareas sequentially from the center of the screen to the edge of the screen according to the number, wherein the center of the minimum bounding box of each subarea is the center of the screen. In practical application, the number of division subareas can be set according to the resolution of the target screen, when the resolution is higher, the corresponding sensitivity of the user to view different areas of the screen is higher, the number of corresponding division subareas is also higher, so that the experience of the user to view the screen is ensured, when the resolution is lower, the number of division subareas can be properly reduced due to the lower sensitivity of the user to view the different areas of the screen, so that the data processing capacity is reduced, the efficiency is improved, and the number of specific subareas can be flexibly set according to the actual needs, so that the invention is not limited.
For example, assuming that the resolution of the target screen is 1872×1404, a frame of the image displayed on the current target screen is acquired according to 1872×1404 pixels, and each pixel is composed of RGB three colors. And displaying RGB corresponding to the pixel points of the page on the screen. The whole screen is sensitive to human eyes, and the position of the picture in the middle is next time; and so on, the edge is worst. As shown in fig. 2, the entire screen may be divided into three regions (X1, X2, X3) with the center of the entire screen as a starting point, the width of the screen being the X-axis, and the height of the screen being the Y-axis. At this time, the length and width of the X1 region are X1 and y1 respectively; the length and width of the X2 region are X2 and y2 respectively; the length and width of the X3 region are X3 and y3, respectively. The division of the regions is dynamically adjusted according to the current resolution, and the following conditions need to be satisfied in this application example.
x1+x2+x3=w (screen width)
y1+y2+y3=h (height of screen)
x1:x2:x3=3:2:1
y1:y2:y3=3:2:1
The width and height of the screen may be acquired from the time the screen pixel is initially acquired.
Step S102: and determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, wherein the brightness weight corresponding to each subarea is larger as the distance between the edge of each subarea and the center of the screen is smaller.
Specifically, the farther the edge of the subarea is from the center of the screen, the lower the sensitivity of the human eyes to the subarea is, and conversely, the higher the sensitivity of the human eyes to the subarea is. Therefore, the brightness weight corresponding to each sub-region can be respectively given according to the distance between the edge and the center of the screen, namely the sensitivity of human eyes to each sub-region. Illustratively, the initialization weights of the three sub-regions in FIG. 2 may be set to P1 Initially, the method comprises ,P2 Initially, the method comprises And P3 Initially, the method comprises These weights may be different values preset in different scenarios, such as: 0.5, 0.3 and 0.2, the invention is not limited thereto, but the following conditions must be satisfied:
P1 initially, the method comprises ≥P2 Initially, the method comprises ≥P3 Initially, the method comprises
P1 Initially, the method comprises +P2 Initially, the method comprises +P3 Initially, the method comprises =100%
Step S103: and respectively calculating the brightness of the corresponding display content in each sub-area.
Specifically, the RGB data of each pixel point in each sub-area divided above is extracted as brightness information, so as to obtain the brightness of the display content corresponding to each sub-area.
Step S104: and calculating the total brightness of all the display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea.
For example, taking an ink screen with a resolution of 1872×1404 as an example, each pixel is (X, Y), the luminance value Y1 of all pixels in the area X1 is obtained by adding the luminance of each pixel in the area and multiplying the added luminance by the weight P1:
Y1=∑X1(x,y)P1
by analogy, the X2 and X3 area picture brightness is Y2 and Y3
Y2=∑X2(x,y)P2
Y3=∑X3(x,y)P3
Then, the total brightness of the display content of the whole screen, that is, the equivalent brightness is taken as an example of an ink screen with a resolution of 1872×1404, and each pixel point is (X, Y), and the brightness value Y1 of all the pixel points in the region X1 is obtained by adding the brightness of each pixel point in the region and multiplying the added brightness by the weight P1.
Y1=∑X1(x,y)P1
By analogy, the X2 and X3 area picture intensities are Y2 and Y3:
Y2=∑X2(x,y)P2
Y3=∑X3(x,y)P3
then, the equivalent brightness of the entire screen display content is denoted as ytotal:
total=y1+y2+y3
Step S105: and calculating a difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value.
The preset total brightness threshold value is used for representing that eyes of a user are in a comfortable state and corresponds to the received brightness value.
Specifically, the step S105 described above is specifically performed by determining the difference value as the backlight luminance value of the target screen; and carrying out backlight adjustment on the target screen according to the backlight brightness value.
By utilizing the characteristic that human eyes are more sensitive to the central area, the screen is divided according to the sensitive areas, and the areas with higher sensitivity of the human eyes are given greater weight. Therefore, the calculation of the brightness of the picture is more accurate. The method for dynamically adjusting the backlight in real time according to the display content of the screen has the advantages of eye protection, power saving and better experience.
By executing the steps, the screen backlight adjusting method provided by the embodiment of the invention divides the screen into a plurality of subareas by utilizing the sensitivity of human eyes to different parts of the screen, sets different brightness weights according to the distance between the edges of each subarea and the center of the screen, calculates the total brightness of the display content of the whole screen according to the brightness and the brightness weights of the display content in each subarea, ensures that the calculation result accords with the viewing experience of human eyes on the screen, adjusts the backlight of the screen by utilizing the difference value of the total brightness and the brightness value correspondingly received by human eyes in a comfortable state, realizes the accurate adjustment of the backlight of the screen, ensures the consistency of the brightness experience of a user in the process of viewing the screen, improves the comfort of the eyes, and further improves the use experience of the user.
Specifically, in one embodiment, the step S103 specifically includes the following steps:
step S201: and extracting the brightness of each pixel point in the current subarea.
Specifically, in an embodiment, the step S201 specifically includes the following steps:
step S301: and acquiring the RGB data of the current pixel point and the current display mode of the target screen.
Wherein, the current display mode includes: a 16 gray scale display mode and a black and white display mode.
Step S302: and determining a brightness dividing section and equivalent brightness values corresponding to the brightness dividing sections according to the current display mode.
Specifically, the brightness Y (x, Y) of each pixel extracted above has 256 levels, and the larger the value, the brighter the value is; the smaller the value, the darker the representation. However, the ink screen currently on the market mainly displays in two modes of 16 gray scale (16-level brightness exists) and black and white (pixel point is black or white, 2 levels). The brightness of the picture obtained by the human eye is thus clearly different when in different display modes. Thus, it is necessary to perform luminance processing for the two display modes separately.
Specifically, when the screen is in the 16 gray scale display mode, the brightness of the pixel point has 16 levels, and each level can present different brightness values, but the brightness values of the same level are displayed identically. Therefore, 256-level luminance information of all pixel points of the whole page needs to be classified and processed in 16 levels so that each level has an equivalent luminance value. For example, the luminance value of each level may be taken as an average value of the sum of the maximum value and the minimum value of the luminance of the current level for the purpose of calculation. That is, when the luminance value of one pixel is 0 to 15, then 8 is the luminance value of the pixel. And so on, as shown in table 1.
TABLE 1
256-level brightness Equivalent brightness value
0~15 8
16~31 24
32~37 40
38~15 46
XXX XX
XXX XX
208~223 216
224~239 232
240~255 248
Specifically, when the screen is in the black-and-white display mode, all the pixels of the whole screen are not black or white, and the brightness value of the pixels is either 0 (black) or 255 (white). The brightness of all pixels of the screen display is thus subjected to the brightness processing as shown in table 2.
TABLE 2
256-level brightness Equivalent brightness value
0~127 0
128~255 255
Step S303: based on the RGB data of the current pixel, the brightness value of the current pixel is calculated.
Specifically, the calculation reference formula of the luminance value is as follows:
Wr+Wg+Wb=1;Umax=Vmax=0.5;
Y=16+219*(Wr*R+Wg*G+Wb*B)/255;
BT601 Wr=0.299Wg=0.587Wb=0.114
BT709 Wr=0.2126Wg=0.7152Wb=0.0722
BT2020 Wr=0.2627Wg=0.678Wb=0.0593
the above formula is a prior art for extracting luminance information of RGB data, and specific reference may be made to related descriptions of the prior art, and detailed descriptions thereof are omitted herein.
By converting with reference to the above formula, taking 1872×1404 resolution as an example, luminance information Y (x, Y) of 1872×1404 pixels can be obtained. However, the luminance Y here includes 256 levels (0 to 255).
Step S304: and determining an equivalent brightness value corresponding to the current pixel point based on the brightness dividing interval corresponding to the brightness value of the current pixel point.
Specifically, the equivalent brightness value corresponding to each pixel point can be obtained by looking up the above tables 1 and 2.
Step S305: and determining the equivalent brightness value as the brightness of the current pixel point.
Therefore, the equivalent brightness of the screen display content can be distinguished according to the display mode of the ink screen, so that the effects of protecting eyes and saving electricity are achieved.
Step S202: and calculating the brightness sum of all the pixel points to obtain the brightness of the corresponding display content in the current subarea.
Specifically, the sum of the equivalent brightness values of all the pixel points in each sub-area is the brightness of the corresponding display content in the sub-area.
Specifically, in an embodiment, before executing the step S104, the method for adjusting a screen backlight according to the embodiment of the present invention specifically further includes the following steps:
step S401: the current distance of the user's eyes from the target screen is monitored.
Specifically, a distance sensing function may be set on the screen, and when the face of the user approaches the screen, the distance between the face of the user and the screen may be automatically obtained, and the distance may be used as the current distance between the eyes of the user and the target screen.
Step S402: and adjusting the brightness weight corresponding to each subarea according to the relation between the current distance and the preset distance threshold.
The preset distance threshold is used for representing the standard distance between the eyes of the user and the target screen.
Specifically, step S402 above determines whether the current distance is less than a preset distance threshold; when the preset distance threshold value is smaller than the preset distance threshold value, increasing the brightness weight corresponding to the first subarea with the smallest distance between the edge of the subarea and the center of the screen, and reducing the brightness weights of other subareas except the first subarea; when the preset distance threshold is larger than the preset distance threshold, reducing the brightness weight corresponding to the second subarea with the smallest distance between the edge of the subarea and the center of the screen, and increasing the brightness weights of other subareas except the second subarea; and when the preset distance threshold value is equal to the preset distance threshold value, maintaining the brightness weight of each subarea unchanged.
For example, the initialization state may preset the face-to-screen distance to L0. When the reading distance is changed, the distance from the face to the screen is L. Within the visual distance normally visible to the human eye, the weight at this time must be changed following the change in distance. When the screen gets closer to the reader as the reading distance gets smaller, the weight of P1 at this time is larger, and the weights of P2 and P3 are smaller. Then the then current weight can be calculated as:
P1=P1 initially, the method comprises +(L-L0)λ 2 +(L-L0)λ 3
P2=P2 Initially, the method comprises -(L-L0)λ 2
P3=P3 Initially, the method comprises -(L-L0)λ 3
λ 2 And lambda (lambda) 3 For the change coefficients in different areas, the specific coefficient value can be flexibly set according to the experimental results of different types of screens, and the invention is not limited to the above. When the reader is on principle as the reading distance becomes larger, i.e. the closer the screen is to the reader, the smaller the weight of P1 at this time, the greater the weights of P2 and P3. Then the then current weight can be calculated as:
P1=P1 initially, the method comprises -(L-L0)λ 2 +(L-L0)λ3
P2=P2 Initially, the method comprises +(L-L0)λ 2
P3=P3 Initially, the method comprises +(L-L0)λ3
Therefore, the brightness weights of different subareas are further dynamically adjusted according to the change of the reading distance, and further screen backlight is dynamically adjusted, so that the user can feel that the screen brightness is consistent in a reading scene, and the reading experience of the user is improved.
According to the screen backlight adjusting method provided by the embodiment of the invention, the screen backlight is dynamically adjusted according to the screen display content and the change of the reading distance. Based on the characteristic that human eyes are more sensitive to a central area, the brightness calculation method is obtained by accumulating the brightness of pixel points in the area and multiplying the brightness by the sensitivity of human eyes and the weight obtained by following the change of reading distance. The current brightness calculation method is more accurate in an actual reading scene and has better reading experience.
By executing the steps, the screen backlight adjusting method provided by the embodiment of the invention divides the screen into a plurality of subareas by utilizing the sensitivity of human eyes to different parts of the screen, sets different brightness weights according to the distance between the edges of each subarea and the center of the screen, calculates the total brightness of the display content of the whole screen according to the brightness and the brightness weights of the display content in each subarea, ensures that the calculation result accords with the viewing experience of human eyes on the screen, adjusts the backlight of the screen by utilizing the difference value of the total brightness and the brightness value correspondingly received by human eyes in a comfortable state, realizes the accurate adjustment of the backlight of the screen, ensures the consistency of the brightness experience of a user in the process of viewing the screen, improves the comfort of the eyes, and further improves the use experience of the user.
The embodiment of the invention also provides a screen backlight adjusting device, as shown in fig. 3, which specifically comprises:
the first processing module 101 is configured to divide the target screen into a plurality of sub-areas from the center of the screen to the edge of the screen. For details, refer to the related description of step S101 in the above method embodiment, and no further description is given here.
And the second processing module 102 is configured to determine the luminance weight corresponding to each sub-region according to the distance between the edge of each sub-region and the center of the screen, where the smaller the distance between the edge of each sub-region and the center of the screen is, the larger the luminance weight corresponding to the edge of each sub-region is. For details, refer to the related description of step S102 in the above method embodiment, and no further description is given here.
And a third processing module 103, configured to calculate the brightness of the corresponding display content in each sub-area. For details, see the description of step S103 in the above method embodiment, and the details are not repeated here.
The fourth processing module 104 is configured to calculate the total brightness of all the display contents in the target screen based on the brightness of the corresponding display contents in each sub-area and the brightness weight corresponding to each sub-area. For details, refer to the related description of step S104 in the above method embodiment, and no further description is given here.
And a fifth processing module 105, configured to calculate a difference between the total brightness and a preset total brightness threshold, and perform backlight adjustment on the target screen based on the difference, where the preset total brightness threshold is used to represent that the eyes of the user are in a comfortable state and correspond to the received brightness value. For details, see the description of step S105 in the above method embodiment, and the details are not repeated here.
Further functional descriptions of the above respective modules are the same as those of the above corresponding method embodiments, and are not repeated here.
According to the screen backlight adjusting device provided by the embodiment of the invention, the sensitivity of human eyes to different parts of the screen is utilized, the screen is divided into a plurality of subareas, different brightness weights are set according to the distance between the edges of each subarea and the center of the screen, the total brightness of the display content of the whole screen is calculated according to the brightness and the brightness weights of the display content in each subarea, the calculated result is ensured to accord with the viewing experience of the human eyes on the screen, the backlight of the screen is adjusted by utilizing the difference value of the total brightness and the brightness value correspondingly received by the human eyes in a comfortable state, the accurate adjustment of the backlight of the screen is realized, the consistency of the brightness experience of the user in the process of viewing the screen is ensured, the comfort of the eyes is improved, and the user experience is further improved.
The present invention also provides an electronic device, as shown in fig. 4, which may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or other means, and in fig. 4, the connection is exemplified by a bus.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present invention. The processor 901 performs various functional applications of the processor and data processing, i.e., implements the above-described methods, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods described above.
The specific details of the electronic device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the implemented program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
The above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the scope of the claims.

Claims (10)

1. A method for adjusting backlight of a screen, comprising:
dividing a target screen into a plurality of subareas from the center of the screen to the edge of the screen;
determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, wherein the brightness weight corresponding to each subarea is larger as the distance between the edge of each subarea and the center of the screen is smaller;
respectively calculating the brightness of the corresponding display content in each sub-area;
calculating the total brightness of all display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea;
and calculating a difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value, wherein the preset total brightness threshold value is used for representing that eyes of a user are in a comfortable state and corresponding to the received brightness value.
2. The method according to claim 1, wherein calculating the brightness of the corresponding display content in each sub-area includes:
extracting the brightness of each pixel point in the current subarea;
and calculating the brightness sum of all the pixel points to obtain the brightness of the corresponding display content in the current subarea.
3. The method of claim 2, wherein extracting the brightness of each pixel point in the current sub-region comprises:
acquiring a current display mode of the target screen and RGB data of a current pixel point, wherein the current display mode comprises the following steps: a 16 gray scale display mode and a black and white display mode;
determining a brightness dividing section and equivalent brightness values corresponding to the brightness dividing sections according to the current display mode;
calculating the brightness value of the current pixel point based on the RGB data of the current pixel point;
determining an equivalent brightness value corresponding to the current pixel point based on a brightness dividing interval corresponding to the brightness value of the current pixel point;
and determining the equivalent brightness value as the brightness of the current pixel point.
4. The method of claim 1, wherein prior to calculating the total brightness of all display content within the target screen based on the brightness of the corresponding display content within each sub-region and the brightness weight corresponding to each sub-region, the method further comprises:
monitoring the current distance between eyes of a user and the target screen;
and adjusting the brightness weight corresponding to each sub-region according to the relation between the current distance and a preset distance threshold value, wherein the preset distance threshold value is used for representing the standard distance between eyes of a user and the target screen.
5. The method of claim 4, wherein the adjusting the luminance weight corresponding to each sub-region according to the relationship between the current distance and the preset distance threshold comprises:
judging whether the current distance is smaller than the preset distance threshold value or not;
when the preset distance threshold is smaller than the preset distance threshold, increasing the brightness weight corresponding to the first subarea with the smallest distance between the edge of the subarea and the center of the screen, and reducing the brightness weights of other subareas except the first subarea;
when the preset distance threshold is larger than the preset distance threshold, reducing the brightness weight corresponding to a second subarea with the smallest distance between the edge of the subarea and the center of the screen, and increasing the brightness weights of other subareas except the second subarea;
and when the preset distance threshold value is equal to the preset distance threshold value, maintaining the brightness weight of each subarea unchanged.
6. The method of claim 1, wherein the dividing the target screen into a number of sub-areas from the center of the screen to the edge of the screen comprises:
acquiring the resolution of the target screen;
determining the number of the target screen division subareas based on the resolution;
and sequentially determining subareas from the center of the screen to the edges of the screen according to the number, wherein the center of the minimum bounding box of each subarea is the center of the screen.
7. The method of claim, wherein said backlighting the target screen based on the difference value comprises:
determining the difference value as a backlight brightness value of the target screen;
and carrying out backlight adjustment on the target screen according to the backlight brightness value.
8. A screen backlight adjustment apparatus, comprising:
the first processing module is used for dividing the target screen into a plurality of subareas from the center of the screen to the edge of the screen;
the second processing module is used for determining the brightness weight corresponding to each subarea according to the distance between the edge of each subarea and the center of the screen, and the smaller the distance between the edge of each subarea and the center of the screen is, the larger the corresponding brightness weight is;
the third processing module is used for respectively calculating the brightness of the corresponding display content in each sub-area;
the fourth processing module is used for calculating the total brightness of all the display contents in the target screen based on the brightness of the corresponding display contents in each subarea and the brightness weight corresponding to each subarea;
and the fifth processing module is used for calculating the difference value between the total brightness and a preset total brightness threshold value, and carrying out backlight adjustment on the target screen based on the difference value, wherein the preset total brightness threshold value is used for representing that eyes of a user are in a comfortable state and corresponding to the received brightness value.
9. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of any one of claims 1-7.
10. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
CN202210394363.2A 2022-04-14 2022-04-14 Screen backlight adjusting method and device Pending CN116954771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210394363.2A CN116954771A (en) 2022-04-14 2022-04-14 Screen backlight adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210394363.2A CN116954771A (en) 2022-04-14 2022-04-14 Screen backlight adjusting method and device

Publications (1)

Publication Number Publication Date
CN116954771A true CN116954771A (en) 2023-10-27

Family

ID=88449856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210394363.2A Pending CN116954771A (en) 2022-04-14 2022-04-14 Screen backlight adjusting method and device

Country Status (1)

Country Link
CN (1) CN116954771A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117690376A (en) * 2024-01-10 2024-03-12 浙江技加智能科技有限公司 LED display screen module splicing control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117690376A (en) * 2024-01-10 2024-03-12 浙江技加智能科技有限公司 LED display screen module splicing control system

Similar Documents

Publication Publication Date Title
CN108090879B (en) Method for processing input high dynamic range image and display equipment
CN108109180B (en) Method for processing input high dynamic range image and display equipment
CN101360250B (en) Immersion method and system, factor dominating method, content analysis method and parameter prediction method
US10783837B2 (en) Driving method and driving device of display device, and related device
KR102317613B1 (en) Systems and methods for localized contrast enhancement
US11030729B2 (en) Image processing method and apparatus for adjusting a dynamic range of an image
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
JP2007298693A (en) Video display device and semiconductor circuit
CN107665681B (en) Liquid crystal display driving method, system and computer readable medium
EP2492907B1 (en) Image processing apparatus, storage medium storing image processing program, and image processing method
CN113299245A (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
CN111369471A (en) Image processing method, device, equipment and storage medium
CN110956932A (en) Display device, driving method thereof, driving apparatus thereof, and computer readable medium
CN112947824A (en) Display parameter adjusting method and device, electronic equipment and medium
CN116954771A (en) Screen backlight adjusting method and device
US20200160492A1 (en) Image Adjustment Method and Device, Image Display Method and Device, Non-Transitory Storage Medium
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
CN112700456A (en) Image area contrast optimization method, device, equipment and storage medium
EP4372730A1 (en) Image enhancement method and apparatus, computer device, and storage medium
WO2023000868A1 (en) Image processing method and apparatus, device, and storage medium
CN105761267A (en) Image processing method and device
CN112992052B (en) Power consumption control method of display panel and display panel
CN113077533B (en) Image fusion method and device and computer storage medium
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
KR102303666B1 (en) Method of image processing, image processor performing the method and display device having the image processor

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