[go: up one dir, main page]

CN105824496A - Method for setting icon brightness based on use of users and mobile terminal - Google Patents

Method for setting icon brightness based on use of users and mobile terminal Download PDF

Info

Publication number
CN105824496A
CN105824496A CN201610045041.1A CN201610045041A CN105824496A CN 105824496 A CN105824496 A CN 105824496A CN 201610045041 A CN201610045041 A CN 201610045041A CN 105824496 A CN105824496 A CN 105824496A
Authority
CN
China
Prior art keywords
icon
brightness
application
background area
threshold
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
CN201610045041.1A
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 CN201610045041.1A priority Critical patent/CN105824496A/en
Publication of CN105824496A publication Critical patent/CN105824496A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种基于用户使用情况设置图标亮度方法,属于显示技术领域,包括:按照应用程序的使用频率设置其图标的对比度级别;计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。对于用户经常使用的应用程序的图标,通过加强该图标和背景的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,同时,改善了用户体验。

The invention provides a method for setting icon brightness based on user usage, which belongs to the field of display technology, including: setting the contrast level of the icon according to the usage frequency of the application program; calculating the gray value of the background area of the icon, and according to the gray value Set the brightness of the icon according to the brightness value and the contrast level, and set the color of the icon text according to the color of the background area of the icon text. For the icon of the application program frequently used by the user, by strengthening the contrast between the icon and the background, the icon is highlighted, so that the user can quickly find the commonly used application program among various applications with various names, and at the same time, the user experience is improved.

Description

一种基于用户使用情况设置图标亮度的方法和移动终端A method and mobile terminal for setting icon brightness based on user usage

技术领域technical field

本发明涉及显示技术领域,特别是涉及一种基于用户使用情况设置图标亮度的方法和移动终端。The present invention relates to the field of display technology, in particular to a method and a mobile terminal for setting icon brightness based on user usage conditions.

背景技术Background technique

随着智能终端的普及,越来越多的应用程序(APP,Application)给人们的生活带来了便利,而用户智能终端的桌面则是我们去使用这些APP的最直接的入口。但是随着智能终端上面装载的APP的增多,用户如何快速地找到某个APP成为一个亟待解决的问题。With the popularization of smart terminals, more and more applications (APP, Application) bring convenience to people's life, and the desktop of the user's smart terminal is the most direct entrance for us to use these APPs. However, as the number of APPs loaded on smart terminals increases, how a user can quickly find a certain APP has become an urgent problem to be solved.

目前大部分的智能终端对于类似的问题的处理方法有以下两种:第一、建立分类文件夹或分类区域,对常见应用进行分类管理;第二、通过后台应用程序查找所需应用。对于第一种方法,用户寻找想要打开某个APP时需要首先找到该APP所在的文件夹或放置区域,然后,再从众多同类的APP中查找所需要打开的APP。现有技术中的这种打开APP的方法,需要用户仍记住各APP对应的文件夹或位置,用户体验不好而对于第二种方法,用户想打开的应用必须是之前使用过、且保留在缓存中的,若用户执行过清理内存、断电或关机的操作,则无法通过后台应用找到此APP。At present, most smart terminals have the following two methods for dealing with similar problems: first, establish classification folders or classification areas, and classify and manage common applications; second, find required applications through background applications. For the first method, when a user wants to open a certain APP, he needs to first find the folder or storage area where the APP is located, and then find the APP to be opened from many similar APPs. This method of opening APP in the prior art requires the user to still remember the folders or locations corresponding to each APP, and the user experience is not good. For the second method, the application that the user wants to open must be used before and kept. In the cache, if the user has performed operations such as clearing the memory, power off or shutdown, the APP cannot be found through the background application.

另外,由于目前的APP数量众多,应用程序的图标的相似度也不断增大。在两个应用程序的图标相似度较高时,用户往往要通过应用程序的图标下面显示的图标文字才能准确区分图标。而图标文字往往会受图标和背景的影响,造成识别度较低的问题。In addition, due to the large number of current APPs, the similarity of the icons of the application programs is also increasing. When the icons of two application programs have a high degree of similarity, the user often needs to use the icon text displayed under the application program icons to accurately distinguish the icons. However, the icon text is often affected by the icon and the background, resulting in a problem of low recognition.

可见,现有技术中APP的图标识别度不高以及图标文字容易受干扰都是造成用户无法快速找到需要查找的图标的原因。It can be seen that in the prior art, the app's icon recognition degree is not high and the icon text is easily disturbed are the reasons why the user cannot quickly find the icon that needs to be searched.

发明内容Contents of the invention

本发明提供一种基于用户使用情况设置图标亮度的方法和移动终端,解决现有技术中由于APP的图标识别度不高以及图标文字容易受干扰造成用户无法快速找到需要查找的图标的问题。The invention provides a method and a mobile terminal for setting the brightness of icons based on the user's usage situation, which solves the problem in the prior art that the user cannot quickly find the icon to be searched due to the low recognition degree of the APP icon and the easy interference of the icon text.

为了解决上述问题,本发明实施例提供了一种基于用户使用情况设置图标亮度的方法,包括:按照应用程序的使用频率设置其图标的对比度级别;计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。In order to solve the above problems, an embodiment of the present invention provides a method for setting the brightness of an icon based on the usage of the user, including: setting the contrast level of the icon of the application according to the frequency of use of the application; calculating the gray value of the background area of the icon, The brightness of the icon is set according to the gray value and the contrast level, and the color of the icon text is set according to the color of the background area of the icon text.

相应的,为了解决上述问题,本发明实施例还提供了一种基于用户使用情况设置图标亮度的移动终端,包括:对比度设置单元,用于按照应用程序的使用频率设置其图标的对比度级别;亮度及颜色设置单元,用于计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度设置单元设置的图标的对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。Correspondingly, in order to solve the above problems, the embodiment of the present invention also provides a mobile terminal for setting the brightness of icons based on the user's usage, including: a contrast setting unit for setting the contrast level of the icon according to the frequency of use of the application program; and a color setting unit, configured to calculate the grayscale value of the icon background area, set the brightness of the icon according to the grayscale value and the contrast level of the icon set by the contrast setting unit, and, according to the icon text The color of the background area, sets the color of the icon text.

本发明的实施例通过根据应用程序的使用频率设置所述应用程序的图标的对比度级别,然后,计算所述图标背景区域的灰度值,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色,根据所述灰度值和所述对比度级别设置所述图标的亮度,对于用户经常使用的应用程序的图标,通过加强该图标以及图标文字和背景区域亮度的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,同时,改善了用户体验。与现有技术相比,不需要创建文件夹,并进入文件夹查找,也不受内存清除对启动APP带来的影响,能够既快速又高效地呈现用户经常使用的APP图标。In the embodiment of the present invention, the contrast level of the icon of the application is set according to the frequency of use of the application, and then the gray value of the background area of the icon is calculated, and the color of the background area of the icon text is set. The color of the icon text, the brightness of the icon is set according to the gray value and the contrast level, for the icon of the application program frequently used by the user, by strengthening the contrast between the icon and the icon text and the brightness of the background area, the Displaying the icon facilitates the user to quickly find commonly used application programs among various applications with various names, and at the same time, improves user experience. Compared with the existing technology, there is no need to create a folder and enter the folder to search, and it is not affected by the memory clearing on starting the APP, and can quickly and efficiently present the APP icons frequently used by users.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1是本发明一种基于用户使用情况设置图标亮度的方法一个实施例的流程图;FIG. 1 is a flowchart of an embodiment of a method for setting icon brightness based on user usage in the present invention;

图2是本发明一种基于用户使用情况设置图标亮度的方法另一实施例的流程图;FIG. 2 is a flow chart of another embodiment of a method for setting icon brightness based on user usage in the present invention;

图3是本发明一个实施例中图标的背景区域的示意图;Fig. 3 is a schematic diagram of a background area of an icon in an embodiment of the present invention;

图4是本发明一种基于用户使用情况设置图标亮度的方法再一个实施例的流程图;FIG. 4 is a flow chart of another embodiment of a method for setting icon brightness based on user usage in the present invention;

图5是本发明的移动终端一个实施例的结构图;Fig. 5 is a structural diagram of an embodiment of the mobile terminal of the present invention;

图6是本发明的移动终端另一个实施例的结构图;FIG. 6 is a structural diagram of another embodiment of the mobile terminal of the present invention;

图7是本发明的移动终端又一个实施例的结构图;FIG. 7 is a structural diagram of another embodiment of the mobile terminal of the present invention;

图8是本发明的移动终端再一个实施例的结构图;Fig. 8 is a structural diagram of another embodiment of the mobile terminal of the present invention;

图9是本发明的移动终端又一个实施例的结构图。Fig. 9 is a structural diagram of another embodiment of the mobile terminal of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.

本实施例提供了一种基于用户使用情况设置图标亮度的方法如图1所示,该方法包括:This embodiment provides a method for setting icon brightness based on the user's usage situation, as shown in Figure 1, the method includes:

步骤140,按照应用程序的使用频率设置其的图标的对比度级别;Step 140, setting the contrast level of the icon of the application according to the usage frequency of the application;

步骤160,计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。Step 160, calculating the gray value of the background area of the icon, setting the brightness of the icon according to the gray value and the contrast level, and setting the icon text according to the color of the background area of the icon text s color.

具体实施时,可以设定阈值采样周期,并记录用户在连续N个阈值采样周期内使用各应用程序的次数,并计算平均一个阈值采样周期内该应用程序的使用频率,从而实现采集用户对应用程序的使用频率;对使用频率高的应用程序的图标,设置较高的对比度级别,对比度级别越高,图标的亮度和所述图标的背景区域的亮度对比越强烈;最后,通过计算所述图标背景区域的灰度值,作为参考灰度值,并结合应用程序的对比度级别设置所述应用程序的图标的亮度和图标文字的颜色。N为大于1的正整数。During specific implementation, the threshold sampling period can be set, and the number of times the user uses each application program within N consecutive threshold sampling periods can be recorded, and the average usage frequency of the application program within one threshold sampling period can be calculated, so as to realize the collection of the user's feedback on the application program. The frequency of use of the program; for icons of frequently used applications, set a higher contrast level, the higher the contrast level, the stronger the contrast between the brightness of the icon and the brightness of the background area of the icon; finally, by calculating the icon The grayscale value of the background area is used as a reference grayscale value, and the brightness of the icon of the application program and the color of the icon text are set in combination with the contrast level of the application program. N is a positive integer greater than 1.

本发明的另一具体实施例中,如图2所示,在按照应用程序的使用频率设置其图标的对比度级别的步骤之前,所述方法还包括:所述计算应用程序的使用频率的步骤120,In another specific embodiment of the present invention, as shown in FIG. 2 , before the step of setting the contrast level of the icon of the application according to the frequency of use of the application, the method further includes: the step 120 of calculating the frequency of use of the application ,

所述步骤120进一步包括:对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。The step 120 further includes: performing a weighted average calculation on the usage times of the application program within N consecutive threshold sampling periods starting from the current time point to obtain the average usage frequency of the application program within one threshold sampling period, wherein , N is a positive integer greater than 1.

本发明通过采集用户对应用程序的使用次数,并计算用户在一段时间内对每一应用程序的使用频率,根据所述应用程序的使用频率设置所述应用程序的图标的对比度级别,然后,计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。对于用户经常使用的应用程序的图标,通过加强该图标和周围环境亮度的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,提高设备的使用效率,进一步改善了用户体验。The present invention collects the number of times a user uses an application, calculates the frequency of use of each application by the user within a period of time, sets the contrast level of the icon of the application according to the frequency of use of the application, and then calculates The gray value of the background area of the icon, the brightness of the icon is set according to the gray value and the contrast level, and the color of the icon text is set according to the color of the background area of the icon text. For the icons of applications frequently used by users, the icon is highlighted by enhancing the contrast between the icon and the brightness of the surrounding environment, so that users can quickly find commonly used applications among various applications, improve the use efficiency of the device, and further Improved user experience.

在本发明的一个优选实施例中,预先设定阈值采样周期,连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,所述连续N个阈值采样周期中每个阈值采样周期又包括多个子阈值采样周期。移动终端会记录用户在连续N个阈值采样周期使用任一应用程序的次数。例如,用户通过桌面点击该应用程序的图标启动该应用程序,该应用程序的使用次数加1。In a preferred embodiment of the present invention, the threshold sampling period is preset, and the continuous N threshold sampling periods are set with cycle weights from low to high in chronological order, and each threshold sampling period in the N continuous threshold sampling periods The period in turn includes a plurality of sub-threshold sampling periods. The mobile terminal will record the number of times the user uses any application during N consecutive threshold sampling periods. For example, when the user clicks the icon of the application on the desktop to start the application, the usage count of the application is increased by 1.

所述计算应用程序的使用频率的步骤的进一步包括:按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;其中,The step of calculating the usage frequency of the application program further includes: according to the set cycle weight, perform weighted average calculation on the usage times of the application program in N consecutive threshold sampling periods starting from the current time point forward, to obtain the The application program averages the usage frequency within a threshold sampling period, and N is a positive integer greater than 1; among them,

从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;The number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, starting from the current time point forward The multiple sub-threshold sampling periods in the first threshold sampling period are set with sub-sampling period weights from low to high in chronological order;

当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。The number of times the application is used in the Mth threshold sampling period forward from the current time point is the sum of the number of times the application is used in all sub-threshold sampling periods within the threshold sampling period, M is a positive integer greater than 1 and less than or equal to N .

下面以子阈值采样周期为1周,阈值采样周期1个月,每月包含4周,连续采集12周为例详细介绍本实施例的技术方案。本实施例中,N等于3,M等于2或3。The technical solution of this embodiment will be described in detail below by taking the sub-threshold sampling period as 1 week, the threshold sampling period as 1 month, 4 weeks per month, and 12 consecutive weeks of continuous collection as an example. In this embodiment, N is equal to 3, and M is equal to 2 or 3.

从每个应用程序第一次使用的时间起,分别记录每周从桌面点击应用程序图标进入每个应用程序的次数,连续记录12周。下表是记录的一个应用程序的12周的使用次数数据,01周代表距离当前时间最近的一周,12周代表距离当前时间最远的一周:From the first time each application was used, the number of times each application was clicked from the desktop to enter each application was recorded every week for 12 consecutive weeks. The following table is the recorded usage data of an application in 12 weeks. Week 01 represents the week closest to the current time, and week 12 represents the week farthest from the current time:

周数week number 0101 0202 0303 0404 0505 0606 0707 0808 0909 1010 1111 1212 次数frequency 2020 2020 3030 2020 3030 4040 3030 4040 3030 4040 4040 5050

将得到的连续12周的使用次数数据按照时间先后顺序划分为3个月,时间在最后的子阈值采样周期距离当前时间点最近,即:第01、02、03、04周为距离当前时间最接近的第一个月;第05、06、07、08周为距离当前时间的第二个月;第09、10、11、12周为距离当前时间的第三个月。每个月的使用次数数据设置有相应的周期权重,且时间在后的月份的周期权重逐渐增加,例如,第一个月的周期权重为60%,第二个月的周期权重为30%,第三个月的周期权重为10%。第二个月和第三个月中每一周的使用次数的频率计算权重等于该月的周期权重,即:第09、10、11、12周的使用次数的频率计算权重为10%;第05、06、07、08周的使用次数的频率计算权重为30%。对于第一个月,进一步按照时间的先后顺序对该月内每一周的使用次数设置由低到高的子采样周期权重。例如,第04周的使用次数的子采样周期权重10%、第03周的使用次数的子采样周期权重20%、第02周的使用次数的子采样周期权重30%、第01周的使用次数的子采样周期权重40%。Divide the obtained 12 consecutive weeks of usage times data into 3 months in chronological order, and the last sub-threshold sampling period is the closest to the current time point, that is, weeks 01, 02, 03, and 04 are the closest to the current time. The first month that is close; Weeks 05, 06, 07, and 08 are the second month from the current time; Weeks 09, 10, 11, and 12 are the third month from the current time. The number of usage data in each month is set with a corresponding cycle weight, and the cycle weight of the later months gradually increases. For example, the cycle weight of the first month is 60%, and the cycle weight of the second month is 30%. The cycle weight for the third month is 10%. The frequency calculation weight of the usage times in each week in the second month and the third month is equal to the cycle weight of the month, that is: the frequency calculation weight of the usage times in the 09th, 10th, 11th and 12th weeks is 10%; , 06, 07, 08 week frequency calculation weight of usage times is 30%. For the first month, further set the sub-sampling period weights from low to high for the usage times of each week in the month according to the order of time. For example, the number of uses in week 04 has a subsampling weight of 10%, the number of uses in week 03 has a subsampling weight of 20%, the number of uses in week 02 has a subsampling weight of 30%, and the number of uses in week 01 The subsampling period weights 40%.

然后,根据上述连续12周内使用任一应用程序的次数,计算每个月的应用程序使用次数,再通过加权求和计算该应用程序在连续12周(即3个月)内的每个月的平均使用频率。首先,计算第一个月的应用程序使用次数。第一个月即从当前时间点起向前的第一个阈值采样周期,从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和。对第一个月内每周的次数进行加权求和,得到当前时间点起向前的第一个阈值采样周期内该应用程序的每周平均使用次数:W1=20×40%+20×30%+30×20%+20×10%=22次;然后,再用第一个月内每周平均次数乘4作为第一个月的使用次数T3,即T3=W1×4=22×4=88,即从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数。再后,计算当前时间点起向前的第M个阈值采样周期内应用程序的使用次数,即本实施例中的第二个月的应用程序使用次数T2和第三个月的应用程序使用次数T1。当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和。其中,M为大于1且小于等于N的正整数,即M不包括距离当前时间最近的第一个月。即T2=30+40+30+40=140,T1=30+40+40+50=160。最后,每个月的使用次数进行加权求和,得到三个月内每个月的平均使用次数,如以下公式:M1=T3×60%+T2×30%+T1×10%=110.8。Then, according to the number of times of using any app in the above 12 consecutive weeks, calculate the number of times the app is used in each month, and then calculate the monthly usage of the app in the 12 consecutive weeks (that is, 3 months) by weighted summation average frequency of use. First, calculate the number of times the application was used for the first month. The first month is the first threshold sampling period from the current time point forward, and the usage times of the application in the first threshold sampling period from the current time point forward are all sub-threshold sampling periods in the threshold sampling period The weighted average of the usage times of the application in the period is summed. The weighted sum of the times per week in the first month is used to obtain the weekly average times of use of the application in the first threshold sampling period forward from the current time point: W1=20×40%+20×30 %+30×20%+20×10%=22 times; then, multiply the average number of times per week in the first month by 4 as the number of times T 3 used in the first month, that is, T 3 =W1×4=22 ×4=88, that is, the number of times the application program is used in the first threshold sampling period from the current time point forward. Then, calculate the number of times the application is used in the Mth threshold sampling period from the current time point forward, that is, the number of times T2 of the application used in the second month and the number of times T2 of the application used in the third month in this embodiment times T 1 . The usage times of the application program in the Mth threshold sampling period forward from the current time point is the sum of the usage times of the application program in all sub-threshold sampling periods in the threshold sampling period. Wherein, M is a positive integer greater than 1 and less than or equal to N, that is, M does not include the first month closest to the current time. That is, T 2 =30+40+30+40=140, T 1 =30+40+40+50=160. Finally, the monthly usage times are weighted and summed to obtain the average usage times in each month within three months, as shown in the following formula: M1=T 3 ×60%+T 2 ×30%+T 1 ×10%= 110.8.

根据上述方法可以计算得到每个应用程序在连续的N个阈值采样周期内,每个阈值采样周期的平均使用次数,即各应用程序的使用频率。具体实施时,上述阈值采样周期、子阈值采样周期可以设置其他值,可以不对第一个月内每周的使用次数进一步设置频率计算权重,或者对每个阈值采样周期、每个子阈值采样周期设置其他的权重,都可以解决采集用户使用应用程序频率的问题。本发明的实施例仅是一优选实施例,通过对最近使用的数据设置较高的频率计算权重,能够更准确的分析用户的使用情况,从而更准确的设置应用程序的亮度,改善用户体验。According to the above method, the average number of times each application is used in each threshold sampling period within N consecutive threshold sampling periods can be calculated, that is, the frequency of use of each application. During specific implementation, other values may be set for the above-mentioned threshold sampling period and sub-threshold sampling period, and the frequency calculation weight may not be further set for the number of times of use per week in the first month, or set for each threshold sampling period and each sub-threshold sampling period Other weights can solve the problem of collecting the frequency of users using the application. The embodiment of the present invention is only a preferred embodiment. By setting a higher frequency calculation weight for recently used data, it is possible to more accurately analyze the user's usage, thereby more accurately setting the brightness of the application program, and improving user experience.

根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色包括:确定图标文字的背景区域的平均灰度值;根据预设的平均灰度值和图标文字颜色的对应关系,确定图标文字的颜色;设置所述图标文字的颜色。可以设定一个参考灰度值,当背景区域的平均灰度值低于参考灰度值时,说明背景比较浅色,图标文字的颜色可以采用深色;当背景区域的平均灰度值高于参考灰度值时,说明背景深色,图标文字的颜色可以采用浅色。该参考灰度值可以设为180,当背景区域的平均灰度值为30,则图标文字的灰度值可以采用大于180的任意颜色;当背景区域的平均灰度值为200时,则图标文字的灰度值可以采用小于180的任意颜色。例如,背景区域为黑色,这图标文字可以采用浅黄色、浅蓝色等浅色文字。设置一浅色列表,浅色列表中包括多种灰度值大于180的颜色,例如黄色、蓝色、绿色等等;设置一深色列表,深色列表中包括多种灰度值小于180的颜色,如黑色、紫色、红色等。浅色列表或深色列表中的颜色可以随机选择,只要能让图标文字和壁纸通过人眼有效辨别即可。有效地在图标相似度大时,用户快速通过图标文字确定所需查找的应用程序图标。在本发明的另一具体实施例中,上述根据所述应用程序的使用频率设置其图标的对比度级别进一步包括:按照应用程序的使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。可以预先设置阈值数量个对比度级别,例如阈值数量为4时,按照使用频率由高到低的顺序将所有应用程序划分为4个对比度级别,分别是1~4级,4级为最高对比度级别。对比度级别越高,图标的亮度和背景区域的亮度差值越大。对所有的应用程序,按照采集的使用频率由高到低的顺序排列后,分成与对比度级别数量相同的分组,即4组,每组应用程序对应一个对比度级别。对于使用频率越高的分组,对应的对比度级别越高。上述阈值数量可以根据移动终端上的应用程序的数量和用户体验设定,例如若移动终端有20个应用程序,为了更突出的显示应用程序图标,可以将阈值数量设为4,每个对比度级别包含5个应用程序;若移动终端有10个应用程序,可以将阈值数量设为3。通过在应用程序的属性中增加一个标签来标识应用程序的对比度级别。According to the color of the background area of the icon text, setting the color of the icon text includes: determining the average gray value of the background area of the icon text; according to the corresponding relationship between the preset average gray value and the icon text color, determining the icon The color of the text; set the color of the icon text. A reference gray value can be set. When the average gray value of the background area is lower than the reference gray value, it means that the background is relatively light, and the color of the icon text can be dark; when the average gray value of the background area is higher than When referring to the gray value, it indicates that the background is dark, and the color of the icon text can be light. The reference gray value can be set to 180. When the average gray value of the background area is 30, the gray value of the icon text can be any color greater than 180; when the average gray value of the background area is 200, the icon The gray value of the text can be any color less than 180. For example, if the background area is black, the icon text can be light-colored text such as light yellow or light blue. Set a light color list, the light color list includes a variety of colors with a gray value greater than 180, such as yellow, blue, green, etc.; set a dark color list, the dark list includes a variety of colors with a gray value less than 180 Color, such as black, purple, red, etc. The colors in the light list or dark list can be selected randomly, as long as the icon text and wallpaper can be effectively distinguished by human eyes. Effectively, when the icon similarity is large, the user can quickly determine the application icon to be searched through the icon text. In another specific embodiment of the present invention, the above-mentioned setting of the contrast level of the icon of the application program according to the frequency of use of the application program further includes: dividing all the application programs into a threshold number of Contrast level, setting the contrast level proportional to the usage frequency of the application program for the icon of the application program. The number of thresholds and contrast levels can be set in advance. For example, when the number of thresholds is 4, all applications are divided into 4 contrast levels in order of frequency of use from high to low, which are 1 to 4, and level 4 is the highest contrast level. The higher the contrast level, the greater the difference between the brightness of the icon and the brightness of the background area. For all applications, they are divided into groups with the same number of contrast levels as the number of contrast levels after being arranged in descending order of the collected usage frequency, that is, 4 groups, and each group of applications corresponds to a contrast level. For groups with higher usage frequency, the corresponding contrast level is higher. The above-mentioned threshold number can be set according to the number of applications on the mobile terminal and user experience. For example, if the mobile terminal has 20 applications, in order to display application icons more prominently, the threshold number can be set to 4, and each contrast level Contains 5 applications; if the mobile terminal has 10 applications, the threshold number can be set to 3. Identify the application's contrast level by adding a label to the application's properties.

通过设置阈值数量的对比度级别,将应用程序的图标的亮度分级别显示,便于用户根据使用习惯分类查找应用程序,还可以保证图标显示亮度的一致性。By setting the contrast level of the threshold value, the brightness of the icon of the application program is displayed in different levels, which is convenient for the user to classify and find the application program according to the usage habits, and can also ensure the consistency of the brightness of the icon display.

所述计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度的包括:计算所述图标背景区域的灰度值;当所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;当所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度。设置阈值灰度,根据图标背景区域的灰度值与阈值灰度的对比,并根据对比度级别调整图标的亮度,可以让用户更好地识别出常用的应用程序图标。The calculating the grayscale value of the background area of the icon, and setting the brightness of the icon according to the grayscale value and the contrast level include: calculating the grayscale value of the background area of the icon; when the grayscale When the value is higher than the threshold grayscale, the brightness of the icon is reduced according to the contrast level; when the grayscale value is lower than the threshold grayscale, the brightness of the icon is increased according to the contrast level. Setting the threshold grayscale, according to the contrast between the grayscale value of the background area of the icon and the threshold grayscale, and adjusting the brightness of the icon according to the contrast level, can allow users to better identify commonly used application icons.

具体实施时,所述图标的背景区域为:以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。下面结合图3对确定图标周围指定区域的方案进行详细说明。以图3中的图标6为例,将图标6的内边界301分别沿上、下、左、右四个方向向外扩展一距离形成外边界302,由所述内边界301和所述外边界302围合的斜线区域303作为图标6的背景区域。所述距离可以根据具体需要确定,例如可以是图标6的中心到图标7的中心之间距离的一半与图标6的边长一半的差值;也可以是图标6的中心到图标8的中心之间距离与图标6的边长的差值。During specific implementation, the background area of the icon is: take the border of the icon as the inner boundary, expand the inner boundary outwards by a distance to form an outer boundary, and enclose the area surrounded by the inner boundary and the outer boundary background area. The scheme of determining the designated area around the icon will be described in detail below in conjunction with FIG. 3 . Taking the icon 6 in Fig. 3 as an example, the inner boundary 301 of the icon 6 is extended outwards by a distance along the four directions of up, down, left and right respectively to form an outer boundary 302, and the inner boundary 301 and the outer boundary The oblique area 303 surrounded by 302 serves as the background area of the icon 6 . The distance can be determined according to specific needs, for example, it can be the difference between half the distance between the center of the icon 6 and the center of the icon 7 and half the side length of the icon 6; it can also be the distance between the center of the icon 6 and the center of the icon 8. The difference between the distance between them and the side length of the icon 6.

在确定所述图标的背景区域时,若所述背景区域超出了桌面范围,则缩小该背景区域至该背景区域和桌面的重合区域。When determining the background area of the icon, if the background area exceeds the range of the desktop, the background area is reduced to the overlapping area of the background area and the desktop.

移动终端(如手机)的操作系统中会存储桌面的数据库,通过调用操作系统的接口查询待机桌面的数据库可以得到各个应用程序的图标的显示位置。待机桌面的数据库中还会记录桌面应用图标的数量,以及图标的尺寸。通过操作系统的接口获得任一应用程序图标的位置和尺寸后,采用现有技术可以很容易计算出前面实施例确定的所述的图标周围的指定区域的屏幕坐标。The operating system of the mobile terminal (such as a mobile phone) stores a database of desktops, and the display positions of the icons of various application programs can be obtained by calling the interface of the operating system to query the database of the standby desktop. The database of the standby desktop also records the number of desktop application icons and the size of the icons. After obtaining the position and size of any application program icon through the interface of the operating system, the screen coordinates of the specified area around the icon determined in the preceding embodiments can be easily calculated by using the existing technology.

所述计算所述图标的背景区域的灰度值的具体方法如下:本发明的实施例中,图标的背景指桌面壁纸,图标的背景区域指壁纸上的对应区域。待机桌面的数据库中会记录桌面壁纸的信息。计算所述图标背景区域的的灰度值,首先计算所述图标背景区域的壁纸的颜色值的均值,得到一个类似#FF080808的16进制的颜色值;然后,计算这个颜色值的灰度值对于彩色壁纸。假如原来某点的颜色为RGB(R,G,B),可以采用浮点算法的公式R×0.3+G×0.59+B×0.11计算壁纸上某一点的灰度值。The specific method for calculating the gray value of the background area of the icon is as follows: In the embodiment of the present invention, the background of the icon refers to the desktop wallpaper, and the background area of the icon refers to the corresponding area on the wallpaper. The information of the desktop wallpaper will be recorded in the database of the standby desktop. To calculate the grayscale value of the icon background area, first calculate the mean value of the color value of the wallpaper in the icon background area to obtain a hexadecimal color value similar to #FF080808; then, calculate the grayscale value of this color value For colorful wallpapers. If the original color of a certain point is RGB (R, G, B), the gray value of a certain point on the wallpaper can be calculated using the formula R×0.3+G×0.59+B×0.11 of the floating point algorithm.

计算背景区域的壁纸的灰度值的具体方法可以采用现有技术中计算图片的灰度值的方法,本发明对此不做限定,本发明的实施例中也不再赘述。计算得到的所述图标的背景区域的灰度值是一个0~255之间的数值,然后,将计算得到的灰度值和阈值灰度进行比较,当所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;当所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度。The specific method for calculating the gray value of the wallpaper in the background area can be the method for calculating the gray value of the picture in the prior art, which is not limited in the present invention, and will not be repeated in the embodiments of the present invention. The calculated grayscale value of the background area of the icon is a value between 0 and 255, and then compare the calculated grayscale value with the threshold grayscale, and when the grayscale value is higher than the threshold grayscale When , the brightness of the icon is reduced according to the contrast level; when the grayscale value is lower than the threshold grayscale, the brightness of the icon is increased according to the contrast level.

具体实施时,当所述灰度值小于阈值灰度时,确定所述图标的背景区域为深色;当所述灰度值大于阈值灰度时,确定所述图标的背景区域为浅色。所述阈值灰度根据实际需要设置,通常为180。当所述图标的背景区域为深色时,确定与对比度级别一一对应的阶梯亮度值,各阶梯亮度值均大于阈值亮度,设置所述图标的亮度值为与该图标的对比度级别对应的阶梯亮度值。当所述图标的背景区域为浅色时,确定与对比度级别一一对应的阶梯亮度值,各阶梯亮度值均小于阈值亮度,设置所述图标的亮度值为与该图标的对比度级别对应的阶梯亮度值。各阶梯亮度值之间的差值大于阶梯阈值。所述阶梯阈值以人眼可以感觉到明显差异为准,例如可以设置为20。其中,所述阈值亮度根据实际情况确定,本发明对此不做限定。During specific implementation, when the grayscale value is less than a threshold grayscale, it is determined that the background area of the icon is dark; when the grayscale value is greater than the threshold grayscale, it is determined that the background area of the icon is light color. The threshold grayscale is set according to actual needs, usually 180. When the background area of the icon is dark, determine the step brightness values corresponding to the contrast level one by one, each step brightness value is greater than the threshold brightness, set the brightness value of the icon to the step corresponding to the contrast level of the icon Brightness value. When the background area of the icon is light-colored, determine the step brightness value corresponding to the contrast level one by one, each step brightness value is less than the threshold brightness, set the brightness value of the icon to the step corresponding to the contrast level of the icon Brightness value. The difference between the brightness values of each step is greater than the step threshold. The step threshold is based on the obvious difference that human eyes can perceive, for example, it can be set to 20. Wherein, the threshold brightness is determined according to actual conditions, which is not limited in the present invention.

另一种具体实施方式中,预设一个亮度值,当所述图标的背景区域为深色时,读取当前图标亮度值,并增加对比度级别相应倍数的亮度值;当所述图标的背景区域为浅色时,读取当前图标亮度值,并减少对比度级别相应倍数的亮度值。其中,所述亮度值根据实际情况确定,本发明对此不做限定。通过调用操作系统的绘制桌面图标的接口,指定图标的亮度参数,并重绘图标,可以改变所述图标的显示亮度。In another specific implementation, a brightness value is preset, and when the background area of the icon is dark, read the current icon brightness value, and increase the brightness value of the corresponding multiple of the contrast level; when the background area of the icon When it is a light color, read the current icon brightness value and reduce the brightness value by the corresponding multiple of the contrast level. Wherein, the brightness value is determined according to actual conditions, which is not limited in the present invention. By calling the interface of the operating system for drawing desktop icons, specifying the brightness parameters of the icons, and redrawing the icons, the display brightness of the icons can be changed.

在本发明的又一具体实施例中,还可以在每一个图标之上覆盖一个可改变透光程度的视图,该视图用于显示与图标尺寸匹配的位图。当所述图标的背景区域为深色时,确定与对比度级别一一对应的阶梯亮度值,各阶梯亮度值均大于阈值亮度,设置所述位图之上的位图的亮度值为与该图标的对比度级别对应的阶梯亮度值。当所述图标的背景区域为浅色时,图标深色才容易辨识。此时,确定与对比度级别一一对应的阶梯亮度值,各阶梯亮度值均小于阈值亮度,设置所述图标之上的位图的亮度值为与该图标的对比度级别对应的阶梯亮度值。通过改变图标之上的半透明位图透光率,可以改变所述图标的显示亮度,让用户更容易从与背景的对比中快速发现常用的应用程序。In yet another specific embodiment of the present invention, each icon may be overlaid with a view whose light transmission degree can be changed, and the view is used to display a bitmap matching the size of the icon. When the background area of the icon is dark, determine the step brightness value corresponding to the contrast level one by one, each step brightness value is greater than the threshold brightness, set the brightness value of the bitmap above the bitmap to be the same as the icon The contrast level corresponds to the ladder brightness value. When the background area of the icon is light, the dark color of the icon can be easily recognized. At this time, determine the step brightness values corresponding to the contrast level one by one, each step brightness value is less than the threshold brightness, and set the brightness value of the bitmap on the icon to the step brightness value corresponding to the contrast level of the icon. By changing the light transmittance of the translucent bitmap on the icon, the display brightness of the icon can be changed, making it easier for the user to quickly find commonly used applications from the comparison with the background.

上述根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色与前述的内容一致,此处不再赘述。According to the color of the background area of the icon text, setting the color of the icon text is consistent with the foregoing content, and will not be repeated here.

移动终端(如手机)的操作系统中会存储桌面的数据库,通过调用操作系统的接口查询待机桌面的数据库可以得到各个应用程序的图标文字的显示位置和图标文字的长度。具体实施时,通过操作系统的接口获得任一应用程序的图标文字的位置,然后根据图标文字的长度确定图标文字的背景区域。The database of the desktop can be stored in the operating system of the mobile terminal (such as a mobile phone), and the display position and the length of the icon text of each application program can be obtained by calling the interface of the operating system to query the database of the standby desktop. During specific implementation, the position of the icon text of any application program is obtained through the interface of the operating system, and then the background area of the icon text is determined according to the length of the icon text.

可以采用现有技术中计算图像平均灰度值的方法计算图标文字的背景区域的平均灰度值,本申请在此不再赘述。由于图标文字的背景区域通常在上述图标的背景区域内,因此还可以采用图标的背景区域的灰度值作为图标文字的背景区域的平均灰度值。本申请对计算图标文字的背景区域的平均灰度值的方法不限定与浮点算法。根据平均灰度值可以确定图标文字的背景区域的颜色深浅,具体实施时,可以设置多个灰度等级阈值,代表不同的颜色深浅度,预先建立不同灰度等级阈值和图标文字颜色的对应关系。例如,预先设置1个灰度等级阈值180,当所述平均灰度值小于灰度等级阈值时,确定所述图标文字的背景区域为深色,对应的图标文字的颜色可以为黄色;当所述平均灰度值大于灰度等级阈值时,确定所述图标文字的背景区域为浅色,对应的图标文字的颜色可以为紫色。用计算得到的背景区域的平均灰度值与灰度等级阈值匹配,确定匹配成功的灰度等级阈值对应的图标文字颜色。然后,指定图标文字的颜色参数,可以改变所述图标文字的颜色。The average gray value of the background area of the icon text can be calculated by using the method for calculating the average gray value of the image in the prior art, and the present application will not repeat it here. Since the background area of the icon text is usually within the background area of the icon, the gray value of the background area of the icon can also be used as the average gray value of the background area of the icon text. In this application, the method for calculating the average gray value of the background area of the icon text is not limited to the floating-point algorithm. The color depth of the background area of the icon text can be determined according to the average gray value. In specific implementation, multiple gray level thresholds can be set to represent different color depths, and the corresponding relationship between different gray level thresholds and icon text colors can be established in advance. . For example, a grayscale threshold 180 is preset, and when the average grayscale value is less than the grayscale threshold, it is determined that the background area of the icon text is dark, and the color of the corresponding icon text can be yellow; When the average gray value is greater than the gray level threshold, it is determined that the background area of the icon text is light-colored, and the color of the corresponding icon text may be purple. The calculated average gray value of the background area is used to match the gray level threshold, and the color of the icon text corresponding to the successfully matched gray level threshold is determined. Then, by specifying the color parameter of the icon text, the color of the icon text can be changed.

上述根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色,包括:确定图标文字的背景区域的颜色值;根据预设的颜色值和图标文字颜色的对应关系,确定图标文字的颜色;设置所述图标文字的颜色。The above-mentioned setting of the color of the icon text according to the color of the background area of the icon text includes: determining the color value of the background area of the icon text; Color; sets the color of the icon text.

确定图标文字的背景区域的具体方法参见前面实施例的描述,此处不再赘述。通过现有技术中的图像识别方法可以确定图标文字的背景区域各像素点的平均RGB分量,进一步确定背景区域的颜色值。根据预先建立的背景颜色和图标文字颜色的对应关系确定图表文字的颜色。例如:背景颜色和图标文字颜色的对应关系可以为:背景颜色为紫色,对应图标文字颜色为黄色;背景颜色为黑色,对应图标文字颜色为白色。然后,调用操作系统的绘制桌面图标的接口,指定图标文字的颜色参数,并重绘图标,可以改变所述图标文字的颜色。For the specific method of determining the background area of the icon text, refer to the description of the previous embodiments, which will not be repeated here. The average RGB component of each pixel in the background area of the icon text can be determined through the image recognition method in the prior art, and the color value of the background area can be further determined. The color of the chart text is determined according to the pre-established correspondence between the background color and the icon text color. For example, the corresponding relationship between the background color and the icon text color can be: the background color is purple, and the corresponding icon text color is yellow; the background color is black, and the corresponding icon text color is white. Then, calling the interface of the operating system for drawing desktop icons, specifying the color parameters of the icon text, and redrawing the icon can change the color of the icon text.

本发明的实施例中,首先,计算所述应用程序的图标的背景区域内的灰度值,所述背景为壁纸。并以所述应用程序的图标的背景区域灰度值作为参考,根据该图标的对比度级别,相应的设置图标的亮度。当所述应用程序的图标的背景区域的灰度值高于阈值灰度时,确定所述应用程序的图标的背景区域为浅色,然后,根据所述对比度级别降低所述图标的亮度。所述对比度级别越高,所述图标的亮度降低越多。当所述应用程序的图标的背景区域内的灰度值低于阈值灰度时,确定所述应用程序的图标的背景区域为深色,然后,根据所述对比度级别增加所述图标的亮度。所述对比度级别越高,所述图标的亮度增加越多。经过重新设置亮度后的图标与该图标的背景形成强烈对比,起到突出显示的作用。In the embodiment of the present invention, firstly, the gray value in the background area of the icon of the application program is calculated, and the background is a wallpaper. And taking the grayscale value of the background area of the icon of the application program as a reference, according to the contrast level of the icon, the brightness of the icon is correspondingly set. When the grayscale value of the background area of the icon of the application program is higher than the threshold grayscale, it is determined that the background area of the icon of the application program is light, and then the brightness of the icon is reduced according to the contrast level. The higher the contrast level, the more the brightness of the icon is reduced. When the grayscale value in the background area of the icon of the application program is lower than the threshold grayscale, it is determined that the background area of the icon of the application program is dark, and then the brightness of the icon is increased according to the contrast level. The higher the contrast level, the more the brightness of the icon is increased. The icon after resetting the brightness forms a strong contrast with the background of the icon, which plays a prominent role.

本发明的另一优选实施例中,如图4所示,在所述计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色的步骤之后,还包括:In another preferred embodiment of the present invention, as shown in FIG. 4, in the calculation of the gray value of the background area of the icon, the brightness of the icon is set according to the gray value and the contrast level, and After the step of setting the color of the icon text according to the color of the background area of the icon text, it also includes:

步骤180,检测更新图标的亮度的触发事件。Step 180, detecting a trigger event for updating the brightness of the icon.

当检测到所述触发事件时,跳转至步骤120,重复执行步骤120之后的其他步骤。重复执行计算应用程序的使用频率的步骤,更新使用频率;按照应用程序的使用频率设置其图标的对比度级别;计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。When the trigger event is detected, jump to step 120, and perform other steps after step 120 repeatedly. Repeat the step of calculating the frequency of use of the application to update the frequency of use; set the contrast level of the icon of the application according to the frequency of use of the application; calculate the gray value of the background area of the icon, and calculate the gray value according to the gray value and the contrast The level sets the brightness of the icon, and sets the color of the icon text according to the color of the background area of the icon text.

本发明在具体实施时,可以设置多种更新图标的亮度的触发事件,例如:用户执行预定的触控手势、用户重新设置壁纸、时间到达更新周期后自动更新等中的一种或多种。In the actual implementation of the present invention, various trigger events for updating the brightness of the icon can be set, for example, one or more of: the user performs a predetermined touch gesture, the user resets the wallpaper, and the time reaches the update cycle, and the like.

本发明的一个具体实施例中,检测用户在触摸屏上的预设触控手势,当检测到所述触控手势时,确定有更新图标的亮度的触发事件。所述预设的触控手势可以为双指在触摸屏上向右滑动、长时间触摸桌面上没有图标的位置等。In a specific embodiment of the present invention, a user's preset touch gesture on the touch screen is detected, and when the touch gesture is detected, it is determined that there is a trigger event for updating the brightness of the icon. The preset touch gesture may be sliding two fingers to the right on the touch screen, touching a position without icons on the desktop for a long time, and the like.

本发明的另一个具体实施例中,实时检测用户更换壁纸的操作,当用户更换壁纸时,确定有更新图标的亮度的触发事件。In another specific embodiment of the present invention, the user's operation of changing the wallpaper is detected in real time, and when the user changes the wallpaper, it is determined that there is a trigger event for updating the brightness of the icon.

本发明的另一个具体实施例中,设置一个图标亮度的更新周期,至上一次更新图标亮度或首次进入桌面起,开始计时,当计时满一个图标亮度的更新周期,确定有更新图标的亮度的触发事件。In another specific embodiment of the present invention, an update period of the icon brightness is set, and the timing is started until the last update of the icon brightness or the first entry into the desktop. event.

具体实施时,可以依次检测以上三种触发事件,也可以根据设置,只检测其中的一种或两种触发事件。During specific implementation, the above three trigger events may be detected sequentially, or only one or two of the trigger events may be detected according to settings.

当检测到更新图标的亮度的触发事件后,重新设置应用程序图标的亮度。重复执行计算应用程序的使用频率的步骤,更新使用频率;按照应用程序的使用频率设置所述应用程序的图标的对比度级别;计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。When a trigger event for updating the brightness of the icon is detected, the brightness of the application icon is reset. Repeat the step of calculating the frequency of use of the application to update the frequency of use; set the contrast level of the icon of the application according to the frequency of use of the application; calculate the gray value of the background area of the icon, and according to the gray value The brightness of the icon is set with the contrast level, and the color of the icon text is set according to the color of the background area of the icon text.

当检测到触发事件后,对于所有的图标分别重新计算使用频率和对比度级别,并更新所有应用程序的图标亮度和图标文字的颜色。因为每个图标的背景区域的灰度值不同,所以设置亮度时和图标文字的颜色时,针对每个图标分别设置。When the trigger event is detected, the usage frequency and contrast level are recalculated for all icons, and the icon brightness and icon text color of all applications are updated. Because the gray value of the background area of each icon is different, when setting the brightness and the color of the icon text, set it separately for each icon.

通过检测更新图标的亮度的触发事件可以及时更新图标亮度,并且能够根据用户的主动触发更新图标的亮度,进一步改善了用户体验。By detecting the trigger event for updating the brightness of the icon, the brightness of the icon can be updated in time, and the brightness of the icon can be triggered to update the brightness of the icon according to the user's initiative, which further improves the user experience.

相应地,本发明实施例还公开了一种基于用户使用情况设置图标亮度的移动终端,如图5所示,包括:Correspondingly, the embodiment of the present invention also discloses a mobile terminal for setting icon brightness based on user usage, as shown in FIG. 5 , including:

对比度设置单元530,用于按照应用程序的使用频率设置其图标的对比度级别;A contrast setting unit 530, configured to set the contrast level of the icon of the application according to the frequency of use of the application;

亮度及颜色设置单元540,用于计算所述图标背景区域的灰度值,根据所述灰度值和所述对对比度设置单元530设置的图标的比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。The brightness and color setting unit 540 is configured to calculate the grayscale value of the background area of the icon, and set the brightness of the icon according to the grayscale value and the ratio level of the icon set by the contrast setting unit 530, and, The color of the icon text is set according to the color of the background area of the icon text.

本发明通过采集用户对应用程序的使用次数,并计算用户在一段时间内对每一应用程序的使用频率,根据所述使用频率设置所述应用程序的图标的对比度级别,然后,计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色,对于用户经常使用的应用程序的图标,通过加强该图标和周围环境亮度的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,提高设备的使用效率,进一步改善了用户体验。The present invention collects the number of times a user uses an application, calculates the frequency of use of each application by the user within a period of time, sets the contrast level of the icon of the application according to the frequency of use, and then calculates the frequency of the icon the gray value of the background area of the icon, set the brightness of the icon according to the gray value and the contrast level, and set the color of the icon text according to the color of the background area of the icon text, which is often used by users The icon of the application program in use, by enhancing the contrast between the icon and the brightness of the surrounding environment, highlights the icon, which is convenient for users to quickly find frequently used application programs among various applications, improves the use efficiency of the device, and further improves the user experience. experience.

在本发明的另一具体实施例中,如图6所示,所述移动终端还包括:应用程序使用频率计算单元520,用于对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。In another specific embodiment of the present invention, as shown in FIG. 6 , the mobile terminal further includes: an application program usage frequency calculation unit 520, configured to calculate A weighted average calculation is performed on the usage times of the application program to obtain the average usage frequency of the application program within a threshold sampling period, where N is a positive integer greater than 1.

在本发明的另一优选实施例中,如图7所示,所述移动终端还包括:更新检测单元550,用于检测更新图标的亮度的触发事件,当检测到所述触发事件时,依次调用所述应用程序使用频率计算单元520、对比度设置单元530和亮度及颜色设置单元540更新图标亮度和图标文字的颜色。In another preferred embodiment of the present invention, as shown in FIG. 7, the mobile terminal further includes: an update detection unit 550, configured to detect a trigger event for updating the brightness of an icon, and when the trigger event is detected, sequentially Calling the application program uses the frequency calculation unit 520 , the contrast setting unit 530 and the brightness and color setting unit 540 to update the brightness of the icon and the color of the icon text.

在本发明的一个实施例中,所述更新检测单元550进一步包括:手势检测子单元5501、壁纸更换检测子单元5502、或定时检测子单元5503中的至少一种。其中,手势检测子单元5501,用于检测用户在触摸屏上的预设触控手势;壁纸更换检测子单元5502,用于检测用户更换壁纸的操作;定时检测子单元5503,用于检测时间达到预设的更新周期。In an embodiment of the present invention, the update detection unit 550 further includes: at least one of a gesture detection subunit 5501 , a wallpaper replacement detection subunit 5502 , or a timing detection subunit 5503 . Among them, the gesture detection subunit 5501 is used to detect the user's preset touch gesture on the touch screen; the wallpaper replacement detection subunit 5502 is used to detect the user's operation of changing the wallpaper; the timing detection subunit 5503 is used to detect when the time reaches the preset time set update cycle.

当检测到更新图标的亮度的触发事件后,重新设置应用程序图标的亮度和图标文字颜色。重复计算应用程序的使用频率,更新使用频率;按照应用程序的使用频率设置所述应用程序的图标的对比度级别;计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色,并刷新显示。When the trigger event of updating the brightness of the icon is detected, the brightness of the application icon and the icon text color are reset. Repeatedly counting the frequency of use of the application, updating the frequency of use; setting the contrast level of the icon of the application according to the frequency of use of the application; calculating the gray value of the background area of the icon, according to the gray value and the contrast The level sets the brightness of the icon, and sets the color of the icon text according to the color of the background area of the icon text, and refreshes the display.

通过检测更新图标的亮度的触发事件可以及时更新图标亮度,并且能够根据用户的主动触发更新图标的亮度,进一步改善了用户体验。By detecting the trigger event for updating the brightness of the icon, the brightness of the icon can be updated in time, and the brightness of the icon can be triggered to update the brightness of the icon according to the user's initiative, which further improves the user experience.

在本发明的前述实施例中,所述图标的背景区域为:以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。In the foregoing embodiments of the present invention, the background area of the icon is: taking the frame of the icon as the inner boundary, expanding the inner boundaries outward by a distance to form an outer boundary, and combining the inner boundary and the The background area enclosed by the outer border.

所述对比度设置单元530进一步用于:按照应用程序的使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。通过设置阈值数量的对比度级别,将应用程序的图标的亮度分级别显示,便于用户根据使用习惯分类查找应用程序,还可以保证图标显示亮度的一致性。The contrast setting unit 530 is further configured to: divide all application programs into a threshold number of contrast levels in descending order of application frequency, and the icon settings for application programs are proportional to the application frequency contrast level. By setting the contrast level of the threshold value, the brightness of the icon of the application program is displayed in different levels, which is convenient for the user to classify and find the application program according to the usage habits, and can also ensure the consistency of the brightness of the icon display.

如图6所示,所述亮度及颜色设置单元530进一步包括:灰度值计算子单元5401,用于计算所述图标的背景区域的灰度值;亮度设置子单元5402,用于当所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;或当所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度;颜色设置子单元5403,用于根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。As shown in Figure 6, the brightness and color setting unit 530 further includes: a grayscale value calculation subunit 5401, which is used to calculate the grayscale value of the background area of the icon; a brightness setting subunit 5402, which is used when the When the grayscale value is higher than the threshold grayscale, reduce the brightness of the icon according to the contrast level; or when the grayscale value is lower than the threshold grayscale, increase the brightness of the icon according to the contrast level; color setting The subunit 5403 is configured to set the color of the icon text according to the color of the background area of the icon text.

本发明的实施例中,首先,计算所述应用程序的图标的背景区域的灰度值,其中,背景为壁纸。并以所述应用程序的图标的背景区域的灰度值作为参考,根据该图标的对比度级别,相应的设置图标的亮度。当所述应用程序的图标的背景区域的灰度值高于阈值灰度时,确定所述应用程序的图标的背景区域为浅色,然后,根据所述对比度级别降低所述图标的亮度。所述对比度级别越高,所述图标的亮度降低越多。当所述应用程序的图标的背景区域的灰度值低于阈值灰度时,确定所述应用程序的图标的背景区域为深色,然后,根据所述对比度级别增加所述图标的亮度。所述对比度级别越高,所述图标的亮度增加越多。经过重新设置亮度后的图标与该图标的背景形成强烈对比,起到突出显示的作用。In the embodiment of the present invention, firstly, the gray value of the background area of the icon of the application program is calculated, wherein the background is a wallpaper. And with the grayscale value of the background area of the icon of the application program as a reference, according to the contrast level of the icon, the brightness of the icon is correspondingly set. When the grayscale value of the background area of the icon of the application program is higher than the threshold grayscale, it is determined that the background area of the icon of the application program is light, and then the brightness of the icon is reduced according to the contrast level. The higher the contrast level, the more the brightness of the icon is reduced. When the grayscale value of the background area of the icon of the application program is lower than the threshold grayscale, it is determined that the background area of the icon of the application program is dark, and then the brightness of the icon is increased according to the contrast level. The higher the contrast level, the more the brightness of the icon is increased. The icon after resetting the brightness forms a strong contrast with the background of the icon, which plays a prominent role.

具体实施时,所述应用程序使用频率计算单元进一步用于:所述连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;During specific implementation, the application program usage frequency calculation unit is further used to: set the cycle weights from low to high in the chronological order of the N consecutive threshold sampling cycles, and set the cycle weights from the current time point according to the set cycle weights. Carrying out weighted average calculation of the usage times of the application program in N consecutive threshold sampling periods forward to obtain the average usage frequency of the application program in one threshold sampling period, where N is a positive integer greater than 1;

每个阈值采样周期包括多个子阈值采样周期,其中,Each threshold sampling period includes a plurality of sub-threshold sampling periods, wherein,

从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;The number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, starting from the current time point forward The multiple sub-threshold sampling periods in the first threshold sampling period are set with sub-sampling period weights from low to high in chronological order;

当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。The number of times the application is used in the Mth threshold sampling period forward from the current time point is the sum of the number of times the application is used in all sub-threshold sampling periods within the threshold sampling period, M is a positive integer greater than 1 and less than or equal to N .

通过对最近使用的数据设置较高的频率计算权重,能够更准确的分析用户的使用情况,从而更准确的设置应用程序的亮度,改善用户体验。By setting a higher frequency calculation weight for recently used data, it is possible to more accurately analyze the usage of the user, thereby setting the brightness of the application more accurately and improving the user experience.

图8是本发明另一个实施例的移动终端的框图。图8所示的移动终端800包括:至少一个处理器801、存储器802、至少一个网络接口804和其他用户接口803。移动终端800中的各个组件通过总线系统805耦合在一起。可理解,总线系统805用于实现这些组件之间的连接通信。总线系统805除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统805。FIG. 8 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 800 shown in FIG. 8 includes: at least one processor 801 , a memory 802 , at least one network interface 804 and other user interfaces 803 . Various components in the mobile terminal 800 are coupled together through a bus system 805 . It can be understood that the bus system 805 is used to realize connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 805 in FIG. 8 for clarity of illustration.

其中,用户接口803可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板、触摸屏或者触控板等。本实施例通过触摸屏检测用户用于更新图标亮度的预设触控手势。Wherein, the user interface 803 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, a touch screen, or a touch panel, etc. The present embodiment detects the user's preset touch screen for updating the brightness of the icon through the touch screen. control gestures.

可以理解,本发明实施例中的存储器802可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(EnhancedSDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本文描述的系统和方法的存储器802旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 802 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (EnhancedSDRAM, ESDRAM), synchronous connection dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 802 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器802存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统8021和应用程序8022。In some implementations, the memory 802 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 8021 and an application program 8022 .

其中,操作系统8021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序8022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序8022中。Among them, the operating system 8021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 8022 .

在本发明实施例中,通过调用存储器802存储的程序或指令,具体的,可以是应用程序8022中存储的程序或指令。通过用户接口803中的触摸屏检测用户使用应用程序的操作,并检测用户更新图标亮度的预设触控手势和更换壁纸的操作。处理器801用于按照应用程序的使用频率设置其图标的对比度级别;计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。In the embodiment of the present invention, the programs or instructions stored in the memory 802 are called, specifically, the programs or instructions stored in the application program 8022 may be used. The touch screen in the user interface 803 detects the user's operation of using the application program, and detects the user's preset touch gesture of updating the brightness of the icon and changing the wallpaper. The processor 801 is configured to set the contrast level of the icon of the application according to the usage frequency of the application; calculate the gray value of the background area of the icon, set the brightness of the icon according to the gray value and the contrast level, and, The color of the icon text is set according to the color of the background area of the icon text.

上述本发明实施例揭示的方法部分可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的用户对应用程序的使用次数,结合其硬件完成上述方法的步骤。Part of the methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801 . The processor 801 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 801 or instructions in the form of software. The above-mentioned processor 801 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 802, and the processor 801 reads the number of times the user uses the application program in the memory 802, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,在按照应用程序的使用频率设置其图标的对比度级别的步骤之前,处理器801还用户计算应用程序的使用频率。处理器801对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。Optionally, before the step of setting the contrast level of the icon of the application program according to the use frequency of the application program, the processor 801 further calculates the use frequency of the application program by the user. The processor 801 performs a weighted average calculation on the usage times of the application program within N consecutive threshold sampling periods starting from the current time point, and obtains an average usage frequency of the application program within one threshold sampling period, where N is greater than A positive integer of 1.

可选地,在计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色之后,处理器801还用于检测更新图标的亮度的触发事件;当检测到所述触发事件时,重复执行计算应用程序的使用频率,更新使用频率;按照应用程序的使用频率设置其图标的对比度级别;计算所述图标的背景区域的灰度值,并根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。Optionally, when calculating the grayscale value of the background area of the icon, the brightness of the icon is set according to the grayscale value and the contrast level and, according to the color of the background area of the icon text, the After the color of the icon text, the processor 801 is also used to detect a trigger event that updates the brightness of the icon; when the trigger event is detected, repeatedly perform the calculation of the usage frequency of the application program, and update the usage frequency; The contrast level of its icon; calculate the grayscale value of the background area of the icon, and set the brightness of the icon according to the grayscale value and the contrast level, and, according to the color of the background area of the icon text, Sets the color of the icon text.

处理器801通过用户接口803检测用户在触摸屏上的预设触控手势,或检测用户更换壁纸的操作,或检测时间达到预设的更新周期中的至少一种触发事件。当其中任一种触发事件发生时,更新使用频率。The processor 801 detects the user's preset touch gesture on the touch screen through the user interface 803, or detects the user's operation of changing the wallpaper, or detects at least one trigger event in which the time reaches a preset update period. When any one of these trigger events occurs, the usage frequency is updated.

其中,所述图标的背景区域包括:以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。Wherein, the background area of the icon includes: taking the frame of the icon as the inner boundary, expanding the inner boundary outward by a distance to form an outer boundary, and the background area enclosed by the inner boundary and the outer boundary .

可选地,处理器801还用于按照应用程序使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。Optionally, the processor 801 is further configured to divide all application programs into a threshold number of contrast levels in descending order of application frequency, and set the icons of the application programs proportional to the frequency of use of the application programs. Contrast level.

可选地,处理器801还用于计算所述图标的背景区域的灰度值;并在所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;在所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度。Optionally, the processor 801 is further configured to calculate the grayscale value of the background area of the icon; and when the grayscale value is higher than a threshold grayscale, reduce the brightness of the icon according to the contrast level; When the grayscale value is lower than the threshold grayscale, increase the brightness of the icon according to the contrast level.

可选的,所述连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,所述处理器801按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;每个阈值采样周期包括多个子阈值采样周期,其中,从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。Optionally, the N consecutive threshold sampling cycles are set with cycle weights from low to high in chronological order, and the processor 801 performs N consecutive threshold values forward from the current time point according to the set cycle weights. A weighted average calculation is performed on the usage times of the application program in the sampling period to obtain the average usage frequency of the application program in a threshold sampling period, and N is a positive integer greater than 1; each threshold sampling period includes a plurality of sub-threshold sampling periods, where , the number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, and from the current time point to Multiple sub-threshold sampling periods in the previous first threshold sampling period are set with sub-sampling period weights from low to high in chronological order; The number of times is the sum of the times of use of the application program in all sub-threshold sampling periods within the threshold sampling period, and M is a positive integer greater than 1 and less than or equal to N.

移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。通过本实施例,对于用户经常使用的应用程序的图标,通过加强该图标和周围环境亮度的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,提高设备的使用效率,同时,改善了用户体验。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition. Through this embodiment, for the icon of the application program frequently used by the user, by enhancing the contrast between the icon and the brightness of the surrounding environment, the icon is highlighted, which is convenient for the user to quickly find the commonly used application program among various applications with various names, and improves the performance of the device. The efficiency of use, while improving the user experience.

图9是本发明另一个实施例的移动终端的结构示意图。具体地,图9中的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigitalAssistant,PDA)、或车载电脑等。Fig. 9 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal in FIG. 9 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图9中的移动终端包括射频(RadioFrequency,RF)电路910、存储器920、输入单元930、显示单元940、处理器960、音频电路970、WiFi(WirelessFidelity)模块980和电源990。The mobile terminal in FIG. 9 includes a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a processor 960, an audio circuit 970, a WiFi (Wireless Fidelity) module 980 and a power supply 990.

其中,输入单元930可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元930可以包括触控面板931。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器960,并能接收处理器960发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 930 can be used to receive number or character information input by the user, and generate signal input related to user setting and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931 . The touch panel 931, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 931 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 931 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 to the processor 960, and can receive and execute commands sent by the processor 960. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元940可用于显示由用户输入的信息或提供给用户的信息以及移动终端900的各种菜单界面。显示单元940可包括显示面板941,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板941。Wherein, the display unit 940 can be used to display information input by the user or provided to the user and various menu interfaces of the mobile terminal 900 . The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板931可以覆盖显示面板941,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器960以确定触摸事件的类型,随后处理器960根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 931 can cover the display panel 941 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 960 to determine the type of the touch event, and then the processor The 960 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器960是移动终端900的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器921内的软件程序和/或模块,以及调用存储在第二存储器922内的数据,执行移动终端900的各种功能和处理数据,从而对移动终端900进行整体监控。可选的,处理器960可包括一个或多个处理单元。Wherein the processor 960 is the control center of the mobile terminal 900, utilizes various interfaces and lines to connect various parts of the whole mobile phone, and runs or executes the software programs and/or modules stored in the first memory 921, and calls the software programs and/or modules stored in the second memory 921. The data in the memory 922 executes various functions of the mobile terminal 900 and processes data, so as to monitor the mobile terminal 900 as a whole. Optionally, the processor 960 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器921内的软件程序和/或模块和/或该第二存储器922内的数据,处理器960用于按照应用程序的使用频率设置其图标的对比度级别;计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。In the embodiment of the present invention, by calling the software program and/or module stored in the first memory 921 and/or the data in the second memory 922, the processor 960 is configured to set the icon of the application program according to the usage frequency of the application program. Contrast level; calculate the grayscale value of the background area of the icon, set the brightness of the icon according to the grayscale value and the contrast level, and set the icon text according to the color of the background area of the icon text s color.

可选地,在按照应用程序的使用频率设置其图标的对比度级别之前,、处理器960对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。Optionally, before setting the contrast level of the icon of the application program according to the frequency of use of the application program, the processor 960 performs a weighted average calculation on the number of times the application program is used within N consecutive threshold sampling periods starting from the current time point, The average usage frequency of the application program within a threshold sampling period is obtained, where N is a positive integer greater than 1.

可选地,在根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色之后,处理器960检测更新图标的亮度的触发事件;当检测用户到在触摸屏上的预设触控手势,或检测到用户更换壁纸的操作,或检测到时间达到预设的更新周期中的至少一种触发事件时,重复执行计算应用程序的使用频率的步骤,更新使用频率;按照应用程序的使用频率设置其图标的对比度级别;计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。Optionally, after setting the brightness of the icon according to the gray value and the contrast level, and setting the color of the icon text according to the color of the background area of the icon text, the processor 960 detects an update The trigger event of the brightness of the icon; when the user detects the preset touch gesture on the touch screen, or detects the user's operation of changing the wallpaper, or detects at least one trigger event in the preset update cycle, repeat Execute the step of calculating the usage frequency of the application program, update the usage frequency; set the contrast level of the icon of the application program according to the usage frequency of the application program; calculate the gray value of the background area of the icon, according to the gray value and the contrast level The brightness of the icon is set, and the color of the icon text is set according to the color of the background area of the icon text.

其中,所述图标的背景区域区域为:以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。Wherein, the background area of the icon is: taking the frame of the icon as the inner boundary, expanding the inner boundary outward by a distance to form an outer boundary, and the background surrounded by the inner boundary and the outer boundary area.

可选地,处理器960还用于按照应用程序的使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。Optionally, the processor 960 is further configured to divide all application programs into a threshold number of contrast levels in descending order of application frequency, and setting icons for application programs is proportional to the application frequency contrast level.

可选地,处理器960计算所述图标的背景区域的灰度值;并在所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;在所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度。Optionally, the processor 960 calculates the grayscale value of the background area of the icon; and when the grayscale value is higher than a threshold grayscale, reduces the brightness of the icon according to the contrast level; When the value is lower than the threshold grayscale, the brightness of the icon is increased according to the contrast level.

可选的,所述连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,处理器970按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;每个阈值采样周期包括多个子阈值采样周期,其中,从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。Optionally, the N consecutive threshold sampling periods are set with cycle weights from low to high in chronological order, and the processor 970 calculates the N consecutive threshold sampling cycles starting from the current time point forward according to the set cycle weights. The number of times of use of the application program in the weighted average calculation is performed to obtain the average use frequency of the application program within a threshold sampling period, and N is a positive integer greater than 1; each threshold sampling period includes a plurality of sub-threshold sampling periods, wherein, from The number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, and the number of times forward from the current time point Multiple sub-threshold sampling periods in the first threshold sampling period are set with sub-sampling period weights from low to high in chronological order; the number of times the application is used in the M-th threshold sampling period forward from the current time point is The sum of usage times of the application program in all sub-threshold sampling periods in the threshold sampling period, M is a positive integer greater than 1 and less than or equal to N.

可见,通过本实施例,对于用户经常使用的应用程序的图标,通过加强该图标和背景区域亮度的对比,突出显示该图标,便于用户在名目繁多的各种应用中快速找到常用的应用程序,提高设备的使用效率,同时,又改善了用户体验。It can be seen that through this embodiment, for the icon of the application program frequently used by the user, the icon is highlighted by enhancing the contrast between the brightness of the icon and the background area, so that the user can quickly find the commonly used application program among various applications with various names. Improve the efficiency of equipment use, and at the same time, improve the user experience.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的移动终端的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the mobile terminal described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于移动终端实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the mobile terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to the part of the description of the method embodiment.

Claims (16)

1.一种基于用户使用情况设置图标亮度的方法,其特征在于,包括:1. A method for setting icon brightness based on user usage, characterized in that, comprising: 按照应用程序的使用频率设置其图标的对比度级别;Set the contrast level of the app's icon according to how often it is used; 计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。calculating the grayscale value of the background area of the icon, setting the brightness of the icon according to the grayscale value and the contrast level, and setting the color of the icon text according to the color of the background area of the icon text . 2.如权利要求1所述的方法,其特征在于,在按照应用程序的使用频率设置其图标的对比度级别的步骤之前,所述方法还包括计算应用程序的使用频率的步骤,2. The method according to claim 1, wherein before the step of setting the contrast level of the icon of the application according to the frequency of use of the application, the method further comprises the step of calculating the frequency of use of the application, 所述计算应用程序的使用频率的步骤包括:对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。The step of calculating the usage frequency of the application program includes: performing weighted average calculation on the number of usage times of the application program within N consecutive threshold sampling periods starting from the current time point, and obtaining the average number of usage times of the application program within one threshold sampling period. The usage frequency of , where N is a positive integer greater than 1. 3.如权利要求2所述的方法,其特征在于,所述计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色的步骤之后,还包括:3. The method according to claim 2, wherein the calculating the grayscale value of the background area of the icon, setting the brightness of the icon according to the grayscale value and the contrast level, and, according to The color of the background area of the icon text, after the step of setting the color of the icon text, also includes: 检测更新图标的亮度的触发事件;Detect a trigger event that updates the brightness of the icon; 当检测到所述触发事件时,重复执行计算应用程序的使用频率的步骤,更新使用频率;When the trigger event is detected, repeat the step of calculating the usage frequency of the application program, and update the usage frequency; 按照应用程序的使用频率设置其图标的对比度级别;Set the contrast level of the app's icon according to how often it is used; 计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。Calculating the gray value of the background area of the icon, setting the brightness of the icon according to the gray value and the contrast level, and setting the color of the icon text according to the color of the background area of the icon text. 4.如权利要求3所述的方法,其特征在于,所述检测更新图标的亮度的触发事件的步骤包括:4. The method according to claim 3, wherein the step of detecting a trigger event for updating the brightness of the icon comprises: 检测用户在触摸屏上的预设触控手势,或检测用户更换壁纸的操作,或检测时间达到预设的更新周期中的至少一种触发事件。Detecting a user's preset touch gesture on the touch screen, or detecting a user's operation of changing the wallpaper, or detecting at least one trigger event when the time reaches a preset update cycle. 5.如权利要求1至4任意一项权利要求所述的方法,其特征在于,所述图标的背景区域为:5. The method according to any one of claims 1 to 4, wherein the background area of the icon is: 以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。The frame of the icon is used as an inner boundary, and the inner boundary is expanded outward by a distance to form an outer boundary, and a background area enclosed by the inner boundary and the outer boundary. 6.如权利要求5所述的方法,其特征在于,所述按照应用程序的使用频率设置其图标的对比度级别的步骤包括:6. The method according to claim 5, wherein the step of setting the contrast level of the icon of the application program according to the frequency of use of the application program comprises: 按照应用程序的使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。All applications are divided into a threshold number of contrast levels in descending order of the application frequency, and a contrast level proportional to the application frequency is set for the icon of the application. 7.如权利要求6所述的方法,其特征在于,所述计算所述图标的背景区域的灰度值,根据所述灰度值和所述对比度级别设置所述图标的亮度包括:7. The method according to claim 6, wherein the calculating the grayscale value of the background area of the icon, and setting the brightness of the icon according to the grayscale value and the contrast level comprise: 计算所述图标的背景区域的灰度值;calculating the grayscale value of the background area of the icon; 当所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;When the grayscale value is higher than a threshold grayscale, reducing the brightness of the icon according to the contrast level; 当所述参考灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度。When the reference grayscale value is lower than the threshold grayscale, the brightness of the icon is increased according to the contrast level. 8.如权利要求2所述的方法,其特征在于,所述计算应用程序的使用频率的步骤的进一步包括:8. The method according to claim 2, wherein the step of calculating the usage frequency of the application program further comprises: 所述连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;The N consecutive threshold sampling cycles are set with cycle weights from low to high in chronological order, and according to the set cycle weights, the number of times the applications are used in the N consecutive threshold sampling cycles starting from the current time point forward Perform weighted average calculation to obtain the average usage frequency of the application within a threshold sampling period, where N is a positive integer greater than 1; 每个阈值采样周期包括多个子阈值采样周期,其中,Each threshold sampling period includes a plurality of sub-threshold sampling periods, wherein, 从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;The number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, starting from the current time point forward The multiple sub-threshold sampling periods in the first threshold sampling period are set with sub-sampling period weights from low to high in chronological order; 当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。The number of times the application is used in the Mth threshold sampling period forward from the current time point is the sum of the number of times the application is used in all sub-threshold sampling periods within the threshold sampling period, M is a positive integer greater than 1 and less than or equal to N . 9.一种基于用户使用情况设置图标亮度的移动终端,其特征在于,包括:9. A mobile terminal for setting icon brightness based on user usage, characterized in that it comprises: 对比度设置单元,用于按照应用程序的使用频率设置其图标的对比度级别;A contrast setting unit, configured to set the contrast level of the icon of the application according to the frequency of use of the application; 亮度及颜色设置单元,用于计算所述图标背景区域的灰度值,根据所述灰度值和所述对比度设置单元设置的图标的对比度级别设置所述图标的亮度,以及,根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。a brightness and color setting unit, configured to calculate the grayscale value of the background area of the icon, set the brightness of the icon according to the grayscale value and the contrast level of the icon set by the contrast setting unit, and, according to the icon The color of the background area of the text, set the color of the icon text. 10.如权利要求9所述的移动终端,其特征在于,还包括:应用程序使用频率计算单元,用于对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,其中,N为大于1的正整数。10. The mobile terminal according to claim 9, further comprising: an application program use frequency calculation unit, configured to use the application program within N consecutive threshold sampling periods starting from the current time point A weighted average calculation is performed to obtain an average usage frequency of the application program within a threshold sampling period, where N is a positive integer greater than 1. 11.如权利要求10所述的移动终端,其特征在于,还包括:更新检测单元,用于检测更新图标的亮度的触发事件,当检测到所述触发事件时,依次调用所述应用程序使用频率计算单元、对比度设置单元和亮度及颜色设置单元更新图标亮度和图标文字的颜色。11. The mobile terminal according to claim 10, further comprising: an update detection unit, configured to detect a trigger event for updating the brightness of an icon, and when the trigger event is detected, the application program is sequentially invoked to use The frequency calculation unit, the contrast setting unit and the brightness and color setting unit update the brightness of the icon and the color of the icon text. 12.如权利要求11所述的移动终端,其特征在于,所述更新检测单元进一步包括:手势检测子单元、或壁纸更换检测子单元、或定时检测子单元中的至少一种,其中,12. The mobile terminal according to claim 11, wherein the update detection unit further comprises: at least one of a gesture detection subunit, or a wallpaper replacement detection subunit, or a timing detection subunit, wherein, 手势检测子单元,用于检测用户在触摸屏上的预设触控手势;Gesture detection subunit, used to detect preset touch gestures of the user on the touch screen; 壁纸更换检测子单元,用于检测用户更换壁纸的操作;The wallpaper change detection subunit is used to detect the user's operation of changing the wallpaper; 定时检测子单元,用于检测时间达到预设的更新周期。The timing detection subunit is used to detect that the timing reaches a preset update period. 13.如权利要求9至12任意一项权利要求所述的移动终端,其特征在于,所述图标的背景区域为:13. The mobile terminal according to any one of claims 9 to 12, wherein the background area of the icon is: 以所述图标的边框作为内边界,将所述内边界分别向外扩展一距离形成外边界,由所述内边界和所述外边界围合的背景区域。The frame of the icon is used as an inner boundary, and the inner boundary is expanded outward by a distance to form an outer boundary, and a background area enclosed by the inner boundary and the outer boundary. 14.如权利要求13所述的移动终端,其特征在于,所述对比度设置单元进一步用于:按照应用程序的使用频率由高到低的顺序将所有应用程序划分为阈值数量个对比度级别,对应用程序的图标设置与所述应用程序的使用频率成正比的对比度级别。14. The mobile terminal according to claim 13, wherein the contrast setting unit is further configured to: divide all application programs into a threshold number of contrast levels in descending order of application frequency, and An application's icon is set to a contrast level proportional to how often the application is used. 15.如权利要求14所述的移动终端,其特征在于,所述亮度及颜色设置单元包括:15. The mobile terminal according to claim 14, wherein the brightness and color setting unit comprises: 灰度值计算子单元,用于计算所述图标的背景区域的灰度值;a grayscale value calculation subunit, configured to calculate the grayscale value of the background area of the icon; 亮度设置子单元,用于当所述灰度值高于阈值灰度时,根据所述对比度级别降低所述图标的亮度;或当所述灰度值低于阈值灰度时,根据所述对比度级别增加所述图标的亮度;A brightness setting subunit, configured to reduce the brightness of the icon according to the contrast level when the grayscale value is higher than the threshold grayscale; or reduce the brightness of the icon according to the contrast level when the grayscale value is lower than the threshold grayscale level increases the brightness of said icons; 颜色设置子单元,用于根据所述图标文字的背景区域的颜色,设置所述图标文字的颜色。The color setting subunit is configured to set the color of the icon text according to the color of the background area of the icon text. 16.如权利要求10所述的移动终端,其特征在于,所述应用程序使用频率计算单元进一步用于:16. The mobile terminal according to claim 10, wherein the application frequency calculation unit is further used for: 所述连续N个阈值采样周期按照时间先后顺序设置有由低到高的周期权重,按照设置的周期权重,对从当前时间点起向前的连续N个阈值采样周期内的应用程序的使用次数进行加权平均计算,获得所述应用程序平均一个阈值采样周期内的使用频率,N为大于1的正整数;The N consecutive threshold sampling cycles are set with cycle weights from low to high in chronological order, and according to the set cycle weights, the number of times the applications are used in the N consecutive threshold sampling cycles starting from the current time point forward Perform weighted average calculation to obtain the average usage frequency of the application within a threshold sampling period, where N is a positive integer greater than 1; 每个阈值采样周期包括多个子阈值采样周期,其中,Each threshold sampling period includes a plurality of sub-threshold sampling periods, wherein, 从当前时间点起向前的第一个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数加权平均后求和,从当前时间点起向前的第一个阈值采样周期内的多个子阈值采样周期按照时间先后的顺序设置有由低到高的子采样周期权重;The number of times the application is used in the first threshold sampling period forward from the current time point is the sum of the weighted average of the number of times the application is used in all sub-threshold sampling periods in the threshold sampling period, starting from the current time point forward The multiple sub-threshold sampling periods in the first threshold sampling period are set with sub-sampling period weights from low to high in chronological order; 当前时间点起向前的第M个阈值采样周期内应用程序的使用次数为该阈值采样周期内所有子阈值采样周期内应用程序的使用次数求和,M为大于1且小于等于N的正整数。The number of times the application is used in the Mth threshold sampling period forward from the current time point is the sum of the number of times the application is used in all sub-threshold sampling periods within the threshold sampling period, M is a positive integer greater than 1 and less than or equal to N .
CN201610045041.1A 2016-01-22 2016-01-22 Method for setting icon brightness based on use of users and mobile terminal Pending CN105824496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610045041.1A CN105824496A (en) 2016-01-22 2016-01-22 Method for setting icon brightness based on use of users and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610045041.1A CN105824496A (en) 2016-01-22 2016-01-22 Method for setting icon brightness based on use of users and mobile terminal

Publications (1)

Publication Number Publication Date
CN105824496A true CN105824496A (en) 2016-08-03

Family

ID=56987238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610045041.1A Pending CN105824496A (en) 2016-01-22 2016-01-22 Method for setting icon brightness based on use of users and mobile terminal

Country Status (1)

Country Link
CN (1) CN105824496A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897075A (en) * 2017-03-14 2017-06-27 广东小天才科技有限公司 Desktop display adjusting method and device
CN107527374A (en) * 2017-08-18 2017-12-29 珠海市君天电子科技有限公司 A kind of method and apparatus of text importing
CN108073433A (en) * 2016-11-10 2018-05-25 中国移动通信有限公司研究院 The application icon management method and device of a kind of terminal
CN109272681A (en) * 2018-07-12 2019-01-25 山东亚华电子股份有限公司 A kind of methods of exhibiting and medical care host of bed call state
CN109558104A (en) * 2018-12-10 2019-04-02 网易(杭州)网络有限公司 Manipulate display methods, device, storage medium and the electronic equipment of object
CN110113485A (en) * 2019-04-26 2019-08-09 维沃移动通信有限公司 A kind of processing method and mobile terminal of information
CN110286985A (en) * 2019-06-27 2019-09-27 深圳市元征科技股份有限公司 A kind of method for displaying user interface, system and associated component
CN110827785A (en) * 2019-11-27 2020-02-21 Oppo广东移动通信有限公司 Brightness adjusting method and related product
WO2020259517A1 (en) * 2019-06-27 2020-12-30 华为技术有限公司 Display attribute adjusting method and related device
CN112379810A (en) * 2020-12-08 2021-02-19 四川酷赛科技有限公司 Method for dynamically adjusting size of desktop icon and mobile terminal
CN113485592A (en) * 2021-06-18 2021-10-08 浪潮卓数大数据产业发展有限公司 Barrier-free service method, device and medium based on mobile terminal
CN114201085A (en) * 2021-11-30 2022-03-18 北京城市网邻信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN118842889A (en) * 2024-07-24 2024-10-25 稻兴光学(厦门)有限公司 Method, system and equipment for controlling display of large-screen equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090058821A1 (en) * 2007-09-04 2009-03-05 Apple Inc. Editing interface
CN102662590A (en) * 2012-04-12 2012-09-12 中兴通讯股份有限公司南京分公司 Icon processing method and icon processing device
CN105094525A (en) * 2015-06-25 2015-11-25 小米科技有限责任公司 Method and device for adjusting icons of application programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090058821A1 (en) * 2007-09-04 2009-03-05 Apple Inc. Editing interface
CN102662590A (en) * 2012-04-12 2012-09-12 中兴通讯股份有限公司南京分公司 Icon processing method and icon processing device
CN105094525A (en) * 2015-06-25 2015-11-25 小米科技有限责任公司 Method and device for adjusting icons of application programs

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073433A (en) * 2016-11-10 2018-05-25 中国移动通信有限公司研究院 The application icon management method and device of a kind of terminal
CN106897075A (en) * 2017-03-14 2017-06-27 广东小天才科技有限公司 Desktop display adjusting method and device
CN107527374A (en) * 2017-08-18 2017-12-29 珠海市君天电子科技有限公司 A kind of method and apparatus of text importing
CN109272681A (en) * 2018-07-12 2019-01-25 山东亚华电子股份有限公司 A kind of methods of exhibiting and medical care host of bed call state
CN109558104A (en) * 2018-12-10 2019-04-02 网易(杭州)网络有限公司 Manipulate display methods, device, storage medium and the electronic equipment of object
CN109558104B (en) * 2018-12-10 2022-02-18 网易(杭州)网络有限公司 Display method and device of control object, storage medium and electronic equipment
CN110113485B (en) * 2019-04-26 2020-09-11 维沃移动通信有限公司 Information processing method and mobile terminal
CN110113485A (en) * 2019-04-26 2019-08-09 维沃移动通信有限公司 A kind of processing method and mobile terminal of information
CN110286985A (en) * 2019-06-27 2019-09-27 深圳市元征科技股份有限公司 A kind of method for displaying user interface, system and associated component
WO2020259517A1 (en) * 2019-06-27 2020-12-30 华为技术有限公司 Display attribute adjusting method and related device
US12198659B2 (en) 2019-06-27 2025-01-14 Huawei Technologies Co., Ltd. Method for adjusting display attribute, and related device
CN110827785A (en) * 2019-11-27 2020-02-21 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN110827785B (en) * 2019-11-27 2021-04-02 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN112379810A (en) * 2020-12-08 2021-02-19 四川酷赛科技有限公司 Method for dynamically adjusting size of desktop icon and mobile terminal
CN113485592A (en) * 2021-06-18 2021-10-08 浪潮卓数大数据产业发展有限公司 Barrier-free service method, device and medium based on mobile terminal
CN114201085A (en) * 2021-11-30 2022-03-18 北京城市网邻信息技术有限公司 Information display method and device, electronic equipment and storage medium
CN118842889A (en) * 2024-07-24 2024-10-25 稻兴光学(厦门)有限公司 Method, system and equipment for controlling display of large-screen equipment

Similar Documents

Publication Publication Date Title
CN105824496A (en) Method for setting icon brightness based on use of users and mobile terminal
CN106126013A (en) A kind of application management method and mobile terminal
CN106780685B (en) A kind of generation method and terminal of dynamic picture
CN108064368A (en) The control method and device of flexible display device
CN106775252A (en) The message treatment method and mobile terminal of a kind of mobile terminal
CN107678644A (en) A kind of image processing method and mobile terminal
CN106201196A (en) The method for sorting of a kind of desktop icons and mobile terminal
CN106057169B (en) Eye protection method for mobile terminal and mobile terminal
CN107577372A (en) Edge touch method, device and mobile terminal
CN106502697B (en) Method for organizing desktop application icons and mobile terminal
CN106777329A (en) The processing method and mobile terminal of a kind of image information
CN106126108A (en) A kind of breviary map generalization method and mobile terminal
CN106952235A (en) Image processing method and mobile terminal
CN106528160A (en) Adding method of application icons and terminal
CN106354373A (en) Icon moving method and mobile terminal
CN106951165A (en) A kind of word editing method and mobile terminal
CN106598623A (en) Picture combination template generation method and mobile terminal
CN106325753A (en) Payment interface display method and mobile terminal
CN107562473A (en) A kind of application program display methods and mobile terminal
CN103870193A (en) Information processing method and electronic equipment
CN106055232A (en) Message processing method and mobile terminal
CN106873891A (en) The method and mobile terminal of a kind of touch control operation
CN106357918A (en) Method for adjusting screen brightness and mobile terminal
CN106201308A (en) A kind of pressing operation method and electronic equipment
CN106371745A (en) Interface switching method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160803