CN109683758B - Application icon display method and device and storage medium - Google Patents

Application icon display method and device and storage medium Download PDF

Info

Publication number
CN109683758B
CN109683758B CN201811527418.2A CN201811527418A CN109683758B CN 109683758 B CN109683758 B CN 109683758B CN 201811527418 A CN201811527418 A CN 201811527418A CN 109683758 B CN109683758 B CN 109683758B
Authority
CN
China
Prior art keywords
pixel point
target
application icon
hue
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811527418.2A
Other languages
Chinese (zh)
Other versions
CN109683758A (en
Inventor
张炎宾
胡亚军
邱华生
朱娟
朱海晴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811527418.2A priority Critical patent/CN109683758B/en
Publication of CN109683758A publication Critical patent/CN109683758A/en
Application granted granted Critical
Publication of CN109683758B publication Critical patent/CN109683758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

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 embodiment of the invention discloses a display method and a display device of an application icon and a storage medium. The display method of the application icon comprises the following steps: determining the mark color of each application icon on the desktop; according to the mark color of each application icon, the application icons on the desktop are sorted and displayed, the mark colors are extracted from the application icons, and the application icons are sorted based on the mark colors of the application icons, so that the sorting and the colors of the icons are associated, a user can quickly position and apply the icons through perceptual cognition of the icon colors, the normalization of the application icons is improved, and the application searching efficiency is improved.

Description

Application icon display method and device and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a display method and device of an application icon and a storage medium.
Background
An application icon refers to an image that an application provides to the system for avatar rendering applications, typically representing an application portal on the terminal desktop. The icon styles provided by different applications are rich, and a user can easily memorize the applications through the application icons.
Along with the popularization of intelligent terminals, more and more applications are installed on the intelligent terminals by users, application icons on a desktop of the intelligent terminals are increased, according to statistics, dozens of or even hundreds of applications can be installed by each user, the mobile phone desktop looks disordered due to the excessive application icons, the users cannot quickly find the needed applications in the icons, and the application icons displayed on the desktop one page are about twenty, which means that the users can find a specific application by turning over several pages.
Disclosure of Invention
Embodiments of the present invention provide a display method and apparatus for an application icon, and a storage medium, so that a user can perform fast positioning application through perceptual awareness of an icon color, normalization of the application icon is improved, and application search efficiency is improved.
In a first aspect, the present application provides a method for displaying an application icon, where the method includes:
determining the mark color of each application icon on the desktop;
and sequencing and displaying the application icons on the desktop according to the mark color of each application icon.
Further, the determining the mark color of each application icon on the desktop includes:
respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with a preset number of the target application icons;
calculating hue values of the preset number of pixel points according to the RGB pixel values, and determining the proportion of each hue in the target application icon;
and determining the mark color of the target application icon according to the hue values of the preset number of the pixel points and the proportion of each hue in the target application icon.
Further, the acquiring RGB pixel values of the preset number of pixel points of the target application icon includes:
and collecting the RGB pixel value of one pixel point at intervals of a preset number of pixel points in a line collection or column collection mode from the first pixel point at the upper left corner of the target application icon.
Further, the calculating the hue scores of the pixels of the preset number according to the RGB pixel values and determining the proportion of each hue in the target application icon includes:
respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point;
determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point;
after determining the tone value of each pixel point in the preset number of pixel points and the tone corresponding to each pixel point, counting the number of tone occurrence times corresponding to each pixel point in the preset number of pixel points, and calculating each tone proportion, wherein each tone proportion is the proportion of the number of tone occurrence times to the total tone occurrence times.
Further, the determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point includes:
determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point;
if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point;
and calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point.
Further, the calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point includes:
and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue score of the target pixel point.
Further, the determining the mark color of the target application icon according to the hue value of the preset number of the pixel points and the proportion of each hue in the target application icon includes:
accumulating the scores of the pixels with the same chromaticity in the chromaticity scores of the pixels with the preset number to obtain the total scores of all chromaticities in the target application icon;
respectively calculating effective scores of all hues appearing in the target application icon according to the total score of all hues in the target application icon and the proportion of all hues in the target application icon;
and determining the color corresponding to the chromaticity with the maximum effective score as the mark color of the target application icon.
Further, the sorting and displaying the application icons on the desktop according to the mark color of each application icon includes:
and according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence.
In a second aspect, the present application provides a display device of an application icon, comprising:
the determining module is used for determining the mark color of each application icon on the desktop;
and the display module is used for sequencing and displaying the application icons on the desktop according to the mark color of each application icon.
Further, the determining module is specifically configured to:
respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with a preset number of the target application icons;
calculating hue values of the preset number of pixel points according to the RGB pixel values, and determining the proportion of each hue in the target application icon;
and determining the mark color of the target application icon according to the hue values of the preset number of the pixel points and the proportion of each hue in the target application icon.
Further, the determining module is specifically configured to:
and collecting the RGB pixel value of one pixel point at intervals of a preset number of pixel points in a line collection or column collection mode from the first pixel point at the upper left corner of the target application icon.
Further, the determining module is specifically configured to:
respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point;
determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point;
after determining the tone value of each pixel point in the preset number of pixel points and the tone corresponding to each pixel point, counting the number of tone occurrence times corresponding to each pixel point in the preset number of pixel points, and calculating each tone proportion, wherein each tone proportion is the proportion of the number of tone occurrence times to the total tone occurrence times.
Further, the determining module is specifically configured to:
determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point;
if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point;
and calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point.
Further, the determining module is specifically configured to:
and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue score of the target pixel point.
Further, the determining module is specifically configured to:
accumulating the scores of the pixels with the same chromaticity in the chromaticity scores of the pixels with the preset number to obtain the total scores of all chromaticities in the target application icon;
respectively calculating effective scores of all hues appearing in the target application icon according to the total score of all hues in the target application icon and the proportion of all hues in the target application icon;
and determining the color corresponding to the chromaticity with the maximum effective score as the mark color of the target application icon.
Further, the display module is specifically configured to:
and according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence.
In a third aspect, the present application provides a storage medium, where a plurality of instructions are stored, where the instructions are suitable for being loaded by a processor to execute the steps in the method for displaying an application icon according to any one of the first aspect.
The embodiment of the invention determines the mark color of each application icon on the desktop; according to the mark color of each application icon, the application icons on the desktop are sorted and displayed, the mark colors are extracted from the application icons, and the application icons are sorted based on the mark colors of the application icons, so that the sorting and the colors of the icons are associated, a user can quickly position and apply the icons through perceptual cognition of the icon colors, the normalization of the application icons is improved, and the application searching efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for displaying an application icon according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of step 101 in a method for displaying an application icon according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a display device applying icons according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a mobile terminal in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a display method and device of an application icon and a storage medium. The following are detailed below.
The display method of the application icon in the embodiment of the invention is applied to a display device of the application icon, the display device of the application icon is positioned on a mobile terminal, and the mobile terminal can be mobile terminal equipment such as a mobile phone and a tablet.
First, a method for displaying an application icon provided in an embodiment of the present invention includes: determining the mark color of each application icon on the desktop; and sequencing and displaying the application icons on the desktop according to the mark color of each application icon.
As shown in fig. 1, a method for displaying an application icon provided in an embodiment of the present invention includes:
101. the flag color of each application icon on the desktop is determined.
Typically, a mobile terminal will include at least one desktop. The desktop described in the embodiment of the invention is a desktop in the mobile terminal. The mobile terminal desktop comprises a plurality of target application icons, such as a QQ application icon, a WeChat application icon, a Paibao application icon and the like. In the embodiment of the present invention, the mark color of the application icon refers to the color of the brightest eye of the application icon.
102. And sequencing and displaying the application icons on the desktop according to the mark color of each application icon.
In this embodiment of the present invention, the sorting and displaying the application icons on the desktop according to the mark color of each application icon may further include: and according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence.
Wherein, according to predetermined colour sequence order, it has multiple implementation to use the icon to sort on the desktop and show, and one mode is, sets up a colour sequence table, and for example, the colour sequence in the colour sequence table is the order and is in proper order: the desktop application icons are displayed in a sorted manner according to the color sorting sequence in the color sorting table according to the mark color of each application icon.
The other method is to sort and display the application icons on the desktop according to a preset color depth sorting order of colors, for example, the application icons on the desktop are sorted and displayed according to a color sequence from light to dark or a color sequence from dark to light. Since the shades of the partial colors are difficult to distinguish, further, the shade order of the colors can be predefined.
It is understood that, in the embodiment of the present invention, other preset color sorting orders may also be adopted, and are not limited herein.
It should be noted that, in the embodiment of the present invention, the application icons may have the same mark color, for example, the mark colors of the application icon a and the application icon B are the same. At this time, in order to avoid the conflict, the step of performing a sorting display on the application icons on the desktop according to the preset color sorting order according to the mark color of each application icon may further include:
according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence for the application icons with different mark colors; for the application icons with the same mark color, carrying out sequencing display according to a preset sequencing sequence of tone intensity; and for the application icons with the same mark color and the same hue, carrying out sequencing display according to a preset saturation sequencing sequence.
The preset ordering order of the hue intensity and the preset ordering order of the saturation may be from large to small, or from small to large, and the specific details are not limited herein. When the preset color sorting sequence is a sorting sequence performed according to the color depth, the preset hue intensity sorting sequence and the preset saturation sorting sequence correspond to the color depth sorting sequence, for example, the color depth sorting sequence is from deep to light, and both the preset hue intensity sorting sequence and the preset saturation sorting sequence are from large to small at this time, so as to ensure that the whole color gradient level is clear.
The embodiment of the invention determines the mark color of each application icon on the desktop; according to the mark color of each application icon, the application icons on the desktop are sorted and displayed, the mark colors are extracted from the application icons, and the application icons are sorted based on the mark colors of the application icons, so that the sorting and the colors of the icons are associated, a user can quickly position and apply the icons through perceptual cognition of the icon colors, the normalization of the application icons is improved, and the application searching efficiency is improved.
As shown in fig. 2, in some embodiments of the present invention, the step of determining the mark color of each application icon on the desktop may further comprise:
201. and respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with the preset number of the target application icons.
In this embodiment, each application icon is taken as a target application icon, and RGB (Red, Green, Blue) pixel values of a preset number of pixels of the target application icon are collected, which indicates that the step of collecting the RGB pixel values of the preset number of pixels of the target application icon needs to be performed for each application icon. The preset number can be preset, for example, 5 or 10 pixels and the like, and the preset number of pixels can be set by taking a certain proportion of pixels according to the size of the pixels occupied by the application icon position, for example, 20 × 20 pixels in the size of each icon in the desktop of the mobile terminal, 20 pixels are occupied by each row, 20 pixels are occupied by each column, and 400 pixels are occupied in total (because some places of the application icon position are transparent, the pixels occupied by the actual application icon are less than the size of the application icon position), the pixels can be collected at intervals according to the proportion of 1%, that is, the RGB pixel values of the target application icon pixels are collected at intervals of 400 × 1% to 4 pixels.
Further, the step of collecting RGB pixel values of a preset number of pixel points of the target application icon may include: and starting from the first pixel point at the upper left corner of the target application icon, acquiring the RGB pixel value of one pixel point at intervals of a preset number of pixel points according to a line acquisition or column acquisition mode. The line collection mode is to start collection from top to bottom according to the line sequence, for example, the RGB pixel value of the first collected pixel point is the RGB pixel value of the first pixel point at the upper left corner of the target application icon, and assuming that the interval preset number is 10, the RGB pixel value of the second pixel point is collected at the position of the first line at 10 pixel points, and then the pixel point collection of the next line is performed in sequence, so that the line is spanned, and the interval distance between two pixel points is ensured. Similarly, the column collection mode is to start collection from left to right according to the column sequence, for example, the RGB pixel value of the first collected pixel point is the RGB pixel value of the first pixel point at the upper left corner of the target application icon, and it is also assumed that the interval preset number is 10, the RGB pixel value of the second pixel point is collected at the position of the first column at 10 pixel points, and the pixel points in the back column are collected in sequence, and the column is crossed, so that the interval distance between two pixel points is ensured.
202. And calculating hue values of pixel points with preset number according to the RGB pixel values, and determining the proportion of each hue in the target application icon.
HSV (Hue, Saturation) is a color space created by a.r. smith in 1978, also known as the hexagonal cone Model (Hexcone Model), based on the intuitive nature of color. The parameters of the colors in this model are: hue (H), saturation (S), lightness (V). In embodiments of the invention, HSV values may be represented by an array of length 3, for example, HSV [0] stores hue, HSV [1] stores saturation, and HSV [2] stores lightness.
Specifically, the step of calculating the hue scores of the pixels of the preset number according to the RGB pixel values and determining the hue ratio in the target application icon may include: respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point; determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point; after determining the hue score of each pixel point in the preset number of pixel points and the hue corresponding to each pixel point, counting the number of occurrence times of each hue corresponding to each pixel point in the preset number of pixel points, and calculating a hue ratio, where each hue ratio is a ratio of the number of occurrence times of each hue to the total number of occurrence times of the hue, for example, 10 pixel points collected in the target application icon, and if the number of occurrence times of the pixel points corresponding to the hue of red is 4, the red hue ratio is 4/10 ═ 40%.
Further, the determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point may include: determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point; if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point; and calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point.
Determining whether the target pixel point is a valid pixel point according to the HSV value of the target pixel point may include: and determining whether the target pixel point is white, transparent, desktop background color and the like according to the HSV value of the target pixel point, and determining that the target pixel point is an effective pixel point when determining that the target pixel point is not a pixel point under the conditions of the scenes.
After a target pixel point is determined to be an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, performing conversion according to the conversion relation between the RGB pixel value and the HSV pixel value, and then calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point. Specifically, the calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point may include: and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue value of the target pixel point. That is, the hue score of the target pixel is ═ S × V, and S, V respectively represent the saturation and brightness of the target pixel.
203. And determining the mark color of the target application icon according to the hue values of the preset number of pixel points and the proportion of each hue in the target application icon.
After the hue scores of the pixels with the preset number and the proportion of each hue in the target application icon are determined in the steps, the mark color of the target application icon can be determined according to the hue scores of the pixels with the preset number and the proportion of each hue in the target application icon.
Specifically, the determining the mark color of the target application icon according to the hue value of the preset number of the pixels and the proportion of each hue in the target application icon may include: accumulating the scores of the pixels with the same chromaticity in the chromaticity scores of the pixels with the preset number to obtain the total scores of all chromaticities in the target application icon; respectively calculating effective scores of all hues appearing in the target application icon according to the total score of all hues in the target application icon and the proportion of all hues in the target application icon; and determining the color corresponding to the chromaticity with the maximum effective score as the mark color of the target application icon.
For example, assume that a preset number of pixel points are 20, including 5 chromaticities, for example, red (10), yellow (3), magenta (3), purple (2), and green (2), where the number of pixels behind the color is the number of pixels, at this time, the chromaticity scores of the pixel points corresponding to the 10 red chromaticities may be accumulated to obtain a total chromaticity score of the red chromaticity, assume that the total chromaticity score of the yellow chromaticity, the total chromaticity score of the magenta chromaticity, the total chromaticity score of the purple chromaticity, and the total chromaticity score of the green chromaticity, assume that the total chromaticity scores are 50, 40, 30, and 20, respectively. And the proportions of the 5 shades (red, yellow, magenta, violet, green in sequence) are 70%, 15%, 5% and 5%, respectively. At this time, the effective score of the red chromaticity is calculated to be 100 × 70, which is greater than the effective scores of other chromaticities, and it is determined that the red is the mark color of the target application icon.
An embodiment of a display device to which an icon is applied in the embodiment of the present invention is described below. Referring to fig. 3, which is a schematic structural diagram of an embodiment of a display device for application icons according to an embodiment of the present invention, the display device 300 for application icons includes:
a determining module 301, configured to determine a mark color of each application icon on the desktop;
and the display module 302 is configured to display the application icons on the desktop in a sorted manner according to the mark color of each application icon.
Further, the determining module 301 is specifically configured to:
respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with a preset number of the target application icons;
calculating hue values of the preset number of pixel points according to the RGB pixel values, and determining the proportion of each hue in the target application icon;
and determining the mark color of the target application icon according to the hue values of the preset number of the pixel points and the proportion of each hue in the target application icon.
Further, the determining module 301 is specifically configured to:
and collecting the RGB pixel value of one pixel point at intervals of a preset number of pixel points in a line collection or column collection mode from the first pixel point at the upper left corner of the target application icon.
Further, the determining module 301 is specifically configured to:
respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point;
determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point;
after determining the tone value of each pixel point in the preset number of pixel points and the tone corresponding to each pixel point, counting the number of tone occurrence times corresponding to each pixel point in the preset number of pixel points, and calculating each tone proportion, wherein each tone proportion is the proportion of the number of tone occurrence times to the total tone occurrence times.
Further, the determining module 301 is specifically configured to:
determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point;
if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point;
and calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point.
Further, the determining module 301 is specifically configured to:
and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue score of the target pixel point.
Further, the determining module 301 is specifically configured to:
accumulating the scores of the pixels with the same chromaticity in the chromaticity scores of the pixels with the preset number to obtain the total scores of all chromaticities in the target application icon;
respectively calculating effective scores of all hues appearing in the target application icon according to the total score of all hues in the target application icon and the proportion of all hues in the target application icon;
and determining the color corresponding to the chromaticity with the maximum effective score as the mark color of the target application icon.
Further, the display module 302 is specifically configured to:
and according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence.
In the embodiment of the invention, the mark color of each application icon on the desktop is determined by a determining module 301; the display module 302 sequences and displays the application icons on the desktop according to the mark color of each application icon, and since the mark color is extracted from the application icons and the application icons are sequenced based on the mark color of the application icons, the sequencing and the color of the icons are associated, a user can rapidly position and apply the icons by perceptual cognition of the icon colors, the normalization of the application icons is improved, and the application search efficiency is improved.
Accordingly, as shown in fig. 4, the mobile terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for operating a storage medium, at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The mobile terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the mobile terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another mobile terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal.
WiFi belongs to short distance wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile phone. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operation of storage media, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The mobile terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 408 via a power management storage medium that may be used to manage charging, discharging, and power consumption. The power supply 409 may also include any component of one or more dc or ac power sources, rechargeable storage media, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods for displaying an application icon provided by the embodiment of the present invention.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The foregoing describes in detail a method, an apparatus, and a storage medium for displaying an application icon according to an embodiment of the present invention, and a specific example is applied in the description to explain the principles and implementations of the present invention, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for displaying an application icon, the method comprising:
determining the mark color of each application icon on the desktop;
according to the mark color of each application icon, sequencing and displaying the application icons on the desktop;
the determining the mark color of each application icon on the desktop comprises the following steps:
respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with a preset number of the target application icons;
calculating hue values of the preset number of pixel points according to the RGB pixel values, and determining the proportion of each hue in the target application icon;
determining the mark color of the target application icon according to the hue values of the preset number of pixel points and the proportion of each hue in the target application icon;
the calculating the hue scores of the pixel points with the preset number according to the RGB pixel values and determining the proportion of each hue in the target application icon comprises the following steps:
respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point;
determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point;
after determining the tone value of each pixel point in the preset number of pixel points and the tone corresponding to each pixel point, counting the number of tone occurrence times corresponding to each pixel point in the preset number of pixel points, and calculating each tone proportion, wherein each tone proportion is the proportion of the number of tone occurrence times to the total number of tone occurrence times;
the determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point comprises the following steps:
determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point;
if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point;
calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point;
the calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point comprises the following steps:
and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue score of the target pixel point.
2. The method for displaying an application icon according to claim 1, wherein the collecting RGB pixel values of a preset number of pixels of the target application icon includes:
and collecting the RGB pixel value of one pixel point at intervals of a preset number of pixel points in a line collection or column collection mode from the first pixel point at the upper left corner of the target application icon.
3. The method for displaying an application icon according to claim 1, wherein the determining the mark color of the target application icon according to the hue scores of the pixels with the preset number and the respective hue ratios of the target application icon includes:
accumulating the scores of the pixels with the same chromaticity in the chromaticity scores of the pixels with the preset number to obtain the total scores of all chromaticities in the target application icon;
respectively calculating effective scores of all hues appearing in the target application icon according to the total score of all hues in the target application icon and the proportion of all hues in the target application icon;
and determining the color corresponding to the chromaticity with the maximum effective score as the mark color of the target application icon.
4. The method for displaying application icons according to claim 1, wherein the step of displaying application icons on a desktop in an ordered manner according to the mark color of each application icon comprises:
and according to the mark color of each application icon, sequencing and displaying the application icons on the desktop according to a preset color sequencing sequence.
5. An apparatus for displaying an application icon, the apparatus comprising:
the determining module is used for determining the mark color of each application icon on the desktop;
the display module is used for sequencing and displaying the application icons on the desktop according to the mark color of each application icon;
the determining module is specifically configured to:
respectively taking each application icon as a target application icon, and collecting RGB pixel values of pixel points with a preset number of the target application icons;
calculating hue values of the preset number of pixel points according to the RGB pixel values, and determining the proportion of each hue in the target application icon;
determining the mark color of the target application icon according to the hue values of the preset number of pixel points and the proportion of each hue in the target application icon;
the determining module is specifically configured to:
respectively taking one pixel point in the preset number of pixel points as a target pixel point, and calculating the HSV value of the target pixel point according to the RGB pixel value of the target pixel point;
determining the hue value of the target pixel point and the hue corresponding to the target pixel point according to the HSV value of the target pixel point;
after determining the tone value of each pixel point in the preset number of pixel points and the tone corresponding to each pixel point, counting the number of tone occurrence times corresponding to each pixel point in the preset number of pixel points, and calculating each tone proportion, wherein each tone proportion is the proportion of the number of tone occurrence times to the total number of tone occurrence times;
the determining module is specifically configured to:
determining whether the target pixel point is an effective pixel point according to the HSV value of the target pixel point;
if the target pixel point is an effective pixel point, calculating the HSV pixel value of the target pixel point according to the RGB pixel value of the target pixel point, wherein the HSV pixel value of the target pixel point comprises the hue H corresponding to the target pixel point;
calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point;
the calculating the hue value of the target pixel point according to the HSV pixel value of the target pixel point comprises the following steps:
and calculating the product of saturation and brightness in the HSV pixel value of the target pixel point to obtain the hue score of the target pixel point.
6. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method for displaying an application icon according to any one of claims 1 to 4.
CN201811527418.2A 2018-12-13 2018-12-13 Application icon display method and device and storage medium Active CN109683758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527418.2A CN109683758B (en) 2018-12-13 2018-12-13 Application icon display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527418.2A CN109683758B (en) 2018-12-13 2018-12-13 Application icon display method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109683758A CN109683758A (en) 2019-04-26
CN109683758B true CN109683758B (en) 2021-05-07

Family

ID=66186605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527418.2A Active CN109683758B (en) 2018-12-13 2018-12-13 Application icon display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109683758B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968007A (en) * 2021-02-18 2022-08-30 Oppo广东移动通信有限公司 Application icon display method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN103955332A (en) * 2014-05-15 2014-07-30 深圳市中兴移动通信有限公司 Mobile terminal and arraying method and device for desktop icons of mobile terminal
CN104536771A (en) * 2015-01-28 2015-04-22 广东欧珀移动通信有限公司 Method and system for showing icon sequencing according to icon colors

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140129412A (en) * 2013-04-29 2014-11-07 삼성전자주식회사 Icon arrangement method for electronic device and electronic device thereof
CN103488397B (en) * 2013-09-13 2017-01-11 深圳市欧珀通信软件有限公司 Method and device for arranging icons, and mobile terminal
CN104636194A (en) * 2013-11-11 2015-05-20 中兴通讯股份有限公司 Terminal and method for terminal to achieve ranking of applications
CN104063123A (en) * 2014-05-28 2014-09-24 小米科技有限责任公司 Icon displaying method and device
US9921715B2 (en) * 2015-02-26 2018-03-20 Red Hat, Inc. Visual representation of network-discovered components
CN104932777B (en) * 2015-07-23 2019-01-15 北京锤子数码科技有限公司 A kind of sort method and device of application icon
WO2017049436A1 (en) * 2015-09-21 2017-03-30 上海欧拉网络技术有限公司 Method and device for arranging icons on an android device
CN105677155B (en) * 2016-01-05 2019-08-16 深圳Tcl数字技术有限公司 The setting method and system of intelligent terminal application icon
CN106201212B (en) * 2016-07-19 2019-05-03 厦门美图移动科技有限公司 A kind of generation method of application icon, device and mobile terminal
CN106873857B (en) * 2017-02-22 2020-05-19 Tcl集团股份有限公司 Automatic application icon layout method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN103955332A (en) * 2014-05-15 2014-07-30 深圳市中兴移动通信有限公司 Mobile terminal and arraying method and device for desktop icons of mobile terminal
CN104536771A (en) * 2015-01-28 2015-04-22 广东欧珀移动通信有限公司 Method and system for showing icon sequencing according to icon colors

Also Published As

Publication number Publication date
CN109683758A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN107966209B (en) Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN105867730B (en) The display methods and device of status bar
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN108287744B (en) Character display method, device and storage medium
US20210181923A1 (en) Always on Display Method and Electronic Device
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
CN108701365B (en) Light spot identification method, device and system
CN106203459B (en) Picture processing method and device
CN110021256A (en) Display brightness method of adjustment and Related product
CN110458921B (en) Image processing method, device, terminal and storage medium
CN105989572B (en) Picture processing method and device
CN106296623B (en) A kind of image processing method and device
CN109614173B (en) Skin changing method and device
CN106997265B (en) Method and device for setting background excessive color
CN106776301B (en) Subelement testing method and device
CN106204423A (en) A kind of picture-adjusting method based on augmented reality, device and terminal
CN106445970B (en) Loading processing method and device for placeholder map
US11915633B2 (en) Screen color temperature control method, apparatus, storage medium, and mobile terminal
CN110851350A (en) Method and device for monitoring white screen of web page interface
CN110677842B (en) Network searching method, device, terminal equipment and storage medium
CN110363785A (en) A kind of super frame detection method and device of text
CN109683758B (en) Application icon display method and device and storage medium
CN105320858B (en) Method and device for rapidly displaying application icons
CN110336917B (en) Picture display method and device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant