[go: up one dir, main page]

CN108877741A - A kind of screen luminance adjustment method and terminal device - Google Patents

A kind of screen luminance adjustment method and terminal device Download PDF

Info

Publication number
CN108877741A
CN108877741A CN201810839356.2A CN201810839356A CN108877741A CN 108877741 A CN108877741 A CN 108877741A CN 201810839356 A CN201810839356 A CN 201810839356A CN 108877741 A CN108877741 A CN 108877741A
Authority
CN
China
Prior art keywords
brightness value
user
brightness
sample data
terminal device
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.)
Pending
Application number
CN201810839356.2A
Other languages
Chinese (zh)
Inventor
钟罕君
陈建原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810839356.2A priority Critical patent/CN108877741A/en
Publication of CN108877741A publication Critical patent/CN108877741A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a kind of screen luminance adjustment method and terminal devices, it is related to field of communication technology, the different demands that different user is unable to satisfy to screen intensity according to the method for ambient light intensity adjust automatically screen intensity to solve the problems, such as the prior art.This method includes:Adjustment parameter is obtained, which includes at least the environmental light brightness of terminal device local environment;According to the adjustment parameter and brightness value computation model, the first brightness value is calculated, which is to generate according to user using the historical sample data of the terminal device;The brightness value of the screen is adjusted to first brightness value.The program is applied particularly in the scene of screen intensity automatic adjustment.

Description

一种屏幕亮度调节方法及终端设备A screen brightness adjustment method and terminal equipment

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种屏幕亮度调节方法及终端设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method for adjusting screen brightness and a terminal device.

背景技术Background technique

随着终端技术的不断发展,终端设备的应用越来越广泛,用户注视终端设备的屏幕的时间越来越长。在屏幕亮度与环境光亮度不协调的情况下,人眼长时间注视屏幕会产生视觉疲劳,而这种视觉疲劳会对人眼视力造成不可逆的损伤。With the continuous development of terminal technology, terminal devices are more and more widely used, and users spend more and more time staring at the screen of the terminal device. When the brightness of the screen is inconsistent with the brightness of the ambient light, the human eye will experience visual fatigue when staring at the screen for a long time, and this visual fatigue will cause irreversible damage to human vision.

目前,终端设备通常根据环境光亮度自动调整屏幕亮度,然而由于不同用户对屏幕亮度的敏感程度不一样,而导致不同用户对屏幕亮度的需求就不一样,因此,现有技术根据环境光亮度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求。At present, terminal devices usually automatically adjust the screen brightness according to the ambient light brightness. However, different users have different screen brightness requirements due to different users' sensitivity to the screen brightness. Therefore, the existing technology automatically adjusts the screen brightness according to the ambient light brightness. The method of adjusting the brightness of the screen cannot meet the different needs of different users for the brightness of the screen.

发明内容Contents of the invention

本发明实施例提供一种屏幕亮度调节方法及终端设备,以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。Embodiments of the present invention provide a method for adjusting screen brightness and a terminal device to solve the problem that the existing method of automatically adjusting screen brightness according to ambient light intensity cannot meet different needs of different users for screen brightness.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种屏幕亮度调节方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for adjusting screen brightness, the method comprising:

获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;Acquiring an adjustment parameter, where the adjustment parameter at least includes the ambient light brightness of the environment where the terminal device is located;

根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;Calculate a first brightness value according to the adjustment parameter and a brightness value calculation model, where the brightness value calculation model is generated based on historical sample data of the user using the terminal device;

在该屏幕的亮度值不是第一亮度值的情况下,将该屏幕的亮度值调节为该第一亮度值。If the brightness value of the screen is not the first brightness value, adjust the brightness value of the screen to the first brightness value.

第二方面,本发明实施例提供了一种终端设备,该终端设备包括:获取模块、计算模块和调节模块;In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes: an acquisition module, a calculation module, and an adjustment module;

该获取模块,用于获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;The obtaining module is used to obtain adjustment parameters, where the adjustment parameters at least include the ambient light brightness of the environment where the terminal device is located;

该计算模块,用于根据该获取模块获取的该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;The calculation module is used to calculate the first brightness value according to the adjustment parameter and the brightness value calculation model acquired by the acquisition module, and the brightness value calculation model is generated according to the historical sample data of the user using the terminal device;

该调节模块,用于在该屏幕的亮度值不是该计算模块计算得到的第一亮度值的情况下,将该屏幕的亮度值调节为该计算模块计算得到的该第一亮度值。The adjustment module is used to adjust the brightness value of the screen to the first brightness value calculated by the calculation module when the brightness value of the screen is not the first brightness value calculated by the calculation module.

第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面中的屏幕亮度调节方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the A method for adjusting screen brightness in one aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面中的屏幕亮度调节方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screen brightness adjustment method in the first aspect are implemented .

在本发明实施例中,可以通过获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;将该屏幕的亮度值调节为该第一亮度值。该方案可以通过根据调节参数以及亮度值计算模型,计算第一亮度值,其中,亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的,从而相比现有技术,该方案能构根据不同用户的历史样本数据获得不同用户的不同需求,再根据不同用户的不同需求为不同用户的屏幕自动调节不同的亮度值。进而可以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。In the embodiment of the present invention, the first brightness value can be calculated according to the adjustment parameter and the brightness value calculation model, and the brightness value calculation model is Generated according to historical sample data of the user using the terminal device; adjust the brightness value of the screen to the first brightness value. This solution can calculate the first brightness value according to the adjustment parameters and the brightness value calculation model, wherein the brightness value calculation model is generated according to the historical sample data of the user using the terminal device, so that compared with the prior art, this solution can construct The different needs of different users are obtained according to the historical sample data of different users, and then different brightness values are automatically adjusted for the screens of different users according to the different needs of different users. Furthermore, the problem that the prior art method of automatically adjusting the screen brightness according to the ambient light intensity cannot meet the different needs of different users for the screen brightness can be solved.

附图说明Description of drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;Fig. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的屏幕亮度调节方法的流程图之一;FIG. 2 is one of the flow charts of the screen brightness adjustment method provided by the embodiment of the present invention;

图3为本发明实施例提供的屏幕亮度调节方法的流程图之二;Fig. 3 is the second flow chart of the screen brightness adjustment method provided by the embodiment of the present invention;

图4为本发明实施例提供的屏幕亮度调节方法的流程图之三;Fig. 4 is the third flowchart of the screen brightness adjustment method provided by the embodiment of the present invention;

图5为本发明实施例提供的一种屏幕亮度调节方法的界面的示意图;5 is a schematic diagram of an interface of a method for adjusting screen brightness provided by an embodiment of the present invention;

图6为本发明实施例提供的屏幕亮度调节方法的流程图之四;FIG. 6 is the fourth flowchart of the screen brightness adjustment method provided by the embodiment of the present invention;

图7为本发明实施例提供的屏幕亮度调节方法的流程图之五;Fig. 7 is the fifth flowchart of the screen brightness adjustment method provided by the embodiment of the present invention;

图8为本发明实施例提供的终端设备的结构示意图之一;FIG. 8 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present invention;

图9为本发明实施例提供的终端设备的结构示意图之二;FIG. 9 is a second structural schematic diagram of a terminal device provided by an embodiment of the present invention;

图10为本发明实施例提供的终端设备的结构示意图之三;FIG. 10 is a third structural schematic diagram of a terminal device provided by an embodiment of the present invention;

图11为本发明实施例提供的终端设备的结构示意图之四;FIG. 11 is a fourth schematic structural diagram of a terminal device provided by an embodiment of the present invention;

图12为本发明实施例提供的终端设备的结构示意图之五;FIG. 12 is a fifth schematic structural diagram of a terminal device provided by an embodiment of the present invention;

图13为本发明实施例提供的终端设备的硬件示意图。FIG. 13 is a schematic diagram of hardware of a terminal device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明的说明书和权利要求书中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入、第二输入、第三输入和第四输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first", "second", "third" and "fourth" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input, the second input, the third input, and the fourth input are used to distinguish different inputs, rather than describing a specific sequence of inputs.

在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元;多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more, for example, multiple processing units refer to two or more processing units; multiple elements Refers to two or more elements, etc.

本发明实施例提供一种屏幕亮度调节方法,可以通过获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;将该屏幕的亮度值调节为该第一亮度值。该方案可以通过根据调节参数以及亮度值计算模型,计算第一亮度值,其中,亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的,从而相比现有技术,该方案能构根据不同用户的历史样本数据获得不同用户的不同需求,再根据不同用户的不同需求为不同用户的屏幕自动调节不同的亮度值。进而可以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。An embodiment of the present invention provides a screen brightness adjustment method, which can obtain an adjustment parameter, the adjustment parameter includes at least the ambient light brightness of the environment where the terminal device is located; calculate the first brightness value according to the adjustment parameter and the brightness value calculation model, the The brightness value calculation model is generated according to the historical sample data of the user using the terminal device; the brightness value of the screen is adjusted to the first brightness value. This solution can calculate the first brightness value according to the adjustment parameters and the brightness value calculation model, wherein the brightness value calculation model is generated according to the historical sample data of the user using the terminal device, so that compared with the prior art, this solution can construct The different needs of different users are obtained according to the historical sample data of different users, and then different brightness values are automatically adjusted for the screens of different users according to the different needs of different users. Furthermore, the problem that the prior art method of automatically adjusting the screen brightness according to the ambient light intensity cannot meet the different needs of different users for the screen brightness can be solved.

下面以安卓操作系统为例,介绍一下本发明实施例提供的屏幕亮度调节方法所应用的软件环境。The following uses the Android operating system as an example to introduce the software environment used by the screen brightness adjustment method provided by the embodiment of the present invention.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1 , the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer and a kernel layer (specifically, the Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Wherein, the application program layer includes various application programs (including system application programs and third-party application programs) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application program framework layer is the application program framework, and developers can develop some applications based on the application program framework layer while complying with the development principles of the application program framework layer.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的屏幕亮度调节方法的软件程序,从而使得该屏幕亮度调节方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的屏幕亮度调节方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the screen brightness adjustment method provided in the embodiment of the present invention based on the system architecture of the Android operating system shown in Figure 1 above, so that the The screen brightness adjustment method can be run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal can implement the screen brightness adjustment method provided by the embodiment of the present invention by running the software program in the Android operating system.

本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digitalassistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a mobile terminal device, or may be a non-mobile terminal device. The mobile terminal device can be a mobile phone, tablet computer, notebook computer, handheld computer, vehicle-mounted terminal, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.; The non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine, or a self-service machine, etc.; this embodiment of the present invention does not specifically limit it.

本发明实施例提供的屏幕亮度调节方法的执行主体可以为上述的终端设备(包括移动终端设备和非移动终端设备),也可以为该终端设备中能够实现该方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的屏幕亮度调节方法进行示例性的说明。The execution body of the screen brightness adjustment method provided by the embodiment of the present invention may be the above-mentioned terminal equipment (including mobile terminal equipment and non-mobile terminal equipment), or it may be a functional module and/or a functional entity capable of implementing the method in the terminal equipment , which can be determined according to actual usage requirements, and is not limited in this embodiment of the present invention. The method for adjusting screen brightness provided by the embodiment of the present invention is exemplarily described below by taking a terminal device as an example.

参考图2所示,本发明实施例提供了一种屏幕亮度调节方法,该方法可以包括下述的步骤201-步骤203。Referring to FIG. 2 , an embodiment of the present invention provides a method for adjusting screen brightness, and the method may include the following steps 201 - 203 .

步骤201、终端设备获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度。Step 201, the terminal device acquires an adjustment parameter, where the adjustment parameter at least includes the ambient light brightness of the environment where the terminal device is located.

环境光亮度通常用光照度表示,即1流明(lm)的光通量均匀分布在1m2表面上所产生的光照度,单位勒克斯,符号lx;环境光亮度还可以用单位投影面积上的发光强度表示,单位是坎德拉/平方米(cd/m2);环境光亮度还可以用其他的表示,本发明实施例不作限定。Ambient luminance is usually expressed by illuminance, that is, the illuminance produced by the uniform distribution of 1 lumen (lm) of luminous flux on a 1m2 surface, unit lux, symbol lx; ambient luminance can also be expressed by luminous intensity per unit projected area, unit It is candela/square meter (cd/m 2 ); the ambient light brightness can also be represented by other expressions, which are not limited in this embodiment of the present invention.

该调节参数还包括下述的至少一项:该终端设备的系统时间、用户标识、该终端设备的地理位置信息,以及第一指示信息等,还可以包括其他的,本发明实施例不作限定;其中,该用户标识为下述的至少一项:用户的账号、用户的密令、用户的指纹信息、用户的面部信息、用户的虹膜信息、用户的手形信息以及用户的视网膜信息等,还可以包括其他的,本发明实施例不作限定;该第一指示信息用于指示该终端设备是否位于室内。The adjustment parameter also includes at least one of the following: the system time of the terminal device, the user identifier, the geographic location information of the terminal device, and the first indication information, etc., and may also include others, which are not limited in this embodiment of the present invention; Wherein, the user identification is at least one of the following: the user's account number, the user's password, the user's fingerprint information, the user's facial information, the user's iris information, the user's hand shape information, and the user's retinal information, etc., and may also include Others are not limited in this embodiment of the present invention; the first indication information is used to indicate whether the terminal device is located indoors.

示例性的,该终端设备的系统时间即为该终端设备采集到的当前时间。Exemplarily, the system time of the terminal device is the current time collected by the terminal device.

示例性的,用户标识用于标识不同用户,其中,若用户标识是用户账号,则当用户每次开始使用终端设备时,输入该用户的账号;若用户标识是用户的密令,则当用户每次开始使用终端设备时,输入该用户的用户的密令;若用户标识是用户的指纹信息,则当用户每次开始使用终端设备时,在终端设备的指纹采集区输入用户的指纹信息;若用户标识是用户的面部信息、用户的虹膜信息、用户的手形信息以及用户的视网膜信息中的一种,则当用户每次开始使用终端设备时,终端设备可以通过摄像头对应拍摄用户的面部图像、用户的虹膜图像、用户的手形图像以及用户的视网膜图像中的一种。终端设备根据用户标识来识别当前使用终端设备的用户。Exemplarily, the user ID is used to identify different users, wherein, if the user ID is a user account, when the user starts to use the terminal device each time, the user enters the user's account; if the user ID is the user's password, when the user When starting to use the terminal device for the first time, input the user's user password; if the user ID is the user's fingerprint information, then when the user starts using the terminal device each time, input the user's fingerprint information in the fingerprint collection area of the terminal device; if the user The identification is one of the user's facial information, user's iris information, user's hand shape information, and user's retinal information. Then when the user starts to use the terminal device every time, the terminal device can correspondingly capture the user's facial image through the camera, and the user's An image of the iris of the user, an image of the user's hand, and an image of the user's retina. The terminal device identifies the user currently using the terminal device according to the user identifier.

示例性的,该终端设备的地理位置信息可以是终端设备的经纬度信息。可选的,终端设备可以通过全球(卫星)定位系统(Global Positioning System,简称GPS)定位、基站定位、无线局域网(Wireless Fidelity,简称Wi-Fi)定位、网际协议(Internet Protocol,简称IP)定位、射频识别(Radio Frequency Identification,简称RFID)/二维码、蓝牙定位等定位方式来获取该终端设备当前所处的位置的地理位置信息,具体的实现上述定位方式的定位技术可以参考现有相关技术,本发明实施例不予赘述。Exemplarily, the geographic location information of the terminal device may be latitude and longitude information of the terminal device. Optionally, the terminal device may be positioned through the Global Positioning System (GPS for short), base station positioning, Wireless Fidelity (Wi-Fi for short) positioning, Internet Protocol (Internet Protocol, IP for short) positioning , radio frequency identification (Radio Frequency Identification, referred to as RFID)/QR code, Bluetooth positioning and other positioning methods to obtain the geographic location information of the current location of the terminal device. The specific positioning technology for realizing the above positioning methods can refer to existing related technology, and will not be described in detail in the embodiments of the present invention.

示例性的,第一指示信息可以用0代表非室内,1代表室内。终端设备可以通过摄像头拍照的方法,确定终端设备是否位于室内。Exemplarily, the first indication information may use 0 to represent non-indoor, and 1 to represent indoor. The terminal device can determine whether the terminal device is located indoors by taking pictures with the camera.

示例性的,在本发明实施例中,触发终端设备根据本发明实施例提供的屏幕亮度调节方法进行屏幕亮度调节的条件可以是下述的任意一项:终端设备周期性的触发终端设备进行屏幕亮度调节;终端设备检测到调节参数中的至少一项的变化满足对应的条件的情况下,触发终端设备进行屏幕亮度调节。示例性的,在终端设备检测到环境光亮度的变化大于或等于第一阈值的情况下,触发终端设备进行屏幕亮度调节;在终端设备检测到终端设备的系统时间大于或等于第一预设时间的情况下,触发终端设备进行屏幕亮度调节;终端设备检测到用户标识发生变化的情况下,触发终端设备进行屏幕亮度调节;终端设备检测到在预设时间段内该终端设备的地理位置信息的变化大于或等于第二阈值的情况下,触发终端设备进行屏幕亮度调节;终端设备检测到终端设备由室内到室外或由室外到室内的变化的情况下,触发终端设备进行屏幕亮度调节;还可以是其他的条件触发终端设备进行屏幕亮度调节,本发明实施例不作限定。Exemplarily, in the embodiment of the present invention, the conditions for triggering the terminal device to adjust the screen brightness according to the screen brightness adjustment method provided in the embodiment of the present invention may be any of the following: the terminal device periodically triggers the terminal device to perform screen brightness adjustment. Brightness adjustment: when the terminal device detects that the change of at least one of the adjustment parameters satisfies a corresponding condition, the terminal device is triggered to adjust the screen brightness. Exemplarily, when the terminal device detects that the change in ambient light brightness is greater than or equal to the first threshold, the terminal device is triggered to adjust the screen brightness; when the terminal device detects that the system time of the terminal device is greater than or equal to the first preset time When the terminal device detects that the user ID has changed, it triggers the terminal device to adjust the screen brightness; when the terminal device detects that the geographic location information of the terminal device has changed within the preset time period When the change is greater than or equal to the second threshold, the terminal device is triggered to adjust the screen brightness; when the terminal device detects the change of the terminal device from indoor to outdoor or from outdoor to indoor, it triggers the terminal device to adjust the screen brightness; It is other conditions that trigger the terminal device to adjust the screen brightness, which is not limited in this embodiment of the present invention.

步骤202、终端设备根据该调节参数以及亮度值计算模型,计算第一亮度值。Step 202, the terminal device calculates a first brightness value according to the adjustment parameter and the brightness value calculation model.

该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的。The brightness value calculation model is generated according to historical sample data of the user using the terminal device.

该亮度值计算模型可以是根据历史样本数据生成的固定不变的模型,也可以是随着历史样本数据的增多在不停变化的模型,具体的根据实际情况设定,本发明实施例不作限定。若该亮度值计算模型是随着历史样本数据的增多在不停变化的模型,这样随着样本数据的增多以及用户行为习惯的固定化,可以使得根据该亮度值计算模型计算得到的第一亮度值越来越符合用户的需求。此时,该亮度值计算模型可以是实时生成的,也可以是可以是上次终端设备进行屏幕亮度调节完成时到本次触发终端设备进行屏幕亮度调节之前的任意时间提前生成的,具体的根据实际情况设定,本发明实施例不作限定。The luminance value calculation model can be a fixed model generated based on historical sample data, or a model that is constantly changing with the increase of historical sample data, which is specifically set according to the actual situation, and is not limited by the embodiment of the present invention . If the brightness value calculation model is a model that is constantly changing with the increase of historical sample data, then with the increase of sample data and the immobilization of user behavior habits, the first brightness calculated according to the brightness value calculation model can be The value is more and more in line with the user's needs. At this time, the brightness value calculation model can be generated in real time, or it can be generated in advance at any time from the last time the terminal device completes the screen brightness adjustment to the time before the terminal device is triggered to adjust the screen brightness. The actual situation is set, and the embodiment of the present invention does not make a limitation.

步骤203、终端设备将该屏幕的亮度值调节为该第一亮度值。Step 203, the terminal device adjusts the brightness value of the screen to the first brightness value.

终端设备计算获得的第一亮度值是当前更满足用户需求的亮度值,因此在该屏幕的亮度值不是第一亮度值的情况下,终端设备将该屏幕的亮度值调节为该第一亮度值。The first brightness value calculated by the terminal device is a brightness value that better meets the user's needs at present, so if the brightness value of the screen is not the first brightness value, the terminal device adjusts the brightness value of the screen to the first brightness value .

在终端设备将该屏幕的亮度值调节为该第一亮度值,即本次自动调节屏幕亮度之后,终端设备将用于计算所述第一亮度值的调节参数保存为一条样本数据,还可以将此次调节前的亮度值和第一亮度值保存在该一条样本数据中,以便用于计算下次调节时的亮度值计算模型。After the terminal device adjusts the brightness value of the screen to the first brightness value, that is, after the screen brightness is automatically adjusted this time, the terminal device saves the adjustment parameters used to calculate the first brightness value as a piece of sample data, and can also save the The brightness value before this adjustment and the first brightness value are stored in the piece of sample data, so as to be used to calculate the brightness value calculation model for the next adjustment.

示例性的,结合图2,如图3所示,在步骤202之前,本发明实施例提供的屏幕亮度调节方法还可以包括下述的步骤204-步骤205。Exemplarily, referring to FIG. 2 , as shown in FIG. 3 , before step 202 , the screen brightness adjustment method provided by the embodiment of the present invention may further include the following steps 204 - 205 .

步骤204、终端设备获取该历史样本数据。Step 204, the terminal device acquires the historical sample data.

该历史样本数据包括N条样本数据,该N条样本数据中的每条样本数据至少包括一个环境光亮度,M条样本数据中的每条样本数据包括第二亮度值和第三亮度值,该第三亮度值为根据用户的输入对该第二亮度值调节后的亮度值,即第二亮度值为用户手动调节屏幕亮度之前的亮度值,第三亮度值为用户手动调节屏幕亮度之后的亮度值,该M条样本数据为该N条样本数据中的样本数据,N和M均为正整数,且N大于或等于M。The historical sample data includes N pieces of sample data, each piece of sample data in the N pieces of sample data includes at least one ambient light brightness, and each piece of sample data in the M pieces of sample data includes a second brightness value and a third brightness value, the The third brightness value is the brightness value after adjusting the second brightness value according to the user's input, that is, the second brightness value is the brightness value before the user manually adjusts the screen brightness, and the third brightness value is the brightness after the user manually adjusts the screen brightness value, the M pieces of sample data are sample data in the N pieces of sample data, N and M are both positive integers, and N is greater than or equal to M.

该N条样本数据中的每条历史样本数据还可以包括下述的至少一项:该终端设备的历史时间、历史用户标识、该终端设备的历史地理位置信息,以及历史第一指示信息等,还可以包括其他的,本发明实施例不作限定;其中,该历史用户标识为下述的至少一项:历史用户的账号、历史用户的密令、历史用户的指纹信息、历史用户的面部信息、历史用户的虹膜信息、历史用户的手形信息以及历史用户的视网膜信息等,还可以包括其他的,本发明实施例不作限定;该历史第一指示信息用于指示该终端设备历史是否位于室内。对该终端设备的历史时间、历史用户标识、该终端设备的历史地理位置信息,以及历史第一指示信息等的具体描述,可以参考上述对该终端设备的系统时间、用户标识、该终端设备的地理位置信息,以及第一指示信息等的相关描述,此处不再赘述。Each piece of historical sample data in the N pieces of sample data may also include at least one of the following: historical time of the terminal device, historical user ID, historical geographic location information of the terminal device, and historical first indication information, etc., Others may also be included, which is not limited in the embodiment of the present invention; wherein, the historical user identification is at least one of the following: account number of historical user, password of historical user, fingerprint information of historical user, facial information of historical user, historical The user's iris information, historical user's hand shape information, historical user's retinal information, etc. may also include others, which are not limited in this embodiment of the present invention; the historical first indication information is used to indicate whether the terminal device is historically located indoors. For specific descriptions of the terminal device's historical time, historical user ID, historical geographic location information of the terminal device, and historical first indication information, you can refer to the above-mentioned system time, user ID, and information about the terminal device. Relevant descriptions of the geographic location information and the first indication information will not be repeated here.

步骤205、终端设备根据该历史样本数据和机器学习算法模型,生成该亮度值计算模型。Step 205, the terminal device generates the luminance value calculation model according to the historical sample data and the machine learning algorithm model.

机器学习算法模型可以是现有技术中的任意一种机器学习算法模型,本发明实施例不作限定。例如可以是逻辑回归算法模型、朴素贝叶斯分类器算法模型、K均值聚类算法模型、K最近邻算法模型、支持向量机学习算法模型、线性回归机器学习算法模型、决策树机器学习算法模型、随机森林机器学习算法模型、神经网络算法模型等,具体的可以参考现有相关技术。下面以逻辑回归算法模型为例,对本发明实施例提供的屏幕亮度调节方法进行示例性的说明。The machine learning algorithm model may be any machine learning algorithm model in the prior art, which is not limited in this embodiment of the present invention. For example, it can be a logistic regression algorithm model, a naive Bayesian classifier algorithm model, a K-means clustering algorithm model, a K-nearest neighbor algorithm model, a support vector machine learning algorithm model, a linear regression machine learning algorithm model, a decision tree machine learning algorithm model , Random Forest Machine Learning Algorithm Model, Neural Network Algorithm Model, etc. For details, please refer to existing related technologies. The method for adjusting screen brightness provided by the embodiment of the present invention is exemplarily described below by taking a logistic regression algorithm model as an example.

逻辑回归算法模型的公式如下所示:The formula of the logistic regression algorithm model is as follows:

(1) θTx=θ01x12x2+...+θnxn (1) θ T x = θ 0 + θ 1 x 1 + θ 2 x 2 +... + θ n x n

(3) hθ(x)=g(θTx)(3) h θ (x) = g(θ T x)

由公式(1)、(2)和(3)可以得到逻辑回归算法模型公式:From the formulas (1), (2) and (3), the logistic regression algorithm model formula can be obtained:

其中,为Sigmoid函数,hθ(x)即为最终预测的亮度值百分比,n为调节参数的项数或每条样本数据的项数。θn为根据历史样本数据计算得到的逻辑回归模型的系数,xn为调节参数中的一项。in, is the Sigmoid function, h θ (x) is the percentage of the final predicted brightness value, and n is the number of items of the adjustment parameter or the number of items of each piece of sample data. θ n is the coefficient of the logistic regression model calculated based on historical sample data, and x n is one of the adjustment parameters.

具体的如何根据历史样本数据计算得到的逻辑回归算法模型的系数θn可以参考现有相关技术,此处不予赘述。For details on how to calculate the coefficient θ n of the logistic regression algorithm model based on historical sample data, reference may be made to existing related technologies, which will not be repeated here.

当亮度值计算模型为逻辑回归算法模型时,第一亮度值为hθ(x)与255的乘积。When the brightness value calculation model is a logistic regression algorithm model, the first brightness value is the product of h θ (x) and 255.

示例性的,结合图3,如图4所示,在步骤203之后,本发明实施例提供的屏幕亮度调节方法还可以包括下述的步骤206-步骤207。Exemplarily, referring to FIG. 3 , as shown in FIG. 4 , after step 203 , the screen brightness adjustment method provided by the embodiment of the present invention may further include the following steps 206 - 207 .

步骤206、终端设备接收用户在该终端设备中的亮度调节界面上的第一输入。Step 206, the terminal device receives a first input from the user on the brightness adjustment interface in the terminal device.

第一输入为用户手动调节屏幕亮度的输入,第一输入可以是滑动输入、拖动输入、点击输入等,本发明实施例不作限定。The first input is an input for the user to manually adjust the brightness of the screen. The first input may be a sliding input, a dragging input, a clicking input, etc., which are not limited in this embodiment of the present invention.

若用户对自动调节的屏幕亮度值(第一亮度值)不满意,则用户可以通过手动调节的方式进一步调节,直到用户满意。If the user is not satisfied with the automatically adjusted screen brightness value (the first brightness value), the user can further adjust it manually until the user is satisfied.

在步骤203之后,终端设备可以自动显示亮度调节界面,以便于用户手动调整亮度,提高用户体验,也可以是用户通过第三输入触发终端设备显示亮度调节界面,具体根据实际情况设定,本发明实施例不作限定。After step 203, the terminal device can automatically display the brightness adjustment interface so that the user can manually adjust the brightness and improve user experience, or the user can trigger the terminal device to display the brightness adjustment interface through a third input, which is set according to the actual situation. Examples are not limited.

若终端设备自动显示亮度调节界面,则若终端设备在预设时长内接收到用户在亮度调节界面上的第四输入,则响应于该第四输入,终端设备执行与该第四输入对应的操作,其中第四输入可以是第一输入。若在预设时长内,终端设备未接收到用户的在亮度调节界面上的任何输入,则终端设备隐藏该亮度调节界面。或者用户若不想使用该亮度调节界面隐藏,则点击除该亮度调节界面以外的位置,触发终端设备隐藏该亮度调节界面。If the terminal device automatically displays the brightness adjustment interface, if the terminal device receives a fourth input from the user on the brightness adjustment interface within a preset time period, then in response to the fourth input, the terminal device performs an operation corresponding to the fourth input , where the fourth input can be the first input. If the terminal device does not receive any input from the user on the brightness adjustment interface within the preset time period, the terminal device hides the brightness adjustment interface. Or if the user does not want to use the brightness adjustment interface to hide, then click on a location other than the brightness adjustment interface to trigger the terminal device to hide the brightness adjustment interface.

示例性的,亮度调节界面可以是叠加显示在终端设备的当前界面上的任意位置,亮度调节界面的透明度为0~100%之间的任意值,具体可以根据实际需要设定,本发明实施例不作限定。优选的,亮度调节界面叠加显示在终端设备的当前界面上的下方,这样便于操作;亮度调节界面的透明度为100%。这样不影响用户查看当前界面。Exemplarily, the brightness adjustment interface can be superimposed and displayed at any position on the current interface of the terminal device, and the transparency of the brightness adjustment interface is any value between 0 and 100%, which can be set according to actual needs. The embodiments of the present invention Not limited. Preferably, the brightness adjustment interface is superimposed and displayed below the current interface of the terminal device, which is convenient for operation; the transparency of the brightness adjustment interface is 100%. This will not affect the user viewing the current interface.

示例性的,如图5所示,亮度调节界面中可以包括设置快捷键、亮度调节滑动条和亮度固定键。其中设置快捷键是终端设备主界面上的设置快捷键,为了方便设置亮度自动调节功能,将设置快捷键也设置于亮度调节界面上。亮度调节滑动条用于手动调节屏幕亮度值,亮度调节滑动条还可以换成亮度调节滚动条,也可以换成亮度调节“+”“-”键。亮度固定键用于用户快速关闭屏幕亮度自动调节功能。Exemplarily, as shown in FIG. 5 , the brightness adjustment interface may include a setting shortcut key, a brightness adjustment slide bar, and a brightness fixed key. The setting shortcut key is the setting shortcut key on the main interface of the terminal device. In order to facilitate the setting of the automatic brightness adjustment function, the setting shortcut key is also set on the brightness adjustment interface. The brightness adjustment slide bar is used to manually adjust the screen brightness value, and the brightness adjustment slide bar can also be replaced with a brightness adjustment scroll bar, or it can be replaced with a brightness adjustment "+" and "-" key. The brightness fixed key is used for the user to quickly turn off the automatic adjustment function of the screen brightness.

步骤207、响应于该第一输入,终端设备将该屏幕的亮度值由该第一亮度值调节为与该第一输入对应的第四亮度值。Step 207: In response to the first input, the terminal device adjusts the brightness value of the screen from the first brightness value to a fourth brightness value corresponding to the first input.

与该第一输入对应的第四亮度值,即为用户手动调整屏幕亮度之后屏幕的亮度值。The fourth brightness value corresponding to the first input is the brightness value of the screen after the user manually adjusts the brightness of the screen.

示例性的,结合图4,如图6所示,在步骤207之后,本发明实施例提供的屏幕亮度调节方法还可以包括下述的步骤208。Exemplarily, referring to FIG. 4 , as shown in FIG. 6 , after step 207 , the screen brightness adjustment method provided by the embodiment of the present invention may further include the following step 208 .

步骤208、终端设备将该调节参数、该第一亮度值和该第四亮度值保存为一条样本数据。Step 208, the terminal device saves the adjustment parameter, the first brightness value and the fourth brightness value as a piece of sample data.

为了便于下次屏幕亮度自动调节获得的亮度值更接近用户的需求,保存用户手动调整前后的亮度值。In order to facilitate the brightness value obtained by the next automatic screen brightness adjustment to be closer to the user's needs, the brightness value before and after the user's manual adjustment is saved.

需要说明的是:在步骤203之后,终端设备已经将该调节参数保存为一条样本数据,因此这里可以将该第一亮度值和该第四亮度值保存到该调节参数保存的那条样本数据中。It should be noted that: after step 203, the terminal device has already saved the adjustment parameter as a piece of sample data, so here the first brightness value and the fourth brightness value can be saved in the piece of sample data where the adjustment parameter is saved .

示例性的,该终端设备中的亮度调节界面包括目标控件,亮度调节界面即为步骤206中的亮度调节界面,目标控件即为上述的亮度固定键。结合图2,如图7所示,在步骤203之后,本发明实施例提供的屏幕亮度调节方法还可以包括下述的步骤209-步骤210。Exemplarily, the brightness adjustment interface in the terminal device includes a target control, the brightness adjustment interface is the brightness adjustment interface in step 206, and the target control is the brightness fixed key mentioned above. Referring to FIG. 2 , as shown in FIG. 7 , after step 203 , the screen brightness adjustment method provided by the embodiment of the present invention may further include the following steps 209 - 210 .

步骤209、终端设备接收用户在该目标控件上的第二输入,该第二输入用于触发该终端设备关闭自动调节屏幕亮度功能。Step 209, the terminal device receives a second input from the user on the target control, and the second input is used to trigger the terminal device to turn off the function of automatically adjusting screen brightness.

示例性的,在某些环境光亮度在不断变化的环境中(例如,KTV中),终端设备可能在不停的自动调节屏幕亮度值,而导致用户无法正常使用手机,因此,用户可以通过点击该目标控件,从而触发该终端设备关闭自动调节屏幕亮度功能。Exemplarily, in some environments where the brightness of the ambient light is constantly changing (for example, in a KTV), the terminal device may automatically adjust the screen brightness value continuously, causing the user to be unable to use the mobile phone normally. Therefore, the user can click the The target control, thereby triggering the terminal device to turn off the function of automatically adjusting the screen brightness.

当用户想开启该屏幕亮度调节功能时,可以通过再次点击该目标控件。When the user wants to enable the screen brightness adjustment function, he can click the target control again.

步骤210、响应于该第二输入,终端设备控制该屏幕的亮度值保持为该第一亮度值。Step 210, in response to the second input, the terminal device controls the brightness value of the screen to remain at the first brightness value.

响应于该第二输入,终端设备关闭自动调节屏幕亮度功能,控制该屏幕的亮度值保持为该第一亮度值。这里只是终端设备不能自动调节屏幕亮度,用户还可以调节屏幕亮度。In response to the second input, the terminal device disables the function of automatically adjusting the brightness of the screen, and controls the brightness value of the screen to remain at the first brightness value. The only thing here is that the terminal device cannot automatically adjust the screen brightness, and the user can also adjust the screen brightness.

示例性的,作为一名对亮度敏感的终端设备用户,结合其日常行为反馈和环境光亮度等条件,我们可以对其在不同的环境下预测出用户所满意的亮度值,对后续行为做实时调整,有效提升用户体验,并保护其视力。As an example, as a terminal device user who is sensitive to brightness, we can predict the brightness value that the user is satisfied with in different environments by combining his daily behavior feedback and ambient light brightness, and make real-time follow-up behavior Adjust to effectively improve user experience and protect their eyesight.

示例性的,一敏感用户在正常使用过程,遇到屏幕亮度自动调节的场景,在屏幕亮度值自动调节后,假如亮度值达到60,该用户觉得该亮度值偏亮,用户不能适应,且长时间观看对眼睛伤害比较大,为此他手动对亮度进行调暗处理,将亮度值调节到40左右,此时终端设备收集用户手动调节前后的亮度值,并保存到样本数据中。在下次相同类型的使用场景下触发亮度调整功能时,现有技术的方案还是会给出相同的调节结果,即60左右。然而本发明实施例提供的方案根据对历史样本的学习结果,对此进行亮度预测,给出的结果在50左右,避免了用户再次进行手动调整,潜移默化中提升了用户的体验。For example, a sensitive user encounters a scene where the screen brightness is automatically adjusted during normal use. After the screen brightness value is automatically adjusted, if the brightness value reaches 60, the user feels that the brightness value is too bright, and the user cannot adapt to it. Time watching is more harmful to the eyes. Therefore, he manually dims the brightness and adjusts the brightness value to about 40. At this time, the terminal device collects the brightness value before and after the manual adjustment by the user, and saves it in the sample data. When the brightness adjustment function is triggered in the same type of use scene next time, the solution in the prior art will still give the same adjustment result, that is, about 60. However, the solution provided by the embodiment of the present invention predicts the brightness based on the learning results of historical samples, and the result is about 50, which avoids manual adjustment by the user again, and subtly improves the user experience.

需要说明的是:本发明实施例提供的屏幕亮度调节方法是在历史样本数据足够多的情况下,才能有效的为用户提供符合其需求的亮度值。历史样本数据数据是否足够是根据选择的机器学习算法模型的要求确定的,具体的参考现有技术,本发明实施例不作限定。在历史样本数据数据较少的情况下,终端设备可以根据现有技术提供的屏幕亮度调节方法对屏幕亮度进行调节,然后若用户不满意,则用户再进行手动调节。在每次完成调节之后,终端设备均采集此次调节的调节参数、用户手动调节前后的亮度值,将其保存为一条样本数据。当样本数据足够多时,终端设备根据本发明实施例提供的屏幕亮度调节方法对屏幕亮度进行调节。It should be noted that the screen brightness adjustment method provided by the embodiment of the present invention can effectively provide users with brightness values that meet their needs only when there is enough historical sample data. Whether the historical sample data is sufficient is determined according to the requirements of the selected machine learning algorithm model. For details, refer to the prior art, which is not limited in the embodiment of the present invention. In the case of less historical sample data, the terminal device can adjust the screen brightness according to the screen brightness adjustment method provided by the prior art, and then if the user is not satisfied, the user can manually adjust it. After each adjustment is completed, the terminal device collects the adjustment parameters of this adjustment and the brightness values before and after manual adjustment by the user, and saves them as a piece of sample data. When there is enough sample data, the terminal device adjusts the screen brightness according to the method for adjusting screen brightness provided by the embodiment of the present invention.

本发明实施例提供了一种屏幕亮度调节方法,可以通过获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;在该屏幕的亮度值不是第一亮度值的情况下,将该屏幕的亮度值调节为该第一亮度值。该方案可以通过根据调节参数以及亮度值计算模型,计算第一亮度值,其中,亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的,从而相比现有技术,该方案能构根据不同用户的历史样本数据获得不同用户的不同需求,再根据不同用户的不同需求为不同用户的屏幕自动调节不同的亮度值。进而可以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。An embodiment of the present invention provides a method for adjusting screen brightness. By obtaining an adjustment parameter, the adjustment parameter includes at least the ambient light brightness of the environment where the terminal device is located; and calculating the first brightness value according to the adjustment parameter and the brightness value calculation model, The brightness value calculation model is generated according to the historical sample data of the user using the terminal device; if the brightness value of the screen is not the first brightness value, the brightness value of the screen is adjusted to the first brightness value. This solution can calculate the first brightness value according to the adjustment parameters and the brightness value calculation model, wherein the brightness value calculation model is generated according to the historical sample data of the user using the terminal device, so that compared with the prior art, this solution can construct The different needs of different users are obtained according to the historical sample data of different users, and then different brightness values are automatically adjusted for the screens of different users according to the different needs of different users. Furthermore, the problem that the prior art method of automatically adjusting the screen brightness according to the ambient light intensity cannot meet the different needs of different users for the screen brightness can be solved.

如图8所示,本发明实施例提供一种终端设备120,该终端设备120包括:获取模块121、计算模块122和调节模块123;As shown in FIG. 8 , an embodiment of the present invention provides a terminal device 120, and the terminal device 120 includes: an acquisition module 121, a calculation module 122, and an adjustment module 123;

该获取模块121,用于获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;The acquisition module 121 is configured to acquire adjustment parameters, where the adjustment parameters at least include the ambient light brightness of the environment where the terminal device is located;

该计算模块122,用于根据该获取模块121获取的该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;The calculation module 122 is configured to calculate a first brightness value according to the adjustment parameter and the brightness value calculation model acquired by the acquisition module 121, and the brightness value calculation model is generated according to historical sample data of the user using the terminal device;

该调节模块123,用于将该屏幕的亮度值调节为该计算模块122计算得到的该第一亮度值。The adjustment module 123 is configured to adjust the brightness value of the screen to the first brightness value calculated by the calculation module 122 .

可选的,结合图8,如图9所示,该终端设备120还包括:生成模块124;该获取模块121,还用于在该根据该获取模块121获取的该调节参数以及亮度值计算模型,计算第一亮度值之前,获取该历史样本数据,该历史样本数据包括N条样本数据,该N条样本数据中的每条样本数据至少包括一个环境光亮度,M条样本数据中的每条样本数据包括第二亮度值和第三亮度值,该第三亮度值为根据用户的输入对该第二亮度值调节后的亮度值,该M条样本数据为该N条样本数据中的样本数据,N和M均为正整数;该生成模块124,用于根据该获取模块121获取的该历史样本数据和机器学习算法模型,生成该亮度值计算模型。Optionally, referring to FIG. 8 , as shown in FIG. 9 , the terminal device 120 further includes: a generation module 124; the acquisition module 121 is also used to calculate the adjustment parameter and brightness value according to the acquisition module 121. , before calculating the first brightness value, the historical sample data is obtained, the historical sample data includes N pieces of sample data, each piece of sample data in the N pieces of sample data includes at least one piece of ambient light brightness, and each piece of M pieces of sample data The sample data includes a second brightness value and a third brightness value, the third brightness value is a brightness value adjusted to the second brightness value according to user input, and the M pieces of sample data are sample data in the N pieces of sample data , N and M are both positive integers; the generating module 124 is configured to generate the brightness value calculation model according to the historical sample data and the machine learning algorithm model acquired by the acquiring module 121 .

可选的,该调节参数还包括下述的至少一项:该终端设备的系统时间、用户标识、该终端设备的地理位置信息,以及第一指示信息;其中,该用户标识为下述的至少一项:用户的账号、用户的密令、用户的指纹信息、用户的面部信息、用户的虹膜信息、用户的手形信息以及用户的视网膜信息;该第一指示信息用于指示该终端设备是否位于室内。Optionally, the adjustment parameter further includes at least one of the following: system time of the terminal device, user identifier, geographic location information of the terminal device, and first indication information; wherein, the user identifier is at least the following One item: user's account number, user's password, user's fingerprint information, user's face information, user's iris information, user's hand shape information and user's retina information; the first indication information is used to indicate whether the terminal device is located indoors .

可选的,结合图9,如图10所示,该终端设备120还包括:接收模块125;该接收模块125,用于在该将该屏幕的亮度值调节为该第一亮度值之后,接收用户在该终端设备中的亮度调节界面上的第一输入;该调节模块123,还用于响应于该接收模块125接收的该第一输入,将该屏幕的亮度值由该第一亮度值调节为与该第一输入对应的第四亮度值。Optionally, referring to FIG. 9 , as shown in FIG. 10 , the terminal device 120 further includes: a receiving module 125; the receiving module 125 is configured to, after adjusting the brightness value of the screen to the first brightness value, receive The user's first input on the brightness adjustment interface in the terminal device; the adjustment module 123 is also configured to adjust the brightness value of the screen by the first brightness value in response to the first input received by the receiving module 125 is the fourth brightness value corresponding to the first input.

可选的,结合图10,如图11所示,该终端设备120还包括:保存模块126;该保存模块126,用于在该将该屏幕的亮度值由该第一亮度值调节为与该第一输入对应的第四亮度值之后,将该调节参数、该第一亮度值和该第四亮度值保存为一条样本数据。Optionally, referring to FIG. 10 , as shown in FIG. 11 , the terminal device 120 further includes: a saving module 126; the saving module 126 is used to adjust the brightness value of the screen from the first brightness value to be consistent with the After the fourth brightness value corresponding to the first input, the adjustment parameter, the first brightness value and the fourth brightness value are saved as a piece of sample data.

可选的,该终端设备中的亮度调节界面包括目标控件;结合图10,如图12所示,该终端设备120还包括:控制模块127;该接收模块125,还用于在该将该屏幕的亮度值调节为该第一亮度值之后,接收用户在该目标控件上的第二输入,该第二输入用于触发该终端设备关闭自动调节屏幕亮度功能;该控制模块127,用于响应于该接收模块125接收的该第二输入,控制该屏幕的亮度值保持为该第一亮度值。Optionally, the brightness adjustment interface in the terminal device includes a target control; with reference to FIG. 10 , as shown in FIG. 12 , the terminal device 120 also includes: a control module 127; the receiving module 125 is also used to After the brightness value is adjusted to the first brightness value, a second input from the user on the target control is received, and the second input is used to trigger the terminal device to turn off the function of automatically adjusting the screen brightness; the control module 127 is configured to respond to The second input received by the receiving module 125 controls the brightness value of the screen to remain at the first brightness value.

本发明实施例提供的终端设备能够实现上述方法实施例中图2至图7任意之一所示的各个过程,为避免重复,此处不再赘述。The terminal device provided by the embodiment of the present invention can implement each process shown in any one of FIG. 2 to FIG. 7 in the above method embodiment, and to avoid repetition, details are not repeated here.

本发明实施例提供了一种终端设备,可以通过获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;在该屏幕的亮度值不是第一亮度值的情况下,将该屏幕的亮度值调节为该第一亮度值。该方案可以通过根据调节参数以及亮度值计算模型,计算第一亮度值,其中,亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的,从而相比现有技术,该方案能构根据不同用户的历史样本数据获得不同用户的不同需求,再根据不同用户的不同需求为不同用户的屏幕自动调节不同的亮度值。进而可以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。An embodiment of the present invention provides a terminal device, which can obtain an adjustment parameter, the adjustment parameter includes at least the ambient light brightness of the environment where the terminal device is located; calculate the first brightness value according to the adjustment parameter and the brightness value calculation model, the brightness The value calculation model is generated according to the historical sample data of the user using the terminal device; if the brightness value of the screen is not the first brightness value, the brightness value of the screen is adjusted to the first brightness value. This solution can calculate the first brightness value according to the adjustment parameters and the brightness value calculation model, wherein the brightness value calculation model is generated according to the historical sample data of the user using the terminal device, so that compared with the prior art, this solution can construct The different needs of different users are obtained according to the historical sample data of different users, and then different brightness values are automatically adjusted for the screens of different users according to the different needs of different users. Furthermore, the problem that the prior art method of automatically adjusting the screen brightness according to the ambient light intensity cannot meet the different needs of different users for the screen brightness can be solved.

图13为实现本发明各个实施例的一种终端设备的硬件结构示意图。如图13所示,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图13中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。Fig. 13 is a schematic diagram of a hardware structure of a terminal device implementing various embodiments of the present invention. As shown in Figure 13, the terminal device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, and a memory 109 , processor 110, and power supply 111 and other components. Those skilled in the art can understand that the terminal device structure shown in Figure 13 does not constitute a limitation on the terminal device, and the terminal device may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.

其中,处理器110,用于获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;在该屏幕的亮度值不是第一亮度值的情况下,将该屏幕的亮度值调节为该第一亮度值。Wherein, the processor 110 is configured to obtain an adjustment parameter, the adjustment parameter includes at least the ambient light brightness of the environment where the terminal device is located; calculate the first brightness value according to the adjustment parameter and the brightness value calculation model, and the brightness value calculation model is based on Generated by the user using historical sample data of the terminal device; if the brightness value of the screen is not the first brightness value, adjust the brightness value of the screen to the first brightness value.

本发明实施例提供的终端设备,可以通过获取调节参数,该调节参数至少包括终端设备所处环境的环境光亮度;根据该调节参数以及亮度值计算模型,计算第一亮度值,该亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的;在该屏幕的亮度值不是第一亮度值的情况下,将该屏幕的亮度值调节为该第一亮度值。该方案可以通过根据调节参数以及亮度值计算模型,计算第一亮度值,其中,亮度值计算模型为根据用户使用该终端设备的历史样本数据生成的,从而相比现有技术,该方案能构根据不同用户的历史样本数据获得不同用户的不同需求,再根据不同用户的不同需求为不同用户的屏幕自动调节不同的亮度值。进而可以解决现有技术根据环境光强度自动调整屏幕亮度的方法无法满足不同用户对屏幕亮度的不同需求的问题。The terminal device provided by the embodiment of the present invention can obtain the adjustment parameter, the adjustment parameter includes at least the ambient light brightness of the environment where the terminal device is located; calculate the first brightness value according to the adjustment parameter and the brightness value calculation model, and the brightness value calculation The model is generated according to the historical sample data of the user using the terminal device; if the brightness value of the screen is not the first brightness value, the brightness value of the screen is adjusted to the first brightness value. This solution can calculate the first brightness value according to the adjustment parameters and the brightness value calculation model, wherein the brightness value calculation model is generated according to the historical sample data of the user using the terminal device, so that compared with the prior art, this solution can construct The different needs of different users are obtained according to the historical sample data of different users, and then different brightness values are automatically adjusted for the screens of different users according to the different needs of different users. Furthermore, the problem that the prior art method of automatically adjusting the screen brightness according to the ambient light intensity cannot meet the different needs of different users for the screen brightness can be solved.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 110 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.

终端设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 102, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the network module 102 . The microphone 1042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a phone call mode.

终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of terminal equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operate). The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 110, receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图13中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be covered on the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it will be sent to the processor 110 to determine the type of the touch event, and then the processor 110 can The type of event provides a corresponding visual output on the display panel 1061 . Although in FIG. 13, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the terminal device is not specifically limited here.

接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the terminal device 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) etc.; Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器110是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal equipment, uses various interfaces and lines to connect various parts of the entire terminal equipment, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , execute various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .

终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.

另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some functional modules not shown, which will not be repeated here.

可选的,本发明实施例还提供一种终端设备,可以包括上述如图13所示的处理器110,存储器109,以及存储在存储器109上并可在该处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例中图2至图7任意之一所示的屏幕亮度调节方法的各个过程,且能达到相同的技术效果,为避免重复,此处不再赘述。Optionally, an embodiment of the present invention also provides a terminal device, which may include the above-mentioned processor 110 shown in FIG. When the computer program is executed by the processor 110, it realizes the various processes of the screen brightness adjustment method shown in any one of Fig. 2 to Fig. 7 in the above method embodiment, and can achieve the same technical effect. To avoid repetition, it is not repeated here repeat.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例中图2至图7任意之一所示的屏幕亮度调节方法的各个过程,且能达到相同的技术效果,为避免重复,此处不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method shown in any one of Fig. 2 to Fig. 7 in the above method embodiment is implemented. Each process of the screen brightness adjustment method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (10)

1. A method for adjusting screen brightness, the method comprising:
acquiring an adjusting parameter, wherein the adjusting parameter at least comprises the ambient light brightness of the environment where the terminal equipment is located;
calculating a first brightness value according to the adjusting parameter and a brightness value calculation model, wherein the brightness value calculation model is generated according to historical sample data of the terminal equipment used by a user;
adjusting the brightness value of the screen to the first brightness value.
2. The method of claim 1, wherein before calculating the first luminance value according to the adjustment parameter and the luminance value calculation model, further comprising:
acquiring the historical sample data, wherein the historical sample data comprises N pieces of sample data, each piece of sample data in the N pieces of sample data at least comprises one piece of environmental light brightness, each piece of sample data in M pieces of sample data comprises a second brightness value and a third brightness value, the third brightness value is a brightness value obtained after the second brightness value is adjusted according to input of a user, the M pieces of sample data are sample data in the N pieces of sample data, and N and M are positive integers;
and generating the brightness value calculation model according to the historical sample data and a machine learning algorithm model.
3. The method of claim 1, wherein the adjustment parameters further comprise at least one of: the system time, the user identification, the geographical position information and the first indication information of the terminal equipment;
wherein the user identification is at least one of: the method comprises the steps of obtaining user account number, user password, user fingerprint information, user face information, user iris information, user hand shape information and user retina information; the first indication information is used for indicating whether the terminal equipment is located indoors or not.
4. The method according to any one of claims 1-3, wherein after adjusting the brightness value of the screen to the first brightness value, further comprising:
receiving a first input of a user on a brightness adjusting interface in the terminal equipment;
adjusting, in response to the first input, a brightness value of the screen from the first brightness value to a fourth brightness value corresponding to the first input.
5. A terminal device, characterized in that the terminal device comprises: the device comprises an acquisition module, a calculation module and an adjustment module;
the acquisition module is used for acquiring adjusting parameters, and the adjusting parameters at least comprise the ambient light brightness of the environment where the terminal equipment is located;
the calculation module is configured to calculate a first brightness value according to the adjustment parameter and a brightness value calculation model acquired by the acquisition module, where the brightness value calculation model is generated according to historical sample data of the terminal device used by a user;
the adjusting module is configured to adjust the brightness value of the screen to the first brightness value calculated by the calculating module.
6. The terminal device according to claim 5, wherein the terminal device further comprises: a generation module;
the obtaining module is further configured to obtain the historical sample data before the first brightness value is calculated according to the adjustment parameter and the brightness value calculation model obtained by the obtaining module, where the historical sample data includes N sample data, each sample data in the N sample data at least includes one ambient light brightness, each sample data in M sample data includes a second brightness value and a third brightness value, the third brightness value is a brightness value obtained by adjusting the second brightness value according to the input of the user, the M sample data is sample data in the N sample data, and N and M are positive integers;
the generating module is configured to generate the brightness value calculation model according to the historical sample data and the machine learning algorithm model acquired by the acquiring module.
7. The terminal device of claim 5, wherein the adjustment parameters further comprise at least one of: the system time, the user identification, the geographical position information and the first indication information of the terminal equipment;
wherein the user identification is at least one of: the method comprises the steps of obtaining user account number, user password, user fingerprint information, user face information, user iris information, user hand shape information and user retina information; the first indication information is used for indicating whether the terminal equipment is located indoors or not.
8. The terminal device according to any of claims 5-7, wherein the terminal device further comprises: a receiving module;
the receiving module is used for receiving a first input of a user on a brightness adjusting interface in the terminal equipment after the brightness value of the screen is adjusted to the first brightness value;
the adjusting module is further configured to adjust, in response to the first input received by the receiving module, a brightness value of the screen from the first brightness value to a fourth brightness value corresponding to the first input.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
CN201810839356.2A 2018-07-27 2018-07-27 A kind of screen luminance adjustment method and terminal device Pending CN108877741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810839356.2A CN108877741A (en) 2018-07-27 2018-07-27 A kind of screen luminance adjustment method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810839356.2A CN108877741A (en) 2018-07-27 2018-07-27 A kind of screen luminance adjustment method and terminal device

Publications (1)

Publication Number Publication Date
CN108877741A true CN108877741A (en) 2018-11-23

Family

ID=64305970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810839356.2A Pending CN108877741A (en) 2018-07-27 2018-07-27 A kind of screen luminance adjustment method and terminal device

Country Status (1)

Country Link
CN (1) CN108877741A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933186A (en) * 2019-01-22 2019-06-25 西北大学 A method for optimizing energy consumption of mobile web browsers based on screen brightness adjustment
CN110047443A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Backlight brightness adjusting method and device, mobile terminal and storage medium
CN110970003A (en) * 2019-12-24 2020-04-07 维沃移动通信有限公司 Screen brightness adjusting method and device, electronic equipment and storage medium
CN111292704A (en) * 2020-02-11 2020-06-16 北京小米移动软件有限公司 Terminal screen brightness adjusting method and device and storage medium
CN111385400A (en) * 2020-03-12 2020-07-07 北京小米移动软件有限公司 Backlight brightness adjusting method and device
WO2020140240A1 (en) * 2019-01-03 2020-07-09 汕头市易普联科技有限公司 Output parameter adjustment method employing ambient light distribution field
CN111752516A (en) * 2020-06-10 2020-10-09 Oppo(重庆)智能科技有限公司 Screen adjustment method and device for terminal equipment, terminal equipment and storage medium
CN111989734A (en) * 2019-03-13 2020-11-24 西安诺瓦星云科技股份有限公司 Environmental parameter acquisition method, device and system, display terminal and brightness adjustment method
CN112037731A (en) * 2020-09-11 2020-12-04 中国第一汽车股份有限公司 Screen brightness adjusting method, device, equipment and storage medium
CN112068689A (en) * 2020-08-18 2020-12-11 深圳传音控股股份有限公司 Brightness adjusting method, terminal and computer storage medium
CN112530383A (en) * 2020-11-27 2021-03-19 中国联合网络通信集团有限公司 Terminal screen brightness automatic adjustment method, terminal device and storage medium
CN113035144A (en) * 2019-12-25 2021-06-25 Oppo广东移动通信有限公司 Method and device for adjusting display parameters, mobile terminal and storage medium
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN113424135A (en) * 2019-01-03 2021-09-21 广东夏野日用电器有限公司 Self-adaptive adjusting method based on environment light distribution field
CN114220368A (en) * 2021-12-29 2022-03-22 深圳市华星光电半导体显示技术有限公司 Brightness adjusting system and brightness adjusting method of display panel
CN114283761A (en) * 2021-12-23 2022-04-05 展讯通信(天津)有限公司 Screen brightness adjusting method and device
CN114664272A (en) * 2020-12-22 2022-06-24 瑞芯微电子股份有限公司 Paper-like display method, equipment and medium
CN116092447A (en) * 2022-12-19 2023-05-09 广东明创软件科技有限公司 Screen brightness determining method, electronic device, terminal equipment and storage medium
WO2023245417A1 (en) * 2022-06-21 2023-12-28 北京小米移动软件有限公司 Screen brightness adjustment method and apparatus, and electronic device and medium
WO2024045967A1 (en) * 2022-08-31 2024-03-07 京东方科技集团股份有限公司 Model adjustment method and device, display device, and storage medium
CN119299637A (en) * 2024-12-11 2025-01-10 深圳市臻火科技有限公司 Projection method, device and electronic equipment for multi-person conference

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000754A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Display Brightness Adjustment Method
CN102968979A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Screen brightness scheduling method based on curve fitting
CN103247282A (en) * 2013-04-24 2013-08-14 天津三星电子有限公司 Method for controlling screen luminance of display terminal and display terminal of method
US20140002473A1 (en) * 2012-06-28 2014-01-02 Lenovo (Singapore) Pte Ltd Brightness Control Method, Apparatus and Program Product
CN103956153A (en) * 2014-04-30 2014-07-30 华南理工大学 Method for achieving intelligent device screen brightness control software based on user habits
CN105869606A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Screen brightness regulating method and device
CN106228945A (en) * 2016-07-21 2016-12-14 广东欧珀移动通信有限公司 Control method and control device
CN106293059A (en) * 2016-07-21 2017-01-04 广东欧珀移动通信有限公司 Control method and control device
CN106357918A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Method for adjusting screen brightness and mobile terminal
CN106548765A (en) * 2017-01-12 2017-03-29 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000754A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Display Brightness Adjustment Method
US20140002473A1 (en) * 2012-06-28 2014-01-02 Lenovo (Singapore) Pte Ltd Brightness Control Method, Apparatus and Program Product
CN102968979A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Screen brightness scheduling method based on curve fitting
CN103247282A (en) * 2013-04-24 2013-08-14 天津三星电子有限公司 Method for controlling screen luminance of display terminal and display terminal of method
CN103956153A (en) * 2014-04-30 2014-07-30 华南理工大学 Method for achieving intelligent device screen brightness control software based on user habits
CN105869606A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Screen brightness regulating method and device
CN106228945A (en) * 2016-07-21 2016-12-14 广东欧珀移动通信有限公司 Control method and control device
CN106293059A (en) * 2016-07-21 2017-01-04 广东欧珀移动通信有限公司 Control method and control device
CN106357918A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Method for adjusting screen brightness and mobile terminal
CN106548765A (en) * 2017-01-12 2017-03-29 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11735136B2 (en) * 2019-01-03 2023-08-22 Guangdong Xiaye Household Electrical Appliances Co., Ltd. Output parameter adjustment method employing ambient light distribution field
CN113424135B (en) * 2019-01-03 2023-01-10 广东夏野日用电器有限公司 Self-adaptive adjusting method based on environment light distribution field
US20220076646A1 (en) * 2019-01-03 2022-03-10 Guangdong Xiaye Household Electrical Appliances Co., Ltd Output parameter adjustment method employing ambient light distribution field
CN113424252A (en) * 2019-01-03 2021-09-21 广东夏野日用电器有限公司 Output parameter adjusting method based on environment light distribution field
WO2020140240A1 (en) * 2019-01-03 2020-07-09 汕头市易普联科技有限公司 Output parameter adjustment method employing ambient light distribution field
CN113424135A (en) * 2019-01-03 2021-09-21 广东夏野日用电器有限公司 Self-adaptive adjusting method based on environment light distribution field
CN109933186A (en) * 2019-01-22 2019-06-25 西北大学 A method for optimizing energy consumption of mobile web browsers based on screen brightness adjustment
CN111989734A (en) * 2019-03-13 2020-11-24 西安诺瓦星云科技股份有限公司 Environmental parameter acquisition method, device and system, display terminal and brightness adjustment method
CN111989734B (en) * 2019-03-13 2023-08-22 西安诺瓦星云科技股份有限公司 Environment parameter acquisition method, device and system, display terminal and brightness adjustment method
CN110047443A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Backlight brightness adjusting method and device, mobile terminal and storage medium
CN110970003A (en) * 2019-12-24 2020-04-07 维沃移动通信有限公司 Screen brightness adjusting method and device, electronic equipment and storage medium
CN113035144A (en) * 2019-12-25 2021-06-25 Oppo广东移动通信有限公司 Method and device for adjusting display parameters, mobile terminal and storage medium
CN111292704A (en) * 2020-02-11 2020-06-16 北京小米移动软件有限公司 Terminal screen brightness adjusting method and device and storage medium
CN113395388B (en) * 2020-02-26 2022-10-18 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN111385400A (en) * 2020-03-12 2020-07-07 北京小米移动软件有限公司 Backlight brightness adjusting method and device
CN111752516A (en) * 2020-06-10 2020-10-09 Oppo(重庆)智能科技有限公司 Screen adjustment method and device for terminal equipment, terminal equipment and storage medium
CN112068689A (en) * 2020-08-18 2020-12-11 深圳传音控股股份有限公司 Brightness adjusting method, terminal and computer storage medium
CN112037731A (en) * 2020-09-11 2020-12-04 中国第一汽车股份有限公司 Screen brightness adjusting method, device, equipment and storage medium
CN112530383A (en) * 2020-11-27 2021-03-19 中国联合网络通信集团有限公司 Terminal screen brightness automatic adjustment method, terminal device and storage medium
CN114664272A (en) * 2020-12-22 2022-06-24 瑞芯微电子股份有限公司 Paper-like display method, equipment and medium
CN114664272B (en) * 2020-12-22 2023-08-04 瑞芯微电子股份有限公司 Paper-like display method, equipment and medium
CN114283761A (en) * 2021-12-23 2022-04-05 展讯通信(天津)有限公司 Screen brightness adjusting method and device
CN114220368A (en) * 2021-12-29 2022-03-22 深圳市华星光电半导体显示技术有限公司 Brightness adjusting system and brightness adjusting method of display panel
WO2023245417A1 (en) * 2022-06-21 2023-12-28 北京小米移动软件有限公司 Screen brightness adjustment method and apparatus, and electronic device and medium
WO2024045967A1 (en) * 2022-08-31 2024-03-07 京东方科技集团股份有限公司 Model adjustment method and device, display device, and storage medium
CN116092447A (en) * 2022-12-19 2023-05-09 广东明创软件科技有限公司 Screen brightness determining method, electronic device, terminal equipment and storage medium
CN119299637A (en) * 2024-12-11 2025-01-10 深圳市臻火科技有限公司 Projection method, device and electronic equipment for multi-person conference

Similar Documents

Publication Publication Date Title
CN108877741A (en) A kind of screen luminance adjustment method and terminal device
CN108668083B (en) Photographing method and terminal
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN109032445B (en) Screen display control method and terminal equipment
CN109343693B (en) Brightness adjusting method and terminal equipment
WO2019174628A1 (en) Photographing method and mobile terminal
CN109495616B (en) Photographing method and terminal equipment
CN109257505B (en) Screen control method and mobile terminal
CN109407929B (en) Desktop icon sorting method and terminal
CN109104566B (en) Image display method and terminal equipment
CN108762613B (en) State icon display method and mobile terminal
CN108234894A (en) A kind of exposure adjustment method and terminal device
CN110830713A (en) Zooming method and electronic equipment
CN111010523A (en) Video recording method and electronic equipment
CN107741814B (en) Display control method and mobile terminal
CN108881719A (en) A kind of method and terminal device switching style of shooting
CN108833791B (en) Shooting method and device
CN110223237A (en) Adjust the method and terminal device of image parameter
WO2021104162A1 (en) Display method and electronic device
CN110536005B (en) Object display adjustment method and terminal
CN109933266A (en) A display method and terminal device
CN109902679B (en) Icon display method and terminal equipment
CN110007821B (en) Operation method and terminal equipment
WO2019071562A1 (en) Data processing method and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123