CN112229507A - Ambient light detection method and device, storage medium and mobile terminal - Google Patents

Ambient light detection method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112229507A
CN112229507A CN202011103407.9A CN202011103407A CN112229507A CN 112229507 A CN112229507 A CN 112229507A CN 202011103407 A CN202011103407 A CN 202011103407A CN 112229507 A CN112229507 A CN 112229507A
Authority
CN
China
Prior art keywords
ambient light
light intensity
intensity value
display
display screen
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
CN202011103407.9A
Other languages
Chinese (zh)
Other versions
CN112229507B (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202011103407.9A priority Critical patent/CN112229507B/en
Publication of CN112229507A publication Critical patent/CN112229507A/en
Application granted granted Critical
Publication of CN112229507B publication Critical patent/CN112229507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses an ambient light detection method, an ambient light detection device, a storage medium and a mobile terminal, wherein the method comprises the following steps: determining whether the display screen is in a working state or not according to the received ambient light detection instruction; if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value; displaying a frame of target preset image on the display screen; when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value; determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value. The ambient light influence value when the display screen emits light is determined according to the collected ambient light intensity values twice by collecting the ambient light intensity value when the screen displays the target preset image once and the ambient light intensity value when the screen displays the target preset image once.

Description

Ambient light detection method and device, storage medium and mobile terminal
Technical Field
The application relates to the technical field of display, in particular to an ambient light detection method and device, a storage medium and a mobile terminal.
Background
In recent years, mobile terminals such as mobile phones, tablets and personal digital assistants are increasingly favored by users due to portability, and the display screen of the mobile terminal adjusts the brightness of the display screen through an ambient light sensor to ensure that the comfort level of the display screen meets the requirements of the eyes of the users.
In the related art, because the light emitting area of the display screen and the ambient light sensor are arranged on the same side, the light emitted by the display screen during displaying can be detected by the ambient light sensor, so that the ambient light sensor is influenced to acquire the ambient light intensity of the environment where the mobile terminal is located.
Disclosure of Invention
The embodiment of the application provides an ambient light detection method, which can avoid the collection influence on an ambient light sensor when a display screen displays, and further improve the collection accuracy of the ambient light sensor.
The embodiment of the application provides an ambient light detection method, which is applied to a mobile terminal and is characterized in that the mobile terminal is provided with a display screen and an ambient light sensor, the display screen comprises a display area and a non-display area, the non-display area is positioned on the ambient light sensor, and the method comprises the following steps:
determining whether the display screen is in a working state or not according to the received ambient light detection instruction;
if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value;
displaying a frame of target preset image on the display screen;
when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value;
determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
The embodiment of the present application still provides an ambient light detection device, is applied to mobile terminal, its characterized in that, mobile terminal has display screen and ambient light sensor, the display screen is including display area and non-display area, non-display area is located ambient light sensor, the device includes:
the first determining module is used for determining whether the display screen is in a working state or not according to the received ambient light detection instruction;
the first control module is used for controlling the ambient light sensor to acquire a first ambient light intensity value if the display screen is in a working state;
the display module is used for displaying a frame of target preset image on the display screen;
the second control module is used for controlling the ambient light sensor to acquire a second ambient light intensity value when the target preset image is displayed on the display screen;
and the second determining module is used for determining the ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
An embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the ambient light detection method as described above.
An embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the ambient light detection method described above by calling the computer program stored in the memory.
The ambient light detection method provided by the embodiment of the application comprises the following steps: determining whether the display screen is in a working state or not according to the received ambient light detection instruction; if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value; displaying a frame of target preset image on the display screen; when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value; determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value. The ambient light influence value when the display screen emits light is determined according to the collected ambient light intensity values twice by collecting the ambient light intensity value when the screen displays the target preset image once and the ambient light intensity value when the screen displays the target preset image once.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 1b is a schematic flowchart of a first method for detecting ambient light according to an embodiment of the present disclosure.
Fig. 1c is a schematic view of a first display of a mobile terminal according to an embodiment of the present application.
Fig. 1d is a second display diagram of a mobile terminal according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a second method for detecting ambient light according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an ambient light detection device according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal according to 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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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.
Referring to fig. 1a, fig. 1a is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure, where the mobile terminal includes a display screen 10, and the display screen 10 may be embedded in a housing 20 of the mobile terminal. The display screen 10 is divided into a display area 11 and a non-display area 12, the display area 11 is used for providing a visual operation interface for a user so that the user can view the operation interface and interact with the operation interface, the non-display area 12 is used for protecting functional devices on the same side with the display area 11, such as an ambient light sensor 30 and a camera module, and therefore the non-display area 12 is arranged on the ambient light sensor 30 so as to protect the ambient light sensor.
Referring to fig. 1b, fig. 1b is a first flowchart illustrating an ambient light detection method according to an embodiment of the present disclosure. The ambient light detection method includes:
step 101, determining whether the display screen is in a working state according to the received ambient light detection instruction.
The ambient light detection instruction is used for instructing the ambient light sensor to detect the light intensity of the ambient light. The detection frequency of the ambient light sensor may be determined in advance, for example, the ambient light intensity of the environment in which the mobile terminal is located is detected once at intervals of 5 s. Or when the display screen is switched from the screen-off state to the screen-on state, the ambient light is triggered to be acquired, and the specific trigger condition can be set arbitrarily, which is not limited here.
Specifically, the working state of the display screen, that is, the state of the display screen when being displayed, that is, the bright screen state, may be a mode of determining whether the display screen is in the working state, that is, a mode of detecting a parameter representing the state of the display screen. For example, if the parameter of the display screen in the operating state is set to 1 and the parameter in the non-operating state is set to 0, it can be determined whether the display screen is currently in the operating state by reading the parameter.
In addition, the manner of determining whether the display screen is in the working state may be to determine whether a touch operation of the user on the display screen is received or not or whether a physical key arranged on the mobile terminal housing is pressed within a period of time from the reception of the ambient light detection instruction, so as to determine whether the current state of the display screen is in the working state.
It should be noted that there are other ways to determine whether the display screen is in the working state, which can be implemented by other prior arts, and the application is not limited herein.
And 102, if the display screen is in a working state, controlling an ambient light sensor to acquire a first ambient light intensity value.
If it is detected in step 101 that the current state of the display screen is the working state, it may be determined that the display screen is displaying, and the ambient light sensor may be controlled to collect a current ambient light intensity value at a time, where the first ambient light intensity value collected this time is an ambient light intensity value affected by the light intensity of the display screen.
Specifically, when the ambient light sensor performs the collection, the current ambient light intensity value can be determined according to the luminous intensities of the three primary colors by collecting R, G, B the luminous intensities of the three primary colors. The current ambient light intensity value may also be determined from the collected light sensitive data, for example, tissue changes in the light sensitive elements result in changes in the collected light sensitive data. After the ambient light sensor determines the first ambient light intensity value, the first ambient light intensity value can be sent to the processor to complete one-time collection of ambient light.
And 103, displaying a frame of target preset image on a display screen.
The refresh rate of the display screen in the mobile terminal is generally 60Hz, that is, 60 frames of images can be refreshed within 1s, and a target preset image is displayed in one frame of the images, wherein the target preset image may be a full black image, or a black image may be displayed in a portion of the display area close to the ambient light sensor.
Referring to fig. 1c and fig. 1d, fig. 1c is a first display diagram of a mobile terminal according to an embodiment of the present disclosure, and fig. 1d is a second display diagram of the mobile terminal according to the embodiment of the present disclosure. Taking an ambient light sensor for collecting the primary color luminous intensity of R, G, B in the ambient light as an example, if the screen brightness is small, the influence range of the ambient light sensor on collection is smaller; if the screen brightness is larger, the influence range of the screen brightness influencing the ambient light sensor to collect is larger, so that before the step of controlling the display screen to display a frame of target preset image, the method further comprises the following steps of:
(1) and determining a target preset image corresponding to the current screen brightness from the preset image group according to the preset mapping relation.
When a preset image in the preset image group needs to be displayed, a preset image corresponding to the screen brightness can be determined according to the screen brightness of the current display screen, and the preset image is used as a target preset image. The target preset image may be a portion close to the ambient light sensor and may display a solid black color, and each preset image in the preset image group is different from other preset images in the portion displaying the solid black color, that is, as shown in fig. 1c and 1 d.
In some embodiments, the step of displaying a frame of target preset image on the display screen includes:
(1) acquiring display information of the target preset image;
(2) taking the display information of the target preset image as the display information of the next frame image;
(3) and when the next frame image is loaded, displaying a target preset image on the display screen according to the display information of the target preset image.
The display information includes the position of each pixel in the target preset image and the color or gray scale to be displayed by the pixel, and a certain frame of image corresponding to the pixel can be displayed in the display screen through the display information. The display information of the target preset image may be stored in a memory in advance. The next frame image is currently displayed as a frame image next to the current frame. When the display time of the next frame is reached, the display information of the next frame image needs to be loaded in order to display the next frame image, and the display information of the target preset image can be loaded and displayed on the display screen.
In some embodiments, the step of using the display information of the target preset image as the display information of the next frame image includes:
(1.1) acquiring display time sequence information of display content, and determining a next frame of image according to the display time sequence information;
and (1.2) acquiring the display information of the next frame of image, and replacing the display information of the next frame of image with the display information of the target preset image.
The display sequence information can be used for determining the display sequence of each frame of image when the display screen displays, and the display sequence can be determined by marking the sequence number of each frame of image. When the display information of the next frame image is acquired, the display information in which the next frame image is stored may be replaced with the display information of the target preset image, and the display information of the full target preset image may be stored in the storage location of the display information of the next frame image.
And 104, controlling the ambient light sensor to acquire a second ambient light intensity value when the target preset image is displayed on the display screen.
When the target preset image is detected to be displayed on the display screen, the ambient light sensor can be triggered to collect the ambient light intensity again, the ambient light sensor can be triggered to detect the ambient light intensity actively, or the ambient light intensity is detected actively when the ambient light sensor is preset to display any preset image in the preset image group on the display screen, and the second ambient light intensity value of the collected point is the ambient light intensity value which is not influenced by the display of the display screen, namely the actual ambient light intensity value.
And 105, determining an ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
The ambient light influence value when the display screen displays can be determined according to the first ambient light intensity value collected when the display screen displays the influence and the second ambient light intensity value collected when the display screen displays the influence.
In some embodiments, the step of determining the ambient light impact value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value comprises:
(1) and determining the difference value between the first ambient light intensity value and the second ambient light intensity value as the ambient light influence value of the current screen brightness.
Wherein a difference between the first ambient light intensity value and the second ambient light intensity value may be determined as an ambient light influence value of the current screen brightness.
In some embodiments, after the step of determining the ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value, the method further includes:
(1) if an ambient light detection instruction is received under the current screen brightness, controlling the ambient light sensor to acquire a third ambient light intensity value;
(2) determining an actual ambient light intensity value according to the third ambient light intensity value and the ambient light influence value;
(3) determining a screen brightness value according to the actual environment light intensity value;
(4) and adjusting the brightness of the display screen according to the screen brightness value.
After the ambient light influence value of the current screen brightness is determined, if the ambient light detection instruction is received again under the current screen brightness, the ambient light sensor can be directly controlled to collect the ambient light, and then a third ambient light intensity value is determined. And determining an actual ambient light intensity value according to the third ambient light intensity value and the ambient light influence value. Therefore, the screen brightness value is determined according to the actual environment light intensity value, and then the screen brightness is adjusted according to the determined screen brightness value.
In some embodiments, the step of determining an actual ambient light intensity value from the third ambient light intensity value and the ambient light impact value comprises:
(1.1) determining a difference between the third ambient light intensity value and the ambient light impact value as an actual ambient light intensity value.
Wherein the difference between the third ambient light intensity value and the ambient light impact value may be determined as the actual ambient light intensity value.
The ambient light detection method provided by the embodiment of the application comprises the following steps: determining whether the display screen is in a working state or not according to the received ambient light detection instruction; if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value; displaying a frame of target preset image on the display screen; when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value; determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value. The ambient light influence value when the display screen emits light is determined according to the collected ambient light intensity values twice by collecting the ambient light intensity value when the screen displays the target preset image once and the ambient light intensity value when the screen displays the target preset image once.
In some embodiments, as shown in fig. 2, there is provided an ambient light detection method comprising:
step 201, determining whether the display screen is in a working state according to the received ambient light detection instruction.
The ambient light detection instruction is used for instructing the ambient light sensor to detect the light intensity of the ambient light. The detection frequency of the ambient light sensor may be determined in advance, for example, the ambient light intensity of the environment in which the mobile terminal is located is detected once at intervals of 5 s. Or when the display screen is switched from the screen-off state to the screen-on state, the ambient light is triggered to be acquired, and the specific trigger condition can be set arbitrarily, which is not limited here.
Specifically, the working state of the display screen, that is, the state of the display screen when being displayed, that is, the bright screen state, may be a mode of determining whether the display screen is in the working state, that is, a mode of detecting a parameter representing the state of the display screen. For example, if the parameter of the display screen in the operating state is set to 1 and the parameter in the non-operating state is set to 0, it can be determined whether the display screen is currently in the operating state by reading the parameter.
In addition, the manner of determining whether the display screen is in the working state may be to determine whether a touch operation of the user on the display screen is received or not or whether a physical key arranged on the mobile terminal housing is pressed within a period of time from the reception of the ambient light detection instruction, so as to determine whether the current state of the display screen is in the working state.
Step 202, if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value.
If it is detected in step 201 that the current state of the display screen is the working state, it may be determined that the display screen is displaying, and the ambient light sensor may be controlled to collect a current ambient light intensity value at a time, where the first ambient light intensity value collected this time is an ambient light intensity value affected by the light intensity of the display screen.
Specifically, when the ambient light sensor performs the collection, the current ambient light intensity value can be determined according to the luminous intensities of the three primary colors by collecting R, G, B the luminous intensities of the three primary colors. The current ambient light intensity value may also be determined from the collected light sensitive data, for example, tissue changes in the light sensitive elements result in changes in the collected light sensitive data. After the ambient light sensor determines the first ambient light intensity value, the first ambient light intensity value can be sent to the processor to complete one-time collection of ambient light.
And 203, determining a target preset image corresponding to the current screen brightness from the preset image group according to the preset mapping relation.
When a preset image in the preset image group needs to be displayed, a preset image corresponding to the screen brightness can be determined according to the screen brightness of the current display screen, and the preset image is used as a target preset image. Wherein the target preset image may display a solid black color for a portion close to the ambient light sensor, and each preset image in the preset image group is different from other preset images in that the portion displaying the solid black color is different
And step 204, acquiring display information of the target preset image.
The display information includes the position of each pixel in the target preset image and the color or gray scale to be displayed by the pixel, and a certain frame of image corresponding to the pixel can be displayed in the display screen through the display information.
And step 205, acquiring display time sequence information of the display content, and determining the next frame of image according to the display time sequence information.
The display sequence information can be used for determining the display sequence of each frame of image when the display screen displays, and the display sequence can be determined by marking the sequence number of each frame of image.
And step 206, acquiring the display information of the next frame of image, and replacing the display information of the next frame of image with the display information of the target preset image.
And step 207, displaying the target preset image on the display screen according to the display information of the target preset image when the next frame image is loaded.
When the display information of the next frame image is acquired, the display information in which the next frame image is stored may be replaced with the display information of the target preset image, and the display information of the full target preset image may be stored in the storage location of the display information of the next frame image.
And 208, controlling the ambient light sensor to acquire a second ambient light intensity value when the target preset image is displayed on the display screen.
When the target preset image is detected to be displayed on the display screen, the ambient light sensor can be triggered to collect the ambient light intensity again, the ambient light sensor can be triggered to detect the ambient light intensity actively, or the ambient light intensity is detected actively when the ambient light sensor is preset to display any preset image in the preset image group on the display screen, and the second ambient light intensity value of the collected point is the ambient light intensity value which is not influenced by the display of the display screen, namely the actual ambient light intensity value.
Step 209, determining the difference between the first ambient light intensity value and the second ambient light intensity value as the ambient light influence value of the current screen brightness.
Wherein a difference between the first ambient light intensity value and the second ambient light intensity value may be determined as an ambient light influence value of the current screen brightness.
And step 210, if the ambient light detection instruction is received under the current screen brightness, controlling the ambient light sensor to acquire a third ambient light intensity value.
After the ambient light influence value of the current screen brightness is determined, if the ambient light detection instruction is received again under the current screen brightness, the ambient light sensor can be directly controlled to collect the ambient light, and then a third ambient light intensity value is determined.
Step 211, determining the difference between the third ambient light intensity value and the ambient light influence value as the actual ambient light intensity value.
Wherein the actual ambient light intensity value may be determined according to the third ambient light intensity value and the ambient light influence value.
Step 212, determining the screen brightness value according to the actual environment light intensity value.
The screen brightness value can be determined according to the actual environment light intensity value, and then the screen brightness is adjusted according to the determined screen brightness value.
And step 213, adjusting the brightness of the display screen according to the screen brightness value.
The ambient light detection method provided by the embodiment of the application comprises the following steps: determining whether the display screen is in a working state or not according to the received ambient light detection instruction; if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value; displaying a frame of target preset image on the display screen; when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value; determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value. The ambient light influence value when the display screen emits light is determined according to the collected ambient light intensity values twice by collecting the ambient light intensity value when the screen displays the target preset image once and the ambient light intensity value when the screen displays the target preset image once.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an ambient light detection device according to an embodiment of the present application. The ambient light detection device includes: a first determination module 31, a first control module 32, a display module 33, a second control module 34, a second determination module 35, and the like.
The first determining module 31 is configured to determine whether the display screen is in a working state according to the received ambient light detection instruction.
The first control module 32 is configured to control the ambient light sensor to acquire a first ambient light intensity value if the display screen is in a working state.
And the display module 33 is configured to display a frame of target preset image on the display screen.
And the second control module 34 is configured to control the ambient light sensor to acquire a second ambient light intensity value when the target preset image is displayed on the display screen.
A second determining module 35, configured to determine an ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
In some embodiments, the ambient light detection device further comprises:
the third control module is used for controlling the ambient light sensor to acquire a third ambient light intensity value if an ambient light detection instruction is received under the current screen brightness;
a third determining module, configured to determine an actual ambient light intensity value according to the third ambient light intensity value and the ambient light influence value;
the fourth determining submodule is used for determining the screen brightness value according to the actual environment light intensity value;
and the adjusting module is used for adjusting the brightness of the display screen according to the screen brightness value.
Based on the above method, the present invention also provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the ambient light detection method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a block diagram showing a specific structure of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the ambient light detection method, the storage medium, and the terminal provided in the above embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be configured to store software programs and modules, such as program instructions/modules corresponding to the ambient light detection method, the ambient light detection apparatus, the storage medium, and the mobile terminal in the foregoing embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so as to implement a function of chip mutual identification. Memory 120 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 a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 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 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content for displaying the shot may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
determining whether the display screen is in a working state or not according to the received ambient light detection instruction;
if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value;
displaying a frame of target preset image on the display screen;
when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value;
determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
In some embodiments, after said determining an ambient light impact value for a current screen brightness based on said first ambient light intensity value and said second ambient light intensity value, processor 380 may further execute instructions to:
if an ambient light detection instruction is received under the current screen brightness, controlling the ambient light sensor to acquire a third ambient light intensity value;
determining an actual ambient light intensity value according to the third ambient light intensity value and the ambient light influence value;
determining a screen brightness value according to the actual environment light intensity value;
and adjusting the brightness of the display screen according to the screen brightness value.
In some embodiments, in determining an actual ambient light intensity value from the third ambient light intensity value and the ambient light impact value, processor 380 may further execute instructions to:
determining a difference between the third ambient light intensity value and the ambient light impact value as an actual ambient light intensity value.
In some embodiments, in determining the ambient light impact value for the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value, processor 380 may further execute instructions to:
and determining the difference value between the first ambient light intensity value and the second ambient light intensity value as the ambient light influence value of the current screen brightness.
In some embodiments, before controlling the display screen to display one frame of the target preset image, the processor 380 may further execute the following instructions:
and determining a target preset image corresponding to the current screen brightness from the preset image group according to the preset mapping relation.
In some embodiments, when displaying a frame of target preset image on the display screen, the processor 380 may further execute the following instructions:
acquiring display information of the target preset image;
taking the display information of the target preset image as the display information of the next frame image;
and when the next frame image is loaded, displaying a target preset image on the display screen according to the display information of the target preset image.
In some embodiments, when the display information of the target preset image is taken as the display information of the next frame image, the processor 380 may further execute the following instructions:
acquiring display time sequence information of display content, and determining a next frame of image according to the display time sequence information;
and acquiring the display information of the next frame of image, and replacing the display information of the next frame of image with the display information of the target preset image.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above detailed description is provided for the ambient light detection method, the ambient light detection device, the storage medium, and the mobile terminal according to the embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and the implementation of the present application, and the description of the above embodiments is only used to help understanding the technical solutions and the core ideas of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. An ambient light detection method is applied to a mobile terminal, and is characterized in that the mobile terminal is provided with a display screen and an ambient light sensor, the display screen comprises a display area and a non-display area, the non-display area is positioned on the ambient light sensor, and the method comprises the following steps:
determining whether the display screen is in a working state or not according to the received ambient light detection instruction;
if the display screen is in a working state, controlling the ambient light sensor to acquire a first ambient light intensity value;
displaying a frame of target preset image on the display screen;
when the target preset image is displayed on the display screen, controlling the ambient light sensor to acquire a second ambient light intensity value;
determining an ambient light impact value of a current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
2. The ambient light detection method according to claim 1, further comprising, after the step of determining the ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value:
if an ambient light detection instruction is received under the current screen brightness, controlling the ambient light sensor to acquire a third ambient light intensity value;
determining an actual ambient light intensity value according to the third ambient light intensity value and the ambient light influence value;
determining a screen brightness value according to the actual environment light intensity value;
and adjusting the brightness of the display screen according to the screen brightness value.
3. The method of detecting ambient light according to claim 2, wherein the step of determining an actual ambient light intensity value from the third ambient light intensity value and the ambient light contribution value comprises:
determining a difference between the third ambient light intensity value and the ambient light impact value as an actual ambient light intensity value.
4. The method of claim 1, wherein the step of determining the ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value comprises:
and determining the difference value between the first ambient light intensity value and the second ambient light intensity value as the ambient light influence value of the current screen brightness.
5. The ambient light detection method according to claim 1, further comprising, before the step of controlling the display screen to display a frame of target preset image:
and determining a target preset image corresponding to the current screen brightness from the preset image group according to the preset mapping relation.
6. An ambient light detection method according to any one of claims 1 to 5, wherein the step of displaying a frame of target preset image on the display screen includes:
acquiring display information of the target preset image;
taking the display information of the target preset image as the display information of the next frame image;
and when the next frame image is loaded, displaying a target preset image on the display screen according to the display information of the target preset image.
7. The ambient light detection method according to claim 6, wherein the step of taking the display information of the target preset image as the display information of the next frame image includes:
acquiring display time sequence information of display content, and determining a next frame of image according to the display time sequence information;
and acquiring the display information of the next frame of image, and replacing the display information of the next frame of image with the display information of the target preset image.
8. The utility model provides an environment light detection device, is applied to mobile terminal, its characterized in that, mobile terminal has display screen and environment light sensor, the display screen is including display area and non-display area, non-display area is located environment light sensor, the device includes:
the first determining module is used for determining whether the display screen is in a working state or not according to the received ambient light detection instruction;
the first control module is used for controlling the ambient light sensor to acquire a first ambient light intensity value if the display screen is in a working state;
the display module is used for displaying a frame of target preset image on the display screen;
the second control module is used for controlling the ambient light sensor to acquire a second ambient light intensity value when the target preset image is displayed on the display screen;
and the second determining module is used for determining the ambient light influence value of the current screen brightness based on the first ambient light intensity value and the second ambient light intensity value.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to perform the ambient light detection method according to any one of claims 1 to 7.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the memory having stored therein a computer program, the processor being adapted to execute the ambient light detection method according to any of claims 1 to 7 by calling the computer program stored in the memory.
CN202011103407.9A 2020-10-15 2020-10-15 Ambient light detection method and device, storage medium and mobile terminal Active CN112229507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011103407.9A CN112229507B (en) 2020-10-15 2020-10-15 Ambient light detection method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011103407.9A CN112229507B (en) 2020-10-15 2020-10-15 Ambient light detection method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112229507A true CN112229507A (en) 2021-01-15
CN112229507B CN112229507B (en) 2023-07-18

Family

ID=74117318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011103407.9A Active CN112229507B (en) 2020-10-15 2020-10-15 Ambient light detection method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112229507B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968601A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus
CN113551768A (en) * 2021-07-14 2021-10-26 北京小米移动软件有限公司 Method and device for determining ambient brightness
CN113763856A (en) * 2021-07-19 2021-12-07 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium
CN113808030A (en) * 2021-05-31 2021-12-17 荣耀终端有限公司 Noise monitoring method, electronic equipment and chip system
CN114461093A (en) * 2021-08-19 2022-05-10 荣耀终端有限公司 Detection method of ambient light, electronic equipment, chip system and storage medium
CN116682367A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Screen ambient light detection method, electronic device, medium and program product
CN113551768B (en) * 2021-07-14 2024-04-23 北京小米移动软件有限公司 Method and device for determining ambient brightness

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462339A (en) * 2015-09-28 2017-02-22 华为技术有限公司 Terminal and method for detecting ambient brightness
CN106768311A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 A kind of environment light detection method, device and terminal
CN107193983A (en) * 2017-05-27 2017-09-22 北京小米移动软件有限公司 Image search method and device
CN107945747A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
US20180350323A1 (en) * 2017-06-01 2018-12-06 Qualcomm Incorporated Adjusting color palettes used for displaying images on a display device based on ambient light levels
CN109238460A (en) * 2018-08-24 2019-01-18 维沃移动通信有限公司 A kind of method and terminal device obtaining ambient light intensity
WO2019165938A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Image collection method and apparatus, mobile terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462339A (en) * 2015-09-28 2017-02-22 华为技术有限公司 Terminal and method for detecting ambient brightness
CN106768311A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 A kind of environment light detection method, device and terminal
CN107193983A (en) * 2017-05-27 2017-09-22 北京小米移动软件有限公司 Image search method and device
US20180350323A1 (en) * 2017-06-01 2018-12-06 Qualcomm Incorporated Adjusting color palettes used for displaying images on a display device based on ambient light levels
CN107945747A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
WO2019165938A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Image collection method and apparatus, mobile terminal and storage medium
CN109238460A (en) * 2018-08-24 2019-01-18 维沃移动通信有限公司 A kind of method and terminal device obtaining ambient light intensity

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968601A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus
CN111968601B (en) * 2020-08-28 2022-03-01 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus
CN113808030A (en) * 2021-05-31 2021-12-17 荣耀终端有限公司 Noise monitoring method, electronic equipment and chip system
CN113808030B (en) * 2021-05-31 2022-09-30 荣耀终端有限公司 Noise monitoring method, electronic equipment and chip system
CN113551768A (en) * 2021-07-14 2021-10-26 北京小米移动软件有限公司 Method and device for determining ambient brightness
CN113551768B (en) * 2021-07-14 2024-04-23 北京小米移动软件有限公司 Method and device for determining ambient brightness
CN113763856B (en) * 2021-07-19 2022-09-13 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium
WO2023000804A1 (en) * 2021-07-19 2023-01-26 荣耀终端有限公司 Method and apparatus for determining ambient light intensity and storage medium
CN113763856A (en) * 2021-07-19 2021-12-07 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium
CN114461093A (en) * 2021-08-19 2022-05-10 荣耀终端有限公司 Detection method of ambient light, electronic equipment, chip system and storage medium
CN114461093B (en) * 2021-08-19 2023-01-20 荣耀终端有限公司 Detection method of ambient light, electronic equipment, chip system and storage medium
CN116682367A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Screen ambient light detection method, electronic device, medium and program product
CN116682367B (en) * 2022-10-14 2024-03-29 荣耀终端有限公司 Screen ambient light detection method, electronic equipment and medium

Also Published As

Publication number Publication date
CN112229507B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN107966209B (en) Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus
US20210181923A1 (en) Always on Display Method and Electronic Device
CN112229507B (en) Ambient light detection method and device, storage medium and mobile terminal
CN109271014B (en) Method and equipment for adjusting screen brightness
CN111176602B (en) Picture display method and device, storage medium and intelligent device
CN110750189B (en) Icon display method and device
CN110881212B (en) Method and device for saving power of equipment, electronic equipment and medium
CN109493821B (en) Screen brightness adjusting method and device and storage medium
CN108984145B (en) Brightness adjusting method and electronic equipment
CN108845785B (en) Display method and terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN111131612B (en) Screen color temperature control method and device, storage medium and mobile terminal
CN111475238B (en) Page processing method and device, electronic equipment and storage medium
CN110471524B (en) Display control method and terminal equipment
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN109729280A (en) A kind of image processing method and mobile terminal
CN114092452A (en) Method and device for enhancing image visual effect, storage medium and terminal equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN113676663B (en) Camera white balance adjustment method and device, storage medium and terminal equipment
CN113409732B (en) Drive circuit and drive method of drive circuit
CN111182153B (en) System language setting 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