CN113132532A - Ambient light intensity calibration method and device and electronic equipment - Google Patents

Ambient light intensity calibration method and device and electronic equipment Download PDF

Info

Publication number
CN113132532A
CN113132532A CN201911369571.1A CN201911369571A CN113132532A CN 113132532 A CN113132532 A CN 113132532A CN 201911369571 A CN201911369571 A CN 201911369571A CN 113132532 A CN113132532 A CN 113132532A
Authority
CN
China
Prior art keywords
ambient light
light intensity
area
light sensor
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
CN201911369571.1A
Other languages
Chinese (zh)
Other versions
CN113132532B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911369571.1A priority Critical patent/CN113132532B/en
Publication of CN113132532A publication Critical patent/CN113132532A/en
Application granted granted Critical
Publication of CN113132532B publication Critical patent/CN113132532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • 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/02Details
    • G01J1/0295Constructional arrangements for removing other types of optical noise or for performing calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/22Illumination; Arrangements for improving the visibility of characters on dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides electronic equipment with a bendable screen and an ambient light intensity calibration method and device applied to the electronic equipment. The electronic equipment comprises a display screen, and a first ambient light sensor and a second ambient light sensor which are arranged below the display screen. The method comprises the following steps: acquiring first detection ambient light intensity output by the first ambient light sensor and second detection ambient light intensity output by the second ambient light sensor when the electronic equipment is in a bent state; and respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area, and determining the real environment light intensity according to the processing result. The application generally can improve the detection precision of the ambient light of the electronic equipment in the bending state.

Description

Ambient light intensity calibration method and device and electronic equipment
Technical Field
The present application relates to the field of ambient light detection technologies, and in particular, to an ambient light intensity calibration method, an ambient light intensity calibration device, an electronic device, and a computer-readable storage medium.
Background
Currently, when the terminal automatically adjusts the screen brightness, the terminal generally adjusts the screen brightness according to a linear relationship between the ambient brightness and the screen brightness, wherein the ambient brightness is detected by a light sensor disposed in the terminal. In the related art, the light sensor is usually disposed at the top of the terminal display screen, i.e., below the transparent glass in the shape of a small circular hole near the receiver of the terminal, and light passes through the transparent glass and can directly reach the light sensor, so that the light sensor can directly sense the change of the ambient light brightness. The electronic equipment can control the brightness of the display screen according to the detected brightness of the external environment light, so that the brightness of the display screen is adaptive to the external environment.
However, for a terminal with a full-screen display screen, since there is no position on the top of the display screen where a Light sensor can be placed, and the ambient Light sensor is hidden under an Organic Light Emitting Diode (OLED) display screen, since the self-luminescence of the OLED pixels may interfere with the detection of the ambient Light device, and affect the detection accuracy of the ambient Light device, the intensity of the ambient Light detected by the ambient Light sensor needs to be calibrated.
For example, in the prior art, the screen interference calibration processing is performed on the ambient light collected by a single ambient light sensor to obtain the real ambient light, however, when the display screen is deformed or the electronic device is bent to a certain state for use, the screen interference area changes, and thus the accuracy of the ambient light detected by the electronic device after bending is low.
Disclosure of Invention
The embodiment of the application discloses electronic equipment capable of improving detection precision of ambient light of the electronic equipment in a bent state, and an ambient light intensity calibration method and device applied to the electronic equipment.
In a first aspect, an embodiment of the present application discloses an ambient light intensity calibration method, which is applied to an electronic device with a bendable screen, where the electronic device includes a display screen, and a first ambient light sensor and a second ambient light sensor that are disposed below the display screen; the method comprises the following steps: acquiring first detection ambient light intensity output by the first ambient light sensor and second detection ambient light intensity output by the second ambient light sensor when the electronic equipment is in a bent state; and respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area, and determining the real environment light intensity according to the processing result.
The method comprises the steps that whether the electronic equipment is bent or not and the bending angle of the electronic equipment can be identified through an angle sensor arranged at the bending area of the electronic equipment.
In the ambient light intensity calibration method in the embodiment of the application, a first detected ambient light intensity output by the first ambient light sensor and a second detected ambient light intensity output by the second ambient light sensor are obtained when the electronic device is in a bent state; and respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area, and determining the real environment light intensity according to the processing result, so that the environment light intensity calibration method is suitable for electronic equipment with a bendable screen, and the detection precision of the environment light of the electronic equipment after bending is improved.
According to the first aspect, in some possible implementation manners, the calibrating the first detection ambient light intensity and the second detection ambient light intensity according to the bent predicted screen interference area, and determining the real ambient light intensity according to the processing result includes: determining a first prediction screen interference area and a second prediction screen interference area; the first prediction screen interference area is an area which is possibly corresponding to the first ambient light sensor after the electronic equipment is bent; the second prediction screen interference area is an area which is possibly corresponding to the second ambient light sensor after the electronic equipment is bent;
determining a first screen interference value corresponding to the first prediction screen interference area according to the display content of the first prediction screen interference area, and determining a second screen interference value corresponding to the second prediction screen interference area according to the display content of the second prediction screen interference area;
calculating a difference between the first detected ambient light intensity and the first screen disturbance value to obtain a first calibrated ambient light intensity, and calculating a difference between the second detected ambient light intensity and the second screen disturbance value to obtain a second calibrated ambient light intensity;
and when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold value, outputting the first calibrated ambient light intensity, the second calibrated ambient light intensity or the average value of the first calibrated ambient light intensity and the second calibrated ambient light intensity as the real ambient light intensity.
According to the first aspect, in some possible implementation manners, the calibrating the first detected ambient light intensity and the second detected ambient light intensity according to the bent predicted screen interference area, and determining the real ambient light intensity according to the processing result, further includes: and when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is not less than the preset threshold value, re-determining the first prediction screen interference area and the second prediction screen interference area. Thus, the detection accuracy of the ambient light can be further improved.
According to the first aspect, in some possible implementations, in order to improve the accuracy and speed of determining the first prediction screen interference region and the second prediction screen interference region, the first prediction screen interference region and the second prediction screen interference region are sequentially determined in a successive approximation manner with a first preset region and a second preset region as starting points, respectively; the first preset area is an area corresponding to the first ambient light sensor when the electronic equipment is not bent; the second preset area is an area corresponding to the second ambient light sensor when the electronic device is not bent.
Wherein, the successive approximation mode is as follows: determining the first prediction screen interference area by taking a first preset step length as a unit in sequence from the starting point of the first preset area to a first preset direction; and determining the second prediction screen interference area by taking the second preset area as a starting point and sequentially taking a second preset step length as a unit towards a second preset direction.
In some embodiments, the first preset direction is determined by a relative position of a bending region of the electronic device and the first ambient light sensor; the second preset direction is determined by the relative position of the bending area of the electronic device and the second ambient light sensor.
In some embodiments, the ambient light intensity calibration method further comprises: acquiring first detected ambient light intensity output by the first ambient light sensor or second detected ambient light intensity output by the second ambient light sensor when the electronic equipment is not bent; calibrating the first detection environment light intensity or the second detection environment light intensity according to the screen interference area when the screen is not bent, and determining the real environment light intensity according to the processing result; the screen interference area when the electronic device is not bent is an area corresponding to the first ambient light sensor or an area corresponding to the second ambient light sensor when the electronic device is not bent. Therefore, the detection accuracy of the ambient light of the electronic equipment when the electronic equipment is not bent can be improved, and the calibration method is simple.
In a second aspect, an embodiment of the present application discloses an ambient light intensity calibration device, which is applied to an electronic device with a bendable screen, where the electronic device includes a display screen, and a first ambient light sensor and a second ambient light sensor that are disposed below the display screen; the ambient light intensity calibration device comprises an acquisition module and a calibration module. The acquisition module is used for acquiring first detected ambient light intensity output by the first ambient light sensor and second detected ambient light intensity output by the second ambient light sensor; the calibration module is used for respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area, and determining the real environment light intensity according to the processing result.
In some embodiments, the first calibration module includes a determination unit, a calculation unit, and a determination unit. The determining unit is used for determining a first prediction screen interference area and a second prediction screen interference area; the first prediction screen interference area is an area which is possibly corresponding to the first ambient light sensor after the electronic equipment is bent; the second prediction screen interference area is an area which the second ambient light sensor may correspond to after the electronic device is bent. The determining unit is further used for determining a first screen interference value corresponding to the first prediction screen interference area according to the display content of the first prediction screen interference area, and determining a second screen interference value corresponding to the second prediction screen interference area according to the display content of the second prediction screen interference area.
The calculating unit is used for calculating a difference value between the first detected ambient light intensity and the first screen interference value to obtain a first calibrated ambient light intensity, and calculating a difference value between the second detected ambient light intensity and the second screen interference value to obtain a second calibrated ambient light intensity.
The judgment unit is used for outputting the first calibrated ambient light intensity, the second calibrated ambient light intensity or the average value of the first calibrated ambient light intensity and the second calibrated ambient light intensity as the real ambient light intensity when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold value.
In some embodiments, the determining unit is further configured to re-determine the first predicted screen interference area and the second predicted screen interference area when a difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is not less than a preset threshold.
In some embodiments, a first preset area and a second preset area are respectively used as a starting point, and the first prediction screen interference area and the second prediction screen interference area are sequentially determined in a successive approximation manner; the first preset area is an area corresponding to the first ambient light sensor when the electronic equipment is not bent; the second preset area is an area corresponding to the second ambient light sensor when the electronic device is not bent.
In some embodiments, the successive approximation is by: determining the first prediction screen interference area by taking a first preset step length as a unit in sequence from the starting point of the first preset area to a first preset direction; and determining the second prediction screen interference area by taking the second preset area as a starting point and sequentially taking a second preset step length as a unit towards a second preset direction.
In some embodiments, the first preset direction is determined by a relative position of a bending region of the electronic device and the first ambient light sensor; the second preset direction is determined by the relative position of the bending area of the electronic device and the second ambient light sensor.
In some embodiments, the obtaining module is further configured to obtain a first detected ambient light intensity output by the first ambient light sensor or a second detected ambient light intensity output by the second ambient light sensor when the electronic device is in an unbent state; the calibration module is further used for calibrating the first detection environment light intensity or the second detection environment light intensity according to the screen interference area when the screen is not bent, and determining the real environment light intensity according to the processing result; the screen interference area when the electronic device is not bent is an area corresponding to the first ambient light sensor or an area corresponding to the second ambient light sensor when the electronic device is not bent.
In a third aspect, an embodiment of the present application discloses an electronic device, which includes a display screen, a processor, a memory, and a first ambient light sensor and a second ambient light sensor disposed below the display screen; the processor is coupled to the memory, the first ambient light sensor, the second ambient light sensor, and the display screen, respectively; the processor is configured to perform the method described in the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, where a computer program is stored, where the computer program includes at least one piece of code, and the at least one piece of code is executable by a computer to control the computer to perform the method described in any one of the first aspect and the first possible implementation manner.
In a fifth aspect, an embodiment of the present application discloses a computer program, which is configured to, when executed by a computer, perform the method described in the first aspect and any possible implementation manner of the first aspect. The program may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
In order to explain the technical solutions in the embodiments or background art of the present application, the drawings used in the embodiments or background art of the present application will be described below.
Fig. 1 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Fig. 2 is a front view of an electronic device in an embodiment of the present application.
Fig. 3 is a cross-sectional view of an electronic device in an embodiment of the present application.
Fig. 4 is a schematic view of an electronic device in a bent state according to an embodiment of the present application.
Fig. 5 is a flowchart of an ambient light intensity calibration method according to an embodiment of the present application.
Fig. 6 is a detailed flowchart of step S12 in fig. 5.
Fig. 7 is a flowchart of an ambient light intensity calibration method according to another embodiment of the present application.
Fig. 8 is a functional block diagram of an ambient light intensity calibration apparatus according to an embodiment of the present application.
FIG. 9 is a sub-functional block diagram of the calibration block of FIG. 8.
Detailed Description
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone.
The application provides an electronic device, an ambient light intensity calibration method and an ambient light intensity calibration device applied to the electronic device. The ambient light intensity calibration method and the ambient light intensity calibration device can perform different calibration treatments on the ambient light intensity detected by the ambient light sensor according to whether the electronic equipment is bent or not so as to filter self-luminous interference of a screen, thereby improving the ambient light detection precision of the electronic equipment in a bent state.
The electronic device may be any electronic product such as a smart phone, a smart watch, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and a notebook computer, which is not limited in this embodiment.
An exemplary electronic device 100 provided in the following embodiments of the present application is described below in conjunction with fig. 1. Fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.
Wherein the controller may be a neural center and a command origin of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the electronic device 100.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also communicate audio signals to the wireless communication module 160 through the PCM interface, enabling the function of answering a phone call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves. Illustratively, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 may implement display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute instructions to generate or change display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) -1, MPEG-2, MPEG-3, MPEG-4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, data such as music, photos, video, etc. are stored in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 100 to execute the ambient light intensity calibration method provided in some embodiments of the present application, and various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage area may also store one or more application programs (e.g., gallery, contacts, etc.), etc. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
In some embodiments of the application, the internal memory 121 may be configured to store a plurality of preset scenes, a preset environmental sound in each scene, and an association relationship between each scene and a corresponding preset environmental sound in the scene.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
Touch sensor 180K, which may also be referred to as a touch panel or touch sensitive surface. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
In some embodiments, the electronic device 100 may detect a motion gesture performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and so on. In some embodiments, the electronic device 100 may detect non-touch gesture operations through the camera 193 (e.g., 3D camera, depth camera).
Referring to fig. 2 and fig. 3, fig. 2 is a front view of an electronic device 100 according to an embodiment of the present disclosure; fig. 3 is a cross-sectional view of an electronic device 100 according to an embodiment of the present application. As shown in fig. 2 and 3, in the embodiment of the present application, the electronic device 100 includes two ambient light sensors 180L. Of course, the electronic device 100 may further include more ambient light sensors 180L, which is not limited herein. For convenience of description, the two ambient light sensors 180L will be hereinafter referred to as a first ambient light sensor 180L1 and a second ambient light sensor 180L2, respectively. The first and second ambient light sensors 180L1 and 180L2 are both disposed below the display screen 194. It is understood that the display screen 194 includes opposing display and non-display surfaces. The lower side of the display screen 194 refers to a non-display surface of the display screen 194.
In the embodiment of the present application, the electronic device 100 further includes a circuit board 101, and the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are both disposed on the circuit board 101. The circuit board 101, also called a motherboard in the electronic device 100, is one of the most basic and important components of the electronic device 100, and various control chips (such as the processor 110 and the I/O control chip) and various electronic components (such as various chips, resistors, capacitors, etc.) are mounted on the circuit board 101 and have wires distributed thereon. The first ambient light sensor 180L1 and the second ambient light sensor 180L2 may be electrically connected to the processor 110 disposed on the circuit board 101 through specific wires.
For example, in practical operation, the first ambient light sensor 180L1 and the second ambient light sensor 180L2 may be placed under the display screen 194, and a protective film is cut under the display screen 194 to ensure that the display screen 194 has good light transmittance. In addition, the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are disposed on the circuit board 101 with a distance from the display screen 194 controlled within a predetermined distance (e.g., 0.8mm) in consideration of force and wiring, so that the viewing angle of the ambient light sensors can be controlled while preventing external force from being squeezed.
Referring to fig. 2 again, the display screen 194 has a bending region 102. The electronic device 100 can be bent along the bending region 102. That is, when the user does not use the electronic apparatus 100, it may be folded to a closed state for convenient carrying; when the user needs to use the electronic device 100, the electronic device can be unfolded to an open state to increase the use area of the display screen.
In this embodiment, the display screen 194 is an OLED flexible display screen, and since the self-luminescence of the OLED pixels may affect the detection accuracy of the ambient light, the intensity of the ambient light detected by the ambient light sensor 180L needs to be calibrated. However, the calibration method in the prior art is based on the display screen 194 being in an unbent state, and is not suitable when the display screen 194 is deformed or the electronic device 100 is bent to a certain state (as shown in fig. 4), which results in a low accuracy of the ambient light detected by the electronic device 100 after bending. Therefore, it is desirable to provide an ambient light intensity calibration method according to an embodiment of the present invention, which can perform different calibration processes according to whether the electronic device 100 is bent, and further can improve the detection accuracy of the ambient light of the electronic device 100 in the bent state.
Referring to fig. 5, fig. 5 is a flowchart illustrating an ambient light intensity calibration method according to an embodiment of the present disclosure. The ambient light intensity calibration method is applied to the electronic device 100. Specifically, the ambient light intensity calibration method includes the following steps:
step S11, obtaining a first detected ambient light intensity output by the first ambient light sensor and a second detected ambient light intensity output by the second ambient light sensor when the electronic device is in a bent state.
The bending state in the embodiment of the present application may be recognized by an angle sensor (not shown) provided at the bending region 102. In other embodiments, whether the electronic device 100 is bent or not may also be detected by the plurality of pressure sensors 180A disposed at the bending region 102. For example, when the electronic device 100 is bent, the pressure sensor 180A disposed at the bending region 102 detects different pressure values due to the pressure.
Step S12, calibrating the first detection ambient light intensity and the second detection ambient light intensity according to the bent predicted screen interference area, and determining the real ambient light intensity according to the processing result.
It is understood that, when the electronic device 100 is bent, although the interference area of the display screen 194 changes with respect to the first ambient light sensor 180L1 and the second ambient light sensor 180L2, since the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are located in the same environment, the true intensity of the ambient light detected by the first ambient light sensor 180L1 and the second ambient light sensor 180L2 should be substantially the same.
The interference areas refer to areas corresponding to the first ambient light sensor 180L1 and the second ambient light sensor 180L2, respectively. By substantially the same, it is meant that the true intensities of the ambient light detected by the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are the same, or that the error of the true intensities of the ambient light detected by the first ambient light sensor 180L1 and the second ambient light sensor 180L2 is within a preset threshold range.
In other embodiments, the electronic device 100 may further include a greater number of ambient light sensors 180L, and when the electronic device 100 includes a greater number of ambient light sensors 180L, the ambient light detected by the greater number of ambient light sensors may be calibrated to obtain the actual ambient light intensity.
In the embodiment of the present application, by obtaining the first detection environment light intensity output by the first environment light sensor 180L1 and the second detection environment light intensity output by the second environment light sensor 180L2 of the electronic device in the bent state, the first detection environment light intensity and the second detection environment light intensity are respectively calibrated to determine the real environment light intensity according to the predicted screen interference area after bending, so that the detection accuracy of the environment light after bending of the electronic device 100 can be improved.
Specifically, referring to fig. 6, fig. 6 is a flowchart illustrating a detailed process of step S12 in fig. 5. In one embodiment, step S12 includes the following steps:
in step S121, a first prediction screen interference area and a second prediction screen interference area are determined. The first prediction screen interference area is an area which is possibly corresponding to the first ambient light sensor after the electronic equipment is bent; the second prediction screen interference area is an area which the second ambient light sensor may correspond to after the electronic device is bent.
It is understood that, when the electronic device 100 is bent, the relative position between the display 194 and the first ambient light sensor 180L1 changes, and the relative position between the display 194 and the second ambient light sensor 180L2 also changes. That is, the screen interference areas of the display screen 194 are changed relative to the screen interference areas of the first ambient light sensor 180L1 and the second ambient light sensor 180L2, however, the screen interference areas of the display screen 194 have uncertainty each time the electronic device 100 is bent due to different deformation degrees of the display screen 194 and single difference of the display screen 194, and therefore, it is necessary to determine the predicted screen interference areas first, and then determine according to the subsequent steps, whether the predicted screen interference areas determined currently are actual screen interference areas.
In some embodiments, in order to improve the accuracy and speed of determining the first predicted screen interference region and the second predicted screen interference region, the first predicted screen interference region and the second predicted screen interference region are sequentially determined in a successive approximation manner with the first preset region and the second preset region as starting points, respectively. The first preset area is an area corresponding to the first ambient light sensor when the electronic device is not bent, and the second preset area is an area corresponding to the second ambient light sensor when the electronic device is not bent.
Wherein, the successive approximation mode is as follows: determining the first prediction screen interference area by taking a first preset step length as a unit in sequence from the starting point of the first preset area to a first preset direction; and determining the second prediction screen interference area by taking the second preset area as a starting point and sequentially taking a second preset step length as a unit towards a second preset direction. I.e. the pixels are traversed in a predetermined area with a certain step size. The first preset step length and the second preset step length may be the same or different, and may be specifically set according to an actual situation, which is not limited herein in the embodiments of the present application.
In some embodiments, the first preset direction is determined by the relative positions of the bending region 102 of the electronic device 100 and the first ambient light sensor 180L 1; the second predetermined direction is determined by the relative positions of the bending region 102 of the electronic device 100 and the second ambient light sensor 180L 2. For example, when the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are located on the same side of the bending region 102, when the electronic device 100 is bent, the first ambient light sensor 180L1 and the second ambient light sensor 180L2 have the same dislocation direction relative to the display screen 194, and thus, the first preset direction and the second preset direction are the same. For another example, when the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are respectively located at two sides of the bending region 102, when the electronic device 100 is bent, the first ambient light sensor 180L1 and the second ambient light sensor 180L2 have different dislocation directions relative to the display screen 194, and therefore, the first preset direction and the second preset direction are also different.
It is understood that the first ambient light sensor 180L1 and the second ambient light sensor 180L2 may be separate devices or may be packaged as a single device, and the specific implementation manner is not limited herein.
Step S122, determining a first screen interference value corresponding to the first prediction screen interference region according to the display content of the first prediction screen interference region, and determining a second screen interference value corresponding to the second prediction screen interference region according to the display content of the second prediction screen interference region.
The different display contents cause the luminous intensity and color of the display screen 194 to be different, and further cause the interference of the different display contents on the ambient light sensor 180L to be different and the same. Specifically, the screen interference value corresponding to the current display content may be determined according to a relationship between the display content preset in the internal memory 121 and the screen interference value. The relationship between the display content and the screen interference value may be a comparison table or a formula, which may be obtained through a large amount of experimental test data, and is not specifically limited herein.
Step S123, calculating a difference between the first detected ambient light intensity and the first screen interference value to obtain a first calibrated ambient light intensity, and calculating a difference between the second detected ambient light intensity and the second screen interference value to obtain a second calibrated ambient light intensity.
In this embodiment, the calibrated ambient light intensity can be obtained by filtering the detected ambient light intensity from the screen interference value of the display screen 194.
Step S124, determining whether a difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold; if yes, go to step S125; if not, step S121 is executed.
If the difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is not less than the preset threshold, it indicates that the currently determined first predicted screen interference region and the second predicted screen interference region are not actual interference regions, so step S121 and subsequent steps need to be re-executed until whether the difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is less than the preset threshold. Thus, the detection accuracy of the ambient light can be improved.
Step S125, when a difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold, taking the first calibrated ambient light intensity, the second calibrated ambient light intensity, or an average value of the first calibrated ambient light intensity and the second calibrated ambient light intensity as a real ambient light intensity.
When the difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than the preset threshold, it indicates that the intensities of the ambient light detected by the first ambient light sensor 180L1 and the second ambient light sensor 180L2 are substantially the same, and at this time, the first predicted screen interference area and the second predicted screen interference area may be determined to be actual screen interference areas.
Fig. 7 is a flowchart illustrating an ambient light intensity calibration method according to another embodiment of the present application. In one embodiment, the ambient light intensity calibration method further comprises the following steps.
Step S13, obtaining a first detected ambient light intensity output by the first ambient light sensor or a second detected ambient light intensity output by the second ambient light sensor when the electronic device is not bent.
When the electronic device 100 is not bent, the real ambient light intensity can be obtained by only acquiring the detected ambient light intensity output by one ambient light sensor 180L, so that the efficiency of the ambient light intensity calibration method when the electronic device 100 is not bent can be improved.
Step S14, calibrating the first detection environment light intensity or the second detection environment light intensity according to the screen interference area when the screen is not bent, and determining the real environment light intensity according to the processing result; the screen interference area when the electronic device is not bent is an area corresponding to the first ambient light sensor or an area corresponding to the second ambient light sensor when the electronic device is not bent.
Specifically, the first ambient light sensor 180L1 is taken as an example, that is, the first detected ambient light intensity output by the first ambient light sensor 180L1 is obtained in step S13, and at this time, the screen disturbance area when the electronic device 100 is not bent is the area corresponding to the first ambient light sensor 180L1 when the electronic device 100 is not bent. And then, determining the current display content of the screen interference area when the screen is not bent, and determining the screen interference value of the screen interference area when the screen is not bent according to the current display content. And finally, calculating the difference value between the first detection environment light intensity and the screen interference value of the screen interference area when the screen interference area is not bent, and obtaining the real environment light intensity.
Referring to fig. 8, fig. 8 is a functional block diagram of an ambient light intensity calibration apparatus 200 according to an embodiment of the present disclosure. The ambient light intensity calibration apparatus 200 includes an acquisition module 210 and a calibration module 220. Wherein the obtaining module 210 is configured to perform the steps S11 and S13; the calibration module 220 is used for executing the steps S12 and S14.
Referring to fig. 9, fig. 9 is a sub-functional block diagram of the calibration block of fig. 8. As shown in fig. 9, the calibration module 220 includes a determination unit 231, a calculation unit 232, and a determination unit 233. In the embodiment of the present application, the determining unit 231 is configured to execute the above step S121 and step S122; the calculating unit 232 is configured to execute the step S123; the determining unit 233 is configured to execute the steps S124 and S125.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the modules described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application.
In the above 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 steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The ambient light intensity calibration methods provided herein may be implemented in hardware, firmware, or as software or computer code that may be stored in a computer-readable storage medium, such as a Read-Only Memory (ROM), Random Access Memory (RAM), floppy disk, hard disk, or magneto-optical disk, or as computer code that may be originally stored on a remote or non-transitory machine-readable medium, downloaded over a network, and stored in a local recording medium, such that the methods described herein may be presented using a general purpose computer or special purpose processor, or as software stored on a recording medium in programmable or special-purpose hardware, such as an Application Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA). As can be appreciated in the art, a computer, processor, microprocessor, controller or programmable hardware includes memory components, e.g., RAM, ROM, flash memory, etc., which can store or receive software or computer code when accessed and executed by a computer, processor or hardware implementing the processing methods described herein. In addition, when a general-purpose computer accesses code for implementing the processing shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the processing shown herein.
The computer readable storage medium may be a solid state memory, a memory card, an optical disc, etc. The computer-readable storage medium stores program instructions for a computer, a mobile phone, a tablet computer, or an electronic device of the present application to execute the above-mentioned ambient light intensity calibration method after being called.
The foregoing is an implementation of the embodiments of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the embodiments of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.

