CN112927641B - Screen brightness adjusting method and device, terminal equipment and storage medium - Google Patents
Screen brightness adjusting method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN112927641B CN112927641B CN201911243729.0A CN201911243729A CN112927641B CN 112927641 B CN112927641 B CN 112927641B CN 201911243729 A CN201911243729 A CN 201911243729A CN 112927641 B CN112927641 B CN 112927641B
- Authority
- CN
- China
- Prior art keywords
- information
- brightness
- light source
- terminal device
- environment
- 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
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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/34—Control 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/36—Control 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 liquid crystals
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Controls And Circuits For Display Device (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域Technical field
本公开涉及信息处理技术领域,尤其涉及一种屏幕亮度的调整方法及装置、终端设备、存储介质。The present disclosure relates to the field of information processing technology, and in particular, to a screen brightness adjustment method and device, terminal equipment, and storage media.
背景技术Background technique
终端设备上设置有光传感器(Light Sensor),光传感器的测量值能够反映当前所在空间内的环境亮度信息。通常终端设备会依据光传感器的测量值来调整终端设备的屏幕亮度。The terminal device is equipped with a light sensor, and the measurement value of the light sensor can reflect the ambient brightness information in the current space. Usually the terminal device will adjust the screen brightness of the terminal device based on the measurement value of the light sensor.
由于光传感器具有检测视场角,其只能反映在该检测视场角范围内的环境光亮度信息,因此,对于不在检测视场角范围内的情况下,光传感器的测量值并不能准确反映该环境光亮度信息,通过光传感器的测量值调整终端设备的屏幕亮度存在准确性差的问题。Since the light sensor has a detection field of view, it can only reflect the ambient light brightness information within the detection field of view. Therefore, the measurement value of the light sensor cannot accurately reflect the situation that is not within the detection field of view. This ambient light brightness information has a problem of poor accuracy when adjusting the screen brightness of the terminal device through the measurement value of the light sensor.
发明内容Contents of the invention
本公开提供一种屏幕亮度的调整方法及装置、终端设备、存储介质。The present disclosure provides a method and device for adjusting screen brightness, a terminal device, and a storage medium.
根据本公开实施例的第一方面,提供一种屏幕亮度的调整方法,包括:According to a first aspect of an embodiment of the present disclosure, a method for adjusting screen brightness is provided, including:
获取终端设备当前所在空间的亮度模型;Obtain the brightness model of the space where the terminal device is currently located;
确定所述终端设备与所述当前空间内光源之间的相对位置;Determine the relative position between the terminal device and the light source in the current space;
基于所述终端设备与所述当前空间内光源之间的相对位置及所述亮度模型,获得补偿信息;Obtain compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model;
利用所述补偿信息对所述终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息;Use the compensation information to compensate the first environment brightness information detected by the terminal device, and obtain the compensated second environment brightness information;
基于所述第二环境亮度信息,调整所述终端设备的屏幕亮度。Based on the second environment brightness information, adjust the screen brightness of the terminal device.
在一种实施例中,所述获取终端设备当前所在空间的亮度模型,包括:In one embodiment, obtaining the brightness model of the space where the terminal device is currently located includes:
检测所述终端设备的姿态信息;Detecting posture information of the terminal device;
检测所述终端设备在不同姿态下的环境亮度信息;Detect the ambient brightness information of the terminal device in different postures;
根据所述姿态信息及所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。According to the posture information and the environment brightness information, a brightness model of the space where the terminal device is currently located is generated.
在一种实施例中,所述根据所述姿态信息及所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型,包括:In one embodiment, generating a brightness model of the space where the terminal device is currently located based on the posture information and the environment brightness information includes:
根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息;Determine the environment brightness information when the terminal device is at different angles to the vertical direction of the first plane according to the detection time of the posture information and the environment brightness information;
根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,其中,所述第二平面垂直于所述第一平面;According to the detection time of the posture information and the environment brightness information, the environment brightness information when the terminal device is at different angles to the vertical direction of the second plane is determined, wherein the second plane is perpendicular to the first plane;
根据所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息,及所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。According to the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane, and the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane, Generate a brightness model of the space where the terminal device is currently located.
在一种实施例中,所述基于所述终端设备与所述当前空间内光源之间的相对位置及所述亮度模型,获得补偿信息,包括:In one embodiment, obtaining compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model includes:
基于所述亮度模型中的环境亮度信息,确定所述光源对应的光源类型信息,所述光源类型信息包括所述光源的亮度类型信息和所述光源的发光角度类型信息;Based on the ambient brightness information in the brightness model, determine the light source type information corresponding to the light source, where the light source type information includes the brightness type information of the light source and the luminous angle type information of the light source;
基于所述光源类型信息,查询与所述光源类型信息对应的补偿模型;Based on the light source type information, query the compensation model corresponding to the light source type information;
基于所述终端设备与所述光源之间的相对位置及所述补偿模型,确定所述补偿信息。The compensation information is determined based on the relative position between the terminal device and the light source and the compensation model.
在一种实施例中,所述基于所述亮度模型中的环境亮度信息,确定所述光源对应的光源类型信息,包括:In one embodiment, determining the light source type information corresponding to the light source based on the environmental brightness information in the brightness model includes:
获取所述亮度模型中最大环境亮度信息和最小环境亮度信息;Obtain the maximum environment brightness information and the minimum environment brightness information in the brightness model;
基于所述最大环境亮度信息和所述最小环境亮度信息,确定所述光源的亮度类型信息。Based on the maximum environment brightness information and the minimum environment brightness information, brightness type information of the light source is determined.
在一种实施例中,所述基于所述最大环境亮度信息和所述最小环境亮度信息,确定所述光源的亮度类型信息,包括:In one embodiment, determining the brightness type information of the light source based on the maximum environment brightness information and the minimum environment brightness information includes:
当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值小于或者等于第一阈值时,确定所述光源的亮度类型为第一亮度类型;When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is less than or equal to the first threshold, it is determined that the brightness type of the light source is the first brightness type;
当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值大于所述第一阈值时,确定所述光源的亮度类型为第二亮度类型。When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is greater than the first threshold, the brightness type of the light source is determined to be the second brightness type.
在一种实施例中,所述基于所述亮度模型中的环境亮度信息,确定所述光源对应的光源类型信息,包括:In one embodiment, determining the light source type information corresponding to the light source based on the environmental brightness information in the brightness model includes:
基于所述亮度模型中最大环境亮度信息,确定所述光源的半波角信息;Determine the half-wave angle information of the light source based on the maximum environmental brightness information in the brightness model;
基于所述光源的半波角信息,确定所述光源的发光角度类型信息。Based on the half-wave angle information of the light source, the luminous angle type information of the light source is determined.
在一种实施例中,所述基于所述光源的半波角信息,确定所述光源的发光角度类型信息,包括:In one embodiment, determining the luminous angle type information of the light source based on the half-wave angle information of the light source includes:
当所述光源的半波角小于或者等于第二阈值时,确定所述光源的发光角度类型为第一发光角度类型;When the half-wave angle of the light source is less than or equal to the second threshold, determine the luminescence angle type of the light source to be the first luminescence angle type;
当所述光源的半波角大于所述第二阈值时,确定所述光源的发光角度类型为第二发光角度类型。When the half-wave angle of the light source is greater than the second threshold, the luminescence angle type of the light source is determined to be the second luminescence angle type.
在一种实施例中,所述利用所述补偿信息对所述终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息,包括:In one embodiment, using the compensation information to compensate the first environment brightness information detected by the terminal device and obtaining the compensated second environment brightness information includes:
当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围外时,基于所述补偿信息调整所述第一环境亮度信息并得到所述第二环境亮度信息。When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained based on the brightness model of the relative position query is outside the preset range, the adjustment method is adjusted based on the compensation information. The first environment brightness information is obtained and the second environment brightness information is obtained.
在一种实施例中,所述方法还包括:In one embodiment, the method further includes:
当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围内时,将所述亮度模型中最大环境亮度信息作为所述第一环境亮度信息,并基于所述补偿信息和所述最大环境亮度信息,确定所述第二环境亮度信息。When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained from the brightness model based on the relative position query is within a preset range, the maximum value in the brightness model is The environment brightness information is used as the first environment brightness information, and the second environment brightness information is determined based on the compensation information and the maximum environment brightness information.
在一种实施例中,所述基于所述补偿信息调整所述第一环境亮度信息并得到所述第二环境亮度信息,包括:In one embodiment, adjusting the first environment brightness information based on the compensation information and obtaining the second environment brightness information includes:
基于所述终端设备检测所述第一环境亮度信息时与所述光源之间的相对位置,查询所述亮度模型得到与所述相对位置对应的第四环境亮度信息;Based on the relative position between the terminal device and the light source when detecting the first environment brightness information, query the brightness model to obtain fourth environment brightness information corresponding to the relative position;
将所述第四环境亮度信息,与所述亮度模型中最大环境亮度信息进行比较,得到补偿系数;Compare the fourth environment brightness information with the maximum environment brightness information in the brightness model to obtain a compensation coefficient;
基于所述补偿信息及所述补偿系数对所述第一环境亮度信息进行调整,得到所述第二环境亮度信息。The first environment brightness information is adjusted based on the compensation information and the compensation coefficient to obtain the second environment brightness information.
根据本公开实施例的第二方面,提供一种调整亮度的装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, a device for adjusting brightness is provided, and the device includes:
模型确定模块,配置为获取终端设备当前所在空间的亮度模型;The model determination module is configured to obtain the brightness model of the space where the terminal device is currently located;
位置确定模块,配置为确定所述终端设备与所述当前空间内光源之间的相对位置;a position determination module configured to determine the relative position between the terminal device and the light source in the current space;
第一获取模块,配置为基于所述终端设备与所述当前空间内光源之间的相对位置及所述亮度模型,获得补偿信息;A first acquisition module configured to obtain compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model;
第二获取模块,配置为利用所述补偿信息对所述终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息;The second acquisition module is configured to use the compensation information to compensate the first environment brightness information detected by the terminal device, and obtain the compensated second environment brightness information;
调整模块,配置为基于所述第二环境亮度信息,调整所述终端设备的屏幕亮度。The adjustment module is configured to adjust the screen brightness of the terminal device based on the second environment brightness information.
在一种实施例中,所述模型确定模块,包括:In one embodiment, the model determination module includes:
检测模块,配置为检测所述终端设备的姿态信息,并检测所述终端设备在不同姿态下的环境亮度信息;A detection module configured to detect posture information of the terminal device and detect environmental brightness information of the terminal device in different postures;
生成模块,配置为根据所述姿态信息及所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。A generation module configured to generate a brightness model of the space where the terminal device is currently located based on the posture information and the environment brightness information.
在一种实施例中,生成模块,具体配置为根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息;In one embodiment, the generation module is specifically configured to determine, according to the detection time of the posture information and the environmental brightness information, the terminal device and the vertical direction of the first plane at different angles. Environmental brightness information;
根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,其中,所述第二平面垂直于所述第一平面;According to the detection time of the posture information and the environment brightness information, the environment brightness information when the terminal device is at different angles to the vertical direction of the second plane is determined, wherein the second plane is perpendicular to the first plane;
根据所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息,及所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。According to the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane, and the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane, Generate a brightness model of the space where the terminal device is currently located.
在一种实施例中,第一获取模块,包括:In one embodiment, the first acquisition module includes:
第三获取模块,配置为基于所述亮度模型中的环境亮度信息,确定所述光源对应的光源类型信息,所述光源类型信息包括所述光源的亮度类型信息和所述光源的发光角度类型信息;The third acquisition module is configured to determine the light source type information corresponding to the light source based on the environmental brightness information in the brightness model. The light source type information includes the brightness type information of the light source and the luminous angle type information of the light source. ;
查询模块,配置为基于所述光源类型信息,查询与所述光源类型信息对应的补偿模型;A query module configured to query the compensation model corresponding to the light source type information based on the light source type information;
第四获取模块,配置为基于所述终端设备与所述光源之间的相对位置及所述补偿模型,确定所述补偿信息。A fourth acquisition module is configured to determine the compensation information based on the relative position between the terminal device and the light source and the compensation model.
在一种实施例中,第三获取模块,包括:In one embodiment, the third acquisition module includes:
第五获取模块,配置为获取所述亮度模型中最大环境亮度信息和最小环境亮度信息;The fifth acquisition module is configured to acquire the maximum environment brightness information and the minimum environment brightness information in the brightness model;
第六获取模块,配置为基于所述最大环境亮度信息和所述最小环境亮度信息,确定所述光源的亮度类型信息。A sixth acquisition module is configured to determine the brightness type information of the light source based on the maximum environment brightness information and the minimum environment brightness information.
在一种实施例中,第六获取模块,具体配置为当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值小于或者等于第一阈值时,确定所述光源的亮度类型为第一亮度类型;当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值大于所述第一阈值时,确定所述光源的亮度类型为第二亮度类型。In one embodiment, the sixth acquisition module is specifically configured to determine that when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is less than or equal to the first threshold, The brightness type of the light source is a first brightness type; when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is greater than the first threshold, the brightness of the light source is determined The type is the second brightness type.
在一种实施例中,第三获取模块,包括:In one embodiment, the third acquisition module includes:
第七获取模块,配置为基于所述亮度模型中最大环境亮度信息,确定所述光源的半波角信息;A seventh acquisition module configured to determine the half-wave angle information of the light source based on the maximum environmental brightness information in the brightness model;
第八获取模块,配置为基于所述光源的半波角信息,确定所述光源的发光角度类型信息。The eighth acquisition module is configured to determine the luminous angle type information of the light source based on the half-wave angle information of the light source.
在一种实施例中,第八获取模块,具体配置为当所述光源的半波角小于或者等于第二阈值时,确定所述光源的发光角度类型为第一发光角度类型;当所述光源的半波角大于所述第二阈值时,确定所述光源的发光角度类型为第二发光角度类型。In one embodiment, the eighth acquisition module is specifically configured to determine the luminous angle type of the light source to be the first luminous angle type when the half-wave angle of the light source is less than or equal to the second threshold; when the light source When the half-wave angle is greater than the second threshold, the luminescence angle type of the light source is determined to be the second luminescence angle type.
在一种实施例中,第三获取模块,具体配置为当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围外时,基于所述补偿信息调整所述第一环境亮度信息并得到所述第二环境亮度信息。In one embodiment, the third acquisition module is specifically configured to detect the first environment brightness information detected by the terminal device and the third environment brightness information obtained based on the brightness model of the relative position query. When the difference is outside the preset range, the first environment brightness information is adjusted based on the compensation information and the second environment brightness information is obtained.
在一种实施例中,第三获取模块,还具体配置为当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围内时,将所述亮度模型中最大环境亮度信息作为所述第一环境亮度信息,并基于所述补偿信息和所述最大环境亮度信息,确定所述第二环境亮度信息。In one embodiment, the third acquisition module is further specifically configured to compare the first environment brightness information detected by the terminal device with the third environment brightness information obtained from the brightness model based on the relative position query. When the difference is within a preset range, the maximum environment brightness information in the brightness model is used as the first environment brightness information, and the second environment brightness information is determined based on the compensation information and the maximum environment brightness information. .
在一种实施例中,第三获取模块,具体配置为基于所述终端设备检测所述第一环境亮度信息时与所述光源之间的相对位置,查询所述亮度模型得到与所述相对位置对应的第四环境亮度信息;将所述第四环境亮度信息,与所述亮度模型中最大环境亮度信息进行比较,得到补偿系数;基于所述补偿信息及所述补偿系数对所述第一环境亮度信息进行调整,得到所述第二环境亮度信息。In one embodiment, the third acquisition module is specifically configured to query the brightness model to obtain the relative position based on the relative position between the terminal device and the light source when detecting the first environment brightness information. Corresponding fourth environment brightness information; comparing the fourth environment brightness information with the maximum environment brightness information in the brightness model to obtain a compensation coefficient; based on the compensation information and the compensation coefficient, the first environment The brightness information is adjusted to obtain the second environment brightness information.
根据本公开实施例的第三方面,提供一种终端设备,包括:According to a third aspect of the embodiment of the present disclosure, a terminal device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
其中,所述处理器被配置为执行如上述第一方面中所述的屏幕亮度的调整方法。Wherein, the processor is configured to perform the screen brightness adjustment method as described in the first aspect.
根据本公开实施例的第四方面,提供一种存储介质,包括:According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, including:
当所述存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行如上述第一方面中所述的屏幕亮度的调整方法。When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is enabled to perform the screen brightness adjustment method as described in the first aspect.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例在不改变现有的光传感器的硬件条件,本公开实施例通过确定当前所在空间的亮度模型和终端设备的当前位置,来对检测的第一环境亮度信息进行补偿,如此,可以获取准确的终端设备的环境亮度信息,进而使得屏幕亮度的调整更加准确,提高了用户体验感。并且,相对于现有的通过设置多个光传感器来检测所在空间内的环境亮度信息,本公开实施例提出的通过软件的方式调整屏幕亮度,可以针对性地弥补光传感器的硬件上视场角范围有限的问题,同时本公开实施例并不需要在终端设备上额外地增加的光传感器等硬件以弥补视场角,可以简化终端设备的结构设计,减少终端设备中光传感器的个数,适应于终端设备的小型化发展,同时,也节省了终端设备的制造成本。Without changing the hardware conditions of the existing light sensor, the embodiments of the present disclosure compensate for the detected first environment brightness information by determining the brightness model of the current space and the current position of the terminal device. In this way, it is possible Obtain accurate environmental brightness information of the terminal device, thereby making the screen brightness adjustment more accurate and improving the user experience. Moreover, compared to the existing method of setting up multiple light sensors to detect environmental brightness information in the space, the embodiment of the present disclosure proposes adjusting the screen brightness through software, which can specifically compensate for the hardware field of view of the light sensor. The problem of limited scope, at the same time, the embodiment of the present disclosure does not require additional hardware such as light sensors on the terminal device to compensate for the field of view, which can simplify the structural design of the terminal device, reduce the number of light sensors in the terminal device, and adapt to For the miniaturization development of terminal equipment, it also saves the manufacturing cost of terminal equipment.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit 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 invention and together with the description serve to explain the principles of the invention.
图1是本公开实施例示出的终端设备的检测视场角示意图。FIG. 1 is a schematic diagram of the detection field of view of a terminal device according to an embodiment of the present disclosure.
图2是本公开实施例示出的终端设备、用户以及光源之间位置的示意图。FIG. 2 is a schematic diagram of the positions between a terminal device, a user, and a light source according to an embodiment of the present disclosure.
图3是本公开实施例示出的一种屏幕亮度的调整方法流程图一。FIG. 3 is a flowchart 1 of a method for adjusting screen brightness according to an embodiment of the present disclosure.
图4是本公开实施例示出的终端设备与光源之间的位置示意图一。FIG. 4 is a schematic diagram 1 of the position between the terminal device and the light source according to an embodiment of the present disclosure.
图5是本公开实施例示出的终端设备与光源之间的位置示意图二。FIG. 5 is a second schematic diagram of the position between the terminal device and the light source according to an embodiment of the present disclosure.
图6是本公开实施例示出的参考坐标系的示意图。FIG. 6 is a schematic diagram of a reference coordinate system according to an embodiment of the present disclosure.
图7是根据一示例性实施例示出的亮度模型对应的曲线示意图。FIG. 7 is a schematic diagram of a curve corresponding to a brightness model according to an exemplary embodiment.
图8是根据一示例性实施例示出的补偿模型对应的曲线示意图一。FIG. 8 is a schematic diagram 1 of the curves corresponding to the compensation model according to an exemplary embodiment.
图9是根据一示例性实施例示出的补偿模型对应的曲线示意图二。FIG. 9 is a second schematic diagram of curves corresponding to the compensation model according to an exemplary embodiment.
图10是根据一示例性实施例示出的补偿模型对应的曲线示意图三。Figure 10 is a schematic diagram three of the curves corresponding to the compensation model according to an exemplary embodiment.
图11是根据一示例性实施例示出的补偿模型对应的曲线示意图四。FIG. 11 is a schematic diagram 4 of the curves corresponding to the compensation model according to an exemplary embodiment.
图12是本公开实施例示出的一种屏幕亮度的调整方法流程图二。FIG. 12 is a flowchart 2 of a method for adjusting screen brightness according to an embodiment of the present disclosure.
图13是本公开实施例示出的一种屏幕亮度的调整装置图一。FIG. 13 is a diagram 1 of a screen brightness adjustment device according to an embodiment of the present disclosure.
图14是本公开实施例示出的一种屏幕亮度的调整装置图二。Figure 14 is Figure 2 of a screen brightness adjustment device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.
如图1所示,终端设备的壳体上设置有开口,光传感器设置在壳体内并设置在开口处,环境光通过开口射入到光传感器,光传感器基于射入的环境光检测其环境亮度信息。该光传感器的检测视场角范围为A。As shown in Figure 1, the housing of the terminal device is provided with an opening. The light sensor is placed in the housing and at the opening. The ambient light is incident on the light sensor through the opening. The light sensor detects the ambient brightness based on the incident ambient light. information. The detection field of view range of this light sensor is A.
如图2所示,光源201设置在终端设备显示面的背面204的方向,用户205位于终端设备的显示面202所朝向的方向,光传感器203设置在终端设备的显示面202所在的平面上。As shown in FIG. 2 , the light source 201 is disposed in the direction of the back 204 of the display surface of the terminal device, the user 205 is located in the direction of the display surface 202 of the terminal device, and the light sensor 203 is disposed on the plane where the display surface 202 of the terminal device is located.
在实际设置屏幕亮度的过程中,需要将屏幕的亮度调整到与用户感知的亮度相匹配。由于该光传感器是背对着光源,而用户是正对着光源的,因此,实际上光传感器只能采集在视场角A范围内通过用户反射回的光线,其采集的并不是用户实际感知到的光线,进而使得光传感器的检测值是小于实际用户感知的亮度值的。可见,通过光传感器的检测值直接来调整屏幕亮度,存在调整后的屏幕亮度并不能符合用户实际所需的屏幕亮度。In the actual process of setting the screen brightness, the brightness of the screen needs to be adjusted to match the brightness perceived by the user. Since the light sensor is facing away from the light source and the user is facing the light source, the light sensor can actually only collect the light reflected by the user within the field of view A, and what it collects is not what the user actually perceives. of light, thus causing the detection value of the light sensor to be smaller than the brightness value perceived by the actual user. It can be seen that if the screen brightness is directly adjusted through the detection value of the light sensor, the adjusted screen brightness may not meet the actual screen brightness required by the user.
又现有的通过在终端设备上设置两个光传感器,一个光传感器设置在终端设备的显示面所在的一侧,另一光传感器设置在终端设备的显示面的背面的一侧,其是通过增加额外的光传感器来解决光传感器视场角有限的问题,存在占用终端设备空间、增加设计难度和成本的问题。In the existing method, two light sensors are provided on the terminal equipment. One light sensor is placed on the side where the display surface of the terminal equipment is located, and the other light sensor is placed on the back side of the display surface of the terminal equipment. This is achieved by Adding additional light sensors to solve the problem of limited field of view of light sensors has the problem of occupying the space of terminal equipment and increasing design difficulty and cost.
基于此,本公开实施例提出了一种屏幕亮度的调整方法,图3是本公开实施例示出的一种屏幕亮度的调整方法流程图一,如图3所示,应用于终端设备的方法包括以下步骤:Based on this, an embodiment of the present disclosure proposes a method for adjusting screen brightness. Figure 3 is a flowchart 1 of a method for adjusting screen brightness according to an embodiment of the present disclosure. As shown in Figure 3, the method applied to a terminal device includes Following steps:
S11、获取终端设备当前所在空间的亮度模型;S11. Obtain the brightness model of the space where the terminal device is currently located;
S12、确定终端设备与当前空间内光源之间的相对位置;S12. Determine the relative position between the terminal device and the light source in the current space;
S13、基于终端设备与当前空间内光源之间的相对位置及亮度模型,获得补偿信息;S13. Obtain compensation information based on the relative position and brightness model between the terminal device and the light source in the current space;
S14、利用补偿信息对终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息;S14. Use the compensation information to compensate the first environment brightness information detected by the terminal device, and obtain the compensated second environment brightness information;
S15、基于第二环境亮度信息,调整终端设备的屏幕亮度。S15. Based on the second environment brightness information, adjust the screen brightness of the terminal device.
上述终端设备为设置有屏幕的终端设备,该终端设备可以为可穿戴式电子设备和移动终端,该移动终端包括手机、笔记本以及平板电脑,该可穿戴电子设备包括智能手表,本公开实施例不作限制。The above-mentioned terminal device is a terminal device provided with a screen. The terminal device may be a wearable electronic device and a mobile terminal. The mobile terminal includes a mobile phone, a notebook and a tablet computer. The wearable electronic device includes a smart watch. The embodiments of this disclosure are not limit.
终端设备上存储有亮度模型。亮度模型至少包含:终端设备与当前所在空间内光源之间的不同相对位置对应的环境亮度信息。确定终端设备当前所在空间的亮度模型,包括:从存储器中读取与当前所在空间相匹配的亮度模型信息,以获取亮度模型;或者,当存储器中没有与当前所在空间相匹配的亮度模型时,根据终端设备与当前所在空间内光源之间的不同相对位置对应的环境亮度信息,生成终端设备当前所在空间的亮度模型。The brightness model is stored on the terminal device. The brightness model at least includes: environmental brightness information corresponding to different relative positions between the terminal device and the light source in the current space. Determining the brightness model of the space where the terminal device is currently located includes: reading the brightness model information that matches the current space from the memory to obtain the brightness model; or, when there is no brightness model that matches the current space in the memory, According to the environmental brightness information corresponding to different relative positions between the terminal device and the light source in the current space, a brightness model of the space where the terminal device is currently located is generated.
本公开实施例中,终端设备在当前所在空间的位置实时变化的,例如,在用户站着时,终端设备与光源之间的位置为一个位置;在用户躺着时,终端设备与光源之间的位置为另一个位置。又终端设备在不同位置下环境亮度信息是不同的,例如终端设备在靠近光源的位置检测得到的环境亮度值,要高于远离光源的位置检测得到的环境亮度值。因此,在调整屏幕亮度的过程中,需要确定终端设备与光源之间的相对位置,并基于该终端设备与光源之间的相对位置才能精确地确定补偿信息。In the embodiment of the present disclosure, the position of the terminal device in the current space changes in real time. For example, when the user is standing, the position between the terminal device and the light source is one position; when the user is lying down, the position between the terminal device and the light source is The position is another position. In addition, the environmental brightness information of the terminal device is different in different positions. For example, the ambient brightness value detected by the terminal device at a position close to the light source is higher than the ambient brightness value detected at a position far away from the light source. Therefore, in the process of adjusting the screen brightness, it is necessary to determine the relative position between the terminal device and the light source, and the compensation information can be accurately determined based on the relative position between the terminal device and the light source.
需要说明的是,终端设备与光源之间的相对位置包括:终端设备与光源在水平面上的角度,和/或,终端设备与光源在竖直平面上的角度。It should be noted that the relative position between the terminal device and the light source includes: the angle between the terminal device and the light source on the horizontal plane, and/or the angle between the terminal device and the light source on the vertical plane.
如图4所示,终端设备101与光源102在水平面上的角度为α。如图5所示,终端设备101与光源102在竖直平面上的角度为β。As shown in FIG. 4 , the angle between the terminal device 101 and the light source 102 on the horizontal plane is α. As shown in FIG. 5 , the angle between the terminal device 101 and the light source 102 on the vertical plane is β.
需要说明的是,在终端设备当前所在空间内环境光比较复杂,即空间内有多个光源或者不同类型的光源时,终端设备上光传感器的检测值就不能准确的反映在检测视场角范围外的环境亮度信息。因此,需要通过补偿信息对终端设备的检测的第一环境信息进行补偿以获取补偿后的第二环境亮度信息,再利用第二环境亮度信息调整终端设备的屏幕亮度信息。It should be noted that when the ambient light in the space where the terminal device is currently located is relatively complex, that is, when there are multiple light sources or different types of light sources in the space, the detection value of the light sensor on the terminal device cannot be accurately reflected in the detection field of view range. external environment brightness information. Therefore, it is necessary to compensate the detected first environment information of the terminal device through the compensation information to obtain the compensated second environment brightness information, and then use the second environment brightness information to adjust the screen brightness information of the terminal device.
如此,一方面,本公开实施例考虑到了终端设备的位置如姿态的变化会影响检测的环境亮度信息,因此,本公开实施通过终端设备与光源之间的相对位置获取补偿信息,能够适应终端设备与光源之间位置不断变化的特性,能够得到准确的补偿信息,以提高屏幕亮度的调整精度;另一方面,本公开实施例是基于补偿后的第二环境亮度信息来调整终端设备的亮度,不再是直接通过检测的第一环境亮度信息对终端设备的屏幕亮度进行调整,使得屏幕亮度调整更加准确,更加符合用户的感知,提高用户体验感。In this way, on the one hand, the embodiments of the present disclosure take into account that changes in the position, such as posture, of the terminal device will affect the detected environment brightness information. Therefore, the implementation of the present disclosure obtains compensation information through the relative position between the terminal device and the light source, and can adapt to the situation of the terminal device. Due to the changing position of the light source, accurate compensation information can be obtained to improve the adjustment accuracy of screen brightness; on the other hand, embodiments of the present disclosure adjust the brightness of the terminal device based on the compensated second environment brightness information, It is no longer necessary to directly adjust the screen brightness of the terminal device through the detected first environment brightness information, making the screen brightness adjustment more accurate, more in line with the user's perception, and improving the user experience.
同时,相对于现有的通过设置多个光传感器来检测所在空间内的环境光信息,如显示面所在的面设置一个光传感器,显示面的背面设置一个光传感器,本公开实施例提出的通过软件的方式调整屏幕亮度,其并不需要在终端设备额外增加硬件,可以简化终端设备的结构设计,减少终端设备中光传感器的个数,适应于终端设备的小型化发展,也节省了终端设备的制造成本。At the same time, compared with the existing method of setting up multiple light sensors to detect ambient light information in the space, for example, one light sensor is provided on the surface where the display surface is located, and one light sensor is provided on the back of the display surface. The method proposed by the embodiment of the present disclosure is Adjusting the screen brightness through software does not require additional hardware in the terminal device. It can simplify the structural design of the terminal device, reduce the number of light sensors in the terminal device, adapt to the miniaturization development of the terminal device, and also save the cost of the terminal device. manufacturing costs.
在一种实施例中,获取终端设备当前所在空间的亮度模型,包括:In one embodiment, obtaining the brightness model of the space where the terminal device is currently located includes:
检测终端设备的姿态信息;Detect the posture information of the terminal device;
检测终端设备在不同姿态下的环境亮度信息;Detect the ambient brightness information of the terminal device in different postures;
根据姿态信息及所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。According to the posture information and the environment brightness information, a brightness model of the space where the terminal device is currently located is generated.
需要说明的是,本公开实施例可以根据终端设备的定位信息,确定终端设备进入的当前所在空间是否已经建立亮度模型;当终端设备进入的当前所在空间未建立亮度模型时,输出亮度模型建立的提示信息;并检测基于提示信息下的终端的姿态信息。It should be noted that the embodiments of the present disclosure can determine whether the brightness model has been established in the current space that the terminal device enters based on the positioning information of the terminal device; when the brightness model has not been established in the current space that the terminal device enters, output the brightness model established prompt information; and detect the posture information of the terminal based on the prompt information.
本公开实施例中,终端设备可以通过所在空间内的WIFI信号、移动信号或者蓝牙定位,来确定终端设备的定位信息。例如,终端设备内覆盖了WIFI信号,终端设备在靠近WIFI信号发射器的位置时WIFI信号强,终端设备在远离WIFI信号发射器的位置时WIFI信号弱,又WIFI信号的发射器在空间内的位置是固定的,因此,可以基于WIFI信号的强弱来定位终端设备。In the embodiment of the present disclosure, the terminal device can determine the positioning information of the terminal device through WIFI signals, mobile signals or Bluetooth positioning in the space where it is located. For example, the terminal device is covered with WIFI signals. When the terminal device is close to the WIFI signal transmitter, the WIFI signal is strong. When the terminal device is far away from the WIFI signal transmitter, the WIFI signal is weak. Moreover, the WIFI signal transmitter is in the space. The location is fixed, so the terminal device can be located based on the strength of the WIFI signal.
不同空间内的光源可能是不同的,又在不同光源下终端设备检测的环境亮度信息是不同的,因此,不同空间内的亮度模型是不同的。进而,在终端设备进入到当前空间时,需要确定终端设备的当前所在空间是否已经建立亮度模型。如果当前所在空间内已经建立亮度模型,则在调整屏幕亮度的过程中,可以直接在存储器中查询获取亮度模型;如果终端设备进入当前所在空间未建立亮度模型时,在调整屏幕亮度的过程中需要建立亮度模型,此时,终端设备可以输出亮度模型建立的提示信息,并生成亮度模型。The light sources in different spaces may be different, and the environmental brightness information detected by the terminal device under different light sources is different. Therefore, the brightness models in different spaces are different. Furthermore, when the terminal device enters the current space, it needs to be determined whether a brightness model has been established in the current space of the terminal device. If the brightness model has been established in the current space, during the process of adjusting the screen brightness, the brightness model can be directly queried in the memory; if the terminal device enters the current space and no brightness model has been established, it is required during the process of adjusting the screen brightness. Establish a brightness model. At this time, the terminal device can output prompt information for establishing the brightness model and generate a brightness model.
需要说明的是,终端设备进入当前所在空间未建立亮度模型包括:终端设备首次进入到该当前空间,进而在当前所在空间内未建立亮度模型。因此,在确定终端设备进入当前所在空间内未建立亮度模型的过程中,可以先判断终端设备是否首次进入到该当前空间。It should be noted that the failure to establish a brightness model when the terminal device enters the current space includes: the terminal device enters the current space for the first time and then does not establish a brightness model in the current space. Therefore, in the process of determining that the terminal device has entered the current space and no brightness model has been established, it may be first determined whether the terminal device has entered the current space for the first time.
当终端设备不是首次进入到该当前空间,且存储器中存储有当前所在空间的亮度模型时,可以直接在存储器中查询并获取亮度模型。当终端设备是首次进入到该当前空间,表明终端设备当前所在空间未建立亮度模型,因此,需要进一步输出亮度模型建立的提示信息,并生成亮度模型。When the terminal device does not enter the current space for the first time, and the brightness model of the current space is stored in the memory, the brightness model can be directly queried and obtained in the memory. When the terminal device enters the current space for the first time, it indicates that the brightness model is not established in the space where the terminal device is currently located. Therefore, it is necessary to further output prompt information for establishing the brightness model and generate a brightness model.
上述输出亮度模型建立的提示信息包括:在屏幕上显示提示框,并在提示框中显示提示信息。该提示信息用于提示用户旋转终端设备以校准终端设备。The prompt information established by the above output brightness model includes: displaying a prompt box on the screen, and displaying the prompt information in the prompt box. This prompt information is used to prompt the user to rotate the terminal device to calibrate the terminal device.
上述提示信息包括:改变终端设备姿态的提示信息或者旋转终端设备的提示信息,本公开实施例不作限制。其中,在旋转终端设备的过程中,终端设备能够获取不同姿态下的环境亮度信息。The above prompt information includes: prompt information for changing the posture of the terminal device or prompt information for rotating the terminal device, which are not limited in the embodiments of the present disclosure. Among them, during the process of rotating the terminal device, the terminal device can obtain environmental brightness information in different postures.
上述终端设备的姿态可以包括终端设备与第一平面的垂直方向之间的角度,和/或,终端设备与第二平面的垂直方向之间的角度,该第一平面与第二平面垂直。The posture of the terminal device may include an angle between the terminal device and a vertical direction of the first plane, and/or an angle between the terminal device and a vertical direction of the second plane, where the first plane is perpendicular to the second plane.
示例性地,第一平面可以是与地面垂直的平面,第二平面可以是与地面平行的平面。For example, the first plane may be a plane perpendicular to the ground, and the second plane may be a plane parallel to the ground.
上述检测姿态信息的姿态检测装置可以包括终端设备的加速度传感器、磁场传感器或者陀螺仪传感器等传感器中的一种或多种传感器组合的旋转矢量传感器。检测环境亮度信息的亮度检测装置可以包括光传感器,本公开实施例不作限制。The above-mentioned attitude detection device for detecting attitude information may include a rotation vector sensor that is one or a combination of sensors such as an acceleration sensor, a magnetic field sensor, or a gyroscope sensor of the terminal device. The brightness detection device that detects environmental brightness information may include a light sensor, which is not limited by the embodiments of the present disclosure.
需要说明的是,旋转矢量传感器的旋转矢量可以用旋转角和旋转轴的组合来代表终端设备的旋转角度。该旋转轴包括:X轴、Y轴和Z轴。其中,X轴是用向量积Y*Z来定义的,X轴在终端设备的当前位置与地面相切,并指向东方;Y轴在终端设备的当前位置与地面相切,并指向地磁场的北极;Z轴的方向指向天空,并垂直于地面。It should be noted that the rotation vector of the rotation vector sensor can represent the rotation angle of the terminal device using a combination of the rotation angle and the rotation axis. The rotation axis includes: X axis, Y axis and Z axis. Among them, the X-axis is defined by the vector product Y*Z. The X-axis is tangent to the ground at the current position of the terminal device and points to the east; the Y-axis is tangent to the ground at the current position of the terminal device and points to the geomagnetic field. North Pole; the Z-axis direction points to the sky and is perpendicular to the ground.
示例性地,如图6所示,可以通过正交基来定义旋转矢量传感器的旋转轴以及旋转矢量方向构成参考坐标系xyz。For example, as shown in FIG. 6 , the rotation axis of the rotation vector sensor and the direction of the rotation vector can be defined by an orthogonal basis to constitute the reference coordinate system xyz.
假定终端设备通过O点绕某转动轴逆时针转动一个旋转角度θ,则终端设备在参考坐标系中的三角形式对应的四元数q为公式(1):Assume that the terminal equipment rotates counterclockwise around a certain rotation axis through point O by a rotation angle θ, then the quaternion q corresponding to the triangular form of the terminal equipment in the reference coordinate system is formula (1):
q=cos(θ/2)+sin(θ/2)cosα*i+sin(θ/2)cosβ*j+sin(θ/2)cosγ*k (1)q=cos(θ/2)+sin(θ/2)cosα*i+sin(θ/2)cosβ*j+sin(θ/2)cosγ*k (1)
其中,α、β和γ为转动轴与参考坐标系各轴间的夹角,i、j和k为四元数对应的三个虚部。Among them, α, β and γ are the angles between the rotation axis and each axis of the reference coordinate system, and i, j and k are the three imaginary parts corresponding to the quaternion.
本公开实施例中,终端设备在生成亮度模型后,存储亮度模型。在终端设备上可以专门设置一个模型存储数据库,用于通过直接查询该模型存储数据库,便可以得到对应的亮度模型。该存储数据库可以设置在终端设备的可读存储器中或者设置在终端设备的可读可写存储器中,本公开实施例不作限制。In the embodiment of the present disclosure, after generating the brightness model, the terminal device stores the brightness model. A model storage database can be specially set up on the terminal device, so that the corresponding brightness model can be obtained by directly querying the model storage database. The storage database may be set in the readable memory of the terminal device or in the readable and writable memory of the terminal device, which is not limited by the embodiment of the present disclosure.
可以理解的是,一方面,本公开实施例可以直接利用终端设备上的传感器检测终端设备的姿态和环境亮度信息来确定亮度模型,不需要额外设置检测装置,不仅能够提高了终端设备的空间利用率,还能够减少额外设置检测装置的设计成本。另一方面,本公开实施例考虑到了终端设备的当前姿态,以及不同姿态下与光源之间的位置均会影响检测的环境亮度信息,因此基于终端的姿态信息和环境亮度信息生成的亮度模型能够为后续基于亮度模型确定补偿信息提供准确地数据。同时,当终端设备进入到同一个空间内时,可以直接通过查询模型存储数据库来得到该空间内的亮度模型信息,而不需要重复建立亮度模型,能够减少调整屏幕亮度所需要的执行步骤,提高调整效率。It can be understood that, on the one hand, the embodiments of the present disclosure can directly use the sensor on the terminal device to detect the posture and environmental brightness information of the terminal device to determine the brightness model, without the need to set up an additional detection device, which can not only improve the space utilization of the terminal device It can also reduce the design cost of additional detection devices. On the other hand, embodiments of the present disclosure take into account that the current posture of the terminal device and the position between the terminal device and the light source in different postures will affect the detected environment brightness information. Therefore, the brightness model generated based on the terminal's posture information and the environment brightness information can Provide accurate data for subsequent determination of compensation information based on the brightness model. At the same time, when the terminal device enters the same space, it can directly query the model storage database to obtain the brightness model information in the space without repeatedly establishing the brightness model, which can reduce the execution steps required to adjust the screen brightness and improve Adjust efficiency.
在一种实施例中,根据姿态信息及环境亮度信息,生成终端设备当前所在空间的亮度模型,包括:In one embodiment, a brightness model of the space where the terminal device is currently located is generated based on the posture information and the environment brightness information, including:
根据姿态信息和环境亮度信息的检测时间,确定出终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息;According to the detection time of the attitude information and the environment brightness information, determine the environment brightness information when the terminal device is at different angles to the vertical direction of the first plane;
根据姿态信息和环境亮度信息的检测时间,确定出终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息,其中,第二平面垂直于第一平面;According to the detection time of the posture information and the ambient brightness information, determine the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane, where the second plane is perpendicular to the first plane;
根据终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息,及终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息,生成终端设备当前所在空间的亮度模型。Generate the brightness of the space where the terminal device is currently located based on the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane, and the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane. Model.
本公开实施例中,终端设备中的姿态检测装置和亮度检测装置属于终端设备的不同检测装置,因此,在确定终端设备具有不同姿态信息下的亮度信息时,需要对姿态检测装置和亮度检测装置进行时间同步,即将同一时刻的姿态检测装置检测的姿态信息与亮度检测装置检测的环境亮度信息对应。In the embodiment of the present disclosure, the attitude detection device and the brightness detection device in the terminal device belong to different detection devices of the terminal device. Therefore, when determining that the terminal device has brightness information under different attitude information, it is necessary to compare the attitude detection device and the brightness detection device. Time synchronization is performed, that is, the posture information detected by the posture detection device at the same time is corresponding to the environmental brightness information detected by the brightness detection device.
其中,将同一时刻的姿态检测装置检测的姿态信息与亮度检测装置检测的环境亮度信息对应包括:将同一时刻的终端设备在第二平面的垂直方向的角度与环境亮度信息进行对应;将同一时刻的终端设备在第一平面的垂直方向的角度与环境亮度信息进行对应。Corresponding the attitude information detected by the attitude detection device at the same time with the environment brightness information detected by the brightness detection device includes: corresponding the angle of the terminal device in the vertical direction of the second plane at the same time with the environment brightness information; The angle of the terminal device in the vertical direction of the first plane corresponds to the ambient brightness information.
需要说明的是,亮度模型包括终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息,及终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息。假设终端设备与第一平面的垂直方向之间的角度可以称为上下;终端设备与第二平面的垂直方向之间的角度可以称为左右。It should be noted that the brightness model includes environmental brightness information when the terminal device is at different angles to the vertical direction of the first plane, and environmental brightness information when the terminal device is at different angles to the vertical direction of the second plane. It is assumed that the angle between the terminal device and the vertical direction of the first plane can be called up and down; the angle between the terminal device and the vertical direction of the second plane can be called left and right.
如图7所示,横坐标为角度,纵坐标为环境亮度。实线对应的曲线为终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息。虚线对应的曲线为终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息。As shown in Figure 7, the abscissa is the angle, and the ordinate is the ambient brightness. The curve corresponding to the solid line is the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane. The curve corresponding to the dotted line is the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane.
在另一种实施例中,终端设备的参考坐标系可以为上述终端设备的旋转矢量传感器中旋转轴以及旋转矢量方向构成的参考坐标系。当第一平面为Z轴方向对应的平面,第二平面为包括X和Y的平面时,终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息可以包括:终端设备沿着Z轴旋转360度时的环境亮度信息;终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息可以包括:终端设备沿着X和Y的平面内直线旋转360度时的环境亮度信息。In another embodiment, the reference coordinate system of the terminal device may be the reference coordinate system composed of the rotation axis and the rotation vector direction in the rotation vector sensor of the terminal device. When the first plane is a plane corresponding to the Z-axis direction and the second plane is a plane including X and Y, the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane may include: the terminal device is along the The environment brightness information when the Z axis is rotated 360 degrees; the environment brightness information when the terminal device is at different angles to the vertical direction of the second plane may include: the environment when the terminal device is rotated 360 degrees along the straight line in the X and Y planes brightness information.
在另一种实施例中,还可以依据用户绕着空间旋转一周终端设备检测的环境亮度信息,并结合终端设备在空间中的定位,确定亮度模型。In another embodiment, the brightness model can also be determined based on the ambient brightness information detected by the terminal device when the user rotates around the space, combined with the positioning of the terminal device in the space.
示例性地,终端设备为手机,手机的壳体为矩形壳体,手机的短边设置方向与地面平行,手机的长边设置方向与地面垂直。在实际生成亮度模型过程中,可以直接沿着终端设备中壳体的短边设置方向旋转360度,记录此时的旋转角度对应的环境亮度;还可以直接沿着终端设备中壳体的长边设置方向旋转360度,记录此时的旋转角度对应的环境亮度。如此,通过此种方式,可以检测得到沿两种垂直方向旋转得到的环境亮度信息,进而可以方便快速地得到亮度模型。For example, the terminal device is a mobile phone, the casing of the mobile phone is a rectangular casing, the short side of the mobile phone is set parallel to the ground, and the long side of the mobile phone is set perpendicular to the ground. In the actual process of generating the brightness model, you can directly rotate 360 degrees along the short side setting direction of the casing in the terminal device, and record the ambient brightness corresponding to the rotation angle at this time; you can also directly follow the long side of the casing in the terminal device. Set the direction to rotate 360 degrees, and record the ambient brightness corresponding to the rotation angle at this time. In this way, in this way, the ambient brightness information obtained by rotating in two vertical directions can be detected, and the brightness model can be obtained conveniently and quickly.
在一种实施例中,基于终端设备与当前空间内光源之间的相对位置及亮度模型,获得补偿信息,包括:In one embodiment, compensation information is obtained based on the relative position and brightness model between the terminal device and the light source in the current space, including:
基于亮度模型中的环境亮度信息,确定光源对应的光源类型信息,光源类型信息包括光源的亮度类型信息和光源的发光角度类型信息;Based on the environmental brightness information in the brightness model, determine the light source type information corresponding to the light source. The light source type information includes the brightness type information of the light source and the luminous angle type information of the light source;
基于光源类型信息,查询与光源类型信息对应的补偿模型;Based on the light source type information, query the compensation model corresponding to the light source type information;
基于终端设备与光源之间的相对位置及补偿模型,确定补偿信息。Compensation information is determined based on the relative position between the terminal device and the light source and the compensation model.
本公开实施例中,亮度模型中的环境亮度信息是在同一个光源下终端设备在不同位置时测量出来的。因此,基于该环境亮度信息能够确定光源的亮度类型信息和发光角度类型信息。In the embodiment of the present disclosure, the environmental brightness information in the brightness model is measured when the terminal device is in different positions under the same light source. Therefore, the brightness type information and the lighting angle type information of the light source can be determined based on the environmental brightness information.
示例性地,光源的亮度类型包括亮度低于第一阈值的低亮类型或者高于第一阈值的高亮类型,光源的发光角度类型包括低于第二阈值的宽角度类型或者高于第二阈值的窄角度类型,本公开实施例不作限制。Exemplarily, the brightness type of the light source includes a low-brightness type with a brightness lower than the first threshold or a high-brightness type higher than the first threshold, and the luminous angle type of the light source includes a wide-angle type lower than the second threshold or higher than the second threshold. The narrow angle type of the threshold is not limited in the embodiment of this disclosure.
可以理解的是,低亮类型的光源对应的亮度低于高亮类型的光源对应的亮度;宽角度类型的光源对应的角度大于窄角度类型的光源对应的角度。It can be understood that the brightness corresponding to the low-brightness type light source is lower than the brightness corresponding to the high-brightness type light source; the angle corresponding to the wide-angle type light source is greater than the angle corresponding to the narrow-angle type light source.
在另一种实施例中,基于亮度模型中的环境亮度信息,还可以确定光源与终端设备之间的相对位置。In another embodiment, based on the ambient brightness information in the brightness model, the relative position between the light source and the terminal device can also be determined.
示例性地,假设终端设备为手机,手机的壳体为矩形壳体,手机的短边设置方向与地面平行,手机的长边设置方向与地面垂直。如果手机沿壳体的短边设置方向旋转时环境亮度信息对应的曲线变化平稳且缓慢,且手机沿着壳体的长边设置方向旋转时环境亮度信息对应的亮度值变化大且陡峭,则表明光源设置在手机的正上方或者正上方偏右的位置,且光源的设置位置比较高。For example, assume that the terminal device is a mobile phone, the casing of the mobile phone is a rectangular casing, the short side of the mobile phone is set parallel to the ground, and the long side of the mobile phone is set perpendicular to the ground. If the curve corresponding to the ambient brightness information changes smoothly and slowly when the phone is rotated along the short side of the case, and if the brightness value corresponding to the ambient brightness information changes greatly and steeply when the phone is rotated along the long side of the case, it means The light source is set directly above or directly above and to the right of the mobile phone, and the light source is set relatively high.
需要说明的是,在不同的光源类型下,用户感知环境光的亮度值不同。例如,在光源类型为低亮类型下,用户感知环境光的亮度值可以为40,在光源类型为高亮类型下,用户感知环境光的亮度值可以为400。因此,本公开实施例可以基于光源类型信息,查询与光源类型信息对应的补偿模型,并基于该补偿模型确定补偿信息。It should be noted that under different light source types, users perceive different brightness values of ambient light. For example, when the light source type is a low-brightness type, the brightness value of the ambient light perceived by the user may be 40, and when the light source type is a high-brightness type, the brightness value of the ambient light perceived by the user may be 400. Therefore, embodiments of the present disclosure can query the compensation model corresponding to the light source type information based on the light source type information, and determine the compensation information based on the compensation model.
本公开实施例中,补偿模型是预存在终端设备上的,在获取补偿模型的过程中,终端设备与用户之间间隔第三阈值,并通过实验模拟得到的。该补偿模型用于表征在不同光源类型下终端设备的姿态与补偿信息之间的对应关系。In the embodiment of the present disclosure, the compensation model is pre-stored on the terminal device. In the process of obtaining the compensation model, the distance between the terminal device and the user is a third threshold, and is obtained through experimental simulation. The compensation model is used to characterize the correspondence between the posture of the terminal device and the compensation information under different light source types.
上述第三阈值在10厘米至20厘米范围内,上述终端设备包括但不限于手机,手机的尺寸可以为6寸或者7寸,本公开实施例不作限制。The above-mentioned third threshold is in the range of 10 cm to 20 cm. The above-mentioned terminal device includes but is not limited to a mobile phone. The size of the mobile phone may be 6 inches or 7 inches, which is not limited in the embodiment of the present disclosure.
上述补偿信息可以包括但不限于用户感知亮度值与终端设备在空间内最大环境亮度值之间的比值。The above compensation information may include, but is not limited to, the ratio between the brightness value perceived by the user and the maximum ambient brightness value of the terminal device in the space.
需要说明的是,补偿模型与光源类型是对应的,不同的光源类型对应不同的补偿模型。It should be noted that the compensation model corresponds to the light source type, and different light source types correspond to different compensation models.
示例性地,当光源的亮度类型包括低亮类型或者高亮类型,且光源的发光角度类型包括宽角度类型或者窄角度类型时,终端设备的光源类型包括高亮宽角度类型、高亮窄角度类型、低亮宽角度类型和低亮窄角度类型这四种光源类型。对应地,补偿模型包括高亮宽角度类型对应的补偿模型、高亮窄角度类型对应的补偿模型、低亮宽角度类型对应的补偿模型和低亮窄角度类型对应的补偿模型这四种补偿模型。For example, when the brightness type of the light source includes a low-brightness type or a high-brightness type, and the light-emitting angle type of the light source includes a wide-angle type or a narrow-angle type, the light source type of the terminal device includes a high-brightness wide-angle type, a high-brightness narrow-angle type, There are four light source types: low-brightness wide-angle type and low-brightness narrow-angle type. Correspondingly, the compensation model includes four compensation models: a compensation model corresponding to the high-brightness wide-angle type, a compensation model corresponding to the high-brightness narrow-angle type, a compensation model corresponding to the low-brightness wide-angle type, and a compensation model corresponding to the low-brightness narrow-angle type.
如图8所示,为高亮宽角度类型对应的补偿模型。如图9所示,为高亮窄角度类型对应的补偿模型。如图10所示,为低亮宽角度类型对应的补偿模型。如图11所示,为低亮窄角度类型对应的补偿模型。As shown in Figure 8, it is the compensation model corresponding to the highlight wide angle type. As shown in Figure 9, it is the compensation model corresponding to the highlight narrow angle type. As shown in Figure 10, it is the compensation model corresponding to the low-brightness wide-angle type. As shown in Figure 11, it is the compensation model corresponding to the low-brightness narrow-angle type.
在图8至图11对应的补偿模型中,横坐标为角度,纵坐标为最大环境亮度值与用户感知环境亮度值之间的比值。实线对应的曲线为终端设备与第一平面的垂直方向之间成不同角度时对应的曲线,虚线对应的曲线为终端设备与第二平面的垂直方向之间成不同的角度时对应的曲线。In the compensation model corresponding to Figures 8 to 11, the abscissa is the angle, and the ordinate is the ratio between the maximum ambient brightness value and the user-perceived ambient brightness value. The curves corresponding to the solid lines are curves corresponding to different angles between the terminal device and the vertical direction of the first plane, and the curves corresponding to the dotted lines are curves corresponding to different angles between the terminal device and the vertical direction of the second plane.
可以理解的是,依据光源的类型信息查询对应的补偿模型,并基于不同的补偿模型确定对应补偿信息,如此,能够获取更加准确的补偿信息,便于后续精确地调整屏幕的亮度。It can be understood that the corresponding compensation model is queried according to the type information of the light source, and the corresponding compensation information is determined based on different compensation models. In this way, more accurate compensation information can be obtained, which facilitates subsequent accurate adjustment of the brightness of the screen.
在一种实施例中,基于亮度模型中的环境亮度信息,确定光源对应的光源类型信息,包括:In one embodiment, based on the environmental brightness information in the brightness model, the light source type information corresponding to the light source is determined, including:
获取亮度模型中最大环境亮度信息和最小环境亮度信息;Obtain the maximum environment brightness information and the minimum environment brightness information in the brightness model;
基于最大环境亮度信息和最小环境亮度信息,确定光源的亮度类型信息。Based on the maximum environment brightness information and the minimum environment brightness information, the brightness type information of the light source is determined.
在另一种实施例中,基于最大环境亮度信息和最小环境亮度信息,确定光源的亮度类型信息,包括:In another embodiment, determining the brightness type information of the light source based on the maximum environment brightness information and the minimum environment brightness information includes:
当最大环境亮度信息对应的亮度值与最小环境信息对应的亮度值之间的比值小于或者等于第一阈值时,确定光源的亮度类型为第一亮度类型;When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is less than or equal to the first threshold, determine the brightness type of the light source to be the first brightness type;
当最大环境亮度信息对应的亮度值与最小环境信息对应的亮度值之间的比值大于第一阈值时,确定光源的亮度类型为第二亮度类型。When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is greater than the first threshold, the brightness type of the light source is determined to be the second brightness type.
本公开实施例中,第一阈值可以根据实际情况进行设置,例如第一阈值可以设置为6或者7,本公开实施例不作限制。第一亮度类型可以包括为高亮类型,第二亮度可以包括为低亮类型。In the embodiment of the present disclosure, the first threshold can be set according to the actual situation. For example, the first threshold can be set to 6 or 7, which is not limited in the embodiment of the present disclosure. The first brightness type may be a high brightness type, and the second brightness may be a low brightness type.
当最大环境亮度信息对应的亮度值与最小环境信息对应的亮度值之间的比值大于6时,表明该光源为高亮光源。当最大环境亮度信息对应的亮度值与最小环境信息对应的亮度值之间的比值小于等于6时,表明该光源为低亮光源。When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is greater than 6, it indicates that the light source is a high-brightness light source. When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is less than or equal to 6, it indicates that the light source is a low-brightness light source.
示例性地,如图7所示,实线对应曲线,实线对应的最大环境亮度为425,实线对应的最小环境亮度为75,其最大环境亮度值和最小环境亮度值之间的比值大于6,从该曲线可得对应的光源类型为高亮光源类型。For example, as shown in Figure 7, the solid line corresponds to the curve, the maximum ambient brightness corresponding to the solid line is 425, the minimum ambient brightness corresponding to the solid line is 75, and the ratio between the maximum ambient brightness value and the minimum ambient brightness value is greater than 6. From this curve, the corresponding light source type can be obtained as the highlight light source type.
在一种实施例中,基于亮度模型中的环境亮度信息,确定光源对应的光源类型信息,包括:In one embodiment, based on the environmental brightness information in the brightness model, the light source type information corresponding to the light source is determined, including:
基于亮度模型中最大环境亮度信息,确定光源的半波角信息;Based on the maximum environmental brightness information in the brightness model, determine the half-wave angle information of the light source;
基于光源的半波角信息,确定光源的发光角度类型信息。Based on the half-wave angle information of the light source, the luminous angle type information of the light source is determined.
本公开实施例中,亮度模型包括:终端设备与第一平面的垂直方向之间成不同角度时的环境亮度信息,其对应第一曲线。亮度模型还包括:终端设备与第二平面的垂直方向之间成不同角度时的环境亮度信息,其对应第二曲线。In the embodiment of the present disclosure, the brightness model includes: ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane, which corresponds to the first curve. The brightness model also includes: ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane, which corresponds to the second curve.
上述亮度模型中最大环境亮度信息包括第一曲线中的最大环境亮度信息或者第二曲线区中的最大环境亮度信息。The maximum environment brightness information in the above brightness model includes the maximum environment brightness information in the first curve or the maximum environment brightness information in the second curve area.
上述光源的半波角包括第一曲线中最大环境亮度信息的一半对应的两个角度之间的差值或者第二曲线中最大环境亮度信息的一半对应的两个角度之间的差值。The half-wave angle of the light source includes a difference between two angles corresponding to half of the maximum ambient brightness information in the first curve or a difference between two angles corresponding to half of the maximum ambient brightness information in the second curve.
在一种实施例中,基于光源的半波角信息,确定光源的发光角度类型信息,包括:In one embodiment, based on the half-wave angle information of the light source, determining the luminous angle type information of the light source includes:
当光源的半波角小于或者等于第二阈值时,确定光源的发光角度类型为第一发光角度类型;When the half-wave angle of the light source is less than or equal to the second threshold, determine the luminous angle type of the light source to be the first luminous angle type;
当光源的半波角大于第二阈值时,确定光源的发光角度类型为第二发光角度类型。When the half-wave angle of the light source is greater than the second threshold, the luminous angle type of the light source is determined to be the second luminous angle type.
示例性地,第二阈值可以根据实际需求进行设置,例如第二阈值可以设置为60度或者70度,本公开实施例不作限制。第一发光角度类型可以包括为宽角度类型,第二发光角度可以包括为窄角度类型。For example, the second threshold can be set according to actual needs. For example, the second threshold can be set to 60 degrees or 70 degrees, which is not limited by this embodiment of the disclosure. The first lighting angle type may be a wide angle type, and the second lighting angle may be a narrow angle type.
当光源的半波角小于或者等于60度时,表明光源的发光角度类型为宽角度类型;当光源的半波角大于60度时,表明光源的发光角度类型为窄角度类型。When the half-wave angle of the light source is less than or equal to 60 degrees, it indicates that the luminous angle type of the light source is a wide-angle type; when the half-wave angle of the light source is greater than 60 degrees, it indicates that the luminous angle type of the light source is a narrow-angle type.
示例性地,如图7所示,实线对应的曲线中最大环境亮度值为425,其对应的半波角为120度,从该曲线可得对应的光源类型为宽角度光源类型。For example, as shown in Figure 7, the maximum ambient brightness value in the curve corresponding to the solid line is 425, and its corresponding half-wave angle is 120 degrees. From this curve, it can be concluded that the corresponding light source type is a wide-angle light source type.
如图7所示,通过较高亮度所占角度和较低亮度所占角度可以确定光源的发光面大小。例如有100度是高亮,120度是低亮,说明光源的发光面较大,亮度均匀。As shown in Figure 7, the size of the light-emitting surface of the light source can be determined by the angle occupied by higher brightness and the angle occupied by lower brightness. For example, 100 degrees is high brightness and 120 degrees is low brightness, indicating that the light source has a larger luminous surface and uniform brightness.
通过最大环境亮度值和最小环境亮度值之间的可以确定光源的亮度,例如,最大环境亮度值为400和最小环境亮度值40,则对应光源为亮度该的光源。The brightness of the light source can be determined by the difference between the maximum ambient brightness value and the minimum ambient brightness value. For example, if the maximum ambient brightness value is 400 and the minimum ambient brightness value is 40, then the corresponding light source is a light source with that brightness.
通过低亮到高亮的变化曲线是陡峭还是缓和,可以确定光源的发光角度。例如,如果低亮到高亮的变化曲线陡峭,则表明发光角度小。The luminous angle of the light source can be determined by whether the change curve from low light to high light is steep or gentle. For example, if the change curve from low brightness to high brightness is steep, it indicates that the luminescence angle is small.
需要说明的是,为了提高终端设备生成亮度模型的效率,以及方便后续从亮度模型中确定光源类型的速度,亮度模型中可以适当增加角度间隔,以减少数据量。It should be noted that in order to improve the efficiency of the terminal device in generating the brightness model and facilitate the subsequent determination of the light source type from the brightness model, the angle interval can be appropriately increased in the brightness model to reduce the amount of data.
在一种实施例中,利用补偿信息对终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息,包括:In one embodiment, the compensation information is used to compensate the first environment brightness information detected by the terminal device, and the compensated second environment brightness information is obtained, including:
当终端设备检测的第一环境亮度信息,与基于相对位置查询的亮度模型得到的第三环境亮度信息之差在预设范围外时,基于补偿信息调整第一环境亮度信息并得到第二环境亮度信息。When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained based on the brightness model of relative position query is outside the preset range, the first environment brightness information is adjusted based on the compensation information and the second environment brightness is obtained information.
当终端设备检测的第一环境亮度信息,与基于相对位置查询的亮度模型得到的第三环境亮度信息之差在预设范围内时,将亮度模型中最大环境亮度信息作为第一环境亮度信息,并基于补偿信息和最大环境亮度信息,确定第二环境亮度信息。When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained by the brightness model based on the relative position query is within the preset range, the maximum environment brightness information in the brightness model is used as the first environment brightness information, And based on the compensation information and the maximum environment brightness information, the second environment brightness information is determined.
需要说明的是,在用户实际使用终端设备的过程中,用户可能会在空间内运动,进而终端设备在空间内的位置也会随之发生变化,又光源在空间内时固定的。因此,终端设备与光源之间的相对位置是不同的,进而基于终端设备与光源之间的相对位置的不同,终端设备检测的第一环境亮度信息与第三环境亮度信息也不同。可见,在利用补偿信息对第一环境亮度信息补偿生成第二环境亮度信息时,需要先判断第一环境亮度信息与第三环境亮度信息之差是否在预设范围内。It should be noted that when the user actually uses the terminal device, the user may move in the space, and the position of the terminal device in the space will also change accordingly, and the light source is fixed in the space. Therefore, the relative position between the terminal device and the light source is different, and based on the difference in the relative position between the terminal device and the light source, the first environment brightness information and the third environment brightness information detected by the terminal device are also different. It can be seen that when using the compensation information to compensate the first environment brightness information to generate the second environment brightness information, it is necessary to first determine whether the difference between the first environment brightness information and the third environment brightness information is within a preset range.
当第一环境亮度信息与第三环境亮度信息之差在预设范围内时,表明终端设备在空间内的位置为亮度模型中终端设备对应的位置,进而可以基于亮度模型中的最大环境亮度信息和补偿信息,确定第二环境亮度信息。When the difference between the first environment brightness information and the third environment brightness information is within the preset range, it indicates that the position of the terminal device in the space is the position corresponding to the terminal device in the brightness model, and then the maximum environment brightness information in the brightness model can be used and compensation information to determine second environment brightness information.
当第一环境亮度信息与第三环境亮度信息之差在预设范围外时,表明终端设备在空间内进行了运动,此时需要基于补偿信息调整检测得到的第一环境亮度信息并得到第二环境亮度信息。When the difference between the first environment brightness information and the third environment brightness information is outside the preset range, it indicates that the terminal device has moved in the space. At this time, it is necessary to adjust the detected first environment brightness information based on the compensation information and obtain the second Ambient brightness information.
示例性地,假如第一环境亮度信息与第三环境亮度信息之差在预设范围内。对于光源的类型为明亮宽角度的类型,亮度模型中最大环境亮度信息对应的亮度值为430lux,终端设备与第一平面的垂直方向之间成的角度为60度,和终端设备与第二平面的垂直方向之间成的角度为60度,即光源在终端设备的斜右上方。基于补偿模型可得,终端设备的补偿信息对应的补偿比例分别为63%和100%。因此,第二环境亮度信息对应的亮度值为最大环境亮度信息对应的亮度值乘以补偿信息对应的补偿比例,即第二环境亮度信息对应的亮度值为430*63%*100%=270lux。For example, if the difference between the first environment brightness information and the third environment brightness information is within a preset range. For the type of light source that is bright and wide-angle, the brightness value corresponding to the maximum ambient brightness information in the brightness model is 430lux, the angle between the terminal device and the vertical direction of the first plane is 60 degrees, and the angle between the terminal device and the second plane The angle between the vertical directions is 60 degrees, that is, the light source is at the upper right side of the terminal device. Based on the compensation model, it can be obtained that the compensation ratios corresponding to the compensation information of the terminal equipment are 63% and 100% respectively. Therefore, the brightness value corresponding to the second environment brightness information is the brightness value corresponding to the maximum environment brightness information multiplied by the compensation ratio corresponding to the compensation information, that is, the brightness value corresponding to the second environment brightness information is 430*63%*100%=270lux.
在一种实施例中,基于补偿信息调整第一环境亮度信息并得到第二环境亮度信息,包括:In one embodiment, adjusting the first environment brightness information based on the compensation information and obtaining the second environment brightness information includes:
基于终端设备检测第一环境亮度信息时与光源之间的相对位置,查询亮度模型得到与相对位置对应的第四环境亮度信息;Based on the relative position between the terminal device and the light source when detecting the first environment brightness information, query the brightness model to obtain the fourth environment brightness information corresponding to the relative position;
将第四环境亮度信息,与亮度模型中最大环境亮度信息进行比较,得到补偿系数;Compare the fourth environment brightness information with the maximum environment brightness information in the brightness model to obtain the compensation coefficient;
基于补偿信息及补偿系数对第一环境亮度信息进行调整,得到第二环境亮度信息。The first environment brightness information is adjusted based on the compensation information and the compensation coefficient to obtain the second environment brightness information.
本公开实施例中,当第一环境亮度信息与第三环境亮度信息之差在预设范围外时,表明终端设备在空间内运动了。例如,在生成亮度模型时用户选择站着,后来用户选择躺着,进而使得终端设备在空间内的位置发生了变化。由于不同位置,终端设备还基于亮度模型中的位置对应的最大环境亮度就可能会导致屏幕亮度调整的不准确,因此,当终端设备的位置变化发生变化之后,需要获取补偿系数,对发生位置变化的终端设备的检测环境亮度信息进行补偿。In the embodiment of the present disclosure, when the difference between the first environment brightness information and the third environment brightness information is outside the preset range, it indicates that the terminal device has moved in the space. For example, when the brightness model is generated, the user chooses to stand, and later the user chooses to lie down, which causes the position of the terminal device in the space to change. Due to different positions, the maximum ambient brightness of the terminal device corresponding to the position in the brightness model may lead to inaccurate screen brightness adjustment. Therefore, when the position of the terminal device changes, a compensation coefficient needs to be obtained to compensate for the position change. Compensation is performed based on the detected environment brightness information of the terminal device.
本公开实施例中,第四环境亮度信息,与亮度模型中最大环境亮度信息进行比较,得到补偿系数包括:通过第四环境亮度信息对应的亮度值与亮度模型中最大环境亮度信息对应的亮度值之间的比值,获取补偿系数。In the embodiment of the present disclosure, the fourth environment brightness information is compared with the maximum environment brightness information in the brightness model, and the compensation coefficient obtained includes: the brightness value corresponding to the fourth environment brightness information and the brightness value corresponding to the maximum environment brightness information in the brightness model. The ratio between them is used to obtain the compensation coefficient.
在获取补偿系数后,基于补偿信息及补偿系数对第一环境亮度信息进行调整,得到第二环境亮度信息,包括:基于第一环境亮度信息和补偿系数的比值,确定补偿后的最大环境亮度信息;基于补偿后的最大环境亮度信息对应的亮度值和补偿信息,确定第二环境亮度信息。After obtaining the compensation coefficient, the first environment brightness information is adjusted based on the compensation information and the compensation coefficient to obtain the second environment brightness information, including: determining the maximum environment brightness information after compensation based on the ratio of the first environment brightness information and the compensation coefficient. ; Determine the second environment brightness information based on the brightness value corresponding to the compensated maximum environment brightness information and the compensation information.
示例性地,如果校准得到是图7所示的实线对应的曲线,该曲线对应为一个明亮宽角度类型的光源。在生成亮度模型时,终端设备垂直放置,终端设备与光源之间的相对位置为上下轴120度位置和左右240度位置。后来用户选择躺下来使用终端设备,终端设备与光源之间的相对位置为上下轴-60度,左右旋转-60度,此时,终端设备上光传感器的读数是37lux,即第一环境亮度信息对应的亮度值为37lux。通过第一环境亮度信息和曲线,可得补偿系数为0.45和0.26,进而补偿后的最大亮度信息对应的亮度值为37/0.45/0.26=316lux。又补偿信息对应的补偿比例为63%*100%=63%。那么此时第二环境亮度信息为316*63%=200lux。For example, if the calibration results in a curve corresponding to the solid line shown in Figure 7, the curve corresponds to a bright wide-angle type light source. When generating the brightness model, the terminal device is placed vertically, and the relative position between the terminal device and the light source is 120 degrees on the up and down axis and 240 degrees on the left and right. Later, the user chooses to lie down and use the terminal device. The relative position between the terminal device and the light source is -60 degrees on the up and down axis, and -60 degrees on the left and right rotation. At this time, the reading of the light sensor on the terminal device is 37lux, which is the first ambient brightness information. The corresponding brightness value is 37lux. Through the first environment brightness information and the curve, the compensation coefficients can be obtained as 0.45 and 0.26, and then the brightness value corresponding to the compensated maximum brightness information is 37/0.45/0.26=316lux. The compensation ratio corresponding to the compensation information is 63%*100%=63%. Then the second environment brightness information at this time is 316*63%=200lux.
因此,终端设备的屏幕亮度应该按照第二环境亮度信息对应的亮度值为200lux来调整屏幕亮度,而不是光传感器测试到的37lux来调整屏幕亮度。可见,通过本公开实施例提出的调整亮度方法调整屏幕亮度,能够在不改变现有光传感器硬件条件下,更加准确的调整屏幕亮度,提高了用户体验感。Therefore, the screen brightness of the terminal device should be adjusted according to the brightness value corresponding to the second environment brightness information, which is 200lux, rather than the 37lux measured by the light sensor. It can be seen that by adjusting the screen brightness through the brightness adjustment method proposed in the embodiment of the present disclosure, the screen brightness can be adjusted more accurately without changing the existing light sensor hardware, thereby improving the user experience.
为了便于更好的理解本公开实施例,提出以下示例。如图12所示,屏幕亮度的调整方法包括:In order to facilitate a better understanding of the embodiments of the present disclosure, the following examples are provided. As shown in Figure 12, the adjustment methods of screen brightness include:
步骤S21、检测基于提示信息下终端设备的姿态信息,并检测终端设备在不同姿态下的环境亮度信息;Step S21: Detect the posture information of the terminal device based on the prompt information, and detect the environmental brightness information of the terminal device in different postures;
步骤S22、根据姿态信息及环境亮度信息,生成并存储亮度模型;Step S22: Generate and store a brightness model based on the posture information and the environment brightness information;
步骤S23、基于亮度模型中的环境亮度信息,确定光源对应的光源类型信息;Step S23: Determine the light source type information corresponding to the light source based on the environmental brightness information in the brightness model;
步骤S24、基于光源类型信息,查询与光源类型信息对应的补偿模型;Step S24: Based on the light source type information, query the compensation model corresponding to the light source type information;
步骤S25、基于终端设备与光源之间的相对位置及补偿模型,确定补偿信息。Step S25: Determine compensation information based on the relative position between the terminal device and the light source and the compensation model.
步骤S26、当终端设备检测的第一环境亮度信息,与基于相对位置查询的亮度模型得到的第三环境亮度信息之差在预设范围内时,将亮度模型中最大环境亮度信息作为第一环境亮度信息,并基于补偿信息和最大环境亮度信息,确定第二环境亮度信息。Step S26: When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained by the brightness model based on the relative position query is within the preset range, use the maximum environment brightness information in the brightness model as the first environment. brightness information, and determine the second environment brightness information based on the compensation information and the maximum environment brightness information.
步骤S27、当终端设备检测的第一环境亮度信息,与基于相对位置查询的亮度模型得到的第三环境亮度信息之差在预设范围外时,基于补偿信息调整第一环境亮度信息并得到第二环境亮度信息。Step S27: When the difference between the first environment brightness information detected by the terminal device and the third environment brightness information obtained based on the brightness model of relative position query is outside the preset range, adjust the first environment brightness information based on the compensation information and obtain the third environment brightness information. 2. Environmental brightness information.
图13是根据一示例性实施例示出的一种屏幕亮度的调整装置图一。参照图13,该图像采集装置包括模型确定模块1001,位置确定模块1002、第一获取模块1003、第二获取模块1004和调整模块1005,其中,Figure 13 is Figure 1 of a device for adjusting screen brightness according to an exemplary embodiment. Referring to Figure 13, the image acquisition device includes a model determination module 1001, a position determination module 1002, a first acquisition module 1003, a second acquisition module 1004 and an adjustment module 1005, wherein,
所述模型确定模块1001,配置为获取终端设备当前所在空间的亮度模型;The model determination module 1001 is configured to obtain the brightness model of the space where the terminal device is currently located;
所述位置确定模块1002,配置为确定所述终端设备与所述当前空间内光源之间的相对位置;The position determination module 1002 is configured to determine the relative position between the terminal device and the light source in the current space;
所述第一获取模块1003,配置为基于所述终端设备与所述当前空间内光源之间的相对位置及所述亮度模型,获得补偿信息;The first acquisition module 1003 is configured to obtain compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model;
所述第二获取模块1004,配置为利用所述补偿信息对所述终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息;The second acquisition module 1004 is configured to use the compensation information to compensate the first environment brightness information detected by the terminal device, and obtain the compensated second environment brightness information;
所述调整模块1005,配置为基于所述第二环境亮度信息,调整所述终端设备的屏幕亮度。The adjustment module 1005 is configured to adjust the screen brightness of the terminal device based on the second environment brightness information.
在一种实施例中,所述模型确定模块,包括:In one embodiment, the model determination module includes:
检测模块,配置为检测所述终端设备的姿态信息,并检测所述终端设备在不同姿态下的环境亮度信息;A detection module configured to detect posture information of the terminal device and detect environmental brightness information of the terminal device in different postures;
生成模块,配置为根据所述姿态信息及所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。A generation module configured to generate a brightness model of the space where the terminal device is currently located based on the posture information and the environment brightness information.
在一种实施例中,生成模块,具体配置为根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息;In one embodiment, the generation module is specifically configured to determine, according to the detection time of the posture information and the environmental brightness information, the terminal device and the vertical direction of the first plane at different angles. Environmental brightness information;
根据所述姿态信息和所述环境亮度信息的检测时间,确定出所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,其中,所述第二平面垂直于所述第一平面;According to the detection time of the posture information and the environment brightness information, the environment brightness information when the terminal device is at different angles to the vertical direction of the second plane is determined, wherein the second plane is perpendicular to the first plane;
根据所述终端设备与第一平面的垂直方向之间成不同角度时的所述环境亮度信息,及所述终端设备与第二平面的垂直方向之间成不同角度时的所述环境亮度信息,生成所述终端设备当前所在空间的亮度模型。According to the ambient brightness information when the terminal device is at different angles to the vertical direction of the first plane, and the ambient brightness information when the terminal device is at different angles to the vertical direction of the second plane, Generate a brightness model of the space where the terminal device is currently located.
在一种实施例中,第一获取模块,包括:In one embodiment, the first acquisition module includes:
第三获取模块,配置为基于所述亮度模型中的环境亮度信息,确定所述光源对应的光源类型信息,所述光源类型信息包括所述光源的亮度类型信息和所述光源的发光角度类型信息;The third acquisition module is configured to determine the light source type information corresponding to the light source based on the environmental brightness information in the brightness model. The light source type information includes the brightness type information of the light source and the luminous angle type information of the light source. ;
查询模块,配置为基于所述光源类型信息,查询与所述光源类型信息对应的补偿模型;A query module configured to query the compensation model corresponding to the light source type information based on the light source type information;
第四获取模块,配置为基于所述终端设备与所述光源之间的相对位置及所述补偿模型,确定所述补偿信息。A fourth acquisition module is configured to determine the compensation information based on the relative position between the terminal device and the light source and the compensation model.
在一种实施例中,第三获取模块,包括:In one embodiment, the third acquisition module includes:
第五获取模块,配置为获取所述亮度模型中最大环境亮度信息和最小环境亮度信息;The fifth acquisition module is configured to acquire the maximum environment brightness information and the minimum environment brightness information in the brightness model;
第六获取模块,配置为基于所述最大环境亮度信息和所述最小环境亮度信息,确定所述光源的亮度类型信息。A sixth acquisition module is configured to determine the brightness type information of the light source based on the maximum environment brightness information and the minimum environment brightness information.
在一种实施例中,第六获取模块,具体配置为当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值小于或者等于第一阈值时,确定所述光源的亮度类型为第一亮度类型;当所述最大环境亮度信息对应的亮度值与所述最小环境信息对应的亮度值之间的比值大于所述第一阈值时,确定所述光源的亮度类型为第二亮度类型。In one embodiment, the sixth acquisition module is specifically configured to determine that when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is less than or equal to the first threshold, The brightness type of the light source is a first brightness type; when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is greater than the first threshold, the brightness of the light source is determined The type is the second brightness type.
在一种实施例中,第三获取模块,包括:In one embodiment, the third acquisition module includes:
第七获取模块,配置为基于所述亮度模型中最大环境亮度信息,确定所述光源的半波角信息;A seventh acquisition module configured to determine the half-wave angle information of the light source based on the maximum environmental brightness information in the brightness model;
第八获取模块,配置为基于所述光源的半波角信息,确定所述光源的发光角度类型信息。The eighth acquisition module is configured to determine the luminous angle type information of the light source based on the half-wave angle information of the light source.
在一种实施例中,第八获取模块,具体配置为当所述光源的半波角小于或者等于第二阈值时,确定所述光源的发光角度类型为第一发光角度类型;当所述光源的半波角大于所述第二阈值时,确定所述光源的发光角度类型为第二发光角度类型。In one embodiment, the eighth acquisition module is specifically configured to determine the luminous angle type of the light source to be the first luminous angle type when the half-wave angle of the light source is less than or equal to the second threshold; when the light source When the half-wave angle is greater than the second threshold, the luminescence angle type of the light source is determined to be the second luminescence angle type.
在一种实施例中,第三获取模块,具体配置为当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围外时,基于所述补偿信息调整所述第一环境亮度信息并得到所述第二环境亮度信息。In one embodiment, the third acquisition module is specifically configured to detect the first environment brightness information detected by the terminal device and the third environment brightness information obtained based on the brightness model of the relative position query. When the difference is outside the preset range, the first environment brightness information is adjusted based on the compensation information and the second environment brightness information is obtained.
在一种实施例中,第三获取模块,还具体配置为当所述终端设备检测的所述第一环境亮度信息,与基于所述相对位置查询的所述亮度模型得到的第三环境亮度信息之差在预设范围内时,将所述亮度模型中最大环境亮度信息作为所述第一环境亮度信息,并基于所述补偿信息和所述最大环境亮度信息,确定所述第二环境亮度信息。In one embodiment, the third acquisition module is further specifically configured to compare the first environment brightness information detected by the terminal device with the third environment brightness information obtained from the brightness model based on the relative position query. When the difference is within a preset range, the maximum environment brightness information in the brightness model is used as the first environment brightness information, and the second environment brightness information is determined based on the compensation information and the maximum environment brightness information. .
在一种实施例中,第三获取模块,具体配置为基于所述终端设备检测所述第一环境亮度信息时与所述光源之间的相对位置,查询所述亮度模型得到与所述相对位置对应的第四环境亮度信息;将所述第四环境亮度信息,与所述亮度模型中最大环境亮度信息进行比较,得到补偿系数;基于所述补偿信息及所述补偿系数对所述第一环境亮度信息进行调整,得到所述第二环境亮度信息。In one embodiment, the third acquisition module is specifically configured to query the brightness model to obtain the relative position based on the relative position between the terminal device and the light source when detecting the first environment brightness information. Corresponding fourth environment brightness information; comparing the fourth environment brightness information with the maximum environment brightness information in the brightness model to obtain a compensation coefficient; based on the compensation information and the compensation coefficient, the first environment The brightness information is adjusted to obtain the second environment brightness information.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图14是根据一示例性实施例示出的一种屏幕亮度的调整装置图二。例如,装置可以是移动电话,移动电脑等。Figure 14 is Figure 2 of a device for adjusting screen brightness according to an exemplary embodiment. For example, the device may be a mobile phone, a mobile computer, etc.
参照图14,装置可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to Figure 14, the device may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and Communication component 816.
处理组件802通常控制装置的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备的操作。这些数据的示例包括用于在装置上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 804 is configured to store various types of data to support operations on the device. Examples of such data include instructions for any application or method operating on the device, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电力组件806为装置的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of the device. Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to a device.
多媒体组件808包括在所述装置和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 808 includes a screen that provides an output interface between the device 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 the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the device is in an operating mode, such as shooting mode or video mode, the front camera and/or the rear camera can receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为装置提供各个方面的状态评估。例如,传感器组件814可以检测到设备的打开/关闭状态,组件的相对定位,例如所述组件为装置的显示器和小键盘,传感器组件814还可以检测装置或装置一个组件的位置改变,用户与装置接触的存在或不存在,装置方位或加速/减速和装置的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 814 includes one or more sensors that provide various aspects of status assessment for the device. For example, the sensor component 814 may detect the on/off status of the device, the relative positioning of components, such as the display and keypad of the device, the sensor component 814 may also detect a change in position of the device or a component of the device, the user's interaction with the device. presence or absence of contact, device orientation or acceleration/deceleration and temperature changes of the device. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于装置和其他设备之间有线或无线方式的通信。装置可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communications component 816 is configured to facilitate wired or wireless communications between the device and other devices. Devices can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In exemplary embodiments, the apparatus may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gates Array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which are executable by the processor 820 of the device to complete the above method is also provided. 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, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行屏幕亮度的调整方法,所述方法包括:A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to perform a method for adjusting screen brightness, the method comprising:
获取终端设备当前所在空间的亮度模型;Obtain the brightness model of the space where the terminal device is currently located;
确定所述终端设备与所述当前空间内光源之间的相对位置;Determine the relative position between the terminal device and the light source in the current space;
基于所述终端设备与所述当前空间内光源之间的相对位置及所述亮度模型,获得补偿信息;Obtain compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model;
利用所述补偿信息对所述终端设备检测的第一环境亮度信息进行补偿,获取补偿后的第二环境亮度信息;Use the compensation information to compensate the first environment brightness information detected by the terminal device, and obtain the compensated second environment brightness information;
基于所述第二环境亮度信息,调整所述终端设备的屏幕亮度。Based on the second environment brightness information, adjust the screen brightness of the terminal device.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the present invention is not limited to the precise construction 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 invention is limited only by the appended claims.
Claims (22)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911243729.0A CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911243729.0A CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112927641A CN112927641A (en) | 2021-06-08 |
| CN112927641B true CN112927641B (en) | 2024-02-23 |
Family
ID=76161791
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911243729.0A Active CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112927641B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114613310B (en) * | 2022-03-28 | 2025-04-22 | 联想(北京)有限公司 | Brightness adjustment method and device |
| CN115035834A (en) * | 2022-06-07 | 2022-09-09 | 维沃移动通信有限公司 | Screen dimming method and device, electronic equipment and storage medium |
| CN119851627A (en) * | 2023-10-17 | 2025-04-18 | 北京小米移动软件有限公司 | Screen brightness control method and device, terminal equipment and readable storage medium |
| CN118596582B (en) * | 2024-06-24 | 2025-04-08 | 广州黑格智造信息科技有限公司 | Light modulator control method of three-dimensional printing device and three-dimensional printing device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010034914A (en) * | 2008-07-30 | 2010-02-12 | Kyocera Corp | Mobile terminal |
| CN103065608A (en) * | 2011-10-19 | 2013-04-24 | 宏碁股份有限公司 | Electronic device, illumination adjustment system and illumination adjustment method |
| CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | A brightness adjustment method, device and terminal |
| CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8884939B2 (en) * | 2010-07-26 | 2014-11-11 | Apple Inc. | Display brightness control based on ambient light levels |
-
2019
- 2019-12-06 CN CN201911243729.0A patent/CN112927641B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010034914A (en) * | 2008-07-30 | 2010-02-12 | Kyocera Corp | Mobile terminal |
| CN103065608A (en) * | 2011-10-19 | 2013-04-24 | 宏碁股份有限公司 | Electronic device, illumination adjustment system and illumination adjustment method |
| CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | A brightness adjustment method, device and terminal |
| CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112927641A (en) | 2021-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112927641B (en) | Screen brightness adjusting method and device, terminal equipment and storage medium | |
| CN113539192B (en) | Ambient light detection method and device, electronic equipment and storage medium | |
| KR101712301B1 (en) | Method and device for shooting a picture | |
| CN112040402B (en) | Positioning method and device, and computer storage medium | |
| JP6348611B2 (en) | Automatic focusing method, apparatus, program and recording medium | |
| KR20160026251A (en) | Method and electronic device for taking a photograph | |
| US20210264876A1 (en) | Brightness adjustment method and device, mobile terminal and storage medium | |
| JP2017509096A (en) | Screen brightness setting method and setting device | |
| CN108616691B (en) | Photographing method and device based on automatic white balance, server and storage medium | |
| CN105100764A (en) | Photographing method and device | |
| CN111829651A (en) | Calibration method, device, equipment and storage medium for light intensity value | |
| US11555696B2 (en) | Electronic terminal, photographing method and device, and storage medium | |
| CN111405109A (en) | Brightness control method, brightness control device and electronic equipment | |
| CN115145428A (en) | A pointing method, device, electronic device and storage medium | |
| CN107677377B (en) | Method and device for determining color temperature | |
| CN114979321A (en) | Display method, device, terminal and storage medium for notification information | |
| CN112187995A (en) | Illumination compensation method, illumination compensation device, and storage medium | |
| CN109215615B (en) | Display unit working parameter compensation method and device | |
| CN111522453A (en) | Data processing method and device, and computer storage medium | |
| CN115861431A (en) | Camera registration method and device, communication equipment and storage medium | |
| CN111854721A (en) | Geomagnetic data correction method, device and electronic device | |
| CN105607319A (en) | Method and device for improving light leak of screen automatically | |
| CN107122356B (en) | Method and device for displaying face value and electronic equipment | |
| CN115831076A (en) | Screen brightness adjusting method and device, terminal and storage medium | |
| CN115222818A (en) | Calibration verification method, calibration verification device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |