CN112468656A - Method, device and equipment for controlling brightness of display screen and computer readable storage medium - Google Patents

Method, device and equipment for controlling brightness of display screen and computer readable storage medium Download PDF

Info

Publication number
CN112468656A
CN112468656A CN202011287426.1A CN202011287426A CN112468656A CN 112468656 A CN112468656 A CN 112468656A CN 202011287426 A CN202011287426 A CN 202011287426A CN 112468656 A CN112468656 A CN 112468656A
Authority
CN
China
Prior art keywords
light intensity
display screen
ambient light
light sensor
intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011287426.1A
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011287426.1A priority Critical patent/CN112468656A/en
Publication of CN112468656A publication Critical patent/CN112468656A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Liquid Crystal Display Device Control (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application relates to the field of mobile terminals, and provides a method, a device, equipment and a computer readable storage medium for controlling the brightness of a display screen, so as to accurately detect ambient light and adjust the brightness of the display screen according to the value of the ambient light. The method comprises the following steps: acquiring first ambient light intensity collected by a first light sensor from the first light sensor; acquiring second ambient light intensity collected by a second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions; calculating an absolute difference between the first ambient light intensity and the second ambient light intensity; and adjusting the backlight intensity of the display screen according to the relation between the obtained absolute difference value and the first preset light intensity threshold value. The technical scheme of this application has got rid of the influence that shows the luminance of the content that the screen shows detected before the ambient light, can detect the ambient light intensity more accurately to provide accurate regulation to showing the backlight of screen.

Description

Method, device and equipment for controlling brightness of display screen and computer readable storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for controlling display screen brightness.
Background
The display screen brightness of the mobile terminal is also the backlight brightness of the display screen of the mobile terminal. Because the display screen is located in different environments, the brightness of the display screen generally needs to change with the environment, for example, when the ambient light is dark, the brightness of the display screen is often reduced so as not to be too dazzling. Currently, the display screen brightness of a mobile terminal is generally adjusted by sensing ambient light according to the intensity of the sensed ambient light. However, in the prior art, when the brightness of the display screen is adjusted, because the light sensor is disposed on the side where the screen is located, the light sensor needs to be turned on all the time to detect the change of the ambient light, and meanwhile, because the light sensor is disposed on the same side as the screen, the accuracy of the ambient light detected by the light sensor is also disturbed by the frequent change of the display content of the screen.
Disclosure of Invention
The application provides a method, a device and equipment for controlling the brightness of a display screen and a computer readable storage medium, so as to accurately detect ambient light and adjust the brightness of the display screen according to the value of the ambient light.
In one aspect, the present application provides a method for controlling brightness of a display screen, including:
acquiring first ambient light intensity collected by a first light sensor from the first light sensor;
acquiring second ambient light intensity collected by a second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions;
calculating an absolute difference between the first ambient light intensity and the second ambient light intensity;
and adjusting the backlight intensity of the display screen according to the relation between the absolute difference value and a first preset light intensity threshold value.
On the other hand, the application provides a device for controlling display screen brightness, including:
the first acquisition module is used for acquiring first ambient light intensity acquired by the first light sensor from the first light sensor;
the second acquisition module is used for acquiring second ambient light intensity acquired by a second light sensor from the second light sensor, and the second light sensor and the first light sensor have different photosensitive directions;
a difference calculation module for calculating an absolute difference between the first ambient light intensity and the second ambient light intensity;
and the adjusting module is used for adjusting the backlight intensity of the display screen according to the relation between the absolute difference value and a first preset light intensity threshold value.
In a third aspect, the present application provides an apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the above technical solution when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the above-mentioned solution.
According to the technical scheme provided by the application, the acquired ambient light intensity is acquired from the light sensors with different photosensitive directions respectively, and then the absolute difference values of the ambient light intensity and the light intensity threshold are compared with each other, so that the backlight intensity of the display screen is adjusted according to the comparison result. Compared with the prior art, the technical scheme of this application has got rid of the influence that shows the luminance of the content that the screen shows and detect before the ambient light, can detect the ambient light intensity more accurately to provide accurate regulation to showing the backlight of screen.
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. 1 is a flowchart of a method for controlling brightness of a display screen according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a light sensing direction of a first light sensor provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a light sensing direction of a first light sensor and a light sensing direction of a second light sensor provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus for controlling brightness of a display screen according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
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.
In this specification, adjectives such as first and second may only be used to distinguish one element or action from another, without necessarily requiring or implying any actual such relationship or order. References to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but rather to one or more of the element, component, or step, etc., where the context permits.
In the present specification, the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The application provides a method for controlling the brightness of a display screen, as shown in fig. 1, which mainly includes steps S101 to S104, as detailed below:
step S101: and acquiring the first ambient light intensity collected by the first light sensor from the first light sensor.
The Light Sensor is also called Light Sensor or brightness Sensor, and generally comprises two components, i.e. a Light projector and a Light receiver, and the Light Sensor is based on the principle that the Light projector focuses Light from a lens, and transmits the Light to the lens of the Light receiver, and then to a receiving Sensor, and the receiving Sensor converts the received Light signal into an electrical signal, and the electrical signal can be further used for automatic control of various switches and controls. Different from the prior art that only adopts a light sensor, the technical scheme of this application adopts two light sensors, for showing the difference, is called first light sensor and second light sensor respectively. The first ambient light intensity collected by the first light sensor is an analog quantity, and for the convenience of subsequent processing, after the first ambient light intensity collected by the first light sensor is obtained from the first light sensor, the analog quantity corresponding to the first ambient light intensity can be digitized into a digital quantity, or the digital quantity is further processed into other formats.
Step S102: and acquiring second ambient light intensity collected by the second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions.
In step S102, the second ambient light intensity collected by the second light sensor is obtained from the second light sensor, which is similar to the technical scheme of obtaining the first ambient light intensity collected by the first light sensor from the first light sensor in step S101, and is not described herein again.
Although this application embodiment has deployed first light sensor and second light sensor at mobile terminal, however, in order to make first light sensor and second light sensor gather the light signal of equidirectional not to remove the influence that shows the change of screen content to the accurate collection ambient light intensity of light sensor from, in the embodiment of this application, second light sensor is different with first light sensor's sensitization direction. Particularly, the sensitization direction perpendicular to of first light ray sensor shows the screen and outside the screen is shown to the orientation, and the contained angle of the sensitization direction of second light ray sensor and first light ray sensor's sensitization direction is not more than 90 degrees. As shown in fig. 2, assuming that a three-dimensional coordinate system is established by using a plane of a display screen, that is, the plane of the display screen is XoY planes, and a direction perpendicular to XoY planes and back to a backlight plate of the display screen is a positive Z-axis direction of the three-dimensional coordinate system, a photosensitive direction of the first light sensor is the positive Z-axis direction of the three-dimensional coordinate system, and an included angle θ exists between the photosensitive direction of the first light sensor (indicated by 1 in the figure) and the positive Z-axis direction, where the included angle θ is not greater than 90 degrees. Specifically, the light sensing direction of the first light sensor is perpendicular to the display screen and faces the outside of the display screen, that is, the light sensing direction of the first light sensor coincides with the positive direction of the Z axis, and the light sensing direction of the second light sensor forms an angle θ of 90 degrees with the light sensing direction of the first light sensor, that is, the light sensing direction of the second light sensor may be the X axis direction or the Y axis direction of the XoY planes, as shown in fig. 3.
In other words, even if the physical orientations are different, the light sensing directions of the two light sensors can be adjusted to the directions meeting the requirements after the light transmission direction is changed by a precision device such as an optical fiber.
Step S103: an absolute difference between the first ambient light intensity and the second ambient light intensity is calculated.
The absolute difference between the first ambient light intensity and the second ambient light intensity is also the absolute value of the difference between the first ambient light intensity and the second ambient light intensity, if the first ambient light intensity is Vlight-1Indicating that the second ambient light intensity is Vlight-2Indicating that the absolute difference between the first ambient light intensity and the second ambient light intensity is | Vlight-1-Vlight-2I or I Vlight-2-Vlight-1The symbol | | represents the pair Vlight-1-Vlight-2Or to Vlight-2-Vlight-1And taking an absolute value. For convenience of the following description, | V will be described hereinlight-1-Vlight-2I or I Vlight-2-Vlight-1I using DabIs represented by, i.e., Dab=|Vlight-1-Vlight-2|=|Vlight-2-Vlight-1|。
Step S104: and adjusting the backlight intensity of the display screen according to the relation between the absolute difference value obtained in the step S103 and the first preset light intensity threshold value.
The display screen brightness of the mobile terminal mainly depends on the backlight intensity or the backlight intensity, and the larger the backlight intensity is, the larger the display screen brightness is, so that the display screen brightness is adjusted by adjusting the backlight intensity of the display screen. As an embodiment of the present application, according to the magnitude relationship between the absolute difference obtained in step S103 and the first preset light intensity threshold, adjusting the backlight intensity of the display screen may be implemented in steps S1041 to S1043, which are described as follows:
step S1041: comparing the absolute difference between the first ambient light intensity and the second ambient light intensity with a first predetermined light intensity threshold.
If the first predetermined light intensity threshold value is VthDenotes, according to the preceding description of the embodiments, here the ratioThan DabAnd VthThe size of (2). Here, it should be noted that VthMay be a dynamically changing value, V at a certain timethThe first preset light intensity threshold value may be an average value of the first preset light intensity threshold values at respective time instants before the time instant.
Step S1042: if the absolute difference DabLess than a first predetermined light intensity threshold value VthThen the backlight intensity of the display screen is adjusted to 0.
If the absolute difference DabLess than a first predetermined light intensity threshold value VthAnd then, the fact that the user does not operate on the display screen is indicated. In order to save electric energy, the backlight intensity of the display screen can be adjusted to 0, namely the backlight source is turned off.
Step S1043: if the absolute difference DabNot less than a first preset light intensity threshold value VthAnd adjusting the backlight intensity of the display screen according to the first ambient light intensity or the second ambient light intensity.
In the embodiment of the present application, an ambient light intensity-backlight intensity mapping table may be prepared in advance, where the ambient light intensity-backlight intensity mapping table belongs to a configuration class file, and records a mapping relationship between each ambient light intensity or ambient light intensity range and backlight intensity. Therefore, the step S1043 may be implemented by specifically querying the ambient light intensity-backlight intensity mapping table, and then adjusting the backlight of the display screen to the first ambient light intensity V according to the mapping relationship between the ambient light intensity and the backlight intensity in the ambient light intensity-backlight intensity mapping tablelight-1Or second ambient light intensity Vlight-2Corresponding backlight intensity.
In the implementation process of the technical scheme of the application, a specific scene is an extreme situation that the ambient light is extremely strong or weak, and in the extreme situation, the problem is solved by additionally setting a light intensity threshold. Specifically, after a first ambient light intensity collected by a first light sensor is acquired from the first light sensor and a second ambient light intensity collected by a second light sensor is acquired from the second light sensor, the magnitude relation between the first ambient light intensity or the second ambient light intensity and a second preset light intensity threshold value and the magnitude relation between the first ambient light intensity or the second ambient light intensity and a third preset light intensity threshold value are compared, if the first ambient light intensity or the second ambient light intensity is greater than the second preset light intensity threshold value, or if the first ambient light intensity or the second ambient light intensity is less than the third preset light intensity threshold value, the first light sensor or the second light sensor is closed. The second predetermined light intensity threshold is a larger value (it can be considered that the feeling of ordinary people is more glaring under the ambient light intensity), and the third predetermined light intensity threshold is a smaller value (it can be considered that the value is closer to 0), in other words, if the ambient light intensity at the current moment is too large or too small, the first light sensor or the second light sensor needs to be turned off, and the backlight intensity of the display screen is not adjusted according to the magnitude relation between the absolute difference and the first predetermined light intensity threshold.
The scene similar to the above scene is that the user does not want to use the function of adjusting the backlight intensity of the display screen according to the magnitude relation between the absolute difference value and the first preset light intensity threshold value, in this case, the technical scheme of the application can detect whether the user turns on the specific function switch, and if the user turns on the specific function switch, the first light sensor or the second light sensor is turned off. Here, the specific function switch is a control provided by an interface set by the mobile terminal, and when the switch is closed, it is equivalent to that the user does not adopt the technical scheme of the present application.
As can be seen from the method for controlling the brightness of the display screen illustrated in fig. 1, the collected ambient light intensities are obtained from the two light sensors with different light sensing directions, and then the absolute difference value of the ambient light intensities is compared with the preset light intensity threshold, and the backlight intensity of the display screen is adjusted according to the comparison result. Compared with the prior art, the technical scheme of this application has got rid of the influence that shows the luminance of the content that the screen shows and detect before the ambient light, can detect the ambient light intensity more accurately to provide accurate regulation to showing the backlight of screen.
Referring to fig. 4, a device for controlling brightness of a display screen according to an embodiment of the present application may include a first obtaining module 401, a second obtaining module 402, a difference calculating module 403, and an adjusting module 404, which are detailed as follows:
a first obtaining module 401, configured to obtain, from a first light sensor, a first ambient light intensity collected by the first light sensor;
a second obtaining module 402, configured to obtain, from a second light sensor, a second ambient light intensity collected by the second light sensor, where a light sensing direction of the second light sensor is different from a light sensing direction of the first light sensor;
a difference calculation module 403, configured to calculate an absolute difference between the first ambient light intensity and the second ambient light intensity;
the adjusting module 404 is configured to adjust the backlight intensity of the display screen according to the magnitude relationship between the absolute difference calculated by the difference calculating module 403 and the first preset light intensity threshold.
Optionally, in the apparatus illustrated in fig. 4, the light sensing direction of the first light sensor is perpendicular to the display screen and faces the outside of the display screen, and an included angle between the light sensing direction of the second light sensor and the light sensing direction of the first light sensor is not greater than 90 degrees.
Optionally, in the apparatus illustrated in fig. 4, the light sensing direction of the first light sensor is perpendicular to the display screen and faces the display screen, and an included angle between the light sensing direction of the second light sensor and the light sensing direction of the first light sensor is 90 degrees.
Optionally, the adjusting module 404 is specifically configured to compare the absolute difference with a first preset light intensity threshold, adjust the backlight intensity of the display screen to 0 if the absolute difference calculated by the difference calculating module 403 is smaller than the first preset light intensity threshold, and adjust the backlight intensity of the display screen according to the first ambient light intensity or the second ambient light intensity if the absolute difference calculated by the difference calculating module 403 is not smaller than the first preset light intensity threshold.
Optionally, the adjusting the backlight intensity of the display screen according to the first ambient light intensity or the second ambient light intensity may be: and inquiring an environment light intensity-backlight intensity mapping table, and adjusting the backlight of the display screen to the backlight intensity corresponding to the first environment light intensity or the second environment light intensity according to the mapping relation between the environment light intensity and the backlight intensity in the environment light intensity-backlight intensity mapping table.
Optionally, the apparatus illustrated in fig. 4 may further include a comparing module and a first closing module, where:
the comparison module is used for comparing the magnitude relation between the first ambient light intensity or the second ambient light intensity and a second preset light intensity threshold value and comparing the magnitude relation between the first ambient light intensity or the second ambient light intensity and a third preset light intensity threshold value;
and the first closing module is used for closing the first light sensor or the second light sensor if the result of the comparison module is that the first ambient light intensity or the second ambient light intensity is greater than the second preset light intensity threshold value, or if the result of the comparison module is that the first ambient light intensity or the second ambient light intensity is less than the third preset light intensity threshold value.
Optionally, the apparatus illustrated in fig. 4 may further include a detection module and a second closing module, where:
the detection module is used for detecting whether a user turns on a specific function switch;
and the second closing module is used for closing the first light sensor or the second light sensor if the detection module detects that the user opens the specific function switch.
It can be seen from the above description of the technical solution that the ambient light intensities collected by the two light sensors with different light sensing directions are obtained respectively, and then the absolute difference value of the ambient light intensities is compared with the preset light intensity threshold, and the backlight intensity of the display screen is adjusted according to the comparison result. Compared with the prior art, the technical scheme of this application has got rid of the influence that shows the luminance of the content that the screen shows and detect before the ambient light, can detect the ambient light intensity more accurately to provide accurate regulation to showing the backlight of screen.
Fig. 5 is a schematic structural diagram of an apparatus provided in an embodiment of the present application. As shown in fig. 5, the apparatus 5 of this embodiment mainly includes: a processor 50, a memory 51 and a computer program 52, such as a program for a method of controlling the brightness of a display screen, stored in the memory 51 and executable on the processor 50. The processor 50 executes the computer program 52 to implement the steps in the above-mentioned method for controlling the brightness of the display screen, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 50 executes the computer program 52 to implement the functions of the modules/units in the device embodiments, such as the functions of the first obtaining module 401, the second obtaining module 402, the difference calculating module 403 and the adjusting module 404 shown in fig. 4.
Illustratively, the computer program 52 of the method of controlling the brightness of a display screen mainly comprises: acquiring first ambient light intensity collected by a first light sensor from the first light sensor; acquiring second ambient light intensity collected by a second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions; calculating an absolute difference between the first ambient light intensity and the second ambient light intensity; and adjusting the backlight intensity of the display screen according to the relation between the obtained absolute difference value and the first preset light intensity threshold value. The computer program 52 may be divided into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the device 5. For example, the computer program 52 may be divided into functions of a first acquisition module 401, a second acquisition module 402, a difference calculation module 403, and an adjustment module 404 (modules in the virtual device), and the specific functions of each module are as follows: a first obtaining module 401, configured to obtain, from a first light sensor, a first ambient light intensity collected by the first light sensor; a second obtaining module 402, configured to obtain, from a second light sensor, a second ambient light intensity collected by the second light sensor, where a light sensing direction of the second light sensor is different from a light sensing direction of the first light sensor; a difference calculation module 403, configured to calculate an absolute difference between the first ambient light intensity and the second ambient light intensity; the adjusting module 404 is configured to adjust the backlight intensity of the display screen according to the magnitude relationship between the absolute difference calculated by the difference calculating module 403 and the first preset light intensity threshold.
The device 5 may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a device 5 and does not constitute a limitation of device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., a computing device may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the device 5, such as a hard disk or a memory of the device 5. The memory 51 may also be an external storage device of the device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc., provided on the device 5. Further, the memory 51 may also include both internal storage units of the device 5 and external storage devices. The memory 51 is used for storing computer programs and other programs and data required by the device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as required to different functional units and modules, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, 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 through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-transitory computer readable storage medium. Based on such understanding, all or part of the processes in the method of the embodiments may also be implemented by instructing related hardware through a computer program, where the computer program of the method for controlling the brightness of the display screen may be stored in a computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the embodiments of the methods, that is, acquiring the first ambient light intensity collected by the first light sensor from the first light sensor; acquiring second ambient light intensity collected by a second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions; calculating an absolute difference between the first ambient light intensity and the second ambient light intensity; and adjusting the backlight intensity of the display screen according to the relation between the obtained absolute difference value and the first preset light intensity threshold value. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The non-transitory computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the non-transitory computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, non-transitory computer readable media does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice. The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
The above-mentioned embodiments, objects, technical solutions and advantages of the present application are described in further detail, it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present invention.

Claims (10)

1. A method for controlling the brightness of a display screen, the method comprising:
acquiring first ambient light intensity collected by a first light sensor from the first light sensor;
acquiring second ambient light intensity collected by a second light sensor from the second light sensor, wherein the second light sensor and the first light sensor have different photosensitive directions;
calculating an absolute difference between the first ambient light intensity and the second ambient light intensity;
and adjusting the backlight intensity of the display screen according to the relation between the absolute difference value and a first preset light intensity threshold value.
2. The method for controlling the brightness of the display screen according to claim 1, wherein the light sensing direction of the first light sensor is perpendicular to the display screen and faces the outside of the display screen, and the included angle between the light sensing direction of the second light sensor and the light sensing direction of the first light sensor is not more than 90 degrees.
3. The method according to claim 2, wherein the light sensing direction of the first light sensor is perpendicular to the display screen and faces the outside of the display screen, and the light sensing direction of the second light sensor forms an angle of 90 degrees with the light sensing direction of the first light sensor.
4. The method for controlling the brightness of the display screen according to claim 1, wherein the adjusting the backlight intensity of the display screen according to the relationship between the absolute difference and the first preset light intensity threshold comprises:
comparing the absolute difference value with a first preset light intensity threshold value;
if the absolute difference value is smaller than the first preset light intensity threshold value, adjusting the backlight intensity of the display screen to be 0;
and if the absolute difference value is not less than the first preset light intensity threshold value, adjusting the backlight intensity of the display screen according to the first environment light intensity or the second environment light intensity.
5. The method of claim 4, wherein the adjusting the backlight intensity of the display screen according to the first ambient light intensity or the second ambient light intensity comprises:
inquiring an environment light intensity-backlight intensity mapping table;
and adjusting the backlight of the display screen to the backlight intensity corresponding to the first ambient light intensity or the second ambient light intensity according to the mapping relation between the ambient light intensity and the backlight intensity in the ambient light intensity-backlight intensity mapping table.
6. The method for controlling the brightness of a display screen according to any one of claims 1 to 5, wherein the method further comprises:
comparing the magnitude relationship between the first ambient light intensity or the second ambient light intensity and a second preset light intensity threshold value and comparing the magnitude relationship between the first ambient light intensity or the second ambient light intensity and a third preset light intensity threshold value;
if the first ambient light intensity or the second ambient light intensity is greater than the second preset light intensity threshold value, or if the first ambient light intensity or the second ambient light intensity is less than the third preset light intensity threshold value, the first light sensor or the second light sensor is turned off.
7. The method for controlling the brightness of a display screen according to any one of claims 1 to 5, wherein the method further comprises:
detecting whether a user turns on a specific function switch;
and if the user is detected to turn on the specific function switch, turning off the first light sensor or the second light sensor.
8. An apparatus for controlling brightness of a display screen, the apparatus comprising:
the first acquisition module is used for acquiring first ambient light intensity acquired by the first light sensor from the first light sensor;
the second acquisition module is used for acquiring second ambient light intensity acquired by a second light sensor from the second light sensor, and the second light sensor and the first light sensor have different photosensitive directions;
a difference calculation module for calculating an absolute difference between the first ambient light intensity and the second ambient light intensity;
and the adjusting module is used for adjusting the backlight intensity of the display screen according to the relation between the absolute difference value and a first preset light intensity threshold value.
9. An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011287426.1A 2020-11-17 2020-11-17 Method, device and equipment for controlling brightness of display screen and computer readable storage medium Pending CN112468656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011287426.1A CN112468656A (en) 2020-11-17 2020-11-17 Method, device and equipment for controlling brightness of display screen and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011287426.1A CN112468656A (en) 2020-11-17 2020-11-17 Method, device and equipment for controlling brightness of display screen and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112468656A true CN112468656A (en) 2021-03-09

Family

ID=74836498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011287426.1A Pending CN112468656A (en) 2020-11-17 2020-11-17 Method, device and equipment for controlling brightness of display screen and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112468656A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN114460852A (en) * 2021-12-24 2022-05-10 珠海格力电器股份有限公司 Indoor lighting device, method, storage medium and electronic device
CN115875804A (en) * 2022-12-09 2023-03-31 珠海格力电器股份有限公司 Control method and device of electric appliance, air conditioner and electric appliance
WO2023137957A1 (en) * 2022-01-24 2023-07-27 上海闻泰信息技术有限公司 Method for acquiring ambient light sensation value, and electronic device and computer-readable storage medium
CN117500122A (en) * 2023-10-25 2024-02-02 箭牌家居集团股份有限公司 Light control method for shower room, shower room and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327148A (en) * 2013-06-28 2013-09-25 惠州Tcl移动通信有限公司 Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal
CN104345876A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105575334A (en) * 2015-07-10 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Screen brightness adjusting method and user terminal
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
CN106506909A (en) * 2015-09-08 2017-03-15 联发科技股份有限公司 According to the method and device that optical condition adjusts portable electron device
CN109634357A (en) * 2018-11-30 2019-04-16 维沃移动通信有限公司 Terminal and its control method
EP3525072A1 (en) * 2016-07-29 2019-08-14 Samsung Display Co., Ltd. Display device
CN111829654A (en) * 2020-07-24 2020-10-27 北京小米移动软件有限公司 Ambient light detection method and device, and computer storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327148A (en) * 2013-06-28 2013-09-25 惠州Tcl移动通信有限公司 Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal
CN104345876A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105575334A (en) * 2015-07-10 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Screen brightness adjusting method and user terminal
CN106506909A (en) * 2015-09-08 2017-03-15 联发科技股份有限公司 According to the method and device that optical condition adjusts portable electron device
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
EP3525072A1 (en) * 2016-07-29 2019-08-14 Samsung Display Co., Ltd. Display device
CN109634357A (en) * 2018-11-30 2019-04-16 维沃移动通信有限公司 Terminal and its control method
CN111829654A (en) * 2020-07-24 2020-10-27 北京小米移动软件有限公司 Ambient light detection method and device, and computer storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN114460852A (en) * 2021-12-24 2022-05-10 珠海格力电器股份有限公司 Indoor lighting device, method, storage medium and electronic device
CN114460852B (en) * 2021-12-24 2024-05-31 珠海格力电器股份有限公司 Indoor lighting device, indoor lighting method, storage medium and electronic equipment
WO2023137957A1 (en) * 2022-01-24 2023-07-27 上海闻泰信息技术有限公司 Method for acquiring ambient light sensation value, and electronic device and computer-readable storage medium
CN115875804A (en) * 2022-12-09 2023-03-31 珠海格力电器股份有限公司 Control method and device of electric appliance, air conditioner and electric appliance
CN117500122A (en) * 2023-10-25 2024-02-02 箭牌家居集团股份有限公司 Light control method for shower room, shower room and storage medium

Similar Documents

Publication Publication Date Title
CN112468656A (en) Method, device and equipment for controlling brightness of display screen and computer readable storage medium
EP3435199B1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
US9692960B2 (en) Method and system for enabling camera of mobile terminal to automatically adapt camera parameters according to scene motion
CN109241859A (en) Fingerprint identification method and Related product
CN110163833B (en) Method and device for determining opening and closing state of disconnecting link
CN108737815B (en) Quality detection method and system of image sensor
CN109257507B (en) Method for adjusting screen brightness, mobile terminal and storage medium
US20210141878A1 (en) Unlocking control method and related products
CN104751419A (en) Picture display regulation method and terminal
CN111092748A (en) Alarm rule setting method, device, equipment and storage medium for Internet of things equipment
CN109302566A (en) A kind of method, apparatus and terminal device of determining screening-mode
KR20200117695A (en) Electronic device and method for controlling camera using external electronic device
CN113301320A (en) Image information processing method and device and electronic equipment
CN113781481A (en) Method and device for non-contact measurement of shape and size of object and electronic equipment
CN112351271A (en) Camera shielding detection method and device, storage medium and electronic equipment
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN113342229A (en) Method and device for adjusting font size, terminal equipment and computer readable storage medium
CN111736648B (en) Output voltage control method and device and terminal equipment
KR20220102715A (en) Electronic device and method to automatically control the brightness of electronic device
CN112153300A (en) Multi-view camera exposure method, device, equipment and medium
CN108848265B (en) Screen brightness adjusting method and device for local area, terminal and storage medium
CN112584057A (en) Illuminance detection method and device
CN108833780B (en) Image parameter adjusting method, image parameter adjusting device and mobile terminal
CN107404575B (en) Method and device for optimizing screen control, storage medium and mobile terminal
US8824732B2 (en) Apparatus and method for recognizing hand rotation

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210309