Backlight adjusting method and device and electronic equipment

文档序号:1955133 发布日期:2021-12-10 浏览:20次 中文

阅读说明:本技术 背光调节方法、装置和电子设备 (Backlight adjusting method and device and electronic equipment ) 是由 夏洪成 于 2021-09-27 设计创作,主要内容包括:本申请提供了一种背光调节方法、装置和电子设备,该方法包括:获得环境光传感器感应到的环境光感应值,环境光感应值用于表征电子设备所处环境的环境光亮度;获得图像传感器感应到的感光参数值;如基于图像传感器感应到的感光参数值确定出电子设备所处环境的环境光亮度存在变化,基于环境光感应值控制电子设备的显示屏的背光亮度;如基于图像传感器感应到的感光参数值确定出电子设备所处环境的环境光亮度不存在变化,维持显示屏的背光亮度不变。本申请的方案可以减少显示屏的背光误调节,使得更为准确的背光调节。(The application provides a backlight adjusting method, a backlight adjusting device and electronic equipment, wherein the method comprises the following steps: obtaining an ambient light sensing value sensed by an ambient light sensor, wherein the ambient light sensing value is used for representing ambient light brightness of an environment where the electronic equipment is located; acquiring a photosensitive parameter value sensed by an image sensor; if the change of the ambient light brightness of the environment where the electronic equipment is located is determined based on the light sensing parameter value sensed by the image sensor, controlling the backlight brightness of a display screen of the electronic equipment based on the ambient light sensing value; if the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the photosensitive parameter values sensed by the image sensor, the backlight brightness of the display screen is kept unchanged. The scheme of this application can reduce the wrong regulation in a poor light of display screen for more accurate regulation in a poor light.)

1. A backlight adjustment method, comprising:

obtaining an ambient light sensing value sensed by an ambient light sensor, wherein the ambient light sensing value is used for representing ambient light brightness of an environment where the electronic equipment is located;

acquiring a photosensitive parameter value sensed by an image sensor;

if the change of the ambient light brightness of the environment where the electronic equipment is located is determined based on the light sensing parameter value sensed by the image sensor, controlling the backlight brightness of a display screen of the electronic equipment based on the ambient light sensing value;

and if the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the photosensitive parameter value sensed by the image sensor, maintaining the backlight brightness of the display screen unchanged.

2. The method of claim 1, wherein the obtaining a value of a light sensitivity parameter sensed by an image sensor comprises:

and if the change of the ambient light brightness of the environment where the electronic equipment is located is determined based on the ambient light sensing value, obtaining a light sensing parameter value sensed by the image sensor.

3. The method of claim 2, after obtaining the ambient light sensing value sensed by the ambient light sensor, further comprising:

determining an ambient light sensing change value based on the ambient light sensing value, wherein the ambient light sensing change value is used for representing the change of the ambient light brightness sensed by the ambient light sensor;

and if the ambient light sensing variation value exceeds a first threshold value, determining that the ambient light brightness of the environment where the electronic equipment is located has variation based on the ambient light sensing value.

4. The method of claim 1, further comprising, after the obtaining a value of a photo-sensitive parameter sensed by an image sensor:

determining a photosensitive parameter change value based on the photosensitive parameter value, wherein the photosensitive parameter change value is a change value of the photosensitive parameter sensed by the image sensor and is used for representing the change of the ambient light brightness sensed by the image sensor;

if the light sensing parameter change value exceeds a second threshold value, determining that the ambient light brightness of the environment where the electronic equipment is located has change based on the sensed light parameter value;

and if the light sensing parameter change value does not exceed the second threshold value, determining that no change exists in the ambient light brightness of the environment where the electronic equipment is located based on the sensed light parameter value.

5. The method of claim 1, after obtaining ambient light sensing values sensed by an ambient light sensor, further comprising:

determining a target screen brightness value of a display screen of the electronic device based on the ambient light sensing value;

the controlling the backlight brightness of the display screen of the electronic device based on the ambient light sensing value includes:

adjusting the backlight brightness of the display screen of the electronic equipment according to the target screen brightness value;

the maintaining of the backlight brightness of the display screen comprises:

and discarding the target screen brightness value and keeping the backlight brightness of the display screen unchanged.

6. The method of claim 4, further comprising:

and if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value, and the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the ambient light sensing value, adjusting the backlight brightness of the display screen of the electronic equipment based on the light sensing parameter value.

7. An electronic device, comprising:

the system comprises a processor, an ambient light sensor, an image sensor and a display screen;

the environment light sensor is used for sensing an environment light sensing value of an environment, and the environment light sensing value is used for representing the environment light brightness of the environment where the environment light sensor is located;

the image sensor is used for sensing a photosensitive parameter value of an environment, and the photosensitive parameter value is used for representing the ambient light brightness of the environment where the image sensor is located;

the processor is used for controlling the backlight brightness of the display screen based on the ambient light sensing value if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value sensed by the image sensor; and if the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the photosensitive parameter value sensed by the image sensor, maintaining the backlight brightness of the display screen unchanged.

8. The electronic device of claim 7, a light sensing angle range of the image sensor being greater than a light sensing angle range of the ambient light sensor.

9. The electronic device of claim 7, wherein the image sensor and the ambient light sensor are both disposed on a panel on which a display screen of the electronic device is disposed.

10. A backlight adjusting apparatus, comprising:

the first parameter obtaining unit is used for obtaining an ambient light sensing value sensed by an ambient light sensor, and the ambient light sensing value is used for representing ambient light brightness of an environment where the electronic equipment is located;

the second parameter obtaining unit is used for obtaining a photosensitive parameter value sensed by the image sensor;

the backlight adjusting unit is used for controlling the backlight brightness of a display screen of the electronic equipment based on the ambient light sensing value if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value sensed by the image sensor;

and the backlight maintaining unit is used for maintaining the backlight brightness of the display screen unchanged if the ambient light brightness of the environment where the electronic equipment is located is determined to be unchanged based on the photosensitive parameter value sensed by the image sensor.

Technical Field

The present disclosure relates to the field of control technologies, and in particular, to a backlight adjusting method and apparatus, and an electronic device.

Background

The backlight adjustment of the electronic device means that the backlight brightness of a display screen of the electronic device is automatically adjusted based on the intensity of ambient light sensed by an ambient light sensor of the electronic device.

However, due to the layout structure of the ambient light sensor in the electronic device, the range of the light angle that can be sensed by the ambient light sensor is relatively limited, and the ambient light sensor is prone to being unable to accurately detect the ambient light brightness, so that the backlight adjustment based on the ambient light that is sensed by the ambient light sensor is unable to accurately and reliably realize.

Disclosure of Invention

The application provides a backlight adjusting method and device and electronic equipment.

The backlight adjusting method comprises the following steps:

obtaining an ambient light sensing value sensed by an ambient light sensor, wherein the ambient light sensing value is used for representing ambient light brightness of an environment where the electronic equipment is located;

acquiring a photosensitive parameter value sensed by an image sensor;

if the change of the ambient light brightness of the environment where the electronic equipment is located is determined based on the light sensing parameter value sensed by the image sensor, controlling the backlight brightness of a display screen of the electronic equipment based on the ambient light sensing value;

and if the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the photosensitive parameter value sensed by the image sensor, maintaining the backlight brightness of the display screen unchanged.

In a possible implementation manner, the obtaining a value of a photosensitive parameter sensed by an image sensor includes:

and if the change of the ambient light brightness of the environment where the electronic equipment is located is determined based on the ambient light sensing value, obtaining a light sensing parameter value sensed by the image sensor.

In another possible implementation manner, after obtaining the ambient light sensing value sensed by the ambient light sensor, the method further includes:

determining an ambient light sensing change value based on the ambient light sensing value, wherein the ambient light sensing change value is used for representing the change of the ambient light brightness sensed by the ambient light sensor;

and if the ambient light sensing variation value exceeds a first threshold value, determining that the ambient light brightness of the environment where the electronic equipment is located has variation based on the ambient light sensing value.

In another possible implementation manner, after obtaining the value of the photosensitive parameter sensed by the image sensor, the method further includes:

determining a photosensitive parameter change value based on the photosensitive parameter value, wherein the photosensitive parameter change value is a change value of the photosensitive parameter sensed by the image sensor and is used for representing the change of the ambient light brightness sensed by the image sensor;

if the light sensing parameter change value exceeds a second threshold value, determining that the ambient light brightness of the environment where the electronic equipment is located has change based on the sensed light parameter value;

and if the light sensing parameter change value does not exceed the second threshold value, determining that no change exists in the ambient light brightness of the environment where the electronic equipment is located based on the sensed light parameter value.

In another possible implementation manner, after obtaining the ambient light sensing value sensed by the ambient light sensor, the method further includes:

determining a target screen brightness value of a display screen of the electronic device based on the ambient light sensing value;

the controlling the backlight brightness of the display screen of the electronic device based on the ambient light sensing value includes:

adjusting the backlight brightness of the display screen of the electronic equipment according to the target screen brightness value;

the maintaining of the backlight brightness of the display screen comprises:

and discarding the target screen brightness value and keeping the backlight brightness of the display screen unchanged.

In another possible implementation manner, the method further includes:

and if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value, and the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the ambient light sensing value, adjusting the backlight brightness of the display screen of the electronic equipment based on the light sensing parameter value.

Wherein, an electronic equipment includes:

the system comprises a processor, an ambient light sensor, an image sensor and a display screen;

the environment light sensor is used for sensing an environment light sensing value of an environment, and the environment light sensing value is used for representing the environment light brightness of the environment where the environment light sensor is located;

the image sensor is used for sensing a photosensitive parameter value of an environment, and the photosensitive parameter value is used for representing the ambient light brightness of the environment where the image sensor is located;

the processor is used for controlling the backlight brightness of the display screen based on the ambient light sensing value if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value sensed by the image sensor; and if the ambient light brightness of the environment where the electronic equipment is located is determined to be not changed based on the photosensitive parameter value sensed by the image sensor, maintaining the backlight brightness of the display screen unchanged.

In one possible implementation, the photosensitive angle range of the image sensor is greater than the photosensitive angle range of the ambient light sensor.

In yet another possible implementation manner, the image sensor and the ambient light sensor are both disposed on a panel on which a display screen of the electronic device is located.

Wherein, a backlight adjusting device comprises:

the first parameter obtaining unit is used for obtaining an ambient light sensing value sensed by an ambient light sensor, and the ambient light sensing value is used for representing ambient light brightness of an environment where the electronic equipment is located;

the second parameter obtaining unit is used for obtaining a photosensitive parameter value sensed by the image sensor;

the backlight adjusting unit is used for controlling the backlight brightness of a display screen of the electronic equipment based on the ambient light sensing value if the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the light sensing parameter value sensed by the image sensor;

and the backlight maintaining unit is used for maintaining the backlight brightness of the display screen unchanged if the ambient light brightness of the environment where the electronic equipment is located is determined to be unchanged based on the photosensitive parameter value sensed by the image sensor.

By above can understand, this application not only can obtain the ambient light sensing value that ambient light sensor sensed, still can obtain the sensitization parameter value that image sensor sensed. Because image sensor's sensitization scope is wider, the condition that leads to can't sensing environment light because reasons such as light angle change appear very easily, consequently, the sensitization parameter value that utilizes image sensor to sense judges whether the environment changes, can more accurately detect the condition that the environment light brightness has the change. On the basis, if the brightness of the ambient light where the electronic equipment is located is determined to be unchanged based on the value of the photosensitive parameter sensed by the image sensor, the backlight brightness of the display screen cannot be adjusted, and the situation that the brightness of the backlight is adjusted by mistake because the ambient light cannot enter the ambient light sensor is reduced. Moreover, after the sensitization parameter value that image sensor sensed represented the ambient light brightness and changed, this application effectively utilized the sensitivity of ambient light sense ware response light brightness value, was based on the ambient light sense value control luminance of being shaded that ambient light sensor sensed to effectively promoted the accuracy of adjusting in a poor light.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.

Fig. 1 is a schematic diagram illustrating a component structure of an electronic device according to an embodiment of the present disclosure;

fig. 2 is a schematic flow chart illustrating a backlight adjusting method according to an embodiment of the present application;

fig. 3 is a schematic flow chart of a backlight adjusting method provided by an embodiment of the present application;

fig. 4 is a schematic flow chart illustrating a backlight adjusting method provided by an embodiment of the present application;

fig. 5 is a schematic diagram illustrating a composition structure of a backlight adjusting apparatus according to an embodiment of the present disclosure.

Detailed Description

The scheme of the embodiment of the application is suitable for adjusting the backlight brightness of the display screen of the electronic equipment based on the ambient light where the electronic equipment is located, the accuracy of backlight brightness adjustment is improved through the scheme of the application, and abnormal conditions such as frequent screen brightness changes caused by false detection and the like under the condition that the ambient light is not changed are reduced.

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.

The scheme of this application is applicable to the electronic equipment who has ambient light sensor and image sensor.

For ease of understanding, an electronic device to which the present application is applicable will be described.

Fig. 1 is a schematic diagram showing a structure of an electronic device to which the present application is applied.

The electronic device includes: a processor 101, an ambient light sensor 102, an image sensor 103, and a display screen 104.

The ambient light sensor 102 is configured to sense an ambient light sensing value of an environment, where the ambient light sensing value is used to represent ambient light brightness of an environment where the ambient light sensor is located.

The image sensor 103 is configured to sense a photosensitive parameter value of an environment, where the photosensitive parameter value is used to represent an ambient light brightness of the environment where the image sensor is located.

In the present application, the processor 101 is configured to, if it is determined that there is a change in the ambient light brightness of the environment where the electronic device is located based on the value of the light sensing parameter sensed by the image sensor, control the backlight brightness of the display screen 104 based on the ambient light sensing value; if it is determined that there is no change in the ambient light brightness of the environment where the electronic device is located based on the value of the photosensitive parameter sensed by the image sensor, the backlight brightness of the display screen is maintained unchanged.

In the present application, there are many possible types of electronic devices, for example, the electronic device may be a mobile phone or a tablet computer, and the like, which is not limited thereto.

It can be understood that the Ambient Light Sensor (ALS) is built in the panel of the electronic device, and is limited by the structure of the ambient light sensor, and the light entering angle of the ambient light sensor is greatly limited, i.e. the light sensing angle of the ambient light sensor is relatively limited.

Therefore, after the angle of the electronic device changes, the ambient light sensor is prone to not sense the ambient light brightness, and the ambient light misjudging the environment where the electronic device is located changes greatly, so that the electronic device is triggered to misadjust the backlight brightness of the display screen, and even under the condition that the ambient brightness does not change, the backlight brightness is frequently adjusted in a short time.

In a possible implementation manner, in order to better sense the brightness of the environment where the display screen is located, the ambient light sensor is generally disposed on a side of the panel where the display screen of the electronic device is located. And along with people's requirement to the narrow frame of screen is higher and higher, ambient light sensor generally can set up in a recess to reserve the slot for ambient light sensor on the glass apron that the display screen corresponds and make ambient light sensor can respond to the luminance of ambient light. By environment light sensor setting structure to and the slot has the requirement to advance the light direction and knows, under the circumstances that electronic equipment is located the environment light luminance does not change, if after the angle of electronic equipment's display screen changes, also can appear because light is sheltered from and can't enter into the circumstances of environment light sensor, make the parameter value of the environment light luminance that environment light sensor sensed take place great change, and then trigger the regulation of display screen backlight luminance (like triggering the display screen and being shaded luminance and becoming dark).

Correspondingly, if the angle of the electronic device changes many times, the ambient light sensor may sense light and cannot sense frequent changes between light, and further the backlight brightness of the display screen changes frequently, so that the backlight shakes back and forth, and discomfort of the user is caused.

Of course, the above is taken as an example that the ambient light sensor is disposed on the panel where the display screen is located, and the same situation may exist when the ambient light sensor is disposed on the back panel of the electronic device in practical application, which is not limited to this.

In this application, an image sensor is a sensor used in an electronic device to capture and generate an image. It can be understood that the image sensors each have a photosensitive element, and therefore, the image sensors also have a function of sensing ambient light. The sensitization function of light sensing component in multiplexing image sensor obtains the sensitization parameter value that image sensor can sense in this application. Moreover, since the power consumption of the image sensor is relatively low only by using the photosensitive element to sense the ambient light, the power consumption of the electronic device is not greatly affected.

The image sensor is a low-power-consumption camera of the electronic equipment, and the low-power-consumption camera is used for detecting whether a living body (or a user) approaches the electronic equipment or not, and awakening the electronic equipment or an identity recognition device (fingerprints, human faces and other biological characteristics) of the electronic equipment when the electronic equipment is in a low-power-consumption state.

The image sensor has a wide sensing range, and therefore, the light sensing angle range of the image sensor is larger than that of the environment sensor.

Because image sensor's project organization among the electronic equipment, image sensor's the angle of advance can reach 360 degrees for image sensor can not receive electronic equipment's angle change and can't sense ambient light, and based on this, the change of the response light parameter that utilizes image sensor to sense is as the basis that whether the ambient light brightness of the environment that judges electronic equipment is located has the change, the circumstances that the ambient light brightness of the environment that detects electronic equipment is located that can be fine changes.

However, the accuracy of the parameter of the light brightness sensed by the image sensor is relatively low compared to the high accuracy of the ambient light sensor. Based on this, this application can judge whether ambient light luminance changes based on the sensitization parameter value that image sensor sensed, if confirm that ambient light luminance changes really, adjust the luminance in a poor light of display screen based on the ambient light luminance that ambient light sensor sensed again to further promote the adjustment accuracy of display screen luminance in a poor light.

In this application, the image sensor may be a front-end image sensor of the electronic device, that is, the image sensor is disposed on a panel where a display screen of the electronic device is located. The image sensor may also be a rear image sensor disposed on a back panel of the electronic device, which is not limited to this.

As an alternative, the image sensor may be a front image sensor of the electronic device in order to more accurately reflect the light condition of the display screen.

For the relevant operation of the processor in the electronic device, reference may be made to the following description of the method embodiment, which is not described herein again.

It is understood that fig. 1 is only a schematic diagram of the electronic device of the present application, and in practical applications, the electronic device may further include more or less components, for example, the electronic device may include a communication bus, a processor, an image sensor, an ambient light sensor, a display screen, and the like, and all of them may implement data transmission or communication connection through the communication bus.

In the following, with reference to the above, the backlight adjusting method of the present application is described by using a flowchart.

As shown in fig. 2, which shows a flowchart of a backlight adjusting method provided in an embodiment of the present application, the method of the present embodiment may be applied to the aforementioned electronic device, and the method of the present embodiment may include:

s201, obtaining an ambient light sensing value sensed by an ambient light sensor.

The ambient light sensing value is sensed by the ambient light sensor and is used for representing a parameter value of the ambient light brightness sensed by the ambient light sensor. In practical applications, the ambient light sensing value may be used to represent the ambient light brightness of the environment where the electronic device is located.

S202, obtaining a photosensitive parameter value sensed by the image sensor.

The photosensitive parameter value is a parameter value which is sensed by the image sensor and represents the ambient light brightness of the environment where the image sensor is located.

In this embodiment, the sequence of the steps S201 and S202 is not limited, and in practical application, the two steps may be executed simultaneously, or the sequence may be interchanged.

S203, if it is determined that the ambient light brightness of the environment where the electronic device is located changes based on the light sensing parameter values sensed by the image sensor, controlling the backlight brightness of the display screen of the electronic device based on the ambient light sensing values.

In the application, if the ambient light brightness sensed by the image sensor is determined to be changed based on the photosensitive parameter value, the ambient light brightness of the environment where the electronic equipment is located is determined to be changed.

The manner of determining the change of the ambient light brightness based on the value of the photosensitive parameter may be multiple. Several possible scenarios are exemplified below.

For example, in one possible implementation, if it is determined that the value of the sensing parameter is different from the value of the sensing parameter that was collected last time or collected at a historical time that is a set time from the current time, it is determined that there is a change in the ambient light level.

In yet another possible implementation manner, in order to accurately determine whether there is a change in the ambient light brightness of the environment where the electronic device is located, after obtaining the value of the exposure parameter, the value of the exposure parameter change may be determined based on the value of the exposure parameter. The photosensitive parameter variation value is a variation value of the photosensitive parameter sensed by the image sensor, and the photosensitive parameter variation value is used for representing the variation of the ambient light brightness sensed by the image sensor.

For example, the exposure parameter variation value may be determined in combination with the historical exposure parameter value obtained last time or within a last period of time, which is not limited in this respect.

Accordingly, if the light-sensitive parameter variation value exceeds a light-sensitive variation threshold, it can be determined that there is a variation in the ambient light brightness of the environment in which the electronic device is located based on the sensed light parameter value. Similarly, if the light-sensitive parameter variation value does not exceed the light-sensitive variation threshold, it is determined that there is no variation in the ambient light level of the environment in which the electronic device is located.

Of course, there may be other possibilities for determining whether there is a change in the ambient light brightness of the environment where the electronic device is located based on the value of the photosensitive parameter, and other manners are also applicable to the embodiment, which is not limited to this.

As can be seen from the foregoing description, the range of the light sensing angle of the image sensor is wide, and therefore, there is no situation that the ambient brightness is not changed and the image sensor senses the ambient brightness change. Based on the above, when the ambient light brightness of the environment where the electronic equipment is located is determined to be changed based on the photosensitive parameter value sensed by the image sensor, the backlight brightness of the display screen of the electronic equipment is controlled based on the ambient light sensing value sensed by the ambient light sensor, so that abnormal conditions such as misjudgment of ambient brightness reduction and the like caused by limited light entering angle of the ambient light sensor can be avoided; meanwhile, the electric backlight brightness can be accurately controlled by means of the accuracy of the ambient light sensor in sensing the light brightness value.

The method comprises the steps of controlling the backlight brightness of a display screen of the electronic equipment based on an ambient light induction value, wherein the backlight brightness of the display screen of the electronic equipment is adjusted according to the ambient light induction value; when the ambient light sensing value indicates that the ambient brightness variation range of the environment where the electronic device is located is small, the backlight brightness of the display screen of the electronic device is maintained, which may be specifically determined according to the ambient light sensing value, or by combining the ambient light sensing value and the historically sensed ambient light sensing value.

In an alternative mode, after the ambient light sensor senses the ambient light sensing value, the target screen brightness value of the display screen of the electronic device can be determined based on the ambient light sensing value. The target screen brightness value is a brightness value which needs to be presented by the display screen and is matched with the ambient light sensing value sensed by the ambient light sensor.

For example, the target screen brightness value corresponding to the ambient light sensing value may be determined according to the correspondence between different ambient light sensing values and screen brightness values. Of course, for illustration, in practical applications, there are many ways to determine the corresponding target screen brightness value by collecting the ambient light sensing value sensed by the ambient light sensor, which is not limited herein.

Accordingly, the backlight brightness of the display screen of the electronic device can be adjusted according to the target screen brightness value. For example, the backlight brightness is adjusted to the target screen brightness value.

And S204, if it is determined that the ambient light brightness of the environment where the electronic equipment is located does not change based on the photosensitive parameter values sensed by the image sensor, maintaining the backlight brightness of the display screen unchanged.

In this application, if the sensitization parameter value that image sensor sensed indicates that the ambient light brightness of the environment that electronic equipment is located does not have the change, even ambient light sensor senses the ambient light brightness change, luminance is shaded according to the ambient light sensing value adjustment that ambient light sensor sensed yet to this application, but maintains the luminance of being shaded of display screen unchangeably to can reduce because ambient light sensor's income light is sheltered from, and the condition of misregulation back light brightness appears.

According to the method and the device, the ambient light sensing value sensed by the ambient light sensor can be obtained, and the light sensing parameter value sensed by the image sensor can also be obtained. Because image sensor's sensitization scope is wider, the condition that leads to can't sensing environment light because reasons such as light angle change appear very easily, consequently, the sensitization parameter value that utilizes image sensor to sense judges whether the environment changes, can more accurately detect the condition that the environment light brightness has the change.

On the basis, if the brightness of the ambient light where the electronic equipment is located is determined to be unchanged based on the value of the photosensitive parameter sensed by the image sensor, the backlight brightness of the display screen cannot be adjusted, and the situation that the brightness of the backlight is adjusted by mistake because the ambient light cannot enter the ambient light sensor is reduced. Moreover, after the sensitization parameter value that image sensor sensed represented the ambient light brightness and changed, this application effectively utilized the sensitivity of ambient light sense ware response light brightness value, was based on the ambient light sense value control luminance of being shaded that ambient light sensor sensed to effectively promoted the accuracy of adjusting in a poor light.

It can be understood that, in order to determine whether the ambient light brightness of the environment where the electronic device is located changes more accurately in the application, the application can determine whether the ambient light brightness changes based on the sensing value sensed by the image sensor, and can also comprehensively analyze whether the ambient light brightness of the environment where the electronic device is located changes in combination with the ambient light sensing value sensed by the ambient light sensor. This is explained below in connection with several possible scenarios.

In a possible case, the present application may determine that there is a change in the ambient light brightness of the environment where the electronic device is located based on the ambient light sensing value sensed by the ambient light sensor, and then obtain the value of the sensed light sensing parameter sensed by the image sensor.

It can be understood that, if the ambient light sensed by the ambient light sensor indicates that the ambient light brightness changes, the ambient light brightness may actually change, or the ambient light sensor may not sense light entering due to the angle of the electronic device or the ambient light sensor being blocked.

On this basis, in order to reduce the erroneous judgement of the ambient light brightness change, this application still can further obtain the sensitization parameter value that image sensor sensed. Correspondingly, only when the light sensing parameter value also represents the change of the ambient light of the environment where the electronic equipment is located, the backlight brightness of the display screen of the electronic equipment is controlled according to the ambient light sensing value sensed by the ambient light sensor, so that the situation that the backlight brightness is adjusted by mistake due to misjudgment of the ambient light sensor can be reduced.

And the ambient light sensing value sensed by the ambient light sensor indicates that the ambient light of the electronic device changes, the photosensitive parameter value sensed by the image sensor is obtained, power consumption consumed by the image sensor when sensing the photosensitive parameter value all the time can be avoided, and the reduction of the power consumption caused by the fact that the image sensor continuously senses the ambient light is facilitated.

The mode of analyzing whether the ambient light brightness of the electronic equipment changes or not by combining the ambient light sensing value sensed by the ambient light sensor can be various, and the method is not limited.

In order to facilitate understanding of a specific implementation of comprehensively analyzing whether there is a change in the ambient light brightness of the environment where the electronic device is located by combining the ambient light sensor and the image sensor in this possible situation, an implementation of determining whether there is a change in the ambient light of the environment where the electronic device is located based on the ambient light sensing value is described as an example.

As shown in fig. 3, which shows another flowchart of the backlight adjusting method provided in the embodiment of the present application, the method of this embodiment may include:

s301, obtaining an ambient light sensing value sensed by an ambient light sensor.

The ambient light sensing value can be used for representing the ambient light brightness of the environment where the electronic device is located.

And S302, determining an ambient light induction change value based on the ambient light induction value.

The ambient light sensing conversion value is used for representing the change of ambient light brightness sensed by the ambient light sensor.

For example, a difference value of the ambient light sensing values may be determined based on the ambient light sensing value and a historical ambient light sensing value that was collected last before the ambient light sensing value was collected, and the difference value may be determined as an ambient light sensing variation value.

For another example, the ambient light sensing variation value may be determined by integrating the ambient light sensing value and at least one historical ambient light sensing value collected within a set time period before the ambient light sensing value is collected.

S303, if the ambient light sensing variation value exceeds a first threshold value, a light sensing parameter value sensed by the image sensor is obtained.

The first threshold is a preset ambient light sensing threshold. For example, a luminance change threshold that can indicate that there is a change in the ambient light level may be empirically set as the first threshold.

It is understood that if the ambient light sensation changes by a value exceeding a first threshold, it is stated that: and determining that the ambient light brightness of the environment where the electronic equipment is located changes based on the ambient light sensing value. In this case, in order to further verify whether the ambient light brightness of the environment where the electronic device is located actually changes, the method and the device for detecting the ambient light brightness of the electronic device may obtain at least one photosensitive parameter value sensed by the image sensor, so as to further analyze whether the photosensitive parameter value also indicates that the ambient light brightness of the environment where the electronic device is located changes through subsequent steps.

It is understood that if the ambient light sensing variation value does not exceed the first threshold, there is no case where the sensed ambient light brightness is suddenly darkened due to the ambient light sensor being shielded, and in this case, the backlight brightness of the display screen of the electronic device may be maintained.

It should be noted that, the above steps S302 to S303 are taken as an example to illustrate an implementation manner of determining that there is a change in the ambient light brightness of the environment where the electronic device is located based on the ambient light sensing value sensed by the ambient light sensor, and the method is also applicable to the embodiment for analyzing that there is a change in the ambient light brightness of the environment where the electronic device is located by combining the ambient light sensing value through other manners.

S304, determining a photosensitive parameter change value based on the photosensitive parameter value.

The photosensitive parameter variation value is a variation value of the photosensitive parameter sensed by the image sensor, and the photosensitive parameter variation value is used for representing the variation of the ambient light brightness sensed by the image sensor.

The method for determining the variation value of the photosensitive parameter can be described in the foregoing embodiments, and is not described in detail here.

S305, if the light sensing parameter variation value exceeds a second threshold value, controlling the backlight brightness of the display screen of the electronic device based on the ambient light sensing value.

Wherein, the second threshold is a threshold determined for the sensing parameter variation value, i.e. the aforementioned threshold for photosensitive variation. Wherein the second threshold value can be set based on the minimum photosensitive parameter variation value required for representing the variation of the ambient light brightness.

For the sake of convenience of distinction, the threshold value set for the ambient light sensitivity variation value is referred to as a first threshold value, and the threshold value set for the light sensitivity parameter variation value herein is referred to as a second threshold value. Typically, the first threshold is different from the second threshold in size.

It is understood that if the value of the variation of the sensing parameter exceeds the second threshold, it indicates that there is a variation in the ambient light level of the environment in which the electronic device is located based on the value of the sensing parameter.

It should be noted that this step is described as an example of one implementation manner of determining that there is a change in the ambient light brightness of the environment where the electronic device is located based on the value of the photosensitive parameter, and the same is also applicable to this embodiment for other manners.

S306, if the variation value of the photosensitive parameter does not exceed the second threshold value, the backlight brightness of the display screen is kept unchanged.

In this application embodiment, after the environmental light sensation variable value is determined based on the environmental sensing value that environmental light sensor sensed, if the environmental light sensation variable value characterization analyzes that the environmental light of the environment that electronic equipment is located has a change based on the environmental light sensation value that environmental light sensor sensed, the sensitization parameter value that image sensor sensed can be further obtained, if the ambient light brightness that the environment that electronic equipment is located also can be characterized has a change, then can explain that the ambient light brightness of the environment that electronic equipment is located really has a change, thereby further improving the accuracy of determining that the ambient light brightness of the environment that electronic equipment is located has a change.

In another possible implementation manner, the method may further include obtaining a photosensitive parameter value sensed by the image sensor and an ambient photosensitive value sensed by the ambient light sensor, determining whether the ambient light brightness of the environment where the electronic device is located changes by combining the two parameter values, and determining whether the backlight brightness of the display screen needs to be adjusted according to an analysis result corresponding to the two parameter values.

For example, after the ambient light sensing value sensed by the ambient light sensor is obtained, whether the ambient light brightness of the environment where the electronic device is located changes is judged based on the ambient light sensing value.

Similarly, after the value of the sensing parameter sensed by the image sensor is obtained, whether the ambient light brightness of the environment where the electronic device is located changes is determined based on the value of the sensing parameter.

On the basis, the backlight brightness of the display screen of the electronic equipment is controlled based on the ambient light sensing value only if the ambient light sensing value sensed by the ambient light sensor determines that the ambient light brightness of the environment where the electronic equipment is located changes and the ambient light brightness of the environment where the electronic equipment is located also determines that the ambient light brightness of the environment where the electronic equipment is located changes based on the light sensing parameter value sensed by the image sensor.

On the contrary, if only the ambient light sensing value indicates that the ambient light brightness of the environment where the electronic device is located changes, and the light sensing parameter value sensed by the image sensor indicates that the ambient light brightness of the environment where the electronic device is located does not change, the backlight brightness of the display screen of the electronic device is maintained.

It will be appreciated that in some particular cases, it may occur that the ambient light level at which the electronic device is located changes, but the ambient light sensor of the electronic device does not detect the change in ambient light level. For example, if the ambient light sensor of the electronic device is blocked for a long time, the ambient light may become bright, and the ambient light sensor of the electronic device does not detect the increase of the ambient light intensity of the environment.

In these special cases, if the backlight brightness of the display screen of the electronic device is continuously maintained, the use of the electronic device may be affected. Based on this, in the present application, if it is determined that there is a change in the ambient light brightness of the environment where the electronic device is located based on the photo-sensing parameter value, and it is determined that there is no change in the ambient light brightness of the environment where the electronic device is located based on the ambient photo-sensing value, the backlight brightness of the display screen of the electronic device may also be adjusted based on the photo-sensing parameter value.

In the following, a scheme of the present application is introduced in an application scenario that a target screen brightness value is determined based on an ambient light sensing value sensed by an ambient light sensor, and backlight brightness is adjusted based on the target screen brightness value, as shown in fig. 4, which shows another flow diagram of a backlight adjusting method according to the present application, where the embodiment may include:

s401, obtaining an ambient light sensing value sensed by an ambient light sensor.

The ambient light sensing value can be used for representing the ambient light brightness of the environment where the electronic device is located.

S402, determining a target screen brightness value of a display screen of the electronic equipment based on the ambient light sensing value.

It is understood that in the present application, an adaptive screen brightness value may be determined after obtaining the ambient light sensing value as shown in fig. 4; or, when the ambient light sensing value indicates that there is a change in the ambient light brightness of the environment where the electronic device is located, determining a screen brightness value suitable for the display screen based on the ambient light sensing value.

And S403, determining an ambient light sensing change value based on the ambient light sensing value.

The ambient light sensing conversion value is used for representing the change of ambient light brightness sensed by the ambient light sensor.

S404, if the ambient light sensing variation value exceeds a first threshold value, obtaining a light sensing parameter value sensed by the image sensor.

S405, determining a photosensitive parameter change value based on the photosensitive parameter value.

The photosensitive parameter variation value is a variation value of the photosensitive parameter sensed by the image sensor, and the photosensitive parameter variation value is used for representing the variation of the ambient light brightness sensed by the image sensor.

S406, if the variation value of the photosensitive parameter exceeds a second threshold value, adjusting the backlight brightness of the display screen of the electronic device according to the target screen brightness value.

S407, if the variation value of the photosensitive parameter exceeds a second threshold, discarding the target screen brightness value and maintaining the backlight brightness of the display screen unchanged.

The application also provides a backlight adjusting device corresponding to the backlight adjusting method. Fig. 5 is a schematic diagram illustrating a structure of a backlight adjusting apparatus according to the present application. The apparatus of this embodiment may include:

a first parameter obtaining unit 501, configured to obtain an ambient light sensing value sensed by an ambient light sensor, where the ambient light sensing value is used to represent ambient light brightness of an environment where an electronic device is located;

a second parameter obtaining unit 502, configured to obtain a photosensitive parameter value sensed by the image sensor;

a backlight adjusting unit 503, configured to, if it is determined that there is a change in ambient light brightness of an environment where the electronic device is located based on the light sensing parameter value sensed by the image sensor, control backlight brightness of a display screen of the electronic device based on the ambient light sensing value;

a backlight maintaining unit 504, configured to maintain the backlight brightness of the display screen unchanged if it is determined that there is no change in the ambient light brightness of the environment where the electronic device is located based on the value of the light sensing parameter sensed by the image sensor.

In a possible implementation manner, the second parameter obtaining unit is specifically configured to obtain a value of a photosensitive parameter sensed by the image sensor, if it is determined that there is a change in ambient light brightness of an environment where the electronic device is located based on the ambient light sensing value.

In an alternative, the apparatus further comprises:

a first value determining unit, configured to determine an ambient light sensing change value based on an ambient light sensing value after the ambient light sensing value sensed by the ambient light sensor is obtained by the first parameter obtaining unit, where the ambient light sensing change value is used to represent a change in ambient light brightness sensed by the ambient light sensor;

a first change confirming unit, configured to confirm that there is a change in ambient light brightness of an environment in which the electronic device is located is determined based on the ambient light sensing value if the ambient light sensing change value exceeds a first threshold.

In yet another possible implementation manner, the apparatus further includes:

the second value determining unit is used for determining a photosensitive parameter change value based on the photosensitive parameter value after the second parameter obtaining unit obtains the photosensitive parameter value sensed by the image sensor, wherein the photosensitive parameter change value is a change value of the photosensitive parameter value sensed by the image sensor, and the photosensitive parameter change value is used for representing the change of the ambient light brightness sensed by the image sensor;

the second change confirming unit is used for determining that the ambient light brightness of the environment where the electronic equipment is located is changed based on the sensed light parameter value if the variation value of the light sensing parameter exceeds a second threshold value;

and the unchanged confirming unit is used for determining that the environmental light brightness of the environment where the electronic equipment is located does not change based on the sensed light parameter value if the variation value of the light sensing parameter does not exceed the second threshold value.

In one possible implementation, the apparatus further includes:

and the auxiliary brightness adjusting unit is used for adjusting the backlight brightness of the display screen of the electronic equipment based on the photosensitive parameter value if the ambient light brightness of the environment where the electronic equipment is located is determined to have a change based on the photosensitive parameter value, and the ambient light brightness of the environment where the electronic equipment is located is determined to have no change based on the ambient photosensitive value.

In yet another possible implementation manner, the apparatus further includes: the screen brightness determining unit is used for determining a target screen brightness value of a display screen of the electronic equipment based on the ambient light sensing value after the ambient light sensing value sensed by the ambient light sensor is obtained by the first parameter obtaining unit;

the backlight adjusting unit is specifically configured to, if it is determined that there is a change in the ambient light brightness of the environment where the electronic device is located based on the value of the photosensitive parameter sensed by the image sensor, adjust the backlight brightness of the display screen of the electronic device according to the target screen brightness value;

the backlight maintaining unit is specifically configured to discard the target screen brightness value and maintain the backlight brightness of the display screen unchanged if it is determined that there is no change in the ambient light brightness of the environment where the electronic device is located based on the value of the photosensitive parameter sensed by the image sensor.

In another aspect, the present application further provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the backlight adjusting method according to any of the above embodiments.

The present application also proposes a computer program comprising computer instructions stored in a computer readable storage medium. A computer program for performing the method of backlight adjustment as in any one of the above embodiments, when run on an electronic device.

It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. Meanwhile, the features described in the embodiments of the present specification may be replaced or combined with each other, so that those skilled in the art can implement or use the present application. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:驱动电路和驱动方法,以及显示装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类