Claims (16)

1. The method for calibrating the intensity of ambient light is applied to an electronic device with a bendable screen, the electronic device comprises a display screen, and a first ambient light sensor and a second ambient light sensor which are arranged below the display screen, and the method comprises the following steps:
acquiring first detection ambient light intensity output by the first ambient light sensor and second detection ambient light intensity output by the second ambient light sensor when the electronic equipment is in a bent state;
and respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area, and determining the real environment light intensity according to the processing result.
2. The method for calibrating ambient light intensity according to claim 1, wherein the calibrating the first detected ambient light intensity and the second detected ambient light intensity according to the warped predicted screen interference area, and determining the real ambient light intensity according to the processing result comprises:
determining a first prediction screen interference area and a second prediction screen interference area; the first prediction screen interference area is an area which is possibly corresponding to the first ambient light sensor after the electronic equipment is bent; the second prediction screen interference area is an area which is possibly corresponding to the second ambient light sensor after the electronic equipment is bent;
determining a first screen interference value corresponding to the first prediction screen interference area according to the display content of the first prediction screen interference area, and determining a second screen interference value corresponding to the second prediction screen interference area according to the display content of the second prediction screen interference area;
calculating a difference between the first detected ambient light intensity and the first screen disturbance value to obtain a first calibrated ambient light intensity, and calculating a difference between the second detected ambient light intensity and the second screen disturbance value to obtain a second calibrated ambient light intensity;
and when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold value, outputting the first calibrated ambient light intensity, the second calibrated ambient light intensity or the average value of the first calibrated ambient light intensity and the second calibrated ambient light intensity as the real ambient light intensity.
3. The method for calibrating ambient light intensity according to claim 2, wherein the calibrating the first detected ambient light intensity and the second detected ambient light intensity according to the warped predicted screen interference area, and determining the real ambient light intensity according to the processing result, further comprises:
and when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is not less than the preset threshold value, re-determining the first prediction screen interference area and the second prediction screen interference area.
4. The ambient light intensity calibration method according to claim 2 or 3, wherein the first predicted screen interference area and the second predicted screen interference area are sequentially determined by successive approximation using a first preset area and a second preset area as a starting point, respectively; the first preset area is an area corresponding to the first ambient light sensor when the electronic equipment is not bent; the second preset area is an area corresponding to the second ambient light sensor when the electronic device is not bent.
5. The ambient light intensity calibration method according to claim 4, wherein the successive approximation is by: determining the first prediction screen interference area by taking a first preset step length as a unit in sequence from the starting point of the first preset area to a first preset direction; and determining the second prediction screen interference area by taking the second preset area as a starting point and sequentially taking a second preset step length as a unit towards a second preset direction.
6. The ambient light intensity calibration method according to claim 5, wherein the first predetermined direction is determined by a relative position of a bending region of the electronic device and the first ambient light sensor; the second preset direction is determined by the relative position of the bending area of the electronic device and the second ambient light sensor.
7. The ambient light intensity calibration method according to any one of claims 1 to 6, further comprising:
acquiring first detected ambient light intensity output by the first ambient light sensor or second detected ambient light intensity output by the second ambient light sensor when the electronic equipment is not bent;
calibrating the first detection environment light intensity or the second detection environment light intensity according to the screen interference area when the screen is not bent, and determining the real environment light intensity according to the processing result; the screen interference area when the electronic device is not bent is an area corresponding to the first ambient light sensor or an area corresponding to the second ambient light sensor when the electronic device is not bent.
8. An ambient light intensity calibration device is applied to electronic equipment with a bendable screen, wherein the electronic equipment comprises a display screen, a first ambient light sensor and a second ambient light sensor, wherein the first ambient light sensor and the second ambient light sensor are arranged below the display screen; wherein the ambient light intensity calibration device comprises:
an obtaining module, configured to obtain a first detected ambient light intensity output by the first ambient light sensor and a second detected ambient light intensity output by the second ambient light sensor;
and the calibration module is used for respectively calibrating the first detection environment light intensity and the second detection environment light intensity according to the bent predicted screen interference area and determining the real environment light intensity according to the processing result.
9. The ambient light intensity calibration device of claim 8, wherein the calibration module comprises:
a determination unit for determining a first prediction screen interference region and a second prediction screen interference region; the first prediction screen interference area is an area which is possibly corresponding to the first ambient light sensor after the electronic equipment is bent; the second prediction screen interference area is an area which is possibly corresponding to the second ambient light sensor after the electronic equipment is bent;
the determining unit is also used for determining a first screen interference value corresponding to the first prediction screen interference area according to the display content of the first prediction screen interference area, and determining a second screen interference value corresponding to the second prediction screen interference area according to the display content of the second prediction screen interference area;
a calculating unit, configured to calculate a difference between the first detected ambient light intensity and the first screen interference value to obtain a first calibrated ambient light intensity, and calculate a difference between the second detected ambient light intensity and the second screen interference value to obtain a second calibrated ambient light intensity; and
and the judging unit is used for taking the first calibrated ambient light intensity, the second calibrated ambient light intensity or the average value of the first calibrated ambient light intensity and the second calibrated ambient light intensity as the real ambient light intensity to be output when the difference value between the first calibrated ambient light intensity and the second calibrated ambient light intensity is smaller than a preset threshold value.
10. The ambient light intensity calibration device according to claim 9, wherein the determination unit is further configured to re-determine the first predicted screen disturbance area and the second predicted screen disturbance area when a difference between the first calibrated ambient light intensity and the second calibrated ambient light intensity is not less than a preset threshold.
11. The ambient light intensity calibration device according to claim 9 or 10, wherein the determining unit sequentially determines the first predicted screen interference area and the second predicted screen interference area in a successive approximation manner with a first preset area and a second preset area as starting points, respectively; the first preset area is an area corresponding to the first ambient light sensor when the electronic equipment is not bent; the second preset area is an area corresponding to the second ambient light sensor when the electronic device is not bent.
12. The ambient light intensity calibration device of claim 11 wherein the successive approximation is by: determining the first prediction screen interference area by taking a first preset step length as a unit in sequence from the starting point of the first preset area to a first preset direction; and determining the second prediction screen interference area by taking the second preset area as a starting point and sequentially taking a second preset step length as a unit towards a second preset direction.
13. The ambient light intensity calibration device according to claim 12, wherein the first predetermined direction is determined by a relative position of a bending region of the electronic device and the first ambient light sensor; the second preset direction is determined by the relative position of the bending area of the electronic device and the second ambient light sensor.
14. The ambient light intensity calibration device according to any one of claims 8-13, wherein the obtaining module is further configured to obtain a first detected ambient light intensity output by the first ambient light sensor or a second detected ambient light intensity output by the second ambient light sensor when the electronic device is in an unbent state;
the calibration module is further used for calibrating the first detection environment light intensity or the second detection environment light intensity according to the screen interference area when the screen is not bent, and determining the real environment light intensity according to the processing result; the screen interference area when the electronic device is not bent is an area corresponding to the first ambient light sensor or an area corresponding to the second ambient light sensor when the electronic device is not bent.
15. An electronic device, comprising a display screen, a processor, a memory, and a first ambient light sensor and a second ambient light sensor disposed below the display screen; the processor is coupled to the memory, the first ambient light sensor, the second ambient light sensor, and the display screen, respectively; the processor is configured to perform the ambient light intensity calibration method of any one of claims 1-7.
16. A computer-readable storage medium having stored thereon a computer program comprising at least one code section executable by a computer for controlling the computer to perform the ambient light intensity calibration method according to any one of claims 1 to 7.
CN201911369571.1A 2019-12-26 2019-12-26 Ambient light intensity calibration method and device and electronic equipment Active CN113132532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911369571.1A CN113132532B (en) 2019-12-26 2019-12-26 Ambient light intensity calibration method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911369571.1A CN113132532B (en) 2019-12-26 2019-12-26 Ambient light intensity calibration method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113132532A true CN113132532A (en) 2021-07-16
CN113132532B CN113132532B (en) 2022-05-13

Family

ID=76767219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911369571.1A Active CN113132532B (en) 2019-12-26 2019-12-26 Ambient light intensity calibration method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113132532B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107223203A (en) * 2017-04-19 2017-09-29 深圳市汇顶科技股份有限公司 Light-intensity test method, device and intelligent terminal
CN107368239A (en) * 2017-06-19 2017-11-21 联想(北京)有限公司 A kind of screen display parameters method of adjustment and electronic equipment
CN107547734A (en) * 2017-07-31 2018-01-05 维沃移动通信有限公司 Method, mobile terminal and the storage medium of screen intensity regulation
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107966209A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN108257581A (en) * 2017-12-22 2018-07-06 维沃移动通信有限公司 A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen
CN108540594A (en) * 2018-02-05 2018-09-14 维沃移动通信有限公司 The determination method and device of mobile terminal, external environment luminous intensity
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device
US20190155501A1 (en) * 2017-11-22 2019-05-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for detecting ambient light intensity, storage medium and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107223203A (en) * 2017-04-19 2017-09-29 深圳市汇顶科技股份有限公司 Light-intensity test method, device and intelligent terminal
CN107368239A (en) * 2017-06-19 2017-11-21 联想(北京)有限公司 A kind of screen display parameters method of adjustment and electronic equipment
CN107547734A (en) * 2017-07-31 2018-01-05 维沃移动通信有限公司 Method, mobile terminal and the storage medium of screen intensity regulation
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107966209A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
US20190155501A1 (en) * 2017-11-22 2019-05-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for detecting ambient light intensity, storage medium and electronic device
CN108257581A (en) * 2017-12-22 2018-07-06 维沃移动通信有限公司 A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen
CN108540594A (en) * 2018-02-05 2018-09-14 维沃移动通信有限公司 The determination method and device of mobile terminal, external environment luminous intensity
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device

Also Published As

Publication number Publication date
CN113132532B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN110989852B (en) Touch screen, electronic equipment and display control method
CN110347269B (en) Empty mouse mode realization method and related equipment
CN110798568B (en) Display control method of electronic equipment with folding screen and electronic equipment
CN113810601B (en) Terminal image processing method and device and terminal equipment
CN110649719A (en) Wireless charging method and electronic equipment
CN112087649B (en) Equipment searching method and electronic equipment
CN114880251A (en) Access method and access device of storage unit and terminal equipment
CN114095602B (en) Index display method, electronic device and computer readable storage medium
CN113467735A (en) Image adjusting method, electronic device and storage medium
CN115514844A (en) Volume adjusting method, electronic equipment and system
CN113781548A (en) Multi-device pose measurement method, electronic device and system
CN113901485B (en) Application program loading method, electronic device and storage medium
CN113674258B (en) Image processing method and related equipment
CN113132532B (en) Ambient light intensity calibration method and device and electronic equipment
CN112527220B (en) Electronic equipment display method and electronic equipment
CN115389927A (en) Method and system for measuring and calculating motor damping
CN115706869A (en) Terminal image processing method and device and terminal equipment
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
CN114661258A (en) Adaptive display method, electronic device, and storage medium
CN113364067B (en) Charging precision calibration method and electronic equipment
CN114125144B (en) Method, terminal and storage medium for preventing false touch
CN114610195B (en) Icon display method, electronic device and storage medium
CN111026285B (en) Method for adjusting pressure threshold and electronic equipment
CN113325992A (en) Sliding operation processing method and device, electronic equipment and storage medium
CN115712368A (en) Volume display method, electronic device and storage medium

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

Effective date of registration: 20211224

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Applicant after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant