[go: up one dir, main page]

CN109029720B - Illumination intensity detection method and device - Google Patents

Illumination intensity detection method and device Download PDF

Info

Publication number
CN109029720B
CN109029720B CN201810714340.9A CN201810714340A CN109029720B CN 109029720 B CN109029720 B CN 109029720B CN 201810714340 A CN201810714340 A CN 201810714340A CN 109029720 B CN109029720 B CN 109029720B
Authority
CN
China
Prior art keywords
backlight
illumination intensity
terminal
fingerprint 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.)
Active
Application number
CN201810714340.9A
Other languages
Chinese (zh)
Other versions
CN109029720A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810714340.9A priority Critical patent/CN109029720B/en
Publication of CN109029720A publication Critical patent/CN109029720A/en
Application granted granted Critical
Publication of CN109029720B publication Critical patent/CN109029720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4228Photometry, e.g. photographic exposure meter using electric radiation detectors arrangements with two or more detectors, e.g. for sensitivity compensation
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D25/00Control of light, e.g. intensity, colour or phase
    • G05D25/02Control of light, e.g. intensity, colour or phase characterised by the use of electric means
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3433Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices
    • G09G3/346Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices based on modulation of the reflection angle, e.g. micromirrors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Image Input (AREA)
  • Devices For Indicating Variable Information By Combining Individual Elements (AREA)

Abstract

本公开是关于光照强度检测方法及装置。方法包括:从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方;根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度;获取光学指纹传感器所检测到的光线的第二光照强度;根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。本公开能够提高光照强度测量的准确性和稳定性,有效地调节屏幕背光亮度,节省电池电量,提高用户体验。

Figure 201810714340

The present disclosure relates to a light intensity detection method and device. The method includes: intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal is injected into the optical fingerprint sensor; the optical fingerprint sensor The sensor is arranged under the screen of the terminal; according to the target content displayed in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass is determined; the first illumination intensity of the light detected by the optical fingerprint sensor is obtained. Two light intensities; according to the first light intensity and the second light intensity of the light detected by the optical fingerprint sensor, determine the target light intensity of the ambient light in the environment where the terminal is located. The present disclosure can improve the accuracy and stability of light intensity measurement, effectively adjust screen backlight brightness, save battery power, and improve user experience.

Figure 201810714340

Description

光照强度检测方法及装置Illumination intensity detection method and device

技术领域technical field

本公开涉及智能设备领域,尤其涉及光照强度检测方法及装置。The present disclosure relates to the field of smart devices, and in particular, to a method and device for detecting light intensity.

背景技术Background technique

环境光传感器(sensor),用于测量终端所处环境的光照强度,并基于环境光强度调节终端屏幕的背光亮度,实现节省电池电量的目的;例如,在手机、笔记本、车载设备等设备中,屏幕或显示器消耗的电量达到设备电池总耗电量的30%。通过在终端中设置环境光传感器,当环境光传感器检测到光照强度较高时,将屏幕自动调成高亮度;而当环境光传感器检测到光照强度较暗时,将屏幕自动调成低亮度,实现自动调节屏幕亮度,可以最大限度地延长设备电池的工作时间。The ambient light sensor (sensor) is used to measure the light intensity of the environment where the terminal is located, and adjust the backlight brightness of the terminal screen based on the ambient light intensity to save battery power; The screen or display consumes up to 30% of the device's total battery consumption. By setting the ambient light sensor in the terminal, when the ambient light sensor detects that the light intensity is high, the screen is automatically adjusted to high brightness; and when the ambient light sensor detects that the light intensity is low, the screen is automatically adjusted to low brightness. Automatically adjust the screen brightness to maximize the working time of the device's battery.

相关技术中,环境光传感器通常固定于终端正面顶部的盖板玻璃下方。In the related art, the ambient light sensor is usually fixed under the cover glass on the top of the front side of the terminal.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开实施例提供一种光照强度检测方法及装置。所述技术方案如下:In order to overcome the problems existing in the related art, embodiments of the present disclosure provide a method and device for detecting light intensity. The technical solution is as follows:

根据本公开实施例的第一方面,提供一种光照强度检测方法,包括:According to a first aspect of the embodiments of the present disclosure, a method for detecting light intensity is provided, including:

从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容;所述屏幕的背光干扰区域发出的背光在所述终端的盖板玻璃处的反射光线射入光学指纹传感器;所述光学指纹传感器设置于终端的屏幕下方;The target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor ; The optical fingerprint sensor is arranged below the screen of the terminal;

根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度;According to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

获取所述光学指纹传感器所检测到的光线的第二光照强度;obtaining the second illumination intensity of the light detected by the optical fingerprint sensor;

根据所述第一光照强度、及所述光学指纹传感器所检测到的光线的第二光照强度,确定所述终端所处环境的环境光的目标光照强度。According to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor, the target illumination intensity of the ambient light in the environment where the terminal is located is determined.

在一个实施例中,所述处理组件至少包括以下任一种或组合:中央处理器、图形处理器、内存。In one embodiment, the processing component includes at least any one or a combination of the following: a central processing unit, a graphics processing unit, and a memory.

在一个实施例中,所述根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度,包括:In one embodiment, the determining, according to the target content displayed in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass includes:

根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域中各个像素点的像素值;According to the target content displayed in the backlight interference area, determine the pixel value of each pixel in the backlight interference area;

根据所述背光干扰区域中各个像素点的像素值,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度。According to the pixel value of each pixel in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass is determined.

在一个实施例中,所述根据所述第一光照强度、及所述光学指纹传感器所检测到的光线的第二光照强度,确定所述终端所处环境的环境光的目标光照强度,包括:In one embodiment, determining the target illumination intensity of ambient light in the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor includes:

计算所述光学指纹传感器所检测到的光线的第二光照强度与所述第一光照强度的差值;calculating the difference between the second illumination intensity of the light detected by the optical fingerprint sensor and the first illumination intensity;

将所得到的差值确定为所述终端所处环境的环境光的目标光照强度。The obtained difference value is determined as the target illumination intensity of the ambient light in the environment where the terminal is located.

在一个实施例中,在所述从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容之前,所述方法还包括:In one embodiment, before the intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal, the method further includes:

获取所述光学指纹传感器的视场角、及所述光学指纹传感器与所述屏幕的距离;acquiring the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;

根据所述光学指纹传感器的视场角及所述光学指纹传感器与所述屏幕的距离,确定所述屏幕的背光干扰区域。The backlight interference area of the screen is determined according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.

在一个实施例中,所述方法还包括:In one embodiment, the method further includes:

检测针对预设指纹区域的手指按压操作;Detecting a finger pressing operation for a preset fingerprint area;

当在预设时长内未检测到针对预设指纹区域的手指按压操作时,执行所述从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容的步骤;或者,When the finger pressing operation for the preset fingerprint area is not detected within the preset time period, the step of intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal is performed; or,

当检测到针对预设指纹区域的手指按压操作时,识别所述手指按压操作对应的用户指纹。When a finger pressing operation on the preset fingerprint area is detected, the user fingerprint corresponding to the finger pressing operation is identified.

根据本公开实施例的第二方面,提供一种光照强度检测装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for detecting light intensity, including:

截取模块,用于从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容;所述屏幕的背光干扰区域发出的背光在所述终端的盖板玻璃处的反射光线射入光学指纹传感器;所述光学指纹传感器设置于终端的屏幕下方;The interception module is used to intercept the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal The optical fingerprint sensor is injected; the optical fingerprint sensor is arranged under the screen of the terminal;

第一确定模块,用于根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度;a first determining module, configured to determine, according to the target content displayed in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

第一获取模块,用于获取所述光学指纹传感器所检测到的光线的第二光照强度;a first acquisition module, configured to acquire the second illumination intensity of the light detected by the optical fingerprint sensor;

第二确定模块,用于根据所述第一光照强度、及所述光学指纹传感器所检测到的光线的第二光照强度,确定所述终端所处环境的环境光的目标光照强度。The second determination module is configured to determine the target illumination intensity of ambient light in the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor.

在一个实施例中,所述第一确定模块,包括:In one embodiment, the first determining module includes:

第一确定子模块,用于根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域中各个像素点的像素值;a first determination submodule, configured to determine the pixel value of each pixel in the backlight interference region according to the target content displayed in the backlight interference region;

第二确定子模块,用于根据所述背光干扰区域中各个像素点的像素值,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度。The second determination submodule is configured to determine, according to the pixel values of each pixel in the backlight interference region, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference region at the cover glass.

在一个实施例中,所述第二确定模块,包括:In one embodiment, the second determining module includes:

计算子模块,用于计算所述光学指纹传感器所检测到的光线的第二光照强度与所述第一光照强度的差值;a calculation submodule, configured to calculate the difference between the second illumination intensity of the light detected by the optical fingerprint sensor and the first illumination intensity;

第三确定子模块,用于将所得到的差值确定为所述终端所处环境的环境光的目标光照强度。The third determination sub-module is configured to determine the obtained difference value as the target illumination intensity of ambient light in the environment where the terminal is located.

在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:

第二获取模块,用于获取所述光学指纹传感器的视场角、及所述光学指纹传感器与所述屏幕的距离;a second acquisition module, configured to acquire the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;

第三确定模块,用于根据所述光学指纹传感器的视场角及所述光学指纹传感器与所述屏幕的距离,确定所述屏幕的背光干扰区域。The third determination module is configured to determine the backlight interference area of the screen according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.

在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:

检测模块,用于检测针对预设指纹区域的手指按压操作;a detection module for detecting a finger pressing operation for a preset fingerprint area;

执行模块,用于当在预设时长内未检测到针对预设指纹区域的手指按压操作时,执行所述从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容的步骤;an execution module, configured to execute the interception of the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal when the finger pressing operation against the preset fingerprint area is not detected within the preset time period A step of;

识别模块,用于当检测到针对预设指纹区域的手指按压操作时,识别所述手指按压操作对应的用户指纹。The identification module is configured to identify the user fingerprint corresponding to the finger pressing operation when a finger pressing operation for the preset fingerprint area is detected.

根据本公开实施例的第三方面,提供一种光照强度检测装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for detecting light intensity, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

从终端的处理组件中截取在所述终端的屏幕的背光干扰区域内显示的目标内容;所述屏幕的背光干扰区域发出的背光在所述终端的盖板玻璃处的反射光线射入光学指纹传感器;所述光学指纹传感器设置于终端的屏幕下方;The target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor ; The optical fingerprint sensor is arranged below the screen of the terminal;

根据所述背光干扰区域中显示的目标内容,确定所述背光干扰区域发出的背光在所述盖板玻璃处的反射光线的第一光照强度;According to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

获取所述光学指纹传感器所检测到的光线的第二光照强度;obtaining the second illumination intensity of the light detected by the optical fingerprint sensor;

根据所述第一光照强度、及所述光学指纹传感器所检测到的光线的第二光照强度,确定所述终端所处环境的环境光的目标光照强度。According to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor, the target illumination intensity of the ambient light in the environment where the terminal is located is determined.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述第一方面中任意一项所述方法实施例的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having computer instructions stored thereon, and when the instructions are executed by a processor, implement the steps of any one of the method embodiments in the first aspect above.

本公开的实施例提供的技术方案可以包括以下有益效果:该技术方案通过从终端的处理组件中截取对光学指纹传感器测量光照强度的过程产生干扰的目标内容,及计算背光干扰区域在显示目标内容时所发出的背光在盖板玻璃处的反射光线的第一光照强度,在此基础上,从第二光照强度中抵消掉第一光照强度就可以得到终端所处环境的环境光的目标光照强度,使得设置于屏幕下方的光学指纹传感器能够测量终端所处环境的环境光的光照强度,能够提高终端的屏占比,克服相关技术中屏幕背光在盖板玻璃处的反射光线对光照强度测量过程的干扰,能够提高光照强度测量的准确性和稳定性,有效地调节屏幕背光亮度,节省电池电量,如此,能够提高用户体验。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the technical solution intercepts the target content that interferes with the process of measuring the light intensity of the optical fingerprint sensor from the processing component of the terminal, and calculates the backlight interference area when displaying the target content. The first illumination intensity of the reflected light emitted by the backlight at the cover glass, on this basis, the target illumination intensity of the ambient light in the environment where the terminal is located can be obtained by offsetting the first illumination intensity from the second illumination intensity , so that the optical fingerprint sensor disposed under the screen can measure the illumination intensity of the ambient light in the environment where the terminal is located, which can improve the screen ratio of the terminal and overcome the process of measuring the light intensity caused by the reflected light of the screen backlight at the cover glass in the related art. It can improve the accuracy and stability of light intensity measurement, effectively adjust the brightness of the screen backlight, and save battery power, which can improve the user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的光照强度检测方法的流程图。FIG. 1 is a flow chart of a method for detecting light intensity according to an exemplary embodiment.

图2是根据一示例性实施例示出的光照强度检测方法的流程图。Fig. 2 is a flow chart of a method for detecting light intensity according to an exemplary embodiment.

图3是根据一示例性实施例示出的光照强度检测方法的流程图。Fig. 3 is a flow chart of a method for detecting light intensity according to an exemplary embodiment.

图4是根据一示例性实施例示出的光照强度检测方法的流程图。Fig. 4 is a flow chart of a method for detecting light intensity according to an exemplary embodiment.

图5是根据一示例性实施例示出的光照强度检测方法的流程图。Fig. 5 is a flowchart of a method for detecting light intensity according to an exemplary embodiment.

图6是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 6 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图7是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 7 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图8是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 8 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图9是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 9 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图10是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 10 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图11是根据一示例性实施例示出的光照强度检测装置的框图。Fig. 11 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment.

图12是根据一示例性实施例示出的装置的框图。Fig. 12 is a block diagram of an apparatus according to an exemplary embodiment.

图13是根据一示例性实施例示出的装置的框图。Fig. 13 is a block diagram of an apparatus according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

环境光传感器用于测量终端所处环境的光照强度,并基于环境光强度调节终端屏幕的背光亮度,可以节省电池电量,最大限度地延长设备电池的工作时间。The ambient light sensor is used to measure the light intensity of the environment where the terminal is located, and adjust the backlight brightness of the terminal screen based on the ambient light intensity, which can save battery power and maximize the working time of the device battery.

相关技术中,环境光传感器通常固定于终端正面顶部的盖板玻璃下方,导致手机额头增大,降低了屏占比,无法满足用户对于高屏占比手机的需求,影响用户体验。而如果将环境光传感器设置在屏幕下方,在屏幕没有手指等物体遮挡的情况下,环境光传感器也能感应到所处环境的光照强度,但是,环境光传感器同时也接收到了屏幕背光在盖板玻璃处反射的光线的干扰,这就导致环境光传感器所测得的光照强度很不准确,从而无法有效地调节屏幕背光亮度,造成电池电量浪费,影响用户体验。In the related art, the ambient light sensor is usually fixed under the cover glass on the top of the front of the terminal, which leads to an increase in the forehead of the mobile phone, which reduces the screen ratio, cannot meet the user's demand for a mobile phone with a high screen ratio, and affects the user experience. If the ambient light sensor is set under the screen, the ambient light sensor can also sense the light intensity of the environment in which there is no object such as a finger on the screen. However, the ambient light sensor also receives the screen backlight on the cover. The interference of light reflected from the glass makes the light intensity measured by the ambient light sensor very inaccurate, so that the screen backlight brightness cannot be adjusted effectively, resulting in waste of battery power and affecting user experience.

为了解决上述问题,本公开实施例提供了一种光照强度检测方法,方法包括:从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方;根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度;获取光学指纹传感器所检测到的光线的第二光照强度;根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。本公开实施例通过从终端的处理组件中截取对光学指纹传感器测量光照强度的过程产生干扰的目标内容,及计算背光干扰区域在显示目标内容时所发出的背光在盖板玻璃处的反射光线的第一光照强度,在此基础上,从第二光照强度中抵消掉第一光照强度就可以得到终端所处环境的环境光的目标光照强度,使得设置于屏幕下方的光学指纹传感器能够测量终端所处环境的环境光的光照强度,能够提高终端的屏占比,克服相关技术中屏幕背光在盖板玻璃处的反射光线对光照强度测量过程的干扰,能够提高光照强度测量的准确性和稳定性,有效地调节屏幕背光亮度,节省电池电量,提高用户体验。In order to solve the above problem, an embodiment of the present disclosure provides a method for detecting light intensity. The method includes: intercepting, from a processing component of a terminal, target content displayed in a backlight interference area of a screen of a terminal; backlight emitted from the backlight interference area of the screen The reflected light at the cover glass of the terminal enters the optical fingerprint sensor; the optical fingerprint sensor is arranged under the screen of the terminal; according to the target content displayed in the backlight interference area, the reflection of the backlight emitted by the backlight interference area on the cover glass is determined the first illumination intensity of the light; obtain the second illumination intensity of the light detected by the optical fingerprint sensor; determine the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor The target light intensity of the light. In the embodiment of the present disclosure, the target content that interferes with the process of measuring the light intensity of the optical fingerprint sensor is intercepted from the processing component of the terminal, and the reflected light of the backlight on the cover glass emitted by the backlight interference area when the target content is displayed is calculated. The first illumination intensity, on this basis, the target illumination intensity of the ambient light in the environment where the terminal is located can be obtained by offsetting the first illumination intensity from the second illumination intensity, so that the optical fingerprint sensor arranged at the bottom of the screen can measure the light intensity of the terminal. The illumination intensity of the ambient light in the environment can increase the screen ratio of the terminal, overcome the interference of the reflected light of the screen backlight at the cover glass on the illumination intensity measurement process in the related art, and improve the accuracy and stability of the illumination intensity measurement. , effectively adjust the screen backlight brightness, save battery power and improve user experience.

在上述分析的基础上,下面介绍本公开的方法实施例。On the basis of the above analysis, method embodiments of the present disclosure are introduced below.

图1是根据一示例性实施例示出的一种光照强度检测方法的流程图;该方法的执行主体可以为终端,终端例如智能手机、平板电脑、相机等电子设备;如图1所示,该方法包括以下步骤101-104:Fig. 1 is a flow chart of a method for detecting light intensity according to an exemplary embodiment; the execution subject of the method may be a terminal, such as an electronic device such as a smart phone, a tablet computer, a camera, etc. As shown in Fig. 1 , the The method includes the following steps 101-104:

在步骤101中,从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方。In step 101, the target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; The optical fingerprint sensor is arranged under the screen of the terminal.

示例的,处理组件至少包括以下任一种或组合:中央处理器、图形处理器、或内存。Exemplarily, the processing component includes at least any one or a combination of the following: a central processing unit, a graphics processing unit, or a memory.

示例的,当设置于终端的屏幕下方的光学指纹传感器用于测量终端所处环境的环境光的光照强度时;当屏幕处于黑屏状态时,光学指纹传感器仅会接收到环境光;而当屏幕处于点亮状态、且未检测到针对预设指纹区域的手指按压操作时,屏幕的背光干扰区域发出的背光在终端的盖板玻璃处反射后的反射光线射入光学指纹传感器,使得光学指纹传感器既接收到环境光,也接收到反射光线。For example, when the optical fingerprint sensor disposed under the screen of the terminal is used to measure the illumination intensity of ambient light in the environment where the terminal is located; when the screen is in a black screen state, the optical fingerprint sensor will only receive ambient light; When the light is on and the finger pressing operation against the preset fingerprint area is not detected, the reflected light from the backlight emitted by the backlight interference area of the screen and reflected at the cover glass of the terminal enters the optical fingerprint sensor, so that the optical fingerprint sensor not only Ambient light is received, and reflected light is also received.

终端的处理组件会对在终端的屏幕上显示的所有内容进行处理;本公开直接从终端的处理组件中截取在屏幕的背光干扰区域内显示的目标内容。The processing component of the terminal will process all the content displayed on the screen of the terminal; the present disclosure directly intercepts the target content displayed in the backlight interference area of the screen from the processing component of the terminal.

示例的,可以在执行步骤101之前,预先确定屏幕的背光干扰区域,例如,获取光学指纹传感器的视场角、及光学指纹传感器与屏幕的距离;根据光学指纹传感器的视场角及光学指纹传感器与屏幕的距离,确定屏幕的背光干扰区域。Exemplarily, before step 101 is performed, the backlight interference area of the screen may be pre-determined, for example, the viewing angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen are obtained; according to the viewing angle of the optical fingerprint sensor and the optical fingerprint sensor The distance from the screen determines the backlight interference area of the screen.

在步骤102中,根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。In step 102, according to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted from the backlight interference area at the cover glass.

示例的,计算背光干扰区域在显示目标内容时所发出的背光在盖板玻璃处的反射光线的第一光照强度;可选的,根据背光干扰区域中显示的目标内容,确定背光干扰区域在显示目标内容时各个像素点的像素值;根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。For example, calculate the first illumination intensity of the reflected light of the backlight on the cover glass emitted by the backlight interference area when the target content is displayed; optionally, according to the target content displayed in the backlight interference area, determine that the backlight interference area is displayed in The pixel value of each pixel point in the target content; according to the pixel value of each pixel point in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass is determined.

在步骤103中,获取光学指纹传感器所检测到的光线的第二光照强度。In step 103, the second illumination intensity of the light detected by the optical fingerprint sensor is acquired.

示例的,第二光照强度是指光学指纹传感器所检测到的环境光和反射光线的混合光线的光照强度。Exemplarily, the second light intensity refers to the light intensity of the mixed light of ambient light and reflected light detected by the optical fingerprint sensor.

在步骤104中,根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。In step 104, the target illumination intensity of the ambient light in the environment where the terminal is located is determined according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor.

示例的,在获取到背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度的基础上,从第二光照强度中抵消掉第一光照强度就可以得到终端所处环境的环境光的目标光照强度;可选的,计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值;将所得到的差值确定为终端所处环境的环境光的目标光照强度。Exemplarily, on the basis of acquiring the first illumination intensity of the reflected light of the backlight at the cover glass from the backlight interference area and the second illumination intensity of the light detected by the optical fingerprint sensor, from the second illumination intensity The target illumination intensity of the ambient light in the environment where the terminal is located can be obtained by canceling the first illumination intensity; optionally, the difference between the second illumination intensity and the first illumination intensity of the light detected by the optical fingerprint sensor is calculated; The obtained difference is determined as the target illumination intensity of ambient light in the environment where the terminal is located.

本公开的实施例提供的技术方案,通过从终端的处理组件中截取对光学指纹传感器测量光照强度的过程产生干扰的目标内容,及计算背光干扰区域在显示目标内容时所发出的背光在盖板玻璃处的反射光线的第一光照强度,在此基础上,从第二光照强度中抵消掉第一光照强度就可以得到终端所处环境的环境光的目标光照强度,使得设置于屏幕下方的光学指纹传感器能够测量终端所处环境的环境光的光照强度,能够提高终端的屏占比,克服相关技术中屏幕背光在盖板玻璃处的反射光线对光照强度测量过程的干扰,能够提高光照强度测量的准确性和稳定性,有效地调节屏幕背光亮度,节省电池电量,如此,能够提高用户体验。The technical solution provided by the embodiments of the present disclosure is to intercept the target content that interferes with the process of measuring the light intensity of the optical fingerprint sensor from the processing component of the terminal, and calculate the backlight emitted by the backlight interference area when the target content is displayed on the cover plate. The first illumination intensity of the reflected light at the glass, on this basis, the target illumination intensity of the ambient light in the environment where the terminal is located can be obtained by offsetting the first illumination intensity from the second illumination intensity, so that the optical The fingerprint sensor can measure the illumination intensity of the ambient light in the environment where the terminal is located, which can improve the screen ratio of the terminal, overcome the interference of the reflected light of the screen backlight on the cover glass on the illumination intensity measurement process in the related art, and improve the illumination intensity measurement. The accuracy and stability of the screen can effectively adjust the screen backlight brightness and save battery power, which can improve the user experience.

图2是根据一示例性实施例示出的一种光照强度检测方法的流程图;如图2所示,在图1所示实施例的基础上,本公开涉及的光照强度检测方法包括以下步骤201-205:FIG. 2 is a flowchart of a method for detecting light intensity according to an exemplary embodiment; as shown in FIG. 2 , on the basis of the embodiment shown in FIG. 1 , the method for detecting light intensity involved in the present disclosure includes the following steps 201 -205:

在步骤201中,从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方。In step 201, the target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; The optical fingerprint sensor is arranged under the screen of the terminal.

在步骤202中,根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。In step 202, according to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted from the backlight interference area at the cover glass.

在步骤203中,获取光学指纹传感器所检测到的光线的第二光照强度。In step 203, the second illumination intensity of the light detected by the optical fingerprint sensor is acquired.

在步骤204中,计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值。In step 204, the difference between the second illumination intensity of the light detected by the optical fingerprint sensor and the first illumination intensity is calculated.

在步骤205中,将所得到的差值确定为终端所处环境的环境光的目标光照强度。In step 205, the obtained difference is determined as the target illumination intensity of ambient light in the environment where the terminal is located.

本公开的实施例提供的技术方案,通过从光学指纹传感器所检测到的光线的第二光照强度中减去背光干扰区域在显示目标内容时所发出的背光在盖板玻璃处的反射光线的第一光照强度,得到终端所处环境的环境光的目标光照强度,使得设置于屏幕下方的光学指纹传感器能够测量终端所处环境的环境光的光照强度,克服了相关技术中屏幕背光在盖板玻璃处的反射光线对光照强度测量过程的干扰,能够提高光照强度测量的准确性和稳定性。The technical solution provided by the embodiments of the present disclosure is to subtract the second illumination intensity of the light reflected by the backlight at the cover glass, which is emitted by the backlight interference area when the target content is displayed, from the second illumination intensity of the light detected by the optical fingerprint sensor. The target illumination intensity of the ambient light in the environment where the terminal is located is obtained, so that the optical fingerprint sensor disposed under the screen can measure the illumination intensity of the ambient light in the environment where the terminal is located, which overcomes the problem that the screen backlight in the related art is located on the cover glass. The reflected light at the location interferes with the light intensity measurement process, which can improve the accuracy and stability of the light intensity measurement.

图3是根据一示例性实施例示出的一种光照强度检测方法的流程图;如图3所示,在图1所示实施例的基础上,本公开涉及的光照强度检测方法包括以下步骤301-305:FIG. 3 is a flowchart of a method for detecting light intensity according to an exemplary embodiment; as shown in FIG. 3 , on the basis of the embodiment shown in FIG. 1 , the method for detecting light intensity involved in the present disclosure includes the following steps 301 -305:

在步骤301中,从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方。In step 301, the target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; The optical fingerprint sensor is arranged under the screen of the terminal.

在步骤302中,根据背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值。In step 302, the pixel value of each pixel in the backlight interference region is determined according to the target content displayed in the backlight interference region.

在步骤303中,根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。In step 303, according to the pixel value of each pixel point in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted from the backlight interference area at the cover glass is determined.

在步骤304中,获取光学指纹传感器所检测到的光线的第二光照强度。In step 304, the second illumination intensity of the light detected by the optical fingerprint sensor is acquired.

在步骤305中,根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。In step 305, the target illumination intensity of the ambient light in the environment where the terminal is located is determined according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor.

本公开的实施例提供的技术方案,通过获取并分析背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值,进而确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度,在此基础上,从第二光照强度中抵消掉第一光照强度就可以得到终端所处环境的环境光的目标光照强度,使得设置于屏幕下方的光学指纹传感器能够测量终端所处环境的环境光的光照强度,提高光照强度测量的准确性和稳定性。The technical solution provided by the embodiments of the present disclosure is to obtain and analyze the target content displayed in the backlight interference area, determine the pixel value of each pixel in the backlight interference area, and then determine the reflection of the backlight emitted by the backlight interference area on the cover glass The first illumination intensity of the light. On this basis, the target illumination intensity of the ambient light in the environment where the terminal is located can be obtained by offsetting the first illumination intensity from the second illumination intensity, so that the optical fingerprint sensor arranged at the bottom of the screen can measure The illumination intensity of ambient light in the environment where the terminal is located, which improves the accuracy and stability of illumination intensity measurement.

图4是根据一示例性实施例示出的一种光照强度检测方法的流程图;如图4所示,在图1所示实施例的基础上,本公开涉及的光照强度检测方法包括以下步骤401-408:FIG. 4 is a flowchart of a method for detecting light intensity according to an exemplary embodiment; as shown in FIG. 4 , on the basis of the embodiment shown in FIG. 1 , the method for detecting light intensity involved in the present disclosure includes the following steps 401 -408:

在步骤401中,判断是否检测到针对预设指纹区域的手指按压操作;当在预设时长内未检测到针对预设指纹区域的手指按压操作时,转到步骤402;当检测到针对预设指纹区域的手指按压操作时,转到步骤408。In step 401, it is judged whether a finger pressing operation for the preset fingerprint area is detected; when the finger pressing operation for the preset fingerprint area is not detected within the preset time period, go to step 402; When the finger in the fingerprint area is pressed, go to step 408 .

示例的,在指定时长内未再检测到手指按压操作时,才会进行光强检测,避免手指误操作。For example, the light intensity detection is performed only when the finger pressing operation is no longer detected within a specified period of time, so as to avoid misoperation of the finger.

在步骤402中,从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方。In step 402, the target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; The optical fingerprint sensor is arranged under the screen of the terminal.

在步骤403中,根据背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值。In step 403, the pixel value of each pixel in the backlight interference region is determined according to the target content displayed in the backlight interference region.

在步骤404中,根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。In step 404, according to the pixel value of each pixel in the backlight interference region, determine the first illumination intensity of the reflected light of the backlight emitted from the backlight interference region at the cover glass.

在步骤405中,获取光学指纹传感器所检测到的光线的第二光照强度。In step 405, the second illumination intensity of the light detected by the optical fingerprint sensor is acquired.

在步骤406中,计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值。In step 406, the difference between the second illumination intensity of the light detected by the optical fingerprint sensor and the first illumination intensity is calculated.

在步骤407中,将所得到的差值确定为终端所处环境的环境光的目标光照强度;流程结束。In step 407, the obtained difference is determined as the target illumination intensity of ambient light in the environment where the terminal is located; the process ends.

在步骤408中,识别手指按压操作对应的用户指纹。In step 408, the user fingerprint corresponding to the finger pressing operation is identified.

本公开的实施例提供的技术方案,通过当在预设时长内未检测到针对预设指纹区域的手指按压操作时,让光学指纹传感器测量终端所处环境的环境光的光照强度,当检测到针对预设指纹区域的手指按压操作时,让光学指纹传感器识别用户指纹,从而提高终端的屏占比,提高用户体验。The technical solution provided by the embodiments of the present disclosure is to let the optical fingerprint sensor measure the illumination intensity of the ambient light in the environment where the terminal is located when the finger pressing operation for the preset fingerprint area is not detected within a preset period of time. When a finger is pressed in the preset fingerprint area, the optical fingerprint sensor is used to identify the user's fingerprint, thereby increasing the screen ratio of the terminal and improving the user experience.

基于本公开实施例提供光照强度检测方法,光学指纹传感器可以单独提供指纹识别功能或光强检测功能,也可以同时开启指纹识别功能和光强检测功能。下面对于光学指纹传感器同时开启指纹识别功能和光强检测功能的场景进行示例说明。图5是根据一示例性实施例示出的一种光照强度检测方法的流程图;如图5所示,方法包括以下步骤501-511:Based on the light intensity detection method provided by the embodiments of the present disclosure, the optical fingerprint sensor may provide a fingerprint identification function or a light intensity detection function alone, or simultaneously enable a fingerprint identification function and a light intensity detection function. The following is an example description of a scenario in which the optical fingerprint sensor enables both the fingerprint recognition function and the light intensity detection function. FIG. 5 is a flowchart of a method for detecting light intensity according to an exemplary embodiment; as shown in FIG. 5 , the method includes the following steps 501-511:

在步骤501中,开启光学指纹传感器的光强检测功能和指纹识别功能。In step 501, the light intensity detection function and the fingerprint identification function of the optical fingerprint sensor are enabled.

在步骤502中,开启光强检测模式;分别转到步骤503和步骤504。In step 502, the light intensity detection mode is turned on; go to step 503 and step 504 respectively.

在步骤503中,输出光学指纹传感器检测到的光线的第二光照强度,即光学指纹传感器的感光值;转到步骤506。In step 503 , output the second illumination intensity of the light detected by the optical fingerprint sensor, that is, the light-sensing value of the optical fingerprint sensor; go to step 506 .

在步骤504中,从系统端截取显示内容。In step 504, the displayed content is intercepted from the system side.

示例的,系统端例如中央处理器、图形处理器或内存等。For example, the system side is such as a central processing unit, a graphics processing unit, or a memory.

在步骤505中,计算出显示影响值。In step 505, the display influence value is calculated.

在步骤506中,将光学指纹传感器的感光值抵消掉显示影响值,输出环境光的光照强度。In step 506, the photosensitive value of the optical fingerprint sensor is offset with the display influence value, and the illumination intensity of the ambient light is output.

在步骤507中,当检测到针对预设指纹区域的手指按压操作时,关闭光强检测模式。In step 507, when a finger pressing operation for the preset fingerprint area is detected, the light intensity detection mode is turned off.

在步骤508中,判断应用是否需要开启指纹功能:若是,则转到步骤509;若否,则转到步骤511。In step 508, it is determined whether the application needs to enable the fingerprint function: if yes, go to step 509; if not, go to step 511.

在步骤509中,开启指纹识别模式。In step 509, the fingerprint identification mode is turned on.

在步骤510中,指纹扫描。In step 510, the fingerprint is scanned.

在步骤511中,当检测手指离开时,转到步骤502。In step 511, when it is detected that the finger is left, go to step 502.

本公开的实施例提供的技术方案,通过将光学指纹传感器作为光强传感器工作时,在系统端截取显示内容对sensor的影响区域,通过一套拟合算法将屏幕的干扰计算出来,并抵消掉,从而获得稳定的光强数据,能够提高屏占比,节约成本,降低设计难度,提高用户体验。The technical solution provided by the embodiments of the present disclosure is that when the optical fingerprint sensor works as a light intensity sensor, the influence area of the display content on the sensor is intercepted at the system end, the interference of the screen is calculated by a set of fitting algorithms, and the interference of the screen is offset. , so as to obtain stable light intensity data, which can increase the screen ratio, save costs, reduce design difficulty, and improve user experience.

下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure.

图6是根据一示例性实施例示出的一种光照强度检测装置的框图;如图6所示,该光照强度检测装置包括:截取模块601、第一确定模块602、第一获取模块603及第二确定模块604,其中:FIG. 6 is a block diagram of an apparatus for detecting light intensity according to an exemplary embodiment; as shown in FIG. 6 , the apparatus for detecting light intensity includes: an interception module 601 , a first determination module 602 , a first acquisition module 603 , and a first Two determination module 604, wherein:

截取模块601被配置为从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方;The intercepting module 601 is configured to intercept the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor ; The optical fingerprint sensor is arranged under the screen of the terminal;

第一确定模块602被配置为根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度;The first determining module 602 is configured to determine, according to the target content displayed in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

第一获取模块603被配置为获取光学指纹传感器所检测到的光线的第二光照强度;The first acquisition module 603 is configured to acquire the second illumination intensity of the light detected by the optical fingerprint sensor;

第二确定模块604被配置为根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。The second determination module 604 is configured to determine the target illumination intensity of ambient light in the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor.

本公开实施例提供的装置能够用于执行图1所示实施例的技术方案,其执行方式和有益效果类似,此处不再赘述。The apparatus provided by the embodiment of the present disclosure can be used to implement the technical solution of the embodiment shown in FIG. 1 , and the implementation manner and beneficial effects thereof are similar, which will not be repeated here.

在一种可能的实现方式中,如图7所示,图6示出的光照强度检测装置还可以包括把第一确定模块602配置成包括:第一确定子模块701及第二确定子模块702,其中:In a possible implementation manner, as shown in FIG. 7 , the light intensity detection apparatus shown in FIG. 6 may further include configuring the first determination module 602 to include: a first determination sub-module 701 and a second determination sub-module 702 ,in:

第一确定子模块701被配置为根据背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值;The first determination sub-module 701 is configured to determine the pixel value of each pixel in the backlight interference region according to the target content displayed in the backlight interference region;

第二确定子模块702被配置为根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。The second determination sub-module 702 is configured to determine the first illumination intensity of the reflected light of the backlight emitted from the backlight interference region at the cover glass according to the pixel value of each pixel in the backlight interference region.

在一种可能的实现方式中,如图8所示,图6示出的光照强度检测装置还可以包括把第二确定模块604配置成包括:计算子模块801及第三确定子模块802,其中:In a possible implementation manner, as shown in FIG. 8 , the light intensity detection apparatus shown in FIG. 6 may further include configuring the second determination module 604 to include: a calculation sub-module 801 and a third determination sub-module 802 , wherein :

计算子模块801被配置为计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值;The calculation sub-module 801 is configured to calculate the difference between the second illumination intensity and the first illumination intensity of the light detected by the optical fingerprint sensor;

第三确定子模块802被配置为将所得到的差值确定为终端所处环境的环境光的目标光照强度。The third determination sub-module 802 is configured to determine the obtained difference value as the target illumination intensity of ambient light in the environment where the terminal is located.

在一种可能的实现方式中,如图9所示,图6示出的光照强度检测装置还可以包括:第二获取模块901及第三确定模块902,其中:In a possible implementation manner, as shown in FIG. 9 , the light intensity detection apparatus shown in FIG. 6 may further include: a second acquisition module 901 and a third determination module 902, wherein:

第二获取模块901被配置为获取光学指纹传感器的视场角、及光学指纹传感器与屏幕的距离;The second acquisition module 901 is configured to acquire the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;

第三确定模块902被配置为根据光学指纹传感器的视场角及光学指纹传感器与屏幕的距离,确定屏幕的背光干扰区域。The third determining module 902 is configured to determine the backlight interference area of the screen according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.

在一种可能的实现方式中,如图10所示,图6示出的光照强度检测装置还可以包括:检测模块1001、执行模块1002及识别模块1003,其中:In a possible implementation manner, as shown in FIG. 10 , the light intensity detection apparatus shown in FIG. 6 may further include: a detection module 1001 , an execution module 1002 and an identification module 1003 , wherein:

检测模块1001被配置检测针对预设指纹区域的手指按压操作;The detection module 1001 is configured to detect a finger pressing operation for a preset fingerprint area;

执行模块1002被配置当在预设时长内未检测到针对预设指纹区域的手指按压操作时,执行从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容的步骤;The execution module 1002 is configured to perform the step of intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal when the finger pressing operation for the preset fingerprint area is not detected within the preset time period;

识别模块1003被配置当检测到针对预设指纹区域的手指按压操作时,识别手指按压操作对应的用户指纹。The identification module 1003 is configured to identify the user fingerprint corresponding to the finger pressing operation when a finger pressing operation on the preset fingerprint area is detected.

图11是根据一示例性实施例示出的一种光照强度检测装置1100的框图,光照强度检测装置1100适用于终端,光照强度检测装置1100包括:FIG. 11 is a block diagram of an apparatus 1100 for detecting light intensity according to an exemplary embodiment. The apparatus 1100 for detecting light intensity is applicable to a terminal, and the apparatus 1100 for detecting light intensity includes:

处理器1101;processor 1101;

用于存储处理器可执行指令的存储器1102;memory 1102 for storing processor-executable instructions;

其中,处理器1101被配置为:Wherein, the processor 1101 is configured to:

从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方;The target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; the optical fingerprint sensor is arranged in Below the screen of the terminal;

根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度;According to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

获取光学指纹传感器所检测到的光线的第二光照强度;obtaining the second illumination intensity of the light detected by the optical fingerprint sensor;

根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。According to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor, the target illumination intensity of the ambient light in the environment where the terminal is located is determined.

在一个实施例中,处理组件至少包括以下任一种或组合:中央处理器、图形处理器、内存。In one embodiment, the processing component includes at least any one or a combination of the following: a central processing unit, a graphics processing unit, and a memory.

在一个实施例中,上述处理器1101还可被配置为:In one embodiment, the above-mentioned processor 1101 can also be configured to:

根据背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值;Determine the pixel value of each pixel in the backlight interference area according to the target content displayed in the backlight interference area;

根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。According to the pixel value of each pixel in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted from the backlight interference area at the cover glass is determined.

在一个实施例中,上述处理器1101还可被配置为:In one embodiment, the above-mentioned processor 1101 can also be configured to:

计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值;calculating the difference between the second illumination intensity and the first illumination intensity of the light detected by the optical fingerprint sensor;

将所得到的差值确定为终端所处环境的环境光的目标光照强度。The obtained difference value is determined as the target illumination intensity of the ambient light in the environment where the terminal is located.

在一个实施例中,上述处理器1101还可被配置为:In one embodiment, the above-mentioned processor 1101 can also be configured to:

获取光学指纹传感器的视场角、及光学指纹传感器与屏幕的距离;Obtain the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;

根据光学指纹传感器的视场角及光学指纹传感器与屏幕的距离,确定屏幕的背光干扰区域。According to the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen, the backlight interference area of the screen is determined.

在一个实施例中,上述处理器1101还可被配置为:In one embodiment, the above-mentioned processor 1101 can also be configured to:

检测针对预设指纹区域的手指按压操作;Detecting a finger pressing operation for a preset fingerprint area;

当在预设时长内未检测到针对预设指纹区域的手指按压操作时,执行从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容的步骤;或者,When the finger pressing operation for the preset fingerprint area is not detected within the preset time period, the step of intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal is performed; or,

当检测到针对预设指纹区域的手指按压操作时,识别手指按压操作对应的用户指纹。When a finger pressing operation on the preset fingerprint area is detected, the user fingerprint corresponding to the finger pressing operation is identified.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图12是根据一示例性实施例示出的一种装置的框图。例如,装置1200可以是终端等。参照图12,装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)接口1212,传感器组件1214,以及通信组件1216。Fig. 12 is a block diagram of an apparatus according to an exemplary embodiment. For example, the apparatus 1200 may be a terminal or the like. 12, apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and Communication component 1216.

处理组件1202通常被配置为控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 is generally configured to control the overall operation of the apparatus 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 can include one or more processors 1220 to execute instructions to perform all or some of the steps of the above-described methods. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202.

存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 1204 is configured to store various types of data to support operations at device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. Memory 1204 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。Power component 1206 provides power to various components of device 1200. Power supply components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 1200 .

多媒体组件1208包括在该装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。该触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与该触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 1208 includes screens that provide an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or swipe action, but also the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front-facing camera and/or a rear-facing camera. When the apparatus 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a microphone (MIC) that is configured to receive external audio signals when device 1200 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 1204 or transmitted via communication component 1216 . In some embodiments, audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如该组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessment of various aspects of device 1200 . For example, the sensor assembly 1214 can detect the open/closed state of the device 1200, the relative positioning of the components, such as the display and keypad of the device 1200, the sensor assembly 1214 can also detect the position change of the device 1200 or a component of the device 1200, Presence or absence of user contact with device 1200, device 1200 orientation or acceleration/deceleration and temperature changes of device 1200. Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,该通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1216 is configured to facilitate wired or wireless communication between apparatus 1200 and other devices. Device 1200 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1220执行以完成上述方法。例如,该非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 1204 including instructions, executable by the processor 1220 of the apparatus 1200 to accomplish the above method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

图13是根据一示例性实施例示出的一种装置的框图。例如,装置1300可以被提供为一服务器。装置1300包括处理组件1302,其进一步包括一个或多个处理器,以及由存储器1303所代表的存储器资源,用于存储可由处理组件1302的执行的指令,例如应用程序。存储器1303中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1302被配置为执行指令,以执行上述方法。Fig. 13 is a block diagram of an apparatus according to an exemplary embodiment. For example, the apparatus 1300 may be provided as a server. Apparatus 1300 includes a processing component 1302, which further includes one or more processors, and a memory resource, represented by memory 1303, for storing instructions executable by the processing component 1302, such as an application program. An application program stored in memory 1303 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1302 is configured to execute instructions to perform the above-described methods.

装置1300还可以包括一个电源组件1306被配置为执行装置1300的电源管理,一个有线或无线网络接口1305被配置为将装置1300连接到网络,和一个输入输出(I/O)接口1308。装置1300可以操作基于存储在存储器1303的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The device 1300 may also include a power supply assembly 1306 configured to perform power management of the device 1300, a wired or wireless network interface 1305 configured to connect the device 1300 to a network, and an input output (I/O) interface 1308. Device 1300 may operate based on an operating system stored in memory 1303, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.

一种非临时性计算机可读存储介质,当存储介质中的指令由装置1200或装置1300的处理器执行时,使得装置1200或装置1300能够执行如下光照强度检测方法,方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the apparatus 1200 or the apparatus 1300, the apparatus 1200 or the apparatus 1300 can execute the following light intensity detection method, the method comprising:

从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容;屏幕的背光干扰区域发出的背光在终端的盖板玻璃处的反射光线射入光学指纹传感器;光学指纹传感器设置于终端的屏幕下方;The target content displayed in the backlight interference area of the screen of the terminal is intercepted from the processing component of the terminal; the reflected light of the backlight emitted by the backlight interference area of the screen at the cover glass of the terminal enters the optical fingerprint sensor; the optical fingerprint sensor is arranged in Below the screen of the terminal;

根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度;According to the target content displayed in the backlight interference area, determine the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass;

获取光学指纹传感器所检测到的光线的第二光照强度;obtaining the second illumination intensity of the light detected by the optical fingerprint sensor;

根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度。According to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor, the target illumination intensity of the ambient light in the environment where the terminal is located is determined.

在一个实施例中,处理组件至少包括以下任一种或组合:中央处理器、图形处理器、内存。In one embodiment, the processing component includes at least any one or a combination of the following: a central processing unit, a graphics processing unit, and a memory.

在一个实施例中,根据背光干扰区域中显示的目标内容,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度,包括:In one embodiment, according to the target content displayed in the backlight interference area, determining the first illumination intensity of the reflected light of the backlight emitted by the backlight interference area at the cover glass, including:

根据背光干扰区域中显示的目标内容,确定背光干扰区域中各个像素点的像素值;Determine the pixel value of each pixel in the backlight interference area according to the target content displayed in the backlight interference area;

根据背光干扰区域中各个像素点的像素值,确定背光干扰区域发出的背光在盖板玻璃处的反射光线的第一光照强度。According to the pixel value of each pixel in the backlight interference area, the first illumination intensity of the reflected light of the backlight emitted from the backlight interference area at the cover glass is determined.

在一个实施例中,根据第一光照强度、及光学指纹传感器所检测到的光线的第二光照强度,确定终端所处环境的环境光的目标光照强度,包括:In one embodiment, determining the target illumination intensity of ambient light in the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor, including:

计算光学指纹传感器所检测到的光线的第二光照强度与第一光照强度的差值;calculating the difference between the second illumination intensity and the first illumination intensity of the light detected by the optical fingerprint sensor;

将所得到的差值确定为终端所处环境的环境光的目标光照强度。The obtained difference value is determined as the target illumination intensity of the ambient light in the environment where the terminal is located.

在一个实施例中,在从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容之前,方法还包括:In one embodiment, before intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal, the method further includes:

获取光学指纹传感器的视场角、及光学指纹传感器与屏幕的距离;Obtain the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;

根据光学指纹传感器的视场角及光学指纹传感器与屏幕的距离,确定屏幕的背光干扰区域。According to the field of view of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen, the backlight interference area of the screen is determined.

在一个实施例中,方法还包括:In one embodiment, the method further includes:

检测针对预设指纹区域的手指按压操作;Detecting a finger pressing operation for a preset fingerprint area;

当在预设时长内未检测到针对预设指纹区域的手指按压操作时,执行从终端的处理组件中截取在终端的屏幕的背光干扰区域内显示的目标内容的步骤;或者,When the finger pressing operation for the preset fingerprint area is not detected within the preset time period, the step of intercepting the target content displayed in the backlight interference area of the screen of the terminal from the processing component of the terminal is performed; or,

