CN111312179B - Backlight brightness adjusting method and related product - Google Patents

Backlight brightness adjusting method and related product Download PDF

Info

Publication number
CN111312179B
CN111312179B CN201911253162.5A CN201911253162A CN111312179B CN 111312179 B CN111312179 B CN 111312179B CN 201911253162 A CN201911253162 A CN 201911253162A CN 111312179 B CN111312179 B CN 111312179B
Authority
CN
China
Prior art keywords
light
determining
value
ambient light
light sensation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911253162.5A
Other languages
Chinese (zh)
Other versions
CN111312179A (en
Inventor
彭冬炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911253162.5A priority Critical patent/CN111312179B/en
Publication of CN111312179A publication Critical patent/CN111312179A/en
Application granted granted Critical
Publication of CN111312179B publication Critical patent/CN111312179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The embodiment of the application discloses a backlight brightness adjusting method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a plurality of ambient light sensors arranged at different positions, and the method comprises the following steps: obtaining a plurality of light sensation values by obtaining the light sensation value detected by each ambient light sensor in a plurality of ambient light sensors; determining a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensation value is improved by determining the light source type of the ambient light source and determining the target light sensation value corresponding to the light source type, and the automatic backlight adjustment is more accurate.

Description

Backlight brightness adjusting method and related product
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a backlight brightness adjusting method and a related product.
Background
With the continuous development of electronic technology, the functions of electronic devices (such as mobile phones, tablet computers, etc.) become more and more intelligent, and the backlight brightness adjustment in the electronic devices generally includes automatic backlight adjustment and manual backlight adjustment, in the automatic backlight adjusting mode, the backlight brightness can be automatically adjusted according to the current ambient light intensity, an ambient light sensor arranged in the electronic equipment is required to collect the ambient light intensity, however, the scheme by automatic backlight brightness adjustment cannot accurately detect the ambient light intensity in some scenes, thus, the screen brightness is too high or too low, for example, in the lighting environment of the point light source, the light sensation value detected by the ambient light sensor is larger closer to the central point of the point light source, the backlight brightness is adjusted to be higher, the user does not need such high backlight brightness, and the high brightness can cause the user to feel dazzling.
Disclosure of Invention
The embodiment of the application provides a backlight brightness adjusting method and a related product, which can enable automatic backlight adjustment to be more accurate.
In a first aspect, an embodiment of the present application provides a backlight brightness adjusting method, which is applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and the method includes:
acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values;
determining a light source type of an ambient light source according to the plurality of light sensation values;
determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values;
and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value.
In a second aspect, an embodiment of the present application provides a backlight brightness adjusting apparatus, which is applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and the backlight brightness adjusting apparatus includes:
the acquisition unit is used for acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values;
a determining unit, configured to determine a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value;
and the adjusting unit is used for adjusting the backlight brightness according to the target brightness value.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the backlight brightness adjusting method and the related product provided in the embodiments of the present application are applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and obtains a plurality of light sensation values by obtaining a light sensation value detected by each of the plurality of ambient light sensors; determining a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensation value is improved by determining the light source type of the ambient light source and determining the target light sensation value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic view of a scene in which an electronic device performs brightness adjustment in an automatic backlight brightness adjustment manner according to an embodiment of the present disclosure;
fig. 1B is a schematic illustration of an electronic device provided with multiple ambient light sensors according to an embodiment of the present disclosure;
fig. 1C is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a backlight brightness adjusting method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another backlight brightness adjusting method provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of another backlight brightness adjusting method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a backlight brightness adjusting device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the present application is applied to backlight brightness adjustment, and in particular, as shown in fig. 1A, when a user starts an automatic backlight adjustment mode of a control 1 in fig. 1A, an electronic device may enter the automatic backlight adjustment mode, and then, a light sensing value may be detected by an ambient light sensor, but when an ambient light source is different, a result of detecting the light sensing value by the ambient light sensor may be different, for example, in an illumination environment of a point light source, the light sensing value detected by the ambient light sensor at a central point closer to the point light source is larger, the backlight brightness may be adjusted to a higher brightness, and the user may feel dazzling due to the excessively high brightness, so that the embodiment of the present application provides a scheme capable of more accurately determining the light sensing value for adjusting the backlight brightness, and by setting a plurality of ambient light sensors at different physical positions in the electronic device, please refer to fig. 1B, which is a demonstration schematic diagram of setting a plurality of ambient light sensors on the electronic device provided by the embodiment of the present In the figure, L1, L2, L3, and L4 are all ambient light sensors disposed in an electronic device, and the electronic device can obtain a plurality of light sensation values detected by a plurality of ambient light sensors, determine a light source type of an ambient light source according to the plurality of light sensation values, determine a target light sensation value corresponding to the light source type according to the plurality of light sensation values, determine a target brightness value according to the target light sensation value, and perform automatic brightness adjustment according to the target brightness value, so that the target light sensation value can reflect ambient light intensity more truly, and perform brightness adjustment more accurately.
The electronic devices involved in the embodiments of the present application may include various handheld devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), Mobile Station (MS), terminal equipment (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1C, fig. 1C is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
The control circuitry may include, among other things, storage and processing circuitry. The storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry may be used to control the operation of the electronic device. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry may be used to run software in the electronic device, such as play incoming call alert ringing application, play short message alert ringing application, play alarm alert ringing application, play media file application, Voice Over Internet Protocol (VOIP) phone call application, operating system functions, and so forth. The software may be used to perform some control operations, such as playing an incoming alert ring, playing a short message alert ring, playing an alarm alert ring, playing a media file, making a voice phone call, and performing other functions in the electronic device, and the embodiments of the present application are not limited.
The input-output circuit can be used for enabling the electronic device to input and output data, namely allowing the electronic device to receive data from the external device and allowing the electronic device to output data from the electronic device to the external device.
The input-output circuit may further include a sensor. The sensors may include a plurality of ambient light sensors, optical and capacitive based infrared proximity sensors, ultrasonic sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, wherein the plurality of ambient light sensors may be disposed at different locations of the electronic device, the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, gravity sensors, and other sensors. The input-output circuit may further include audio components that may be used to provide audio input and output functionality for the electronic device. The audio components may also include a tone generator and other components for generating and detecting sound.
The input-output circuitry may also include one or more display screens. The display screen can comprise one or a combination of a liquid crystal display screen, an organic light emitting diode display screen, an electronic ink display screen, a plasma display screen and a display screen using other display technologies. The display screen may include an array of touch sensors (i.e., the display screen may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The input-output circuitry may further include communications circuitry that may be used to provide the electronic device with the ability to communicate with external devices. The communication circuitry may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in the communication circuitry may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry may include circuitry to support Near Field Communication (NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communications circuitry may also include cellular telephone transceiver and antennas, wireless local area network transceiver circuitry and antennas, and so forth.
The input-output circuit may further include other input-output units. Input-output units may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
The electronic device may further include a battery (not shown) for supplying power to the electronic device.
Referring to fig. 2, fig. 2 is a schematic flow chart of a backlight brightness adjusting method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and the method includes the following steps:
201. and acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values.
In this embodiment, the plurality of ambient light sensors are respectively disposed at different physical locations in the electronic device, and in the automatic backlight adjustment mode, the electronic device may detect the light sensing values at a predetermined detection frequency through the plurality of ambient light sensors, and then obtain a plurality of light sensing values reported by the ambient light sensors, where the plurality of light sensing values are detected at the same time.
202. Determining a light source type of the ambient light source from the plurality of light sensation values.
Wherein, the light source type may include: point light source, line light source, surface light source, etc., without limitation.
In the embodiment of the application, the light source type of the ambient light source can be determined according to the multiple light sensation values, and the target light sensation value can be determined in different calculation modes under different light source types, so that the target light sensation value can be determined more accurately for each light source type.
Optionally, in step 202, determining the light source type of the ambient light source according to the plurality of light sensation values may include the following steps:
21. determining a maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value;
22. determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor;
23. determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor;
24. determining a first average light sensation value of the light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value;
25. if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
In the embodiment of the present application, the plurality of light sensing values may be compared to obtain a maximum light sensing value, and a first ambient light sensor corresponding to the maximum light sensing value may be determined, and then a second ambient light sensor farthest from the first ambient light sensor among the plurality of ambient light sensors may be determined, and generally, the first ambient light sensor corresponding to the maximum light sensing value is closest to the ambient light source, and the reference light sensing value corresponding to the second ambient light sensor farthest from the first ambient light sensor is smallest, so that a second ambient light sensor farthest from the first ambient light sensor among the plurality of ambient light sensors may be determined, and then a first light sensing deviation between the maximum light sensing value and the reference light sensing value corresponding to the second ambient light sensor may be determined, and a first average light sensing value of other light sensing values than the maximum light sensing value and the reference light sensing value may be determined, and a second light sensing deviation between the maximum light sensing value and the first average light sensing value may be determined, if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, the environment light source can be determined to be a point light source, and otherwise, the environment light source can be determined to be a linear light source or a surface light source.
Wherein a first photosensitive deviation between the maximum photosensitive value and the reference photosensitive value is determined, the first photosensitive deviation may be abs ((L)max-Lx)/Lmax) Wherein abs represents the arithmetic sign of the absolute value, LmaxIs the maximum light sensitivity value, LxFor reference photosensitivity values, the second photosensitivity deviation between every two adjacent auxiliary photosensitivity values may be abs ((L)high-Lm)/Lhigh) Wherein L ismA first average light sensation value of light sensation values other than the maximum light sensation value and the reference light sensation value.
WhereinThe first preset threshold and the second preset threshold may be set by the user or by default, the first preset threshold may be, for example, 10%, the second preset threshold may be, for example, 5%, if abs ((L))max-Lx)/Lmax)>10%, and abs ((L)max-Lm)/Lmax)>And 5%, determining the ambient light source to be a point light source.
Optionally, in this embodiment of the present application, the following steps may also be included:
2021. determining a first distance between the first ambient light sensor and the second ambient light sensor according to the preset position relationship table, where the preset position relationship table further includes a distance between each ambient light sensor of the plurality of ambient light sensors and other ambient light sensors;
2022. determining a second distance between every two ambient light sensors of the other ambient light sensors except the first ambient light sensor and the second ambient light sensor in the plurality of ambient light sensors to obtain at least one second distance;
2023. determining a first preset threshold corresponding to the first distance according to a mapping relation between a preset distance and a threshold;
2024. and determining a second preset threshold corresponding to the at least one second distance according to a mapping relation between the preset distance and the threshold.
In this embodiment, the electronic device may obtain, in advance, a distance between every two ambient light sensors in the multiple ambient light sensors to obtain multiple distances, and create a preset positional relationship table, where a distance between each ambient light sensor in the multiple ambient light sensors and the other ambient light sensors may be stored in the preset positional relationship table, and a positional relationship between each ambient light sensor in the multiple ambient light sensors and the other ambient light sensors may also be stored, for example, assuming that 4 ambient light sensors L1, L2, L3, and L4 are provided on the electronic device, a distance between every two ambient light sensors in the 4 ambient light sensors may be obtained in advance to obtain 6 distances, and for each ambient light sensor, it may be determined that the distance between the ambient light sensor and the other multiple ambient light sensors is far or near. For example, as shown in fig. 1B, among the 4 ambient light sensors, for L1, the ambient light sensor farthest from L1 is L4, a first distance between L1 and L4 may be determined, a second distance between L2 and L3 may also be determined, and then a first preset threshold corresponding to the first distance and a second preset threshold corresponding to the second distance are determined.
Alternatively, if the number of the second distances is more than two, an average distance of the more than two second distances may be determined first, and then a second preset threshold corresponding to the average distance may be determined, or a minimum distance of the more than two second distances may be determined first, and then a second preset threshold corresponding to the minimum distance may be determined.
Optionally, in the step 22, determining a second ambient light sensor farthest from the first ambient light sensor from among the plurality of ambient light sensors may include the following steps:
2201. and determining a second ambient light sensor farthest from the first ambient light sensor according to a preset position relation table, wherein the preset position relation table comprises the position relation between each ambient light sensor in the plurality of ambient light sensors and other ambient light sensors.
Specifically, for each ambient light sensor, the distance relationship between the ambient light sensor and the other ambient light sensors is stored in the preset position relationship table, for example, the following position relationship table may be set for the 4 ambient light sensors shown in fig. 1B:
ambient light sensor L1 L2 L3 L4 Farthest distance
L1 d1 d2 d3 L1--->L4
L2 d1 d4 d5 L2--->L3
L3 d2 d4 d6 L3--->L2
L4 d3 d5 d6 L4--->L1
For L1, the ambient light sensor farthest from L1 is L4, for L2, the ambient light sensor farthest from L2 is L3, for L3, the ambient light sensor farthest from L3 is L2, and for L4, the ambient light sensor farthest from L4 is L1.
In a specific implementation, after the first ambient light sensor is determined, the second ambient light sensor farthest from the first ambient light sensor may be determined according to a preset position relationship table.
Optionally, in the step 22, determining a second ambient light sensor farthest from the first ambient light sensor from among the plurality of ambient light sensors may include the following steps:
2202. determining a minimum photosensitivity value of the plurality of photosensitivity values;
2203. and if only one minimum light sensitivity value exists, determining that the ambient light sensor corresponding to the minimum light sensitivity value is the second ambient light sensor farthest from the first ambient light sensor.
In the embodiment of the application, considering that the closer to the ambient light source, the larger the light sensation value detected by the ambient light sensor, the farther from the ambient light source, the smaller the light sensation value detected by the ambient light sensor, and therefore, the minimum light sensation value of the plurality of light sensation values may be determined, and if only one minimum light sensation value exists, the ambient light sensor corresponding to the minimum light sensation value may be determined to be the second ambient light sensor farthest from the first ambient light sensor. If more than two minimum light sensitivity values exist, the second ambient light sensor farthest from the first ambient light sensor can be determined according to the preset position relation table.
203. And determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values.
The target light sensation value can be determined according to different calculation modes aiming at different light source types, so that the target light sensation value corresponding to the light source type can be more accurately determined, and the accuracy of backlight brightness adjustment is improved.
Optionally, in step 203, determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values may include the following steps:
31. if the light source type is a point light source, determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight corresponding to the maximum light sensation value, a second weight corresponding to the reference light sensation value and a third weight corresponding to the first average light sensation value;
32. if the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
Wherein, if the light source type is a point light source, the target light sensitivity value L can be determined according to the following formulac=(k1*Lmax+k2*Lx+k3*Lm) /3 wherein LcFor the target light sensitivity value, k1 is the first weight corresponding to the maximum light sensitivity value, k2 is the second weight corresponding to the reference light sensitivity value, and k3 is the third weight corresponding to the first average light sensitivity value.
If the light source type is a linear light source or a surface light source, a second average light sensitivity value L of the plurality of light sensitivity values can be determinedn(ii) a The second average light sensitivity value LnAs the target light sensitivity value.
The first weight, the second weight, and the third weight may be preset constants, and the first weight, the second weight, and the third weight may be determined according to a hardware parameter and a working parameter of each ambient light sensor of the plurality of ambient light sensors.
Optionally, before the step 31 determines the target light sensation value according to the plurality of light sensation values and a plurality of target weights corresponding to the plurality of ambient light sensors, the method may further include the following steps:
3101. acquiring a hardware parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of hardware parameters; acquiring a working parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of working parameters;
3102. determining a reference weight corresponding to each hardware parameter in the plurality of hardware parameters to obtain a plurality of reference weights;
3103. determining a weight offset corresponding to each working parameter in the plurality of working parameters to obtain a plurality of weight offsets, wherein the plurality of reference weights correspond to the plurality of weight offsets one to one;
3104. determining the first weight according to a first reference weight corresponding to the first ambient light sensor in the plurality of reference weights and a first weight offset corresponding to the first ambient light sensor in the plurality of weight offsets; determining a second weight corresponding to the second ambient light sensor from the plurality of reference weights and a second weight offset corresponding to the second ambient light sensor from the plurality of weight offsets; determining the third weight according to an average reference weight of other reference weights in the plurality of reference weights except the first reference weight and the second reference weight and an average weight offset of other weight offsets in the plurality of weight offsets except the first weight offset and the second weight offset.
The hardware parameter may include at least one of the following: detection range, sensitivity, error accuracy, operating temperature range, input impedance, output impedance, maximum allowable operating voltage, and the like, without limitation, the operating parameters may include at least one of: operating voltage, operating temperature, sensing frequency, etc., without limitation herein.
In the embodiment of the present application, considering that the hardware condition and the working parameter of the ambient light sensor have an influence on the detection result of the photosensitive value, the mapping relationship between the hardware parameter and the weight and the mapping relationship between the working parameter and the offset of the weight can be preset, so that, when performing automatic backlight modulation, the hardware parameter of each ambient light sensor in the plurality of ambient light sensors can be obtained to obtain a plurality of hardware parameters, the working parameter of each ambient light sensor in the plurality of ambient light sensors can be obtained to obtain a plurality of working parameters, then the reference weight corresponding to each hardware parameter in the plurality of hardware parameters can be determined according to the mapping relationship between the hardware parameter and the weight to obtain a plurality of reference weights, the offset of the weight corresponding to each working parameter in the plurality of working parameters can be determined according to the mapping relationship between the working parameter and the offset of the weight, and finally, determining a first weight according to the first reference weight and the first weight offset, determining a second weight according to the second reference weight and the second weight offset, and determining a third weight according to the average reference weight of other reference weights except the first reference weight and the second reference weight and the average weight offset of other weight offsets except the first weight offset and the second weight offset. Therefore, the multiple weights of the target light sensation value determined by the user can be determined more accurately, the accuracy of the target light sensation value is improved, and the accuracy of backlight brightness adjustment can be improved.
204. And determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value.
In the embodiment of the application, the electronic device may preset a mapping relationship between the light sensitivity value and the brightness value, so that after the target light sensitivity value is determined, the target brightness value corresponding to the target light sensitivity value may be determined according to the mapping relationship, and backlight brightness adjustment may be performed according to the target brightness value, thereby improving accuracy of backlight brightness adjustment.
It can be seen that the backlight brightness adjusting method in the embodiment of the application is applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and obtains a plurality of light sensation values by obtaining a light sensation value detected by each of the plurality of ambient light sensors; determining a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensation value is improved by determining the light source type of the ambient light source and determining the target light sensation value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
Referring to fig. 3, fig. 3 is a schematic flow chart of a backlight brightness adjusting method provided in an embodiment of the present application, which is applied to an electronic device including a plurality of ambient light sensors disposed at different positions, and the method includes the following steps:
301. and acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values.
302. A maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value are determined.
303. Determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor.
304. Determining a first photo-perception deviation between the maximum photo-perception value and a reference photo-perception value corresponding to the second ambient light sensor.
305. Determining a first average light sensation value of the light sensation values other than the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value.
306. If the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
307. And if the light source type is a point light source, determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight corresponding to the maximum light sensation value, a second weight corresponding to the reference light sensation value and a third weight corresponding to the first average light sensation value.
308. If the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
309. And determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value.
The specific implementation process of step 301-309 can refer to the corresponding description in steps 201-204, and will not be described herein again.
It can be seen that, in the embodiment of the application, the application is applied to an electronic device, the electronic device includes a plurality of ambient light sensors disposed at different positions, and a plurality of light sensation values are obtained by obtaining a light sensation value detected by each ambient light sensor of the plurality of ambient light sensors; determining a maximum light sensitivity value of the plurality of light sensitivity values and a first ambient light sensor corresponding to the maximum light sensitivity value; determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor; determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor; determining a first average light sensation value of the light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value; if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the ambient light source is a point light source, otherwise, determining that the ambient light source is a line light source or a surface light source, if the light source type is the point light source, determining a target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight value corresponding to the maximum light sensation value, a second weight value corresponding to the reference light sensation value and a third weight value corresponding to the first average light sensation value, and if the light source type is the line light source or the surface light source, determining a second average light sensation value of the plurality of light sensation values; and taking the second average light sensitivity value as the target light sensitivity value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensitivity value is improved by determining the light source type of the ambient light source and determining the target light sensitivity value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
Referring to fig. 4, fig. 4 is a schematic flow chart of a backlight brightness adjusting method provided in an embodiment of the present application, which is applied to an electronic device including a plurality of ambient light sensors disposed at different positions, and the method includes the following steps:
401. and acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values.
402. A maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value are determined.
403. Determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor.
404. Determining a first photo-perception deviation between the maximum photo-perception value and a reference photo-perception value corresponding to the second ambient light sensor.
405. Determining a first average light sensation value of the light sensation values other than the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value.
406. If the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
407. If the light source type is a point light source, acquiring a hardware parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of hardware parameters; and acquiring the working parameters of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of working parameters.
408. And determining a reference weight corresponding to each hardware parameter in the plurality of hardware parameters to obtain a plurality of reference weights.
409. Determining a weight offset corresponding to each working parameter in the plurality of working parameters to obtain a plurality of weight offsets, wherein the plurality of reference weights are in one-to-one correspondence with the plurality of weight offsets.
410. Determining a first weight according to a first reference weight corresponding to the first ambient light sensor in the plurality of reference weights and a first weight offset corresponding to the first ambient light sensor in the plurality of weight offsets; determining a second weight according to a second reference weight corresponding to the second ambient light sensor in the plurality of reference weights and a second weight offset corresponding to the second ambient light sensor in the plurality of weight offsets; determining a third weight according to an average reference weight of other reference weights in the plurality of reference weights except the first reference weight and the second reference weight and an average weight offset of other weight offsets in the plurality of weight offsets except the first weight offset and the second weight offset.
411. And determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, the first weight, the second weight and the third weight.
412. If the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
413. And determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value.
The specific implementation process of steps 401 and 413 can refer to the corresponding description in steps 201 to 204, and will not be described herein again.
It can be seen that, in the embodiment of the application, the application is applied to an electronic device, the electronic device includes a plurality of ambient light sensors disposed at different positions, and a plurality of light sensation values are obtained by obtaining a light sensation value detected by each ambient light sensor of the plurality of ambient light sensors; determining a maximum light sensitivity value of the plurality of light sensitivity values and a first ambient light sensor corresponding to the maximum light sensitivity value; determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor; determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor; determining a first average light sensation value of the light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value; if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the ambient light source is a point light source, otherwise, determining that the ambient light source is a line light source or a surface light source, if the light source type is the point light source, determining a target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight value corresponding to the maximum light sensation value, a second weight value corresponding to the reference light sensation value and a third weight value corresponding to the first average light sensation value, and if the light source type is the line light source or the surface light source, determining a second average light sensation value of the plurality of light sensation values; and taking the second average light sensitivity value as the target light sensitivity value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensitivity value is improved by determining the light source type of the ambient light source and determining the target light sensitivity value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
The following is a device for implementing the backlight brightness adjusting method, specifically as follows:
in accordance with the above, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure, where the electronic device 500 includes: processor 510, communication interface 530, and memory 520; the electronic device 500 further comprises a plurality of ambient light sensors disposed at different locations and one or more programs 521, the one or more programs 521 stored in the memory 520 and configured to be executed by the processor, the programs 521 comprising instructions for:
acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values;
determining a light source type of an ambient light source according to the plurality of light sensation values;
determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values;
and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value.
In one possible example, in said determining a light source type of an ambient light source from said plurality of light sensation values, said program 521 comprises instructions for performing the steps of:
determining a maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value;
determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor;
determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor;
determining a first average light sensation value of the light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value;
if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
In one possible example, in connection with the determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor, the program 521 includes instructions for:
and determining a second ambient light sensor farthest from the first ambient light sensor according to a preset position relation table, wherein the preset position relation table comprises the position relation between each ambient light sensor in the plurality of ambient light sensors and other ambient light sensors.
In one possible example, in connection with the determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor, the program 521 includes instructions for:
determining a minimum photosensitivity value of the plurality of photosensitivity values;
and if only one minimum light sensitivity value exists, determining that the ambient light sensor corresponding to the minimum light sensitivity value is the second ambient light sensor farthest from the first ambient light sensor.
In one possible example, in said determining a target light sensation value corresponding to said light source type from said plurality of light sensation values, said program 521 comprises instructions for performing the steps of:
if the light source type is a point light source, determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight corresponding to the maximum light sensation value, a second weight corresponding to the reference light sensation value and a third weight corresponding to the first average light sensation value;
if the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
In one possible example, the program 521 further includes instructions for performing the steps of:
acquiring a hardware parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of hardware parameters; acquiring a working parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of working parameters;
determining a reference weight corresponding to each hardware parameter in the plurality of hardware parameters to obtain a plurality of reference weights;
determining a weight offset corresponding to each working parameter in the plurality of working parameters to obtain a plurality of weight offsets, wherein the plurality of reference weights correspond to the plurality of weight offsets one to one;
determining the first weight according to a first reference weight corresponding to the first ambient light sensor in the plurality of reference weights and a first weight offset corresponding to the first ambient light sensor in the plurality of weight offsets; determining a second weight corresponding to the second ambient light sensor from the plurality of reference weights and a second weight offset corresponding to the second ambient light sensor from the plurality of weight offsets; determining the third weight according to an average reference weight of other reference weights in the plurality of reference weights except the first reference weight and the second reference weight and an average weight offset of other weight offsets in the plurality of weight offsets except the first weight offset and the second weight offset.
It can be seen that, in the electronic device in the embodiment of the present application, the electronic device includes a plurality of ambient light sensors disposed at different positions, and a plurality of light sensation values are obtained by obtaining a light sensation value detected by each ambient light sensor of the plurality of ambient light sensors; determining a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensation value is improved by determining the light source type of the ambient light source and determining the target light sensation value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a backlight brightness adjusting apparatus 600 provided in this embodiment, which is applied to an electronic device including a plurality of ambient light sensors disposed at different positions, where the backlight brightness adjusting apparatus 600 includes an obtaining unit 601, a determining unit 602, and an adjusting unit 603,
the acquiring unit 601 is configured to acquire a light sensation value detected by each of the plurality of ambient light sensors to obtain a plurality of light sensation values;
the determining unit 602 is configured to determine a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value;
the adjusting unit 603 is configured to perform backlight brightness adjustment according to the target brightness value.
Optionally, in the aspect of determining the light source type of the ambient light source according to the multiple light sensation values, the determining unit 602 is specifically configured to:
determining a maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value;
determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor;
determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor;
determining a plurality of auxiliary light sensation values of the plurality of light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between every two adjacent auxiliary light sensation values of the plurality of auxiliary light sensation values to obtain a second light sensation deviation;
if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
Optionally, in the aspect of determining a second ambient light sensor farthest from the first ambient light sensor in the plurality of ambient light sensors, the determining unit 602 is specifically configured to:
and determining a second ambient light sensor farthest from the first ambient light sensor according to a preset position relation table, wherein the preset position relation table comprises the position relation between each ambient light sensor in the plurality of ambient light sensors and other ambient light sensors.
Optionally, in the aspect of determining a second ambient light sensor farthest from the first ambient light sensor in the plurality of ambient light sensors, the determining unit 602 is specifically configured to:
determining a minimum photosensitivity value of the plurality of photosensitivity values;
and if only one minimum light sensitivity value exists, determining that the ambient light sensor corresponding to the minimum light sensitivity value is the second ambient light sensor farthest from the first ambient light sensor.
Optionally, in the aspect of determining the target light sensation value corresponding to the light source type according to the plurality of light sensation values, the determining unit 602 is specifically configured to:
if the light source type is a point light source, determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight corresponding to the maximum light sensation value, a second weight corresponding to the reference light sensation value and a third weight corresponding to the first average light sensation value;
if the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
Optionally, the obtaining unit 601 is further configured to:
acquiring a hardware parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of hardware parameters; acquiring a working parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of working parameters;
the determining unit 601 is further configured to:
determining a reference weight corresponding to each hardware parameter in the plurality of hardware parameters to obtain a plurality of reference weights; determining a weight offset corresponding to each working parameter in the plurality of working parameters to obtain a plurality of weight offsets, wherein the plurality of reference weights correspond to the plurality of weight offsets one to one; determining the first weight according to a first reference weight corresponding to the first ambient light sensor in the plurality of reference weights and a first weight offset corresponding to the first ambient light sensor in the plurality of weight offsets; determining a second weight corresponding to the second ambient light sensor from the plurality of reference weights and a second weight offset corresponding to the second ambient light sensor from the plurality of weight offsets; determining the third weight according to an average reference weight of other reference weights in the plurality of reference weights except the first reference weight and the second reference weight and an average weight offset of other weight offsets in the plurality of weight offsets except the first weight offset and the second weight offset.
It can be seen that the backlight brightness adjusting apparatus described in the embodiment of the present application is applied to an electronic device, where the electronic device includes a plurality of ambient light sensors disposed at different positions, and obtains a plurality of light sensation values by obtaining a light sensation value detected by each of the plurality of ambient light sensors; determining a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value, and adjusting the backlight brightness according to the target brightness value, so that the accuracy of the target light sensation value is improved by determining the light source type of the ambient light source and determining the target light sensation value corresponding to the light source type, and the automatic backlight adjustment is more accurate.
It can be understood that the functions of each program module of the backlight brightness adjusting apparatus of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program for electronic data exchange, the computer program causing a computer to execute part or all of the steps of any one of the backlight brightness adjustment methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program causes a computer to execute some or all of the steps of any one of the backlight brightness adjusting methods as described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A backlight brightness adjusting method is applied to an electronic device, wherein the electronic device comprises a plurality of ambient light sensors arranged at different positions, and the method comprises the following steps:
acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values;
determining a light source type of an ambient light source according to the plurality of light sensation values;
determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values;
determining a target brightness value corresponding to the target light sensation value, and adjusting backlight brightness according to the target brightness value;
wherein said determining a light source type of an ambient light source from said plurality of light sensation values comprises:
determining a maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value;
determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor;
determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor;
determining a first average light sensation value of the light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between the maximum light sensation value and the first average light sensation value;
if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
2. The method of claim 1, wherein determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor comprises:
and determining a second ambient light sensor farthest from the first ambient light sensor according to a preset position relation table, wherein the preset position relation table comprises the position relation between each ambient light sensor in the plurality of ambient light sensors and other ambient light sensors.
3. The method of claim 1, wherein determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor comprises:
determining a minimum photosensitivity value of the plurality of photosensitivity values;
and if only one minimum light sensitivity value exists, determining that the ambient light sensor corresponding to the minimum light sensitivity value is the second ambient light sensor farthest from the first ambient light sensor.
4. The method according to any one of claims 1-3, wherein said determining a target light sensation value corresponding to the light source type from the plurality of light sensation values comprises:
if the light source type is a point light source, determining the target light sensation value according to the maximum light sensation value, the reference light sensation value, the first average light sensation value, a first weight corresponding to the maximum light sensation value, a second weight corresponding to the reference light sensation value and a third weight corresponding to the first average light sensation value;
if the light source type is a linear light source or a surface light source, determining a second average light sensitivity value of the plurality of light sensitivity values; and taking the second average light sensitivity value as the target light sensitivity value.
5. The method of claim 4, further comprising:
acquiring a hardware parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of hardware parameters; acquiring a working parameter of each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of working parameters;
determining a reference weight corresponding to each hardware parameter in the plurality of hardware parameters to obtain a plurality of reference weights;
determining a weight offset corresponding to each working parameter in the plurality of working parameters to obtain a plurality of weight offsets, wherein the plurality of reference weights correspond to the plurality of weight offsets one to one;
determining the first weight according to a first reference weight corresponding to the first ambient light sensor in the plurality of reference weights and a first weight offset corresponding to the first ambient light sensor in the plurality of weight offsets; determining a second weight corresponding to the second ambient light sensor from the plurality of reference weights and a second weight offset corresponding to the second ambient light sensor from the plurality of weight offsets; determining the third weight according to an average reference weight of other reference weights in the plurality of reference weights except the first reference weight and the second reference weight and an average weight offset of other weight offsets in the plurality of weight offsets except the first weight offset and the second weight offset.
6. A backlight brightness adjusting device is applied to an electronic device, the electronic device comprises a plurality of ambient light sensors arranged at different positions, and the backlight brightness adjusting device comprises:
the acquisition unit is used for acquiring a light sensation value detected by each ambient light sensor in the plurality of ambient light sensors to obtain a plurality of light sensation values;
a determining unit, configured to determine a light source type of the ambient light source according to the plurality of light sensation values; determining a target light sensation value corresponding to the light source type according to the plurality of light sensation values; and determining a target brightness value corresponding to the target light sensation value;
the adjusting unit is used for adjusting the backlight brightness according to the target brightness value;
wherein the content of the first and second substances,
in the aspect of determining the light source type of the ambient light source according to the plurality of light sensation values, the determining unit is specifically configured to:
determining a maximum light sensation value of the plurality of light sensation values and a first ambient light sensor corresponding to the maximum light sensation value;
determining a second ambient light sensor of the plurality of ambient light sensors that is farthest from the first ambient light sensor;
determining a first light sensation deviation between the maximum light sensation value and a reference light sensation value corresponding to the second ambient light sensor;
determining a plurality of auxiliary light sensation values of the plurality of light sensation values except the maximum light sensation value and the reference light sensation value, and determining a second light sensation deviation between every two adjacent auxiliary light sensation values of the plurality of auxiliary light sensation values to obtain a second light sensation deviation;
if the first light sensation deviation is larger than a first preset threshold value and the second light sensation deviation is larger than a second preset threshold value, determining that the environment light source is a point light source, wherein the first preset threshold value is larger than the second preset threshold value, and otherwise, determining that the environment light source is a linear light source or a surface light source.
7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201911253162.5A 2019-12-09 2019-12-09 Backlight brightness adjusting method and related product Active CN111312179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911253162.5A CN111312179B (en) 2019-12-09 2019-12-09 Backlight brightness adjusting method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911253162.5A CN111312179B (en) 2019-12-09 2019-12-09 Backlight brightness adjusting method and related product

Publications (2)

Publication Number Publication Date
CN111312179A CN111312179A (en) 2020-06-19
CN111312179B true CN111312179B (en) 2021-05-11

Family

ID=71159702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911253162.5A Active CN111312179B (en) 2019-12-09 2019-12-09 Backlight brightness adjusting method and related product

Country Status (1)

Country Link
CN (1) CN111312179B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112530384B (en) * 2020-12-02 2022-07-08 惠州Tcl移动通信有限公司 Display brightness adjusting method and device and electronic equipment
CN112509526A (en) * 2020-12-04 2021-03-16 北京罗克维尔斯科技有限公司 Method and device for adjusting backlight brightness of display

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2237262A2 (en) * 2009-04-01 2010-10-06 Acer Incorporated Liquid crystal display panel, liquid crystal display device, photo detecting device and light intensity adjustment method
CN103927421A (en) * 2014-04-23 2014-07-16 清华大学 Implement method of three-dimensional optical system
CN104956432A (en) * 2013-01-29 2015-09-30 皮克斯特隆尼斯有限公司 Ambient light aware display apparatus
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device
CN105474299A (en) * 2013-09-27 2016-04-06 英特尔公司 Using wavelength information for an ambient light environment to adjust display brightness and content
CN105741787A (en) * 2016-04-18 2016-07-06 深圳Tcl数字技术有限公司 Method and apparatus for adjusting backlight brightness of display terminal and television set
CN106531094A (en) * 2016-11-28 2017-03-22 成都西昱文化传播有限公司 Control system for electronic advertisement screen
CN108574778A (en) * 2018-04-19 2018-09-25 Oppo广东移动通信有限公司 Throw screen brightness adjusting method and Related product
CN108597456A (en) * 2018-04-03 2018-09-28 北京小米移动软件有限公司 Back light brightness regulating method and device
CN109257507A (en) * 2018-11-19 2019-01-22 Oppo(重庆)智能科技有限公司 A kind of method, mobile terminal and storage medium adjusting screen intensity
CN110502900A (en) * 2019-08-26 2019-11-26 Oppo广东移动通信有限公司 A kind of detection method, terminal, server and computer storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7446303B2 (en) * 2007-01-31 2008-11-04 Avago Technologies Ecbu Ip (Singapore) Pte. Ltd Ambient light sensing using a color sensor
CN104700816B (en) * 2015-01-08 2017-05-24 小米科技有限责任公司 Method and device for setting screen brightness
CN108540594B (en) * 2018-02-05 2019-11-15 维沃移动通信有限公司 The determination method and device of mobile terminal, external environment luminous intensity

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2237262A2 (en) * 2009-04-01 2010-10-06 Acer Incorporated Liquid crystal display panel, liquid crystal display device, photo detecting device and light intensity adjustment method
CN104956432A (en) * 2013-01-29 2015-09-30 皮克斯特隆尼斯有限公司 Ambient light aware display apparatus
CN105474299A (en) * 2013-09-27 2016-04-06 英特尔公司 Using wavelength information for an ambient light environment to adjust display brightness and content
CN103927421A (en) * 2014-04-23 2014-07-16 清华大学 Implement method of three-dimensional optical system
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device
CN105741787A (en) * 2016-04-18 2016-07-06 深圳Tcl数字技术有限公司 Method and apparatus for adjusting backlight brightness of display terminal and television set
CN106531094A (en) * 2016-11-28 2017-03-22 成都西昱文化传播有限公司 Control system for electronic advertisement screen
CN108597456A (en) * 2018-04-03 2018-09-28 北京小米移动软件有限公司 Back light brightness regulating method and device
CN108574778A (en) * 2018-04-19 2018-09-25 Oppo广东移动通信有限公司 Throw screen brightness adjusting method and Related product
CN109257507A (en) * 2018-11-19 2019-01-22 Oppo(重庆)智能科技有限公司 A kind of method, mobile terminal and storage medium adjusting screen intensity
CN110502900A (en) * 2019-08-26 2019-11-26 Oppo广东移动通信有限公司 A kind of detection method, terminal, server and computer storage medium

Also Published As

Publication number Publication date
CN111312179A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US11011131B2 (en) Off-screen control method determining signal intensity calibration value for filmed display screen
CN108924910B (en) AI model updating method and related product
CN109639367B (en) Electromagnetic interference adjusting method and related product
CN109274833B (en) Electromagnetic interference adjusting method and related product
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
US11894878B2 (en) Method for electromagnetic interference control, electronic device, and storage medium
CN110299943B (en) Data transmission control method and related product
CN109271014B (en) Method and equipment for adjusting screen brightness
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN108777741B (en) Antenna switching control method and related product
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
KR102559651B1 (en) Electromagnetic interference control method and related products
CN111312179B (en) Backlight brightness adjusting method and related product
CN108769401B (en) Signal detection method and related product
CN107404753B (en) Volume adjusting method, device, terminal and storage medium
CN110475020B (en) Equipment control method and related product
CN111654902A (en) Method and device for reducing interference to mobile terminal GPS signal and mobile terminal
CN109144455B (en) Display control method and related product
CN111343321B (en) Backlight brightness adjusting method and related product
CN108769286B (en) DNS server configuration method and related product
CN110431518B (en) Method for outputting touch signal and electronic equipment
CN110278028B (en) Information transmission method and related product
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN108900385B (en) Network connection method and related product
CN110913040A (en) Terminal equipment

Legal Events

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