CN112433694A - Light intensity adjusting method and device, storage medium and mobile terminal - Google Patents

Light intensity adjusting method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112433694A
CN112433694A CN202011321785.4A CN202011321785A CN112433694A CN 112433694 A CN112433694 A CN 112433694A CN 202011321785 A CN202011321785 A CN 202011321785A CN 112433694 A CN112433694 A CN 112433694A
Authority
CN
China
Prior art keywords
light intensity
light sensor
value
light
intensity value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011321785.4A
Other languages
Chinese (zh)
Other versions
CN112433694B (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.)
Shenzhen Zongzheng Intellectual Property Service 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 CN202011321785.4A priority Critical patent/CN112433694B/en
Publication of CN112433694A publication Critical patent/CN112433694A/en
Application granted granted Critical
Publication of CN112433694B publication Critical patent/CN112433694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a light intensity adjusting method, a light intensity adjusting device, a storage medium and a mobile terminal. According to the light intensity adjusting method, the virtual second light sensor is used for replacing the second light sensor under a certain condition and is matched with the first light sensor to detect the ambient light brightness, so that the brightness of the display screen of the mobile terminal is adjusted, the influences of display content, brightness and the like of the display screen are avoided, the effectiveness of a detection result is improved, and the use experience of a user is improved.

Description

Light intensity adjusting method and device, storage medium and mobile terminal
Technical Field
The invention relates to the technical field of mobile communication, in particular to a light intensity adjusting method, a light intensity adjusting device, a storage medium and a mobile terminal.
Background
With the development of electronic technology and communication technology, mobile terminals have become one of the essential portable devices in people's daily life. The full-screen mobile terminal has a high screen occupation ratio and good visual experience, so the full-screen mobile terminal becomes a future development trend of the mobile terminal.
In the design of a full screen of a mobile terminal, a light sensor, a front camera and the like on the front side of a display screen of the mobile terminal need to be rearranged. The light sensor is used for detecting the ambient light brightness, and the brightness of the display screen is adjusted in an auxiliary mode according to the relation between the preset ambient light brightness and the brightness of the display screen, so that the brightness of the display screen is adjusted automatically.
However, in actual use, because the current mobile terminal adopts a full-screen design, the distance between the light sensor and the display screen is very small, and even some mobile terminals directly set the light sensor in the hollow part of the display screen, which may cause the display content, brightness, etc. of the display screen to affect the ambient light brightness detected by the light sensor in actual use, thereby causing the deviation of ambient light brightness detection.
In view of the above, how to avoid the influence of the display content, brightness, etc. of the display screen on the brightness of the ambient light detected by the light sensor becomes an important research topic for relevant researchers and developers.
Disclosure of Invention
The invention aims to provide a light intensity adjusting method, a light intensity adjusting device, a storage medium and a mobile terminal. According to the light intensity adjusting method, the virtual second light sensor is used for replacing the second light sensor under a certain condition and is matched with the first light sensor to detect the ambient light brightness, so that the brightness of the display screen of the mobile terminal is adjusted, the influences of display content, brightness and the like of the display screen are avoided, the effectiveness of a detection result is improved, and the use experience of a user is improved.
According to a first aspect of the present invention, a light intensity adjustment method is provided. The light intensity adjusting method is suitable for a mobile terminal, the mobile terminal comprises a first light sensor and a second light sensor, and the light intensity adjusting method comprises the following steps: starting a first light sensor and a second light sensor to respectively obtain a first light intensity value and a second light intensity value; calculating a first difference between the first light intensity value and the second light intensity value; correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value; judging whether the second light sensor meets a preset condition or not; when the second light sensor is judged to meet the preset condition, closing the second light sensor, and simultaneously opening the virtual second light sensor to obtain a third light intensity value; calculating a second difference between the first light intensity value and the third light intensity value; and correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
On the basis of the technical scheme, the method can be further improved.
In some embodiments of the present invention, the determining whether the second light sensor satisfies a predetermined condition includes: dividing a first time period into N time periods according to a second light intensity value obtained by a second light sensor, wherein the first time period lasts for the first time period, and N is a natural number greater than 2; judging whether a first difference value between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M continuous time periods is smaller than a first threshold value, wherein M is a natural number smaller than N; and when the first difference value in M continuous time periods is smaller than the first threshold value, closing the second light sensor and simultaneously opening the virtual second light sensor.
In some embodiments of the present invention, the step of obtaining the third light intensity value comprises: and determining a third light intensity value according to the average value of the second light intensity values obtained by the second light sensor in M continuous time periods.
In some embodiments of the present invention, the step of turning off the second light sensor comprises: judging whether a second duration of turning off the second light sensor is greater than a second threshold value or not; and when the second duration of the second light sensor is judged to be greater than the second threshold value, the second light sensor is restarted.
According to a second aspect of the present invention, there is provided a light intensity adjusting apparatus. The light intensity adjusting device is suitable for a mobile terminal, the mobile terminal comprises a first light sensor and a second light sensor, and the light intensity adjusting device comprises: the first light intensity value acquisition module is used for starting the first light sensor to obtain a first light intensity value; the second light intensity value acquisition module is used for starting the second light sensor to obtain a second light intensity value; the first difference value calculating module is used for calculating a first difference value between the first light intensity value and the second light intensity value; the first brightness value adjusting module is used for correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value; the preset condition judging module is used for judging whether the second light sensor meets a preset condition or not; the first closing module is used for closing the second light sensor when the second light sensor is judged to meet the preset condition; the first starting module is used for starting the virtual second light sensor when the second light sensor is judged to meet the preset condition; the third light intensity value acquisition module is used for acquiring a third light intensity value when the second light sensor is judged to meet the preset condition; the second difference value calculating module is used for calculating a second difference value between the first light intensity value and the third light intensity value; and the second brightness value adjusting module is used for correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
In some embodiments of the present invention, the preset condition determining module includes: the first time length dividing unit is used for dividing a first time length into N time lengths according to a second light intensity value obtained by a second light sensor lasting for the first time length, wherein N is a natural number greater than 2; a first threshold comparison unit, configured to determine whether a first difference between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M consecutive time periods is smaller than a first threshold, where M is a natural number smaller than N; the second closing module is used for closing the second light sensor when the first difference value in the M continuous time periods is smaller than the first threshold value; and the second starting module is used for starting the virtual second light sensor when the first difference value in the continuous M time periods is smaller than the first threshold value.
In some embodiments of the invention, the third light intensity value obtaining module includes: and the light intensity determining unit is used for determining a third light intensity value according to the average value of the second light intensity values obtained by the second light sensor in M continuous time periods.
In some embodiments of the invention, the first shutdown module comprises: the second duration judging unit is used for judging whether the second duration lasting for closing the second light sensor is greater than a second threshold value or not; and the restarting unit is used for restarting the second light sensor when judging that the second duration of the second light sensor is greater than the second threshold.
According to a third aspect of the present invention, there is provided a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the above-described light intensity adjustment method.
According to a fourth aspect of the present invention, there is provided a mobile terminal comprising the light intensity adjusting apparatus described above.
According to the light intensity adjusting method, the virtual second light sensor is used for replacing the second light sensor under a certain condition and is matched with the first light sensor to detect the ambient light brightness, so that the brightness of the display screen of the mobile terminal is adjusted, influences of display content, brightness and the like of the display screen are avoided, the effectiveness of a detection result is improved, the use experience of a user is improved, and convenience is provided for the user.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for adjusting light intensity according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating the sub-steps of step S140 shown in fig. 1.
Fig. 3 is a flowchart illustrating an embodiment of the sub-steps of step S150 shown in fig. 1.
Fig. 4 is a flowchart illustrating another embodiment of the sub-steps of step S150 shown in fig. 1.
Fig. 5 is a schematic structural diagram of a light intensity adjusting apparatus according to an embodiment of the invention.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of another specific structure of the mobile terminal according to the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
Specifically, referring to fig. 1, in an embodiment of the present invention, a method for adjusting light intensity is provided. The light intensity adjusting method is suitable for a mobile terminal, and the mobile terminal comprises a first light sensor and a second light sensor.
The light intensity adjusting method includes: step S110, starting a first light sensor and a second light sensor to respectively obtain a first light intensity value and a second light intensity value; step S120, calculating a first difference value between the first light intensity value and the second light intensity value; step S130, correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value; step S140, judging whether the second light sensor meets a preset condition; step S150, when the second light sensor is judged to meet the preset condition, closing the second light sensor, and simultaneously opening the virtual second light sensor to obtain a third light intensity value; step S160, calculating a second difference between the first light intensity value and the third light intensity value; and step S170, correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
Specifically, in step S110, the first light sensor and the second light sensor are turned on to obtain a first light intensity value and a second light intensity value, respectively.
And when the display screen of the mobile terminal is lightened, the first light sensor and the second light sensor are started. The first light sensor and the second light sensor are arranged at the same end of the mobile terminal, and the second light sensor is located near the first light sensor. The first light sensor is disposed to face a detection environment of the mobile terminal and a portion of a display screen of the mobile terminal in a forward direction. The second light sensor is disposed to face only the display screen. The first light sensor detects a detection environment and a part of a display screen of the mobile terminal to obtain a first light intensity value. The second light sensor detects a display screen of the mobile terminal to obtain a second light intensity value.
In step S120, a first difference between the first light intensity value and the second light intensity value is calculated.
The first difference is calculated and may be used as the final ambient light value.
And step S130, correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value.
In this step, the brightness value of the display screen of the mobile terminal may be adjusted accordingly according to the final ambient light value.
Step S140, determine whether the second light sensor satisfies a predetermined condition.
Referring to fig. 2, in this step, the determining whether the second light sensor satisfies a predetermined condition includes: step S141, dividing a first time period into N time periods according to a second light intensity value obtained by a second light sensor lasting for the first time period, wherein N is a natural number greater than 2; step S142, determining whether a first difference between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M consecutive time periods is smaller than a first threshold, where M is a natural number smaller than N; step S143, when it is determined that the first difference is smaller than the first threshold value in the M consecutive time periods, turning off the second light sensor, and simultaneously turning on the virtual second light sensor.
Specifically, in step S141, the first time period is divided into N time periods according to the duration of the second light intensity value obtained by the second light sensor for the first time period, where N is a natural number greater than 2.
For the convenience of understanding, the first time period is divided into N time periods, which is described below by an example.
For example, the duration of the second light intensity value obtained by the second light sensor may be a function light (t) of a time t, the first duration is set as t1, the time for turning on the second light sensor is t0, and the current time is t2, and the duration of the ambient light brightness detected by the second light sensor is divided into a plurality of time segments. Specifically, light (t), t0 is not less than t not more than t 1; light (t), t1 is not less than t not more than 2 t 1; light (t),2 t1 ≦ t ≦ 3 t 1; light (t),3 t1 ≦ t ≦ 4 t 1; … light (t), t2-t1 is less than or equal to t 2.
Step S142, determining whether a first difference between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M consecutive time periods is smaller than a first threshold, where M is a natural number smaller than N.
In this step, it is determined whether the first difference is less than a first threshold in the most recent M time periods.
Step S143, when it is determined that the first difference is smaller than the first threshold value in the M consecutive time periods, turning off the second light sensor, and simultaneously turning on the virtual second light sensor.
In this step, the virtual second light sensor is turned on while the second light sensor is turned off. It should be noted that the virtual light sensor may be connected to the second light sensor.
Step S150, when it is determined that the second light sensor satisfies the predetermined condition, turning off the second light sensor, and simultaneously turning on the virtual second light sensor to obtain a third light intensity value.
Referring to fig. 3, in this step, the step of obtaining the third light intensity value includes: step S151, determining a third light intensity value according to an average value of the second light intensity values obtained by the second light sensor in M consecutive time periods.
When the second light sensor is turned off, the ambient light brightness detected by the virtual second light sensor is provided by the light intensity value emitted by the virtual light. Specifically, the virtual rays may be output in a set cycle. For example, if a light duration is set as the first time, the virtual light will cyclically output the light with the set light duration as the first time until the second light sensor is turned on. In other words, a virtual light is set, and the second light sensor is replaced by the generation of the virtual light. The setting of the virtual light is based on the average value of the second light intensity values obtained in the latest continuous M time periods as the third light intensity value. That is, the virtual light will cycle to produce an average of the second light intensity values obtained over the most recent consecutive M time periods.
Further, referring to fig. 4, the step of turning off the second light sensor includes: step S153, judging whether a second duration for closing the second light sensor is greater than a second threshold value; in step S155, when it is determined that the second duration of the second light sensor is greater than the second threshold, the second light sensor is turned on again.
The above steps are performed to replace the ambient light brightness detected by the second light sensor by the virtual light generation, which may cause the ambient light brightness to change.
In the present embodiment, the second threshold is 2 seconds.
In step S160, a second difference between the first light intensity value and the third light intensity value is calculated.
A second difference is calculated and may also be used as the final ambient light value when the second light sensor is turned off.
And step S170, correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
In this step, the brightness value of the display screen of the mobile terminal may be adjusted accordingly according to the final ambient light value.
By executing the steps 110 to 170, the virtual second light sensor is used to replace the second light sensor under a certain condition, and the virtual second light sensor is matched with the first light sensor to detect the ambient light brightness, so that the brightness of the display screen of the mobile terminal is adjusted, the influences of the display content, the brightness and the like of the display screen are avoided, the effectiveness of the detection result is improved, and the use experience of a user is improved.
According to a second aspect of the present invention, a light intensity adjusting apparatus is provided, which can be seen in fig. 5. The light intensity adjusting device is suitable for a mobile terminal, and the mobile terminal comprises a first light sensor and a second light sensor.
The light intensity adjusting apparatus includes: a first light intensity value obtaining module 510, a second light intensity value obtaining module 520, a first difference calculating module 530, a first brightness value adjusting module 540, a predetermined condition determining module 550, a first closing module 561, a first opening module 563, a third light intensity value obtaining module 565, a second difference calculating module 570, and a second brightness value adjusting module 580.
Specifically, the first light intensity value obtaining module 510 is configured to start the first light sensor to obtain a first light intensity value; a second light intensity value obtaining module 520, configured to turn on a second light sensor to obtain a second light intensity value; a first difference calculation module 530, configured to calculate a first difference between the first light intensity value and the second light intensity value; a first brightness value adjusting module 540, configured to correspondingly adjust a brightness value of a display screen of the mobile terminal according to the first difference; a preset condition determining module 550, configured to determine whether the second light sensor meets a preset condition; a first closing module 561, configured to close the second light sensor when it is determined that the second light sensor meets the preset condition; a first starting module 563 configured to start the virtual second light sensor when it is determined that the second light sensor satisfies the preset condition; a third light intensity value obtaining module 565, configured to obtain a third light intensity value when it is determined that the second light sensor meets the preset condition; a second difference calculation module 570, configured to calculate a second difference between the first light intensity value and the third light intensity value; the second adjusting brightness value module 580 is configured to correspondingly adjust the brightness value of the display screen of the mobile terminal according to the second difference.
The light intensity adjusting apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the preset condition determining module 550 includes: the first time length dividing unit is used for dividing a first time length into N time lengths according to a second light intensity value obtained by a second light sensor lasting for the first time length, wherein N is a natural number greater than 2; a first threshold comparison unit, configured to determine whether a first difference between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M consecutive time periods is smaller than a first threshold, where M is a natural number smaller than N; the second closing module is used for closing the second light sensor when the first difference value in the M continuous time periods is smaller than the first threshold value; and the second starting module is used for starting the virtual second light sensor when the first difference value in the continuous M time periods is smaller than the first threshold value.
The light intensity adjusting apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In some embodiments of the present invention, the third light intensity value obtaining module 565 includes: and the light intensity determining unit is used for determining a third light intensity value according to the average value of the second light intensity values obtained by the second light sensor in M continuous time periods.
The light intensity adjusting apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In some embodiments of the present invention, the first shutdown module 561 includes: the second duration judging unit is used for judging whether the second duration lasting for closing the second light sensor is greater than a second threshold value or not; and the restarting unit is used for restarting the second light sensor when judging that the second duration of the second light sensor is greater than the second threshold.
The light intensity adjusting apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Referring to fig. 6, an embodiment of the present invention further provides a mobile terminal 600, where the mobile terminal 600 includes the above light intensity adjusting apparatus. The mobile terminal 600 may be a mobile phone, a tablet computer, or the like. As shown in fig. 6, the mobile terminal 600 includes a processor 601, a memory 602. Wherein the processor 601 is connected to the memory 602.
The processor 601 is a control center of the mobile terminal 600, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application stored in the memory 602 and calling data and instructions stored in the memory 602, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the mobile terminal 600 is provided with a plurality of memory partitions, where the plurality of memory partitions includes a system partition and a target partition, and the processor 601 in the mobile terminal 600 loads instructions corresponding to processes of one or more applications into the memory 602 according to the following steps, and the processor 601 runs the applications stored in the memory 602, so as to implement various functions:
starting a first light sensor and a second light sensor to respectively obtain a first light intensity value and a second light intensity value;
calculating a first difference between the first light intensity value and the second light intensity value;
correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value;
judging whether the second light sensor meets a preset condition or not; when the second light sensor is judged to meet the preset condition, closing the second light sensor, and simultaneously opening the virtual second light sensor to obtain a third light intensity value;
calculating a second difference between the first light intensity value and the third light intensity value; and
and correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
Fig. 7 is a block diagram illustrating a specific structure of a mobile terminal 700 according to an embodiment of the present invention, where the mobile terminal 700 may be used to implement the method for adjusting light intensity provided in the foregoing embodiments. The mobile terminal 700 may be a mobile phone or a tablet. The mobile terminal further comprises the following components.
The RF circuit 710 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. The RF circuitry 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuit 710 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 720 may be used to store software programs and modules, such as program instructions/modules corresponding to the method for adjusting light intensity in the foregoing embodiments, and the processor 780 may execute various functional applications and data processing by running the software programs and modules stored in the memory 720, so as to implement the light intensity adjusting function. The memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 720 may further include memory located remotely from processor 780, which may be connected to mobile terminal 700 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 730 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 730 may include a touch-sensitive surface 731 as well as other input devices 732. Touch-sensitive surface 731, also referred to as a touch display screen or touch pad, can collect touch operations by a user on or near touch-sensitive surface 731 (e.g., operations by a user on or near touch-sensitive surface 731 using a finger, stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 731 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch-sensitive surface 731 can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may also include other input devices 732 in addition to the touch-sensitive surface 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 700, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 731 can overlay display panel 741, such that when touch-sensitive surface 731 detects a touch event thereon or nearby, processor 780 can determine the type of touch event, and processor 780 can then provide a corresponding visual output on display panel 741 based on the type of touch event. Although in FIG. 7 the touch-sensitive surface 731 and the display panel 741 are implemented as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface 731 and the display panel 741 may be integrated to implement input and output functions.
The mobile terminal 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor, wherein the proximity sensor may turn off the display panel 741 and/or the backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 700, detailed descriptions thereof are omitted.
The audio circuit 760, speaker 761, and microphone 762 may provide an audio interface between a user and the mobile terminal 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, processes the audio data by the audio data output processor 780, and transmits the processed audio data to, for example, another terminal via the RF circuit 710, or outputs the audio data to the memory 720 for further processing. The audio circuitry 760 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 700.
The mobile terminal 700, which may assist the user in e-mail, web browsing, and streaming media access, etc., through the transport module 770 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 770, it is understood that it does not belong to the essential constitution of the mobile terminal 700 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 780 is a control center of the mobile terminal 700, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 700 and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Optionally, processor 780 may include one or more processing cores; in some embodiments, processor 780 may integrate an application processor that handles primarily the operating system, user interface, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The mobile terminal 700 may also include a power supply 790 (e.g., a battery) that may provide power to the various components and, in some embodiments, may be logically coupled to the processor 780 through a power management system that may perform the functions of managing charging, discharging, and power consumption. The power supply 790 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 700 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which are not described in detail herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
starting a first light sensor and a second light sensor to respectively obtain a first light intensity value and a second light intensity value;
calculating a first difference between the first light intensity value and the second light intensity value;
correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value;
judging whether the second light sensor meets a preset condition or not;
when the second light sensor is judged to meet the preset condition, closing the second light sensor, and simultaneously opening the virtual second light sensor to obtain a third light intensity value;
calculating a second difference between the first light intensity value and the third light intensity value; and
and correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions or by instructions controlling associated hardware, and the instructions may be stored in a storage medium and can be loaded by a processor to perform the steps in any of the methods for adjusting light intensity provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the light intensity adjusting methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the light intensity adjusting methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described again here. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to the light intensity adjusting method, the virtual second light sensor is used for replacing the second light sensor under a certain condition and is matched with the first light sensor to detect the ambient light brightness, so that the brightness of the display screen of the mobile terminal is adjusted, influences of display content, brightness and the like of the display screen are avoided, the effectiveness of a detection result is improved, the use experience of a user is improved, and convenience is provided for the user.
The method for adjusting light intensity, the apparatus thereof, the storage medium, and the mobile terminal provided in the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A light intensity adjusting method is suitable for a mobile terminal, the mobile terminal comprises a first light sensor and a second light sensor, and the method is characterized by comprising the following steps:
starting a first light sensor and a second light sensor to respectively obtain a first light intensity value and a second light intensity value;
calculating a first difference between the first light intensity value and the second light intensity value;
correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value;
judging whether the second light sensor meets a preset condition or not;
when the second light sensor is judged to meet the preset condition, closing the second light sensor, and simultaneously opening the virtual second light sensor to obtain a third light intensity value;
calculating a second difference between the first light intensity value and the third light intensity value; and
and correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
2. The method of claim 1, wherein the determining whether the second light sensor satisfies a predetermined condition comprises:
dividing a first time period into N time periods according to a second light intensity value obtained by a second light sensor, wherein the first time period lasts for the first time period, and N is a natural number greater than 2;
judging whether a first difference value between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M continuous time periods is smaller than a first threshold value, wherein M is a natural number smaller than N;
and when the first difference value in M continuous time periods is smaller than the first threshold value, closing the second light sensor and simultaneously opening the virtual second light sensor.
3. The method of claim 2, wherein the step of obtaining the third light intensity value comprises: and determining a third light intensity value according to the average value of the second light intensity values obtained by the second light sensor in M continuous time periods.
4. The light intensity adjustment method according to claim 2, wherein the step of turning off the second light sensor includes:
judging whether a second duration of turning off the second light sensor is greater than a second threshold value or not;
and when the second duration of the second light sensor is judged to be greater than the second threshold value, the second light sensor is restarted.
5. A light intensity adjusting device is suitable for a mobile terminal, the mobile terminal comprises a first light sensor and a second light sensor, and the light intensity adjusting device is characterized by comprising:
the first light intensity value acquisition module is used for starting the first light sensor to obtain a first light intensity value;
the second light intensity value acquisition module is used for starting the second light sensor to obtain a second light intensity value;
the first difference value calculating module is used for calculating a first difference value between the first light intensity value and the second light intensity value;
the first brightness value adjusting module is used for correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the first difference value;
the preset condition judging module is used for judging whether the second light sensor meets a preset condition or not;
the first closing module is used for closing the second light sensor when the second light sensor is judged to meet the preset condition;
the first starting module is used for starting the virtual second light sensor when the second light sensor is judged to meet the preset condition;
the third light intensity value acquisition module is used for acquiring a third light intensity value when the second light sensor is judged to meet the preset condition;
the second difference value calculating module is used for calculating a second difference value between the first light intensity value and the third light intensity value;
and the second brightness value adjusting module is used for correspondingly adjusting the brightness value of the display screen of the mobile terminal according to the second difference value.
6. The light intensity adjusting apparatus according to claim 5, wherein the preset condition determining module comprises:
the first time length dividing unit is used for dividing a first time length into N time lengths according to a second light intensity value obtained by a second light sensor lasting for the first time length, wherein N is a natural number greater than 2;
a first threshold comparison unit, configured to determine whether a first difference between a second light intensity value obtained by the second light sensor and a first light intensity value obtained by the first light sensor in M consecutive time periods is smaller than a first threshold, where M is a natural number smaller than N;
the second closing module is used for closing the second light sensor when the first difference value in the M continuous time periods is smaller than the first threshold value;
and the second starting module is used for starting the virtual second light sensor when the first difference value in the continuous M time periods is smaller than the first threshold value.
7. The light intensity adjusting apparatus according to claim 5, wherein the third light intensity value obtaining module comprises:
and the light intensity determining unit is used for determining a third light intensity value according to the average value of the second light intensity values obtained by the second light sensor in M continuous time periods.
8. The light intensity adjustment device according to claim 5, wherein the first shutdown module includes:
the second duration judging unit is used for judging whether the second duration lasting for closing the second light sensor is greater than a second threshold value or not;
and the restarting unit is used for restarting the second light sensor when judging that the second duration of the second light sensor is greater than the second threshold.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the light intensity adjustment method of any one of claims 1 to 4.
10. A mobile terminal, characterized in that the mobile terminal comprises the light intensity adjusting apparatus of any one of claims 5 to 8.
CN202011321785.4A 2020-11-23 2020-11-23 Light intensity adjusting method and device, storage medium and mobile terminal Active CN112433694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011321785.4A CN112433694B (en) 2020-11-23 2020-11-23 Light intensity adjusting method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011321785.4A CN112433694B (en) 2020-11-23 2020-11-23 Light intensity adjusting method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112433694A true CN112433694A (en) 2021-03-02
CN112433694B CN112433694B (en) 2023-12-26

Family

ID=74693618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011321785.4A Active CN112433694B (en) 2020-11-23 2020-11-23 Light intensity adjusting method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112433694B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107924312A (en) * 2015-09-02 2018-04-17 高通股份有限公司 The optical sensor data of automatic calibration mobile device
US20180218710A1 (en) * 2015-07-06 2018-08-02 Samsung Electronics Co., Ltd. Electronic device and display control method in electronic device
CN109782737A (en) * 2019-01-28 2019-05-21 平安科技(深圳)有限公司 Unmanned vehicle analog detection method and system
CN111968602A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180218710A1 (en) * 2015-07-06 2018-08-02 Samsung Electronics Co., Ltd. Electronic device and display control method in electronic device
CN107924312A (en) * 2015-09-02 2018-04-17 高通股份有限公司 The optical sensor data of automatic calibration mobile device
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN109782737A (en) * 2019-01-28 2019-05-21 平安科技(深圳)有限公司 Unmanned vehicle analog detection method and system
CN111968602A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus

Also Published As

Publication number Publication date
CN112433694B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110277097B (en) Data processing method and related equipment
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN112367425B (en) Volume adjusting method and device and terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN109672242B (en) Terminal charging control method and device and storage medium
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111355991A (en) Video playing method and device, storage medium and mobile terminal
CN111309223A (en) Application function starting method and device, storage medium and mobile terminal
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN109660664B (en) Event processing method, device and storage medium
CN110972221B (en) Communication signal processing method and device and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN112558808B (en) Unlocking method and device for bang screen, terminal and storage medium
CN112531835B (en) Mobile terminal charging method and device, storage medium and mobile terminal

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
TR01 Transfer of patent right

Effective date of registration: 20240228

Address after: 907, No. 210, Tianwan Road, Tianliao Community, Yutang Street, Guangming District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Zongzheng Intellectual Property Service Co.,Ltd.

Country or region after: China

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right