CN108917921B - Ambient light intensity detection method - Google Patents

Ambient light intensity detection method Download PDF

Info

Publication number
CN108917921B
CN108917921B CN201810620316.9A CN201810620316A CN108917921B CN 108917921 B CN108917921 B CN 108917921B CN 201810620316 A CN201810620316 A CN 201810620316A CN 108917921 B CN108917921 B CN 108917921B
Authority
CN
China
Prior art keywords
light intensity
ambient light
intensity information
display screen
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810620316.9A
Other languages
Chinese (zh)
Other versions
CN108917921A (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.)
Jiangxi Holitech Technology Co Ltd
Original Assignee
Jiangxi Holitech Technology 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 Jiangxi Holitech Technology Co Ltd filed Critical Jiangxi Holitech Technology Co Ltd
Priority to CN201810620316.9A priority Critical patent/CN108917921B/en
Publication of CN108917921A publication Critical patent/CN108917921A/en
Application granted granted Critical
Publication of CN108917921B publication Critical patent/CN108917921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09FDISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
    • G09F9/00Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements

Abstract

The method for detecting the ambient light intensity is applied to electronic equipment, the electronic equipment comprises a display screen and an ambient light sensor arranged at the lower end of the display screen, a collimating lens is additionally arranged between the display screen and the ambient light sensor, and the method for detecting the ambient light intensity comprises the following steps: the method comprises the steps of obtaining basic data when the ambient brightness is 0Lux, binding the brightness range of ambient light with the light intensity information range from the lowest brightness to the highest brightness of the display screen, and obtaining external ambient light intensity information and outputting corresponding light intensity information by the electronic equipment in the screen-off state and the screen-on state according to the basic data and calibration data. By adopting the method for detecting the ambient light intensity, the ambient light intensity can be accurately acquired, so that the brightness output of the display screen is more accurate, an ambient light sensor can be conveniently arranged at the lower end of the display screen, the effective display area of the display screen is not occupied, and the comprehensive screen design is more facilitated.

Description

Ambient light intensity detection method
Technical Field
The invention relates to the technical field of electronic equipment, in particular to an ambient light intensity detection method.
Background
Display screen is widely applied to various electronic equipment, such as cell-phone, palm sound computer etc. especially to the cell-phone, the development of display screen more tends to the design of comprehensive screen, the design mode of comprehensive screen for the cell-phone openly leaves the space of components and parts and diminishes, but the cell-phone openly needs integrated components and parts too many again: the earphone, RGB camera, infrared dot matrix projector, breathing lamp, light sensor, distance sensor, colour temperature sensor etc.. Therefore, it is more difficult to make the top of the mobile phone narrower. The above various components need to be designed below the display area to reduce the space outside the display screen, realize higher screen occupation ratio and achieve the effect of a full screen more difficultly.
Especially for an environment sensor, when the environment sensor is directly designed under a screen, the accurate environment light sensing function cannot be realized due to the interference of light rays emitted by the screen. Therefore, the current structural design places the ambient light sensor and the components such as the camera, the receiver and the like outside the screen display area. Because the ambient light sensor of the existing scheme must be designed in the area outside the screen display area, the screen occupation ratio of the whole machine is influenced by the prior art, and the ID design is not facilitated.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an ambient light intensity detection method which can arrange an ambient sensor at the lower end of a display screen and is not interfered by the self-luminescence of the display screen.
The technical scheme adopted by the invention for solving the problems is as follows: the method for detecting the ambient light intensity is applied to electronic equipment, the electronic equipment comprises a display screen and an ambient light sensor arranged at the lower end of the display screen, a collimating lens is additionally arranged between the display screen and the ambient light sensor, and the method for detecting the ambient light intensity comprises the following steps:
(1) when the ambient brightness is 0Lux, acquiring light intensity information received by the ambient light sensor in the process that the display screen is improved from the lowest brightness to the highest brightness to obtain basic data;
(2) calibrating the range of the ambient light, namely binding the brightness range of the ambient light with the range of the light intensity information from the lowest brightness to the highest brightness of the display screen to obtain calibration data;
(3) according to the basic data and the calibration data, the electronic equipment can acquire the light intensity information of the external environment in the screen-off state and the screen-on state and output corresponding light intensity information.
In some embodiments, the step of acquiring the light intensity information received by the ambient light sensor during the process of increasing the brightness of the display screen from the lowest brightness to the highest brightness when the ambient brightness is 0Lux comprises:
(1) ensuring that no shielding object exists within 50cm in front of the display screen;
(2) and lightening the display screen, wherein the display color is white, gradually increasing the brightness of the display screen from the lowest brightness to the highest brightness, and recording and storing the light intensity information received by the ambient light sensor.
In some embodiments, the light intensity information from the lowest brightness to the highest brightness of the display screen can be recorded by means of minimum brightness gradient or by means of segmented sampling.
In some embodiments, the display screen is in a screenout state when the ambient light range is calibrated.
In some embodiments, the step of obtaining and outputting the corresponding light intensity information of the external environment in the breath-hold state comprises:
(1) starting the ambient light sensor in the breath screen state to acquire light intensity information in the breath screen state, wherein the light intensity information in the breath screen state is only ambient light intensity information;
(2) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
In some embodiments, the step of acquiring external environment light intensity information in a bright screen state and outputting corresponding light intensity information includes:
(1) reading the brightness information of the display screen and the basic data;
(2) starting the ambient light sensor in a bright screen state to acquire light intensity information in the bright screen state, wherein the light intensity information in the bright screen state is ambient light intensity information and display screen brightness information;
(3) subtracting the basic data from the light intensity information in the bright screen state to obtain the ambient light intensity information;
(4) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
The invention has the beneficial effects that: by adopting the method for detecting the ambient light intensity, the light intensity information collected by the ambient light sensor arranged at the lower end of the display screen can be accurately calculated by the electronic equipment, so that the brightness output of the display screen is more accurate, the ambient light sensor can be arranged at the lower end of the display screen, the effective display area of the display screen is not occupied, and the comprehensive screen design is more facilitated.
Drawings
Fig. 1 is a flowchart of acquiring external environment light intensity information and outputting corresponding light intensity information in a bright screen state according to the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
The utility model provides an ambient light intensity detection method, is applied to electronic equipment, and electronic equipment includes the display screen and sets up in the ambient light sensor of display screen lower extreme, has still added the collimating mirror between display screen and the ambient light sensor, and the collimating mirror can make the light outside the display screen better enter into ambient light sensor inside, also can weaken the interference problem of screen light to ambient light simultaneously, and ambient light intensity detection method includes following step:
(1) when the ambient brightness is 0Lux, acquiring light intensity information received by the ambient light sensor in the process that the display screen is improved from the lowest brightness to the highest brightness to obtain basic data;
(2) calibrating the range of the ambient light, namely binding the brightness range of the ambient light with the range of the light intensity information from the lowest brightness to the highest brightness of the display screen to obtain calibration data;
(3) according to the basic data and the calibration data, the electronic equipment can acquire the light intensity information of the external environment in the screen-off state and the screen-on state and output corresponding light intensity information.
Specifically, when the ambient brightness is 0Lux, the step of obtaining the light intensity information received by the ambient light sensor in the process that the display screen is increased from the lowest brightness to the highest brightness includes:
(1) ensuring that no shielding object exists within 50cm in front of the display screen;
(2) and lightening the display screen, wherein the display color is white, gradually increasing the brightness of the display screen from the lowest brightness to the highest brightness, and recording and storing the light intensity information received by the ambient light sensor.
The light intensity information from the lowest brightness to the highest brightness of the display screen can be recorded by adopting a minimum brightness gradient mode or a segmented sampling mode. For example: the interval from the lowest brightness to the highest brightness of the screen is 0-1023, and then a 1-bit Step mode 0, 1, 2, 3 … 1022, 1022 and 1023 can be adopted; the light intensity information received by the ambient light sensor can also be recorded in a segmented sampling mode, namely a 5-bit one-Step mode 0, 5, 10, 15 … 1020, 1023.
When the ambient light range is calibrated, the display screen is in a screen-off state, and a specific ambient light range calibration mode may be as follows: the effective range of the ambient light sensor is 10bit and is 0-1023, the ambient brightness range is 0Lux to 100000Lux, and the purpose of the process is to bind the brightness range of the ambient light, which is 0 Lux-100000 Lux, with the information effective range of the ambient light sensor, which is 0-1023.
The steps of obtaining the external environment light intensity information and outputting the corresponding light intensity information under the state of the information screen comprise:
(1) starting the ambient light sensor in the breath screen state to acquire light intensity information in the breath screen state, wherein the light intensity information in the breath screen state is only ambient light intensity information;
(2) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
As shown in fig. 1, the step of acquiring external environment light intensity information and outputting corresponding light intensity information in a bright screen state includes:
(1) reading the brightness information of the display screen and the basic data;
(2) starting the ambient light sensor in a bright screen state to acquire light intensity information in the bright screen state, wherein the light intensity information in the bright screen state is ambient light intensity information and display screen brightness information;
(3) subtracting the basic data from the light intensity information in the bright screen state to obtain the ambient light intensity information;
(4) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
The obtained actual ambient light intensity information is output to the processor for processing.
The invention has the advantages that: by adopting the method for detecting the ambient light intensity, the light intensity information collected by the ambient light sensor arranged at the lower end of the display screen can be accurately calculated by the electronic equipment, so that the brightness output of the display screen is more accurate, the ambient light sensor can be arranged at the lower end of the display screen, the effective display area of the display screen is not occupied, and the comprehensive screen design is more facilitated.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the claims. The present invention is not limited to the above embodiments, and the specific structure thereof is allowed to vary. All changes which come within the scope of the invention as defined by the independent claims are intended to be embraced therein.

Claims (5)

1. The utility model provides an ambient light intensity detection method, is applied to electronic equipment, its characterized in that, electronic equipment include the display screen and set up in the ambient light sensor of display screen lower extreme, still add the collimating mirror between display screen and the ambient light sensor, ambient light intensity detection method includes following step:
(1) when the ambient brightness is 0Lux, acquiring light intensity information received by the ambient light sensor in the process that the display screen is improved from the lowest brightness to the highest brightness to obtain basic data;
(2) calibrating the range of the ambient light, namely binding the brightness range of the ambient light with the range of the light intensity information from the lowest brightness to the highest brightness of the display screen to obtain calibration data;
(3) according to the basic data and the calibration data, the electronic equipment can acquire the light intensity information of the external environment in the screen-off state and the screen-on state and output corresponding light intensity information;
when the ambient brightness is 0Lux, the step of acquiring the light intensity information received by the ambient light sensor in the process that the display screen is increased from the lowest brightness to the highest brightness comprises the following steps:
(1) ensuring that no shielding object exists within 50cm in front of the display screen;
(2) and lightening the display screen, wherein the display color is white, gradually increasing the brightness of the display screen from the lowest brightness to the highest brightness, and recording and storing the light intensity information received by the ambient light sensor.
2. The method as claimed in claim 1, wherein the information of the light intensity from the lowest brightness to the highest brightness of the display screen is recorded by a minimum brightness gradient method or a segmented sampling method.
3. The ambient light intensity detection method of claim 1, wherein the display screen is in a screenout state when the ambient light range is calibrated.
4. The method for detecting ambient light intensity according to claim 1, wherein the step of obtaining and outputting the corresponding ambient light intensity information in the breath-hold state comprises:
(1) starting the ambient light sensor in the breath screen state to acquire light intensity information in the breath screen state, wherein the light intensity information in the breath screen state is only ambient light intensity information;
(2) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
5. The method for detecting the intensity of ambient light according to claim 1, wherein the step of acquiring the intensity information of the ambient light in the bright state and outputting the corresponding intensity information comprises:
(1) reading the brightness information of the display screen and the basic data;
(2) starting the ambient light sensor in a bright screen state to acquire light intensity information in the bright screen state, wherein the light intensity information in the bright screen state is ambient light intensity information and display screen brightness information;
(3) subtracting the basic data from the light intensity information in the bright screen state to obtain the ambient light intensity information;
(4) and the electronic equipment outputs corresponding light intensity information according to the ambient light intensity information.
CN201810620316.9A 2018-06-15 2018-06-15 Ambient light intensity detection method Active CN108917921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810620316.9A CN108917921B (en) 2018-06-15 2018-06-15 Ambient light intensity detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810620316.9A CN108917921B (en) 2018-06-15 2018-06-15 Ambient light intensity detection method

Publications (2)

Publication Number Publication Date
CN108917921A CN108917921A (en) 2018-11-30
CN108917921B true CN108917921B (en) 2020-06-09

Family

ID=64421054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810620316.9A Active CN108917921B (en) 2018-06-15 2018-06-15 Ambient light intensity detection method

Country Status (1)

Country Link
CN (1) CN108917921B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221500B (en) * 2019-06-04 2022-11-04 Oppo广东移动通信有限公司 Control method, control device, storage medium, electronic device and control system
CN110264978B (en) * 2019-06-28 2021-04-13 联想(北京)有限公司 Light intensity correction method, light intensity correction device, and electronic apparatus
CN112449026B (en) * 2019-08-28 2023-11-21 北京小米移动软件有限公司 Ambient light compensation method, device, terminal and storage medium
CN112710388B (en) * 2019-10-24 2022-07-01 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal device, and storage medium
CN112365833B (en) * 2021-01-15 2021-04-30 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN112781832A (en) * 2021-01-26 2021-05-11 北京小米移动软件有限公司 Method, apparatus, device and medium for determining ambient light for terminal device
CN113763856B (en) * 2021-07-19 2022-09-13 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945747A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN107945769B (en) * 2017-11-22 2020-04-10 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN107945770A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107979698B (en) * 2017-11-22 2020-05-12 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN107941330B (en) * 2017-11-22 2020-09-08 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN108021161A (en) * 2017-11-22 2018-05-11 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107957293B (en) * 2017-11-22 2020-06-02 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108917921A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108917921B (en) Ambient light intensity detection method
JP5786254B2 (en) Method and apparatus for controlling light emitting devices in a terminal device, and terminal device
CN106683140B (en) Color identification method and system
CN104995910B (en) Utilize the infrared image enhancement of fusion
CN102833576B (en) Camera test and calibration based on spectral monitoring of light
CN107941330B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN106101547A (en) The processing method of a kind of view data, device and mobile terminal
EP3775810B1 (en) Calibrated brightness estimation using ambient color sensors
CN108900782A (en) Exposal control method, device and electronic equipment
CN106096588A (en) The processing method of a kind of view data, device and mobile terminal
WO2020159049A1 (en) Electronic device with illuminance sensor mounted at back side of display and method for measuring illuminance using illuminance sensor
CN106210517A (en) The processing method of a kind of view data, device and mobile terminal
CN105428376A (en) Single-chip image sensor having visible light and UV-light detection function and detection method thereof
CN109729281A (en) Image processing method, device, storage medium and terminal
CN106060402A (en) Image data processing method and device, and mobile terminal
CN113194303A (en) Image white balance method, device, electronic equipment and computer readable storage medium
CN108881875A (en) Image white balancing treatment method, device, storage medium and terminal
CN102466515A (en) Method and system for calibrating optical sensor of mobile terminal
CN103278243A (en) Real color picking method, system and device
CN106412546A (en) Mobile terminal equipped with a camera and controlling method thereof
CN111083256A (en) Display screen assembly and electronic device
WO2022042085A1 (en) Device testing method and apparatus, and storage medium and electronic device
JP2010268409A (en) Imaging device
CN109120864A (en) Light filling processing method, device, storage medium and mobile terminal
CN111918047A (en) Photographing control method and device, storage medium and electronic equipment

Legal Events

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