当检测到针对预设指纹区域的手指按压操作时,识别手指按压操作对应的用户指纹。When a finger pressing operation on the preset fingerprint area is detected, the user fingerprint corresponding to the finger pressing operation is identified.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. An illumination intensity detection method, comprising:
intercepting target content displayed in a backlight interference area of a screen of a terminal from a processing component of the terminal; reflected light rays of backlight emitted by the backlight interference area of the screen at the position of cover plate glass of the terminal are emitted into the optical fingerprint sensor; the optical fingerprint sensor is arranged below a screen of the terminal;
determining a first illumination intensity of reflected light rays of the backlight at the cover glass, which are emitted by the backlight interference area, according to target content displayed in the backlight interference area;
acquiring a second illumination intensity of the light detected by the optical fingerprint sensor;
determining target illumination intensity of ambient light of the environment where the terminal is located according to the first illumination intensity and second illumination intensity of the light detected by the optical fingerprint sensor;
the determining, according to the target content displayed in the backlight interference region, a first illumination intensity of reflected light of the backlight at the cover glass emitted by the backlight interference region includes:
determining the pixel value of each pixel point in the backlight interference area according to the target content displayed in the backlight interference area;
determining a first illumination intensity of reflected light of the backlight at the cover plate glass, which is emitted by the backlight interference region, according to the pixel value of each pixel point in the backlight interference region;
before the intercepting, from a processing component of a terminal, target content displayed within a backlight interference region of a screen of the terminal, the method further comprises:
acquiring the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;
and determining a backlight interference area of the screen according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.
2. The method of claim 1, wherein the processing component comprises at least any one or combination of: central processing unit, graphic processor, and memory.
3. The method according to claim 1, wherein determining the target illumination intensity of the ambient light of the environment in which the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor comprises:
calculating a difference value between a second illumination intensity of the light detected by the optical fingerprint sensor and the first illumination intensity;
and determining the obtained difference value as the target illumination intensity of the environment light of the environment where the terminal is located.
4. The method of claim 1, further comprising:
detecting a finger pressing operation aiming at a preset fingerprint area;
when the finger pressing operation aiming at a preset fingerprint area is not detected within a preset time length, the step of intercepting target content displayed in a backlight interference area of a screen of the terminal from a processing component of the terminal is executed; or,
when detecting that a finger of a preset fingerprint area presses, identifying a user fingerprint corresponding to the finger pressing.
5. An illumination intensity detection apparatus, comprising:
the intercepting module is used for intercepting target content displayed in a backlight interference area of a screen of the terminal from a processing component of the terminal; reflected light rays of backlight emitted by the backlight interference area of the screen at the position of cover plate glass of the terminal are emitted into the optical fingerprint sensor; the optical fingerprint sensor is arranged below a screen of the terminal;
the first determining module is used for determining first illumination intensity of reflected light rays of backlight at the cover plate glass, emitted by the backlight interference area, according to target content displayed in the backlight interference area;
the first acquisition module is used for acquiring second illumination intensity of the light rays detected by the optical fingerprint sensor;
the second determining module is used for determining the target illumination intensity of the ambient light of the environment where the terminal is located according to the first illumination intensity and the second illumination intensity of the light detected by the optical fingerprint sensor;
the first determining module includes:
the first determining submodule is used for determining the pixel value of each pixel point in the backlight interference region according to the target content displayed in the backlight interference region;
the second determining submodule is used for determining the first illumination intensity of the reflected light of the backlight at the cover plate glass, which is emitted by the backlight interference area, according to the pixel value of each pixel point in the backlight interference area;
the device further comprises:
the second acquisition module is used for acquiring the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;
and the third determining module is used for determining the backlight interference area of the screen according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.
6. The apparatus of claim 5, wherein the second determining module comprises:
the calculating submodule is used for calculating the difference value between the second illumination intensity and the first illumination intensity of the light rays detected by the optical fingerprint sensor;
and the third determining submodule is used for determining the obtained difference value as the target illumination intensity of the ambient light of the environment where the terminal is located.
7. The apparatus of claim 5, further comprising:
the detection module is used for detecting finger pressing operation aiming at a preset fingerprint area;
the terminal comprises an execution module, a processing module and a display module, wherein the execution module is used for intercepting target content displayed in a backlight interference area of a screen of the terminal from a processing component of the terminal when the finger pressing operation aiming at a preset fingerprint area is not detected within a preset time length;
the identification module is used for identifying the user fingerprint corresponding to the finger pressing operation when the finger pressing operation aiming at the preset fingerprint area is detected.
8. An illumination intensity detection apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
intercepting target content displayed in a backlight interference area of a screen of a terminal from a processing component of the terminal; reflected light rays of backlight emitted by the backlight interference area of the screen at the position of cover plate glass of the terminal are emitted into the optical fingerprint sensor; the optical fingerprint sensor is arranged below a screen of the terminal;
determining a first illumination intensity of reflected light rays of the backlight at the cover glass, which are emitted by the backlight interference area, according to target content displayed in the backlight interference area;
acquiring a second illumination intensity of the light detected by the optical fingerprint sensor;
determining target illumination intensity of ambient light of the environment where the terminal is located according to the first illumination intensity and second illumination intensity of the light detected by the optical fingerprint sensor;
the processor is further configured to: determining the pixel value of each pixel point in the backlight interference area according to the target content displayed in the backlight interference area; determining a first illumination intensity of reflected light of the backlight at the cover plate glass, which is emitted by the backlight interference region, according to the pixel value of each pixel point in the backlight interference region;
before the intercepting, from a processing component of the terminal, the target content displayed in a backlight interference area of a screen of the terminal, further comprising:
acquiring the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen;
and determining a backlight interference area of the screen according to the field angle of the optical fingerprint sensor and the distance between the optical fingerprint sensor and the screen.
9. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
CN201810714340.9A 2018-06-29 2018-06-29 Illumination intensity detection method and device Active CN109029720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810714340.9A CN109029720B (en) 2018-06-29 2018-06-29 Illumination intensity detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810714340.9A CN109029720B (en) 2018-06-29 2018-06-29 Illumination intensity detection method and device

Publications (2)

Publication Number Publication Date
CN109029720A CN109029720A (en) 2018-12-18
CN109029720B true CN109029720B (en) 2021-09-21

Family

ID=65521400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810714340.9A Active CN109029720B (en) 2018-06-29 2018-06-29 Illumination intensity detection method and device

Country Status (1)

Country Link
CN (1) CN109029720B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111179861B (en) * 2019-12-11 2021-06-15 Tcl移动通信科技(宁波)有限公司 Brightness calibration method and device, storage medium and terminal
CN113743167A (en) * 2020-05-29 2021-12-03 北京小米移动软件有限公司 Optical fingerprint module and signal processing method
CN112033527B (en) * 2020-08-26 2023-10-03 北京小米移动软件有限公司 Ambient brightness detection method, device, equipment and storage medium
CN112284522B (en) * 2020-09-23 2022-10-21 宇龙计算机通信科技(深圳)有限公司 Testing method and device of light sensor, storage medium and electronic equipment
CN112365833B (en) * 2021-01-15 2021-04-30 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN113064792A (en) * 2021-03-26 2021-07-02 联想(北京)有限公司 Information processing method and device
CN115439893A (en) * 2022-09-29 2022-12-06 惠州市博实结科技有限公司 Fingerprint identification method based on optical fingerprint attendance machine and storage medium
CN119400126A (en) * 2024-10-21 2025-02-07 青岛抖青春科技发展有限公司 Intelligent multimedia device and display method thereof

Citations (2)

* 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
CN107665698A (en) * 2017-11-13 2018-02-06 维沃移动通信有限公司 Ambient light intensity compensation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101351414B1 (en) * 2009-12-14 2014-01-23 엘지디스플레이 주식회사 Method for driving local dimming of liquid crystal display device using the same and apparatus thereof
CN102129840B (en) * 2010-01-15 2013-02-13 胜华科技股份有限公司 Backlight modulation system and method
CN105741789B (en) * 2016-05-06 2018-06-01 京东方科技集团股份有限公司 A kind of driving method and driving device of high dynamic contrast display screen
CN106713634B (en) * 2016-12-21 2020-07-14 深圳Tcl数字技术有限公司 Television backlight adjusting method and system based on mobile terminal

Patent Citations (2)

* 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
CN107665698A (en) * 2017-11-13 2018-02-06 维沃移动通信有限公司 Ambient light intensity compensation method and device

Also Published As

Publication number Publication date
CN109029720A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109029720B (en) Illumination intensity detection method and device
CN108833716A (en) Method and device for determining light intensity
JP6268285B2 (en) Screen brightness setting method and setting device
US11698297B2 (en) Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium
US10708512B2 (en) Method and device for capturing image and storage medium
EP3179711A2 (en) Method and apparatus for preventing photograph from being shielded
CN111476071B (en) Fingerprint identification method and device
JP2016525830A (en) Angle measuring method, apparatus, terminal, program, and recording medium
CN105651381A (en) Light sensor calibration method and device
CN112033527A (en) Ambient brightness detection method, device, equipment and storage medium
WO2019019347A1 (en) Optical fingerprint recognition method and apparatus, and computer readable storage medium
CN111460869A (en) Fingerprint acquisition method and device
CN105607319B (en) The automatic method and device for improving light leakage of the screen
CN107203315B (en) Click event processing method and device and terminal
CN112017598A (en) Backlight brightness adjustment method and device
CN109543564A (en) Based reminding method and device
CN114187860B (en) Spectrum information determining method and device, electronic equipment and medium
CN111506207B (en) Method and device for determining lighting area during on-screen fingerprint identification
CN115831076A (en) Screen brightness adjusting method and device, terminal and storage medium
CN115996288A (en) Method, device, equipment, medium and double-step jig for detecting resolving power of camera
CN109211115B (en) Measuring method and device
CN115145420A (en) Accidental touch prevention method, device, electronic device and storage medium
CN105094466A (en) Environmental light measurement method and device
CN111507133B (en) Fingerprint identification calibration method and device
CN107680096A (en) Image processing method and device

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