Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a device for adjusting the brightness of a display screen, which can adjust the brightness of the display screen in time according to the brightness of environment light, and improve the viewing effect of the display screen, thereby improving the user experience.
In order to achieve the technical object, the present invention provides a method for adjusting brightness of a display screen, comprising: when the ambient light brightness value of the display screen exceeds a set value, acquiring reference backlight data of the display screen according to the current ambient light brightness value; acquiring position data of identification information in an image collected by a display screen, and determining compensation backlight data of the display screen according to the position data; and adjusting the backlight brightness of the display screen according to the reference backlight data and the compensation backlight data.
Further, the method further comprises: presetting a corresponding relation between an environment light brightness value and a display screen brightness value;
the acquiring of the reference backlight data of the display screen according to the current ambient light brightness value includes:
searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, calculating a backlight current value required by obtaining the display screen brightness value, and taking the backlight current value as reference backlight data of the display screen; or,
and searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, and taking the searched display screen brightness value as the reference backlight data of the display screen.
Further, the determining compensated backlight data of the display screen according to the position data comprises:
obtaining an included angle between the identification information and the display screen in the vertical direction according to the position data, determining a display screen brightness compensation value corresponding to the obtained included angle according to a corresponding relation between a preset included angle and a display screen brightness compensation value, calculating a backlight current value required by the display screen brightness compensation value, and taking the backlight current value as compensation backlight data of the display screen; or,
and obtaining an included angle between the identification information and the display screen in the vertical direction according to the position data, determining a display screen brightness compensation value corresponding to the obtained included angle according to a corresponding relation between a preset included angle and a display screen brightness compensation value, and taking the display screen brightness compensation value as compensation backlight data of the display screen.
Further, the relationship between the included angle and the brightness compensation value of the display screen is as follows:
when the included angle is not less than 0 degree and not more than 10 degrees, the brightness compensation value of the display screen is set to be 0; and/or the like, and/or,
when the included angle is more than 10 degrees and not more than 25 degrees, the brightness compensation value of the display screen is set to be 50% of the reference brightness value; and/or the like, and/or,
when the included angle is more than 25 degrees and not more than 40 degrees, the brightness compensation value of the display screen is set to be 30% of the reference brightness value; and/or the like, and/or,
when the included angle is more than 40 degrees and not more than 60 degrees, the brightness compensation value of the display screen is set to be 20% of the reference brightness value;
and the reference brightness value is a display screen brightness value determined according to the current environment light brightness value.
Further, before the acquiring of the position data facing the identification information in the image acquired by the display screen, the method further comprises: and acquiring the image facing the display screen by one of three pixels of red, green and blue in an interlaced scanning mode.
The invention also provides a device for adjusting the brightness of the display screen, which comprises: the reference backlight processing module is used for acquiring reference backlight data of the display screen according to the current ambient light brightness value when the ambient light brightness value of the display screen exceeds a set value; the identification processing module is used for acquiring position data of identification information in an image collected by a display screen and determining compensation backlight data of the display screen according to the position data; and the backlight adjusting module is used for adjusting the backlight brightness of the display screen according to the reference backlight data and the compensation backlight data.
Further, the reference backlight processing module pre-stores a corresponding relationship between an ambient light brightness value and a display screen brightness value;
the reference backlight processing module is specifically configured to:
searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, calculating a backlight current value required by obtaining the display screen brightness value, and taking the backlight current value as reference backlight data of the display screen; or,
and searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, and taking the searched display screen brightness value as the reference backlight data of the display screen.
Further, the identification processing module is specifically configured to:
obtaining an included angle between the identification information and the display screen in the vertical direction according to the position data, determining a display screen brightness compensation value corresponding to the obtained included angle according to a corresponding relation between a preset included angle and a display screen brightness compensation value, calculating a backlight current value required by the display screen brightness compensation value, and taking the backlight current value as compensation backlight data of the display screen; or,
and obtaining an included angle between the identification information and the display screen in the vertical direction according to the position data, determining a display screen brightness compensation value corresponding to the obtained included angle according to a corresponding relation between a preset included angle and a display screen brightness compensation value, and taking the display screen brightness compensation value as compensation backlight data of the display screen.
Further, the relationship between the included angle and the brightness compensation value of the display screen is as follows:
when the included angle is not less than 0 degree and not more than 10 degrees, the brightness compensation value of the display screen is set to be 0; and/or the like, and/or,
when the included angle is more than 10 degrees and not more than 25 degrees, the brightness compensation value of the display screen is set to be 50% of the reference brightness value; and/or the like, and/or,
when the included angle is more than 25 degrees and not more than 40 degrees, the brightness compensation value of the display screen is set to be 30% of the reference brightness value; and/or the like, and/or,
when the included angle is more than 40 degrees and not more than 60 degrees, the brightness compensation value of the display screen is set to be 20% of the reference brightness value;
and the reference brightness value is a display screen brightness value determined according to the current environment light brightness value.
Further, the device also comprises an image acquisition module which is used for acquiring the image facing the display screen by one of three pixels of red, green and blue in an interlaced scanning mode.
The invention determines the reference backlight data of the display screen through the ambient light brightness value, determines the compensation backlight data of the display screen through identifying the position data of the identification information (such as human eyes or human faces) in the image collected by the display screen, and realizes the intelligent adjustment of the brightness of the display screen according to the reference backlight data and the compensation backlight data. According to the invention, the problem of reduced brightness of the display screen caused by different observation positions of the user on the display screen is compensated by identifying the position data of the identification information, and the brightness of the display screen is timely adjusted according to the brightness of the environment, so that the user can well see the content displayed by the display screen under the condition of stronger external environment light, and the effect and the use experience of the user in watching the display screen are improved.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
As shown in fig. 2, the method for adjusting the brightness of the display screen according to the preferred embodiment of the present invention includes:
step 11: and when the ambient light brightness value of the display screen exceeds a set value, acquiring the reference backlight data of the display screen according to the current ambient light brightness value.
The setting value in this step is a preset setting value of the ambient light brightness, which may be preset by the manufacturer of the smart mobile terminal. When the ambient light brightness value of the display screen exceeds the set value, which indicates that the display screen is in a strong ambient light condition, the current ambient light brightness affects the user to identify the display screen information, and at this time, the method for adjusting the brightness of the display screen provided by the preferred embodiment of the present invention is executed.
The method also comprises the following steps: presetting a corresponding relation between an environment light brightness value and a display screen brightness value; the step of obtaining the reference backlight data of the display screen according to the current ambient light brightness value includes:
searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, calculating a backlight current value required by obtaining the display screen brightness value, and taking the backlight current value as reference backlight data of the display screen;
or,
and searching the display screen brightness value corresponding to the current environment brightness value according to the preset corresponding relation, and taking the searched display screen brightness value as the reference backlight data of the display screen.
In this step, the backlight current value required for calculating the brightness value of the display screen may be: and converting the brightness value of the display screen into a backlight current value required for obtaining the brightness value of the display screen according to the number of backlight lamps of the display screen. The specific implementation is a means of ordinary skill in the art, and is not intended to limit the scope of the present invention, which is not described herein.
Step 12: an image facing the display screen is acquired.
The image facing the display screen collected in this step includes: an image facing the display screen is acquired by one of three pixels of red, green and blue in an interlaced scanning mode. The specific implementation is a means of ordinary skill in the art, and is not intended to limit the scope of the present invention, which is not described herein.
Here, it should be noted that, the reference backlight data of the display screen and the image captured by the display screen according to the current ambient light brightness value in steps 11 and 12 are not in a strict time sequence, and the process can be performed as long as the ambient light brightness value of the display screen exceeds the set value. However, the present invention is not limited thereto. In other embodiments, step 12 may be executed first, and then step 11 is executed, that is, the image facing the display screen is collected first, then the ambient light brightness value of the display screen is obtained, and whether the current ambient light brightness value exceeds the set value is determined, and when the ambient light brightness value exceeds the set value, the reference backlight data of the display screen is obtained according to the current ambient light brightness value.
Step 13: and acquiring position data of the identification information in the acquired image, and determining compensation backlight data of the display screen according to the position data.
Taking the identification information as human eyes or human faces as an example,
in this step, determining the compensation backlight data of the display screen according to the position data of the human eyes or human faces includes:
obtaining an included angle between the human eyes or the human faces and the display screen in the vertical direction according to the position data of the human eyes or the human faces, determining a display screen brightness compensation value corresponding to the obtained included angle according to the corresponding relation between a preset included angle and the display screen brightness compensation value, calculating a backlight current value required by the display screen brightness compensation value, and taking the backlight current value as compensation backlight data of the display screen;
or,
the method comprises the steps of obtaining an included angle between a human eye or a human face and a display screen in the vertical direction according to position data of the human eye or the human face, determining a display screen brightness compensation value corresponding to the obtained included angle according to a corresponding relation between a preset included angle and a display screen brightness compensation value, and taking the display screen brightness compensation value as compensation backlight data of the display screen.
The position data is, for example, a distance from an imaging position of a human eye or a human face to a coordinate origin in an XY coordinate system established with a center of an image controller of the camera as the coordinate origin.
Specifically, as shown in fig. 4, the incident light ray 21 enters an image controller CCD23 of the camera through a camera lens 22. Human eyes or human faces are imaged on a CCD (charge coupled device) 23 of the camera, an XY coordinate system is established by taking the center of the CCD23 as a coordinate origin, a certain distance is taken as a radius (wherein the distance is obtained according to actual camera measurement data), and the distance from an imaging position to the coordinate origin on the CCD23 is measured when the angle perpendicular to the lens of the camera is outwards diffused by 0-10 degrees (namely the included angle between the human eyes or human faces and the display screen in the vertical direction is not less than 0 degree and not more than 10 degrees). Similarly, when the angle of 10-25 degrees (i.e. the angle between the human eye or human face and the vertical direction of the display screen is greater than 10 degrees and not greater than 25 degrees), the angle of 25-40 degrees (i.e. the angle between the human eye or human face and the vertical direction of the display screen is greater than 25 degrees and not greater than 40 degrees) and the angle of 40-60 degrees (i.e. the angle between the human eye or human face and the vertical direction of the display screen is greater than 40 degrees and not greater than 60 degrees) which are perpendicular to the lens of the camera are measured in sequence, the distance from the imaging position to the origin of coordinates on the CCD23 is obtained, and finally, a plurality of regions 24, 25, 26 and 27 shown in fig. Accordingly, the included angle between the human eyes or the human faces and the vertical direction of the display screen can be determined according to the position data of the human eyes or the human faces.
In this case, when the included angle is different, the brightness compensation value obtained by the display screen is also different.
Wherein, the relation between the included angle and the brightness compensation value of the display screen is as follows: when the included angle is not less than 0 degree and not more than 10 degrees, the brightness compensation value of the display screen is set to be 0; and/or when the included angle is more than 10 degrees and not more than 25 degrees, setting the brightness compensation value of the display screen to be 50% of the reference brightness value; and/or when the included angle is more than 25 degrees and not more than 40 degrees, setting the brightness compensation value of the display screen to be 30% of the reference brightness value; and/or when the included angle is more than 40 degrees and not more than 60 degrees, setting the brightness compensation value of the display screen to be 20% of the reference brightness value; and the reference brightness value is the brightness value of the display screen determined according to the current ambient light brightness value.
In addition, in this step, the backlight current value required for obtaining the display screen brightness compensation value may be calculated as: and converting the display screen brightness compensation value into a backlight current value required for obtaining the display screen brightness compensation value according to the number of backlight lamps of the display screen. The specific implementation is a means of ordinary skill in the art, and is not intended to limit the scope of the present invention, which is not described herein.
Step 14: and adjusting the backlight brightness of the display screen according to the reference backlight data and the compensation backlight data.
The specific step of adjusting the backlight brightness of the display screen according to the reference backlight data and the compensation backlight data in the step is as follows: and adding the determined reference backlight data and the compensation backlight data to obtain backlight data of the display screen, and adjusting the backlight brightness of the display screen according to the backlight data of the display screen.
In an embodiment, the determined reference backlight data and the compensation backlight data are a backlight current value obtained by converting the display screen brightness value obtained in step 11 and a backlight current value obtained by converting the display screen brightness compensation value obtained in step 13, respectively. Therefore, the backlight data of the display panel obtained by adding the reference backlight data and the compensation backlight data is the backlight current value. And adjusting the backlight brightness of the display screen according to the backlight current value.
In another embodiment, the determined reference backlight data and the compensation backlight data are the luminance value of the display screen obtained according to step 11 and the luminance compensation value of the display screen obtained according to step 13, respectively. Therefore, the backlight data of the display panel obtained by adding the reference backlight data and the compensation backlight data is a luminance value. And converting the brightness value into a backlight current value required for obtaining the brightness value according to the number of backlight lamps of the display screen. And adjusting the backlight brightness of the display screen according to the backlight current value. The specific implementation is a conventional technical means of a person skilled in the art, and the specific implementation is not used for limiting the protection scope of the present invention, and is not described herein again.
As shown in fig. 3, the apparatus for adjusting the brightness of a display screen according to the preferred embodiment of the present invention at least includes a reference backlight processing module, an identification processing module and a backlight adjusting module; wherein,
the reference backlight processing module is used for acquiring reference backlight data of the display screen according to the current ambient light brightness value when the ambient light brightness value of the display screen exceeds a set value;
the identification processing module is used for acquiring position data of identification information in an image collected by a display screen and determining compensation backlight data of the display screen according to the position data;
and the backlight adjusting module is used for adjusting the backlight brightness of the display screen according to the reference backlight data and the compensation backlight data.
In a preferred embodiment, the apparatus further comprises an image capturing module for capturing an image facing the display screen. Specifically, the device for adjusting the brightness of the display screen provided by this embodiment is, for example, disposed in the mobile terminal, and the image capturing module is, for example, a front camera of the mobile terminal, or a camera that can rotate to the display screen of the mobile terminal, and is configured to capture an image in front of the camera in real time and cache the image in a storage area. Here, the image capturing module is exemplified by a front camera. In addition, when the front camera is used for backlight adjustment of the display screen, in order to save electric energy, the front camera is not in a full working state, and can be in an interlaced scanning mode to collect images facing the display screen through one of red, green and blue pixels, so that the number of scanning lines is reduced, and the purpose of reducing power consumption is realized. However, the present invention is not limited thereto.
In this embodiment, the ambient light sensor is used to monitor the ambient light brightness, when the ambient light brightness value obtained by monitoring by the ambient light sensor exceeds a set value, it is indicated that the ambient light brightness is sufficient to affect human eyes to recognize the information of the display screen of the mobile terminal, and at this time, the front-facing camera is started to shoot images. However, the present invention is not limited thereto. In other embodiments, the front-facing camera may also be used to determine the ambient light brightness. The set value of the ambient light brightness is a preset set value of the ambient light brightness, which can be preset by a mobile terminal manufacturer.
In this embodiment, the reference backlight processing module pre-stores a corresponding relationship between an ambient light brightness value and a display screen brightness value, and the reference backlight processing module is specifically configured to:
searching a display screen brightness value corresponding to the current environment brightness value according to a preset corresponding relation, calculating a backlight current value required by obtaining the display screen brightness value, and taking the backlight current value as reference backlight data of the display screen; or,
and searching the display screen brightness value corresponding to the current environment brightness value according to the preset corresponding relation, and taking the searched display screen brightness value as the reference backlight data of the display screen.
The specific method for converting the brightness value of the display screen to the backlight current value is the same as the method described above, and therefore, the description thereof is omitted.
In this embodiment, the recognition processing module extracts, in real time, the image facing the display screen, which is acquired by the image acquisition module, from the storage area, recognizes the position of the identification information in the image, acquires the position data of the recognized identification information, and determines the compensation backlight data of the display screen according to the acquired position data of the identification information. The identification information is, for example, human eyes or human faces. In addition, the process of acquiring the compensated backlight data is the same as that described in the above method, and therefore, the description thereof is omitted.
In this embodiment, the backlight adjusting module is configured to, on the basis of adjusting the luminance of the display screen according to the ambient light luminance value obtained by the ambient light sensor, continuously adjust the backlight luminance of the display screen according to the position data (mainly, an included angle between the human eye or the human face and the display screen in the vertical direction) of the identification information (such as the human eye or the human face). Namely, the backlight adjusting module automatically adjusts the backlight brightness of the display screen according to the backlight data of the display screen obtained by the reference backlight data and the compensation backlight data.
Specifically, in an embodiment, the reference backlight processing module determines a reference display screen luminance value according to an ambient light luminance value obtained by the ambient light sensor, and calculates a backlight current value (i.e., a reference backlight current value) required to obtain the display screen luminance value. The identification processing module obtains an included angle between the human eyes or the human faces and the display screen in the vertical direction according to the position data of the human eyes or the human faces, the measured brightness of the display screen is reduced when the included angle is formed, the brightness of the display screen is compensated according to the brightness reduction degree, namely, the brightness compensation value of the display screen corresponding to the obtained included angle is determined according to the corresponding relation between the preset included angle and the brightness compensation value of the display screen, and the current value (namely, the backlight compensation current value) required by the brightness compensation value of the display screen is obtained through calculation. The backlight adjusting module adds the current value (namely the compensation backlight current value) which needs to be added to the display screen compensated by the position of human eyes or human faces to the former (namely the reference backlight current value) to obtain the backlight data of the adjusted display screen. Here, in order to avoid an excessive display panel backlight current value, a maximum current value is set, and when the total backlight current value of the display panel reaches the maximum current value, the backlight current value is not increased any more. In other words, when the sum of the reference backlight current value and the compensation backlight current value is greater than the maximum current value, the backlight luminance of the display screen is adjusted at the maximum current value. For example, the display screen brightness value (or the display screen brightness compensation value) may be converted into a backlight current value required to obtain the display screen brightness value (or the display screen brightness compensation value) according to the number of backlights of the display screen.
In another embodiment, the reference backlight processing module determines a reference display screen brightness value (i.e. a reference backlight brightness value) according to an ambient light brightness value obtained by the ambient light sensor. The identification processing module obtains an included angle between the human eyes or the human faces and the display screen in the vertical direction according to the position data of the human eyes or the human faces, the measured brightness of the display screen can be reduced during the included angle, the brightness of the display screen is compensated according to the brightness reduction degree, and namely the brightness compensation value of the display screen corresponding to the obtained included angle is determined according to the corresponding relation between the preset included angle and the brightness compensation value of the display screen. The backlight adjusting module adds the reference backlight brightness value and the display screen brightness compensation value to obtain a backlight brightness value of the display screen (namely, the backlight brightness value is used as backlight data of the display screen), and calculates a backlight current value required by obtaining the backlight brightness value. And the backlight power management chip of the display screen adjusts the backlight brightness of the display screen in real time according to the obtained backlight current value. Similarly, in order to avoid the excessive backlight current value of the display screen, a maximum current value is set, and when the total backlight current value of the display screen reaches the maximum current value, the backlight current value is not increased any more, namely, the backlight brightness of the display screen is adjusted by the maximum current value.
In summary, in the preferred embodiment of the present invention, the front-end camera is used as the recognition condition to recognize and obtain the position data of the identification information (such as human eyes or human faces), determine the compensation backlight data of the display screen according to the obtained position data, determine the reference backlight data of the display screen based on the ambient light brightness value, and realize the intelligent adjustment of the brightness of the display screen according to the backlight data of the display screen determined by the reference backlight data and the compensation backlight data.
The preferred embodiment of the invention compensates the problem of reduced brightness of the display screen caused by different observation positions of the user on the display screen by identifying the position of the identification information (such as human eyes or human faces) relative to the display screen, and realizes timely adjustment of the brightness of the display screen according to the ambient light brightness and the position of the identification information, thereby ensuring that the user can well see the content displayed by the display screen under the condition of stronger external ambient light, and improving the effect and the use experience of the user for watching the display screen.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. The present invention is not limited to the above-described embodiments, which are described in the specification and illustrated only for illustrating the principle of the present invention, but various changes and modifications may be made within the scope of the present invention as claimed without departing from the spirit and scope of the present invention.