CN105895057A - Backlight regulating method and device, and terminal equipment - Google Patents
Backlight regulating method and device, and terminal equipment Download PDFInfo
- Publication number
- CN105895057A CN105895057A CN201610447256.6A CN201610447256A CN105895057A CN 105895057 A CN105895057 A CN 105895057A CN 201610447256 A CN201610447256 A CN 201610447256A CN 105895057 A CN105895057 A CN 105895057A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- threshold
- intensity value
- blocked
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Telephone Function (AREA)
Abstract
本发明公开了一种背光调节方法、装置和终端设备,该方法包括:获取终端设备中光照传感器检测到的当前环境光的强度值;根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值,其中,设置的所述阈值的大小与所述强度值的大小成正比;将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡;当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。本方案改善了终端设备的背光调节功能,增加了背光调节的适应性。
The invention discloses a backlight adjustment method, device and terminal equipment. The method includes: acquiring the intensity value of the current ambient light detected by the illumination sensor in the terminal equipment; setting the proximity sensor in the terminal equipment according to the magnitude of the intensity value The threshold used to judge whether the terminal device is blocked, wherein the set threshold is proportional to the intensity value; compare the light intensity acquired by the proximity sensor with the threshold Comparing, determining whether the terminal device is blocked according to the comparison result; when it is determined that the terminal device is not blocked, keeping the backlight adjustment function of the terminal device in an on state. This solution improves the backlight adjustment function of the terminal equipment and increases the adaptability of the backlight adjustment.
Description
技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种背光调节方法、装置和终端设备。The embodiments of the present invention relate to computer technology, and in particular to a backlight adjustment method, device and terminal equipment.
背景技术Background technique
背光作为一种照明方式已被广泛应用在屏幕显示技术中。现有的终端设备大都具备背光亮度的自动调节功能,即终端设备通过自身集成的光传感器检测当前的环境光强度,不同的光强度对应不同的背光等级,进而对屏幕亮度进行调节以使得屏幕亮度和环境光相适应。终端设备通过对屏幕背光的自动调节可以在外界光线较暗时,降低屏幕亮度以避免对人眼产生刺激,而在外界光线较亮,会自动增加屏幕亮度使得屏幕能够清晰的显示内容,可以提高人眼观看的舒适度,合理的对视力进行保护。As a lighting method, backlight has been widely used in screen display technology. Most of the existing terminal devices have the function of automatically adjusting the brightness of the backlight, that is, the terminal device detects the current ambient light intensity through its own integrated light sensor, and different light intensities correspond to different backlight levels, and then adjusts the screen brightness to make the screen brightness Compatible with ambient light. Through the automatic adjustment of the screen backlight, the terminal device can reduce the screen brightness when the external light is dark to avoid irritation to the human eyes, and when the external light is bright, it will automatically increase the screen brightness so that the screen can clearly display the content, which can improve The comfort of human eyes viewing, reasonable protection of eyesight.
接近传感器同样为终端设备中常用的传感装置,其原理为:根据接收到的红外线强度来判断终端设备是否被遮挡,当接近传感器检测到终端设备被遮挡时,背光的自动调节功能就会失效,即终端设备并不会由于其受到遮挡而造成环境光变化后采取背光自动调节功能。当环境中的红外线较强烈的时候,接近传感器会判断终端设备处于被遮挡状态,进而产生终端设备无法进行背光自动调节的问题。The proximity sensor is also a commonly used sensing device in terminal equipment. Its principle is: judge whether the terminal equipment is blocked according to the intensity of the received infrared rays. When the proximity sensor detects that the terminal equipment is blocked, the automatic adjustment function of the backlight will fail. , that is, the terminal device will not adopt the backlight automatic adjustment function after the ambient light changes due to its being blocked. When the infrared rays in the environment are strong, the proximity sensor will judge that the terminal device is in a blocked state, which will cause the problem that the terminal device cannot automatically adjust the backlight.
发明内容Contents of the invention
本发明提供一种背光调节方法、装置和终端设备,以防止由于接近传感器的干扰造成背光调节无效的问题,改善了终端设备的背光调节功能,增加了背光调节的适应性。The invention provides a backlight adjustment method, device and terminal equipment to prevent the problem of invalid backlight adjustment due to the interference of a proximity sensor, improve the backlight adjustment function of the terminal equipment, and increase the adaptability of the backlight adjustment.
第一方面,本发明实施例提供了一种背光调节方法,包括:In a first aspect, an embodiment of the present invention provides a backlight adjustment method, including:
获取终端设备中光照传感器检测到的当前环境光的强度值;Obtain the intensity value of the current ambient light detected by the light sensor in the terminal device;
根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值,其中,设置的所述阈值的大小与所述强度值的大小成正比;Setting a threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value, wherein the set threshold is proportional to the magnitude of the intensity value;
将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡;Comparing the light intensity acquired by the proximity sensor with the threshold, and determining whether the terminal device is blocked according to the comparison result;
当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。When it is determined that the terminal device is not blocked, keep the backlight adjustment function of the terminal device in an on state.
第二方面,本发明实施例还提供了一种背光调节装置,包括:In the second aspect, the embodiment of the present invention also provides a backlight adjustment device, including:
环境光强获取模块,用于获取终端设备中光照传感器检测到的当前环境光的强度值;The ambient light intensity acquisition module is used to acquire the intensity value of the current ambient light detected by the light sensor in the terminal device;
阈值设置模块,用于根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值,其中,设置的所述阈值的大小与所述强度值的大小成正比;A threshold setting module, configured to set a threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value, wherein the set threshold is the same as the intensity value proportional to the size;
阈值比较模块,用于将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡;a threshold comparison module, configured to compare the light intensity acquired by the proximity sensor with the threshold, and determine whether the terminal device is blocked according to the comparison result;
背光处理模块,用于当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。A backlight processing module, configured to keep the backlight adjustment function of the terminal device in an on state when it is determined that the terminal device is not blocked.
第三方面,本发明实施例还提供了一种终端设备,所述终端设备集成了上述描述的装置。In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device integrates the apparatus described above.
本发明根据终端设备获取到的不同的环境光强度值适应性调整接近传感器判断是否被遮挡的阈值,防止由于环境光强度过大使得接近传感器判断终端设备处于遮挡状态进而造成背光调节无效的问题,改善了终端设备的背光调节功能,增加了背光调节的适应性。The present invention adaptively adjusts the threshold value of the proximity sensor for judging whether it is blocked according to different ambient light intensity values acquired by the terminal device, and prevents the problem that the proximity sensor judges that the terminal device is in a blocked state due to excessive ambient light intensity, thereby causing invalid backlight adjustment. The backlight adjustment function of the terminal equipment is improved, and the adaptability of the backlight adjustment is increased.
附图说明Description of drawings
图1是本发明实施例一提供的背光调节方法的流程图;FIG. 1 is a flowchart of a backlight adjustment method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的背光调节方法的流程图;FIG. 2 is a flow chart of the backlight adjustment method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的背光调节方法的流程图;FIG. 3 is a flow chart of a backlight adjustment method provided by Embodiment 3 of the present invention;
图4是本发明实施例四提供的背光调节装置的结构示意图。FIG. 4 is a schematic structural diagram of a backlight adjusting device provided by Embodiment 4 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图1为本发明实施例一提供的背光调节方法的流程图,本实施例可适用于终端设备中自动调节屏幕背光的情况,该方法可以由终端设备如智能手机、平板电脑来执行,具体包括如下步骤:Figure 1 is a flow chart of the backlight adjustment method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of automatically adjusting the screen backlight in a terminal device. This method can be executed by a terminal device such as a smart phone or a tablet computer, and specifically includes Follow the steps below:
步骤101、获取终端设备中光照传感器检测到的当前环境光的强度值。Step 101. Obtain the intensity value of the current ambient light detected by the illumination sensor in the terminal device.
终端设备中通常集成有各类传感器如加速度传感器、陀螺仪、重力传感器等以实现多种多样的功能。其中,光照传感器可用于终端设备感知其所处环境下的环境光的强度值。具体的,光照传感器将采集到的环境光的强度值通过光电转换将强度值转换为电压值,再将该电压值转换为0~2V或4~20mA,根据转换后的值的大小对应的得到光强值。其中,环境光的强度值代表了照明程度的大小。如:夏季在阳光直接照射下,光照强度约为6万~10万lux(光强度单位),没有太阳的室外约为0.1万~1万lux,夏天明朗的室内约为100~550lux,夜间满月下约为0.2lux。本步骤实时获取终端设备中光照传感器检测到的当前环境光的强度值。Various types of sensors such as acceleration sensors, gyroscopes, gravity sensors, etc. are usually integrated in terminal devices to achieve various functions. Wherein, the light sensor may be used for the terminal device to perceive the intensity value of the ambient light in its environment. Specifically, the light sensor converts the intensity value of the collected ambient light into a voltage value through photoelectric conversion, and then converts the voltage value into 0-2V or 4-20mA, and obtains Light intensity value. Wherein, the intensity value of the ambient light represents the magnitude of the illumination degree. For example: under direct sunlight in summer, the light intensity is about 60,000-100,000 lux (light intensity unit), about 1,000-10,000 lux outdoors without the sun, about 100-550 lux indoors in summer, and full moon at night The lower is about 0.2lux. This step acquires the intensity value of the current ambient light detected by the light sensor in the terminal device in real time.
步骤102、根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。Step 102: Set a threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value.
其中,设置的所述阈值的大小与所述强度值的大小成正比。即该强度值越大相应的该阈值也增大,若强度值减小则该阈值也相应减小。其中,接近传感器为终端设备中另一种常用的传感设备,其检测原理为通过接受到的反射的红外线的强度来感知是否处于被遮挡状态,即接受到的红外线强度较强则认定为终端设备处于遮挡状态。在具体的判断过程中,通过一系统预设的阈值作为判断标准,现有技术中该阈值的大小是固定不变的。在环境光的强度较强时,接近传感器采集到的光强也会增强,若该阈值采取固定阈值,则显然会导致终端设备在强光环境下使得接近传感器判断终端设备处于被遮挡状态,进而背光调节功能不可用。本步骤中,该阈值根据获取到的环境光强度值的大小而相应变化。Wherein, the magnitude of the set threshold is proportional to the magnitude of the intensity value. That is, the greater the intensity value, the corresponding threshold value also increases, and the threshold value decreases correspondingly when the intensity value decreases. Among them, the proximity sensor is another commonly used sensing device in terminal equipment. Its detection principle is to sense whether it is in a blocked state through the intensity of the received reflected infrared rays. The device is blocked. In the specific judgment process, a system preset threshold is used as the judgment standard, and the size of the threshold is fixed in the prior art. When the intensity of ambient light is strong, the light intensity collected by the proximity sensor will also increase. If the threshold is fixed, it will obviously cause the terminal device to make the proximity sensor judge that the terminal device is in a blocked state in a strong light environment, and then The backlight adjustment function is not available. In this step, the threshold changes accordingly according to the acquired ambient light intensity value.
步骤103、将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡。Step 103: Compare the light intensity acquired by the proximity sensor with the threshold, and determine whether the terminal device is blocked according to the comparison result.
其中,接近传感器实时采集其接收到的光线的强度,根据该强度大小来判断终端设备是否被遮挡。本步骤中,将接近传感器获取的光线强度的大小和步骤102中设置的阈值进行比较,根据比较结果确定终端设备是否被遮挡,由于该阈值根据环境光强度的大小而变化,故本步骤中比较时使用的阈值处于变化中。Wherein, the proximity sensor collects the intensity of the light it receives in real time, and judges whether the terminal device is blocked according to the intensity. In this step, compare the magnitude of the light intensity acquired by the proximity sensor with the threshold set in step 102, and determine whether the terminal device is blocked according to the comparison result. Since the threshold varies according to the magnitude of the ambient light intensity, the comparison in this step The thresholds used are subject to change.
步骤104、当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。Step 104, when it is determined that the terminal device is not blocked, keep the backlight adjustment function of the terminal device in an on state.
示例性的,终端设备在环境光强度较强时,通过背光调节功能以提高屏幕亮度,使得屏幕显示内容更加清晰;终端设备在环境光强度较弱时,通过背光调节功能适应性降低屏幕亮度以保护眼睛。当确定终端设备未被遮挡时,保持终端设备的背光调节功能处于开启状态,当终端设备被遮挡,背光调节功能失效。Exemplarily, when the ambient light intensity is strong, the terminal device uses the backlight adjustment function to increase the screen brightness to make the content displayed on the screen clearer; when the ambient light intensity is weak, the terminal device uses the backlight adjustment function to adaptively reduce the screen brightness. protect eyes. When it is determined that the terminal device is not blocked, the backlight adjustment function of the terminal device is kept on, and when the terminal device is blocked, the backlight adjustment function becomes invalid.
本实施例的技术方案,根据终端设备获取到的不同的环境光强度值适应性调整接近传感器判断是否被遮挡的阈值,防止由于环境光强度过大使得接近传感器判断终端设备处于遮挡状态进而造成背光调节无效的问题,改善了终端设备的背光调节功能,增加了背光调节的适应性。In the technical solution of this embodiment, according to the different ambient light intensity values acquired by the terminal device, the threshold value of the proximity sensor for judging whether it is blocked is adaptively adjusted to prevent the proximity sensor from judging that the terminal device is in a blocked state due to excessive ambient light intensity and thus causing backlight. The problem of invalid adjustment improves the backlight adjustment function of the terminal equipment and increases the adaptability of the backlight adjustment.
实施例二Embodiment two
图2为本发明实施例二提供的背光调节方法的流程图,本实施例在实施例一的基础上,给出了一种优选的设置阈值的方案,具体包括:Fig. 2 is a flow chart of the backlight adjustment method provided by Embodiment 2 of the present invention. On the basis of Embodiment 1, this embodiment provides a preferred scheme for setting a threshold, which specifically includes:
步骤201、获取终端设备中光照传感器检测到的当前环境光的强度值。Step 201. Obtain the intensity value of the current ambient light detected by the illumination sensor in the terminal device.
步骤202、判断所述强度值的大小是否小于第一预设调整值,在判断所述强度值小于第一预设调整值时,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。Step 202. Determine whether the intensity value is smaller than a first preset adjustment value. When it is judged that the intensity value is smaller than the first preset adjustment value, set the proximity sensor in the terminal device according to the intensity value. The threshold used for judging whether the terminal device is blocked.
其中,该第一预设调整值示例性的可以是8000lux,即环境光强度在超过8000lux时已经处于非常强的强光环境下,此时接近传感器获取到的光线强度值已经接近饱和状态,即无论设置多大的阈值接近传感器都会判断终端设备处于被遮挡状态,故本步骤中,设置有一第一预设调整至,用于在根据强度值的大小设置终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值之前,对环境光的强度值大小进行预先判断,在判断强度值小于第一预设调整值时,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。Wherein, the first preset adjustment value can be exemplarily 8000 lux, that is, when the ambient light intensity exceeds 8000 lux, it is already in a very strong bright light environment, and at this time the light intensity value acquired by the proximity sensor is already close to saturation, that is No matter how large the threshold value is set, the proximity sensor will judge that the terminal device is in a blocked state. Therefore, in this step, a first preset adjustment is set to be used to judge the terminal device in the proximity sensor according to the size of the intensity value. Before the threshold value used for whether the device is blocked, the intensity value of the ambient light is pre-judged, and when the intensity value is judged to be less than the first preset adjustment value, the proximity sensor in the terminal device is set according to the intensity value. The threshold used for judging whether the terminal device is blocked.
步骤203、将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡。Step 203: Compare the light intensity acquired by the proximity sensor with the threshold, and determine whether the terminal device is blocked according to the comparison result.
步骤204、当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。Step 204, when it is determined that the terminal device is not blocked, keep the backlight adjustment function of the terminal device in an on state.
本实施例的技术方案,在根据强度值的大小设置终端设备中接近传感器用于判断终端设备是否被遮挡所使用的阈值之前,判断所述强度值的大小是否小于第一预设调整值,若小于第一预设调整值再根据强度值的大小设置该阈值,优化了阈值的设置方案,使其更加符合终端设备中的具体场景,同时提高了背光调节的效率。In the technical solution of this embodiment, before setting the threshold value used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the strength value, it is judged whether the magnitude of the strength value is smaller than the first preset adjustment value, if The threshold is set according to the magnitude of the intensity value if it is less than the first preset adjustment value, which optimizes the threshold setting scheme, makes it more in line with the specific scene in the terminal device, and improves the efficiency of backlight adjustment at the same time.
在上述各个实施例的基础上,还包括:在判断所述强度值不小于第一预设调整值时,设置所述接近传感器无法触发所述终端设备处于被遮挡的状态。如前所述,当环境光强度值过大时,接近传感器将一直判断终端设备处于被遮挡状态进而使得背光调节功能失效,本方案中,在环境光强值大于等于第一预设调整值时,设置接近传感器无法触发终端设备处于被遮挡的状态,进而保持背光调节有效。On the basis of each of the above embodiments, it further includes: when it is judged that the intensity value is not less than the first preset adjustment value, setting the proximity sensor to be unable to trigger the terminal device to be in a blocked state. As mentioned above, when the ambient light intensity value is too large, the proximity sensor will always judge that the terminal device is in a blocked state, thereby making the backlight adjustment function invalid. In this solution, when the ambient light intensity value is greater than or equal to the first preset adjustment value , setting the proximity sensor cannot trigger the terminal device to be in a blocked state, so as to keep the backlight adjustment valid.
实施例三Embodiment three
图3为本发明实施例三提供的背光调节方法的流程图,本实施例在上述各实施例的基础上,给出了一种优选的设置阈值的方案,具体包括:Fig. 3 is a flow chart of the backlight adjustment method provided by Embodiment 3 of the present invention. On the basis of the above-mentioned embodiments, this embodiment provides a preferred scheme for setting thresholds, which specifically includes:
步骤301、获取终端设备中光照传感器检测到的当前环境光的强度值。Step 301. Obtain the current ambient light intensity value detected by the illumination sensor in the terminal device.
步骤302、判断所述强度值的大小是否大于第二预设调整值,在判断所述强度值大于第二预设调整值时,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。Step 302. Determine whether the intensity value is greater than a second preset adjustment value, and set the proximity sensor in the terminal device according to the intensity value when it is determined that the intensity value is greater than the second preset adjustment value. The threshold used for judging whether the terminal device is blocked.
其中,第二预设调整值小于第一预设调整值。示例性的,该第二预设调整值为3000lux,当环境光强度值小于3000时可以认定环境光并不强烈,其接近传感器受环境光光强的影响较小,则此时可不对该阈值进行适应性设置。Wherein, the second preset adjustment value is smaller than the first preset adjustment value. Exemplarily, the second preset adjustment value is 3000lux. When the ambient light intensity value is less than 3000, it can be determined that the ambient light is not strong, and its proximity sensor is less affected by the ambient light intensity. Make adaptive settings.
步骤303、将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡。Step 303: Compare the light intensity acquired by the proximity sensor with the threshold, and determine whether the terminal device is blocked according to the comparison result.
步骤304、当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。Step 304, when it is determined that the terminal device is not blocked, keep the backlight adjustment function of the terminal device in an on state.
本实施例的技术方案,在根据强度值的大小设置终端设备中接近传感器用于判断终端设备是否被遮挡所使用的阈值之前,在判断强度值大于第二预设调整值时,再根据强度值的大小设置终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值,优化了阈值的设置方案,使其更加符合终端设备中的具体场景,同时提高了背光调节的效率。In the technical solution of this embodiment, before setting the threshold value used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value, when the intensity value is determined to be greater than the second preset adjustment value, then according to the intensity value Set the threshold value used by the proximity sensor in the terminal device to determine whether the terminal device is blocked, optimize the threshold setting scheme, make it more in line with the specific scene in the terminal device, and improve the efficiency of backlight adjustment.
在上述各个实施例的基础上,还包括:在判断所述强度值不大于第二预设调整值时,采用默认数值作为终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。当强度值不大于第二预设调整值时意味着环境光的强度对接近传感器的影响较小,可以忽略,故本方案采用接近传感器的默认阈值,降低了程序运行的复杂度。On the basis of each of the above embodiments, it also includes: when judging that the intensity value is not greater than the second preset adjustment value, using a default value as the value used by the proximity sensor in the terminal device for judging whether the terminal device is blocked threshold. When the intensity value is not greater than the second preset adjustment value, it means that the intensity of the ambient light has little influence on the proximity sensor and can be ignored. Therefore, this solution adopts the default threshold value of the proximity sensor, which reduces the complexity of program operation.
在上述各个实施例的基础上,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值包括:根据所述强度值的大小和数据库中保存的强度值的大小和阈值的对应关系,设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。本方案中,将环境光强度值和对应的接近传感器阈值预先保存在数据库中,当需要对阈值进行设置时,直接从数据库中读取数据,提高了阈值的设置效率。On the basis of the above embodiments, setting the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value includes: according to the magnitude of the intensity value and the threshold value in the database The stored correspondence between the magnitude of the intensity value and the threshold sets the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked. In this solution, the ambient light intensity value and the corresponding proximity sensor threshold are stored in the database in advance, and when the threshold needs to be set, the data is directly read from the database, which improves the threshold setting efficiency.
在上述各个实施例的基础上,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值包括:根据所述强度值的大小和预设的强度值与阈值的线性关系,设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。本方案中,接近传感器的阈值和环境的光强值线性关联,提高了阈值的变化精度使得终端设备的背光功能调节更加精确。On the basis of each of the above embodiments, setting the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value includes: according to the magnitude of the intensity value and a preset The linear relationship between the intensity value and the threshold is set, and the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked is set. In this solution, the threshold value of the proximity sensor is linearly correlated with the light intensity value of the environment, which improves the variation accuracy of the threshold value and makes the adjustment of the backlight function of the terminal device more accurate.
实施例四Embodiment Four
图4为本发明实施例四提供的背光调节装置的结构示意图,具体结构如下:FIG. 4 is a schematic structural diagram of a backlight adjusting device provided in Embodiment 4 of the present invention, and the specific structure is as follows:
环境光强获取模块1,用于获取终端设备中光照传感器检测到的当前环境光的强度值;The ambient light intensity acquisition module 1 is used to acquire the intensity value of the current ambient light detected by the illumination sensor in the terminal device;
阈值设置模块2,用于根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值,其中,设置的所述阈值的大小与所述强度值的大小成正比;Threshold value setting module 2, configured to set the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked according to the magnitude of the intensity value, wherein the set threshold value is related to the intensity value The size of the value is proportional to;
阈值比较模块3,用于将所述接近传感器获取的光线强度的大小和所述阈值进行比较,根据比较结果确定所述终端设备是否被遮挡;Threshold comparison module 3, configured to compare the magnitude of the light intensity acquired by the proximity sensor with the threshold, and determine whether the terminal device is blocked according to the comparison result;
背光处理模块4,用于当确定所述终端设备未被遮挡时,保持所述终端设备的背光调节功能处于开启状态。The backlight processing module 4 is configured to keep the backlight adjustment function of the terminal device in an on state when it is determined that the terminal device is not blocked.
本实施例的技术方案,根据终端设备获取到的不同的环境光强度值适应性调整接近传感器判断是否被遮挡的阈值,防止由于环境光强度过大使得接近传感器判断终端设备处于遮挡状态进而造成背光调节无效的问题,改善了终端设备的背光调节功能,增加了背光调节的适应性。In the technical solution of this embodiment, according to the different ambient light intensity values acquired by the terminal device, the threshold value of the proximity sensor for judging whether it is blocked is adaptively adjusted to prevent the proximity sensor from judging that the terminal device is in a blocked state due to excessive ambient light intensity and thus causing backlight. The problem of invalid adjustment improves the backlight adjustment function of the terminal equipment and increases the adaptability of the backlight adjustment.
在上述技术方案的基础上,还包括:环境光强判断模块,用于判断所述强度值的大小是否小于第一预设调整值;所述阈值设置模块还用于:在判断所述强度值小于第一预设调整值时,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。On the basis of the above technical solution, it also includes: an ambient light intensity judging module, used to judge whether the magnitude of the intensity value is smaller than a first preset adjustment value; the threshold value setting module is also used to: when judging the intensity value When it is less than the first preset adjustment value, the threshold used by the proximity sensor in the terminal device for judging whether the terminal device is blocked is set according to the magnitude of the intensity value.
在上述技术方案的基础上,所述阈值设置模块还用于:在判断所述强度值不小于第一预设调整值时,设置所述接近传感器无法触发所述终端设备处于被遮挡的状态。On the basis of the above technical solution, the threshold setting module is further configured to: when it is judged that the intensity value is not less than a first preset adjustment value, set the proximity sensor to be unable to trigger the terminal device to be in a blocked state.
在上述技术方案的基础上,所述环境光强判断模块还用于:判断所述强度值的大小是否大于第二预设调整值,其中第二预设调整值小于第一预设调整值;所述阈值设置模块还用于:在判断所述强度值大于第二预设调整值时,根据所述强度值的大小设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。On the basis of the above technical solution, the ambient light intensity judging module is further configured to: judge whether the magnitude of the intensity value is greater than a second preset adjustment value, wherein the second preset adjustment value is smaller than the first preset adjustment value; The threshold setting module is further configured to: when judging that the intensity value is greater than a second preset adjustment value, set the proximity sensor in the terminal device according to the magnitude of the intensity value to determine whether the terminal device is blocked. The threshold to use.
在上述技术方案的基础上,所述阈值设置模块还用于:在判断所述强度值不大于第二预设调整值时,采用默认数值作为终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。On the basis of the above technical solution, the threshold setting module is further configured to: when judging that the intensity value is not greater than the second preset adjustment value, use a default value as the proximity sensor in the terminal device for judging whether the terminal device Threshold to use for occlusions.
在上述技术方案的基础上,所述阈值设置模块具体用于:根据所述强度值的大小和数据库中保存的强度值的大小和阈值的对应关系,设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。On the basis of the above technical solution, the threshold setting module is specifically configured to: set the proximity sensor in the terminal device to determine The threshold used for whether the terminal device is blocked.
在上述技术方案的基础上,所述阈值设置模块具体用于:根据所述强度值的大小和预设的强度值与阈值的线性关系,设置所述终端设备中接近传感器用于判断所述终端设备是否被遮挡所使用的阈值。On the basis of the above technical solution, the threshold setting module is specifically configured to: according to the magnitude of the intensity value and the preset linear relationship between the intensity value and the threshold, set the proximity sensor in the terminal device to determine whether the terminal The threshold used for whether the device is occluded or not.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned product can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
实施例五Embodiment five
本实施例在上述各实施例的基础上提供了一种终端设备,该终端设备集成了实施例四中描述的装置。示例性的,该终端设备由操作系统、CPU、ROM、RAM、触摸屏等部件组成。This embodiment provides a terminal device on the basis of the foregoing embodiments, and the terminal device integrates the apparatus described in Embodiment 4. Exemplarily, the terminal device is composed of operating system, CPU, ROM, RAM, touch screen and other components.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610447256.6A CN105895057B (en) | 2016-06-16 | 2016-06-16 | A kind of backlight adjusting method, device and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610447256.6A CN105895057B (en) | 2016-06-16 | 2016-06-16 | A kind of backlight adjusting method, device and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105895057A true CN105895057A (en) | 2016-08-24 |
| CN105895057B CN105895057B (en) | 2018-11-20 |
Family
ID=56730007
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610447256.6A Expired - Fee Related CN105895057B (en) | 2016-06-16 | 2016-06-16 | A kind of backlight adjusting method, device and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105895057B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108632469A (en) * | 2018-05-15 | 2018-10-09 | 维沃移动通信有限公司 | Method for prompting location of mobile terminal and mobile terminal |
| CN109862169A (en) * | 2017-11-30 | 2019-06-07 | 北京小米移动软件有限公司 | Electronic equipment control method and device |
| CN110187518A (en) * | 2019-04-15 | 2019-08-30 | 北京艾索健康科技有限公司 | A kind of identification at the moment weak device of environmental light intensity |
| CN113011216A (en) * | 2019-12-19 | 2021-06-22 | 合肥君正科技有限公司 | Multi-classification threshold self-adaptive occlusion detection method |
| CN114283753A (en) * | 2022-01-04 | 2022-04-05 | 海信视像科技股份有限公司 | Display device and control method of screen backlight brightness |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102440063A (en) * | 2008-12-29 | 2012-05-02 | 摩托罗拉移动公司 | Portable electronic device having self-calibrating proximity sensors |
| CN103137099A (en) * | 2011-11-28 | 2013-06-05 | 联想(北京)有限公司 | Screen luminance adjustment method and electronic device based on ambient light detecting sensor |
| CN104407399A (en) * | 2014-12-02 | 2015-03-11 | 三星半导体(中国)研究开发有限公司 | Method for calibrating proximity sensor in portable terminal |
| CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
-
2016
- 2016-06-16 CN CN201610447256.6A patent/CN105895057B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102440063A (en) * | 2008-12-29 | 2012-05-02 | 摩托罗拉移动公司 | Portable electronic device having self-calibrating proximity sensors |
| CN103137099A (en) * | 2011-11-28 | 2013-06-05 | 联想(北京)有限公司 | Screen luminance adjustment method and electronic device based on ambient light detecting sensor |
| CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
| CN104407399A (en) * | 2014-12-02 | 2015-03-11 | 三星半导体(中国)研究开发有限公司 | Method for calibrating proximity sensor in portable terminal |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109862169A (en) * | 2017-11-30 | 2019-06-07 | 北京小米移动软件有限公司 | Electronic equipment control method and device |
| CN109862169B (en) * | 2017-11-30 | 2022-03-01 | 北京小米移动软件有限公司 | Electronic equipment control method, device and storage medium |
| CN108632469A (en) * | 2018-05-15 | 2018-10-09 | 维沃移动通信有限公司 | Method for prompting location of mobile terminal and mobile terminal |
| CN110187518A (en) * | 2019-04-15 | 2019-08-30 | 北京艾索健康科技有限公司 | A kind of identification at the moment weak device of environmental light intensity |
| CN113011216A (en) * | 2019-12-19 | 2021-06-22 | 合肥君正科技有限公司 | Multi-classification threshold self-adaptive occlusion detection method |
| CN113011216B (en) * | 2019-12-19 | 2024-04-02 | 合肥君正科技有限公司 | Multi-classification threshold self-adaptive shielding detection method |
| CN114283753A (en) * | 2022-01-04 | 2022-04-05 | 海信视像科技股份有限公司 | Display device and control method of screen backlight brightness |
| CN114283753B (en) * | 2022-01-04 | 2023-01-20 | 海信视像科技股份有限公司 | Display device and control method of screen backlight brightness |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105895057B (en) | 2018-11-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105895057B (en) | A kind of backlight adjusting method, device and terminal device | |
| US10855912B2 (en) | Capturing a stable image using an ambient light sensor-based trigger | |
| US8964062B1 (en) | Integrated light sensor for dynamic exposure adjustment | |
| CN103220421B (en) | Method and device for using mobile terminal to carry out self photographing | |
| TWI428891B (en) | Electronic apparatus and backlight brightness control method thereof | |
| US20120169241A1 (en) | Electronic device capable of detecting environment brightness and method thereof | |
| CN105575334A (en) | Screen brightness adjusting method and user terminal | |
| CN105895053B (en) | A kind of method and device for the backlight illumination for adjusting terminal screen | |
| KR20140083741A (en) | Display method and apparatus | |
| CN108538265A (en) | A kind of the display brightness method of adjustment and device of liquid crystal display | |
| CN109257483B (en) | Method for adjusting opening and closing angles of display screens and multi-screen terminal | |
| CN107424584A (en) | Eyes protecting system and method | |
| CN105575368B (en) | Method and device for adjusting brightness of display screen | |
| JP2014017114A (en) | Illumination system | |
| CN106169290A (en) | Control method, control device and electronic installation | |
| CN107369404A (en) | A kind of automobile display screen display effect regulating system | |
| KR20190020578A (en) | Method for processing image based on external light and electronic device supporting the same | |
| CN104333709B (en) | Method, device and the electronic equipment being controlled to flash lamp | |
| CN106231085B (en) | Method and system for setting display parameters | |
| CN105702230A (en) | Method and device for adjusting backlight brightness of display screen of terminal and terminal | |
| CN207517343U (en) | Brightness control system and augmented reality equipment | |
| CN105700277B (en) | Projection brightness adjusting method and device | |
| CN105895055B (en) | A kind of screen luminance adjustment method and regulating system, display device | |
| KR20180042381A (en) | Illumination acquisition system, illumination control system and program | |
| CN205864557U (en) | Camera with automatic light supplementing function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181120 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |