CN110321190A - The method and device of icon optimization in a kind of desktop - Google Patents
The method and device of icon optimization in a kind of desktop Download PDFInfo
- Publication number
- CN110321190A CN110321190A CN201910318511.0A CN201910318511A CN110321190A CN 110321190 A CN110321190 A CN 110321190A CN 201910318511 A CN201910318511 A CN 201910318511A CN 110321190 A CN110321190 A CN 110321190A
- Authority
- CN
- China
- Prior art keywords
- icon
- radius
- profile
- target
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application provides a kind of method and device of icon optimization in desktop, belongs to mobile Internet field.Wherein method part includes: to obtain each corresponding icon area of application icon in terminal desktop;It is progressively scanned in the icon area respectively, obtains corresponding icon profile in the icon area;It is analyzed respectively according to the icon profile, screening obtains target icon, and extracts the corresponding edge radius of the target icon;In the icon area, the target icon is amplified by displaying according to the edge radius, to generate the application icon of new version.This programme passes through to the corresponding icon profile of the irregular icon of extraction, and corresponding irregular icon is amplified into displaying by icon profile, so that all application icon entirety sizes in desktop show unification, the in disorder phenomenon caused by icon sizes are different, display styles are inconsistent because of application is avoided on desktop, the visual experience of user is further improved.
Description
Technical field
This application involves field of computer technology, more particularly to the method and device that incoming call video is controlled.
Background technique
With the fast development of network technology, mobile terminal has begun from the past and simply provides verbal system and become gradually
The platform run at a common software.It takes the mobile phone as an example, user can like according to itself, can choose to install and various be applied to mobile phone
On, application icon will be shown on the desktop of mobile phone after installation.However, the size of each application icon, different, mobile phone table
The icon in face shows visual effect often very in disorder to user.
Therefore, at present to guarantee that the icon shape style of desktop is unified, mainstream desktop more preset can be commonly used and be answered in the market
With icon (such as wechat, QQ etc.) and backboard picture in installation kit, the shape size of these preset application icons is identical.To
After some common application of user installation, terminal can search whether the preset application icon according to the packet name of installation kit first,
If being prefixed the application icon, icon preset in installation kit can be taken and shown on the table.
But there is no the application of preset icon for other, terminal will use backboard picture and the icon of application itself closes
On the table, but because that applies is dazzling at rear display, mainstream desktop can not be accomplished all application icons is all pre-
The problem of setting in the terminal, thus existing is exactly, in the icon for the application for going processing color different with backboard picture, it may appear that
The discordant situation of composited picture color, and inconsistent with preset application icon shape, style, the visual effect of user compared with
Difference.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of method and device of icon optimization in desktop, to realize in the terminal
The demand of broadcasting is synchronized to incoming call video.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
According to the embodiment of the present application in a first aspect, provide a kind of method of icon optimization in desktop, set applied to terminal
It is standby, which comprises
Obtain each corresponding icon area of application icon in terminal desktop;
It is progressively scanned in the icon area respectively, obtains corresponding icon profile in the icon area;
It is analyzed respectively according to the icon profile, screening obtains target icon, and it is corresponding to extract the target icon
Edge radius;The edge radius is calculated by the profile of the target icon, and the profile for describing target icon is big
It is small;
In the icon area, the target icon is amplified by displaying according to the edge radius, it is new to generate
The application icon of version.
It is described when being progressively scanned in the icon area in one embodiment of the application,
The corresponding color value of pixel each in the icon area is counted line by line, obtains the corresponding color point of each row
Cloth;
It is analyzed according to the distribution of color, obtains the corresponding edge feature of the application icon;
It is extracted according to the respective coordinates of the edge feature, obtains the corresponding figure of application icon in the icon area
Mark profile.
In one embodiment of the application, when the respective coordinates according to the edge feature extract,
The centre coordinate for extracting the icon area is chosen from the edge feature respectively away from the centre coordinate distance
Maximum respective coordinates point extracts, and obtains the corresponding icon profile of the application icon after being fitted the coordinate points.
It is described when being analyzed respectively according to the icon profile in one embodiment of the application,
The centre coordinate for extracting the icon area, according to pair between the centre coordinate and the edge feature coordinate
It should be related to the symmetry for judging the icon profile, such as the icon profile is asymmetric, then answers the icon profile is corresponding
Use icon as the target icon.
In one embodiment of the application, the edge radius includes mean radius and external radius, then described to extract the mesh
When corresponding edge radius of marking on a map,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
Using coordinate points average distance corresponding with the centre coordinate as mean radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the mesh is obtained according to the maximum distance
It marks on a map corresponding external radius.
In one embodiment of the application, the edge radius includes inscribed radius and external radius, then described to extract the mesh
When corresponding edge radius of marking on a map,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
The minimum range between the coordinate points is extracted, it is corresponding interior to obtain the target icon according to the minimum range
Cut radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the mesh is obtained according to the maximum distance
It marks on a map corresponding external radius.
It is described when the target icon being amplified displaying according to the edge radius in one embodiment of the application, if
Fixed magnification ratio are as follows:
(R-r)/R
Wherein, R is external radius, and r is inscribed radius or mean radius.
According to the second aspect of the embodiment of the present application, a kind of device of icon optimization in desktop is provided, described device includes:
Module is obtained, for obtaining each corresponding icon area of application icon in terminal desktop;
Scan module obtains corresponding in the icon area for being progressively scanned in the icon area respectively
Icon profile;
Screening module, for being analyzed respectively according to the icon profile, screening obtains target icon, and described in extraction
The corresponding edge radius of target icon;The edge radius is calculated by the profile of the target icon, for describing target
The profile size of icon;
Amplification module, for being amplified the target icon according to the edge radius in the icon area
It shows, to generate the application icon of new version.
In one embodiment of the application, in the scan module, comprising:
Statistic unit obtains each row for counting line by line to the corresponding color value of pixel each in the icon area
Corresponding distribution of color;
Analytical unit obtains the corresponding edge feature of the application icon for being analyzed according to the distribution of color;
Extraction unit obtains answering in the icon area for being extracted according to the respective coordinates of the edge feature
With the corresponding icon profile of icon.
In one embodiment of the application, the extraction unit is specifically included, and extracts the centre coordinate of the icon area, from
It chooses in the edge feature and is extracted away from the centre coordinate apart from maximum respective coordinates point respectively, be fitted the coordinate
The corresponding icon profile of the application icon is obtained after point.
In one embodiment of the application, in the screening module, specifically include:
The centre coordinate for extracting the icon area, according to pair between the centre coordinate and the edge feature coordinate
It should be related to the symmetry for judging the icon profile, such as the icon profile is asymmetric, then answers the icon profile is corresponding
Use icon as the target icon.
In one embodiment of the application, in the screening module, the edge radius includes mean radius and external radius, then
It is described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
Using coordinate points average distance corresponding with the centre coordinate as mean radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the mesh is obtained according to the maximum distance
It marks on a map corresponding external radius.
In one embodiment of the application, in the screening module, the edge radius includes inscribed radius and external radius, then
It is described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
The minimum range between the coordinate points is extracted, it is corresponding interior to obtain the target icon according to the minimum range
Cut radius;
The maximum distance between the coordinate points and the central point is extracted, the target is obtained according to the maximum distance
The corresponding external radius of icon.
In one embodiment of the application, the amplification module further include:
Ratio setup unit, when for the target icon to be amplified displaying according to the edge radius, setting
Magnification ratio are as follows:
(R-r)/R
Wherein, R is external radius, and r is inscribed radius or mean radius.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application obtains respectively applies in terminal desktop
The corresponding icon area of icon;It is progressively scanned in the icon area respectively, it is right in the icon area to obtain
The icon profile answered;It is analyzed respectively according to the icon profile, screening obtains target icon, and extracts the target icon
Corresponding edge radius;The edge radius is calculated by the profile of the target icon, for describing the wheel of target icon
Wide size;In the icon area, the target icon is amplified by displaying according to the edge radius, to generate new edition
This application icon.This programme by extracting the corresponding icon profile of irregular icon, and by icon profile by it is corresponding not
Regular icon amplifies displaying, so that all application icon entirety sizes in desktop show unified, the visual experience of user
Effect is greatly improved, and avoids in disorder caused by icon sizes are different, display styles are inconsistent because of application on desktop
Phenomenon further improves the visual experience of user.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in specification, for those of ordinary skill in the art, before not making the creative labor property
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart for the method that icon optimizes in the desktop of one embodiment of the application;
Fig. 2 is that the target icon region for the method that icon optimizes in the desktop of one embodiment of the application is swept line by line
The schematic diagram retouched;
Fig. 3 is that icon optimization method progressively scans target icon region in the desktop of one embodiment of the application
Afterwards, the schematic diagram of icon profile is obtained;
Fig. 4 is the signal analyzed the icon profile of icon optimization method in desktop of one embodiment of the application
Figure;
After Fig. 5 is the analyzing the icon profile of icon optimization method in desktop of one embodiment of the application, obtain
To the schematic diagram of target icon;
Fig. 6 be in the desktop of one embodiment of the application icon optimization method according to target icon extract edge radius
Schematic diagram;
Fig. 7 is the structural schematic diagram that icon optimizes corresponding electronic equipment in the desktop of one embodiment of the application;
Fig. 8 is the structural schematic diagram for the device that icon optimizes in the desktop of one embodiment of the application.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with the application
Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality
Applying example is only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, ability
Domain those of ordinary skill every other embodiment obtained without making creative work, all should belong to this theory
The range of bright book protection.
The embodiment of the present application provides a kind of method and device of icon optimization in desktop.
The method of icon optimization in a kind of desktop provided by the embodiments of the present application is introduced first below.
It should be noted that method provided by the embodiments of the present application is suitable for terminal device, in practical applications, the terminal
Equipment may include: smart phone, tablet computer, smartwatch, notebook/desktop computer etc., and the embodiment of the present application is to this
It is not construed as limiting.
Each application icon on desktop after beautification often over being shown, for the application icon of symmetric form,
It is shown after can directly amplifying by uniform sizes;But for the application icon of unsymmetric form, because icon profile is not
Systematicness can not carry out unified amplification and beautification together with other application icon, then the application icon of unsymmetric form is in desktop
When upper displaying, show that style and other icons are inconsistent, it appears it is more in disorder, affect the visual experience of user.
This programme extracts irregular, unsymmetric form application icon in desktop, by the corresponding icon of asymmetric icon
After profile is analyzed, the corresponding current size of the application icon of the unsymmetric form is amplified, the unsymmetric form is made
Application icon show again, improve the visual experience of user.
Fig. 1 is the flow chart for the method that icon optimizes in the desktop of one embodiment of the application, as shown in Figure 1, the party
Method may comprise steps of:
In a step 101, each corresponding icon area of application icon in terminal desktop is obtained.
By the corresponding interface of terminal system, obtains in desktop and respectively shield corresponding picture region and corresponding ranks number, root
Analytical calculation is carried out according to the size and ranks number of picture region, obtains the corresponding icon area of each application icon.
Step 102: being progressively scanned in the icon area respectively, obtain corresponding icon in the icon area
Profile;
The corresponding icon profile of each application icon is extracted in icon area in a manner of object analysis, to extract not
The application icon of rule.
When carrying out object analysis in icon area, the color point in icon area is extracted by way of progressive scan
Cloth, and then extract corresponding icon profile.When carrying out picture element scan to icon area,
A, the corresponding color value of pixel each in the icon area is counted line by line, obtains the corresponding color point of each row
Cloth.
Because in icon area, it is poor that the pixel color value of the transparent region of the display area and application icon of application icon exists
It is different, it is distributed according to the pixel statistical color that scanning obtains, because the pixel color value of transparent region is more consistent, therefore nontransparent picture
Region corresponding to vegetarian refreshments is then the corresponding pixel region of application icon.
As shown in Fig. 2, with behavior unit, in icon area from a left side and the right side is scanned, count each pixel pair line by line
The distribution of color answered, using the row both ends, color value corresponds to approximate coordinate position as transparent pixels coordinate, and transparent pixels are sat
Outside being marked with, the biggish coordinate of color change is as corresponding edge coordinate point of being expert at.
In the present embodiment, in order to avoid scanning Apply Names corresponding in picture region together, then when scanning, such as occur
Each pixel distribution of color gap that certain row scans is little, then logo picture itself is scanned, and the picture region is corresponding
Scanning process terminates.
B, it is analyzed according to the distribution of color, obtains the corresponding edge feature of the application icon;
As shown in figure 3, edge coordinate points are fitted line by line after confirming to each row corresponding edge coordinate point,
Form the corresponding edge feature of application icon.
C, the respective coordinates of the edge feature are extracted, obtains the corresponding figure of application icon in the icon area
Mark profile.
In step B, the edge feature formed after fitting includes the texture and logo of picture itself in the logo of application icon
The edge of itself needs directly to extract the texture of the picture of application icon itself, the corresponding feature of the icon that is applied
Edge.
As shown in Figure 4, Figure 5, because the coordinate points in application icon in picture texture are inside picture, i.e., these coordinate points away from
The distance of center picture, relatively distance of the coordinate points away from center picture on the edge of application icon are smaller, then extract the figure
The centre coordinate in mark region is chosen respectively from the edge feature away from institute under the same direction using centre coordinate as starting point
Centre coordinate is stated apart from maximum respective coordinates point, the respective coordinates point is extracted, is obtained after being fitted the coordinate points
The corresponding icon profile of the application icon.
Step 103: being analyzed respectively according to the icon profile, screening obtains target icon, and extracts the target
The corresponding edge radius of icon;The edge radius is calculated by the profile of the target icon, for describing target icon
Profile size;
It is for statistical analysis to the pixel in the corresponding icon profile of icon each in statistics desktop, specifically: extract figure
Centre coordinate in mark region judges whether each pixel is symmetrical in icon profile on the basis of the central point of icon area.Such as
Icon profile is symmetrical, then it represents that the corresponding application icon of icon profile is symmetric shape, then the icon of symmetric shape will be unified
Displaying is amplified after being rendered by desktop system;If icon profile is asymmetric, then it represents that the corresponding application drawing of icon profile
It is designated as asymmetrical target icon, in order to avoid the non-symmetrical portion in the corresponding icon profile of target icon extends after amplification
To except icon area, icon is caused to be overlapped mutually the effect of display, then desktop system will not to asymmetrical target icon into
To amplify after row rendering, target icon amplifies after being analyzed in the next steps by edge radius in the present embodiment, from
And display effect is improved, reach the target icon of unsymmetric form and is amplified with after the rendering of the application icon of symmetric form
Show same effect.
The corresponding edge radius of target icon is extracted, edge radius is used to describe corresponding at the relevant position at icon edge
Radius size.As shown in fig. 6, in the present embodiment, because the minimum range between the coordinate points is less than given threshold, the i.e. target
The corresponding icon contour fitting of icon does not go out inscribed circle, then edge radius includes mean radius and external radius, extracts the figure
After marking the coordinate points on the centre coordinate and the target icon corresponding icon profile in region, by the coordinate points on icon profile
With calculating mean value at a distance from centre coordinate, the mean radius is obtained;Calculate separately on icon profile each coordinate points and it is described in
The distance between heart coordinate extracts maximum distance between coordinate points and the centre coordinate on icon profile from these distances,
That is the corresponding circumradius of the target icon.
In the present embodiment, because target icon is asymmetrical graphic, the corresponding icon profile of asymmetrical graphic is irregular, can not
Unified metric is carried out to the corresponding size of target icon, then calculates each pixel difference on the corresponding icon profile of target icon
The average distance of central point away from icon profile is as mean radius, with the size of the mean radius metric objective icon.Meanwhile
In order to guarantee that amplified target icon is unlikely to overflow the corresponding icon area of the target icon, then target icon pair is extracted
The external radius for answering circumscribed circle, the range that can amplify by the external radius measure target icon pass through mean radius and external half
Diameter calculates the corresponding magnification ratio of the target icon.
Step 104: in the icon area, the target icon is amplified by displaying according to the edge radius,
To generate the application icon of new version.
In the present embodiment, edge radius includes mean radius and external radius, is calculated according to mean radius and external radius
Target icon is amplified displaying by the corresponding magnification ratio of target icon.
In the present embodiment, as shown in fig. 6, the magnification ratio of setting are as follows:
(R-r)/R
Wherein, R is external radius, and r is mean radius.
It is shown after target icon is amplified, can make have the target icon of irregular icon profile by the amplification ratio of calculating
Example amplifies displayings, and after amplification is shown after the target icon of generation new version, the bandwagon effect of target icon levels off to desktop
In amplified the regular icon of displaying, keep the application icon entirety size display all applied in desktop unified, the view of user
Feel that experience effect is greatly improved, further improves the visual experience of user.
In another alternative embodiment, when icon optimizes in desktop
Step 201: obtaining each corresponding icon area of application icon in terminal desktop;
Step 202: being progressively scanned in the icon area respectively, obtain corresponding icon in the icon area
Profile;
Step 203: being analyzed respectively according to the icon profile, screening obtains target icon, and extracts the target
The corresponding edge radius of icon;The edge radius is calculated by the profile of the target icon, for describing target icon
Mean size;
The corresponding edge radius of target icon is extracted, edge radius is used to describe corresponding at the relevant position at icon edge
Radius size.In the present embodiment, the edge radius includes inscribed radius and external radius, then described to extract the target icon
When corresponding edge radius, extracted on the centre coordinate and the target icon corresponding icon profile of the icon area respectively
Coordinate points;
In the present embodiment, because the minimum range between the coordinate points is greater than given threshold, i.e. the target icon is corresponding
Icon profile can fit inscribed circle, measured using inscribed circle and be used as asymmetrical target icon size, extract the coordinate
Minimum range between point, i.e., the corresponding diameter of asymmetrical target icon, obtains the target figure according to the minimum range
Mark corresponding inscribed radius;Current size when not amplifying by inscribed radius metric objective icon.
In order to guarantee that amplified target icon is unlikely to overflow the corresponding icon area of the target icon, then mesh is extracted
It marks on a map the external radius of corresponding circumscribed circle, the range that can amplify by the external radius measure target icon.Extract the coordinate
Maximum distance between point, external diameter of a circle is corresponded to using maximum distance as target icon, and then obtain the target icon
Corresponding external radius.
Step 204: in the icon area, the target icon is amplified by displaying according to the edge radius,
To generate the application icon of new version.
In the present embodiment, edge radius includes mean radius and external radius, is calculated according to mean radius and external radius
Target icon is amplified displaying by the corresponding magnification ratio of target icon.
In the present embodiment, the magnification ratio of setting are as follows:
(R-r)/R
Wherein, R is external radius, and r is mean radius.
It is shown after target icon is amplified, can make have the target icon of irregular icon profile by the amplification ratio of calculating
Example amplifies displaying, and amplification generates the target icon of new version after showing, the bandwagon effect of target icon levels off in desktop
The regular icon for having amplified displaying keeps the application icon entirety size display all applied in desktop unified, the vision of user
Experience effect is greatly improved, and further improves the visual experience of user.
In another alternative embodiment, when icon optimizes in desktop
Step 301: obtaining each corresponding icon area of application icon in terminal desktop;
By the packet manager PackageManager of Android FrameWork in terminal, and pass through each application
ApplicationInfo.loadIcon (pm), which is obtained, have been installed in terminal using corresponding application message, wherein including application
Icon (Drawable) and Apply Names (label) and unread message remind (unread message prompting here may be short message,
Missed call, or certain prompt).
Step 302: being progressively scanned in the icon area respectively, obtain corresponding icon in the icon area
Profile;
Pixel distribution in icon area is carried out to sentence calculating, obtains the coordinate where icon contour pixel.Such as: it obtains
The pixel coordinate of left frame in icon area, using all pixels in icon area as two-dimensional lattice, respectively to every a line
Pixel carries out scanning from left to right, obtains first foreground pixel of every a line, scanned, just obtains leftmost picture
Plain coordinate, left frame is similarly.Obtain upper side frame are as follows: scan each column from left to right, then carry out to each column, from top to bottom
Scanning, obtains first foreground pixel, it is scanned after to get upper side frame pixel coordinate is arrived, lower frame similarly, obtains icon wheel
It is wide.
Step 303: being analyzed respectively according to the icon profile, screening obtains target icon, and extracts the target
The corresponding edge radius of icon;
When analyzing icon profile, the respective distances of pixel and icon area center on calculation icon profile, if away from
From equal, then it can determine whether the application icon for round icon;The corresponding pixel of upper side frame is calculated separately in icon profile under
Whether the corresponding pixel of frame is symmetrical, and each pixel and icon area center are equidistant;Calculate separately icon profile
Whether the corresponding pixel of middle left frame pixel corresponding with left frame is symmetrical, and all left frame pixels, left frame picture
Central symmetry axis of the vegetarian refreshments away from icon area is equidistant, then can determine whether that the icon is square icon.
Using asymmetric icon as target icon, and the corresponding edge radius of target icon is extracted, in subsequent step
The ratio of amplification is calculated in rapid.
The outer rim set of pixels of the target icon corresponding icon profile available from above-mentioned steps, represents the non-of picture
Then bright pixel boundary calculates all pixels point average distance corresponding with icon area central point in icon profile, is denoted as
Mean radius average, while calculating in icon profile between pixel and barycentric coodinates apart from maximum length L, then target
The corresponding external radius of icon is L.
Step 304: in the icon area, the target icon is amplified by displaying according to the edge radius,
To generate the application icon of new version
In the present embodiment, calculating the ratio for needing picture to need to amplify is (L-average)/R, using terminal system
The Canvas that Android Framework is provided, corresponding magnification ratio is in original target icon in the icon area
(L-average) then/R+1 calls corresponding method canvas.scale ((L-average)/R+1, (L- in Android system
Average)/R+1), amplified target icon is rendered again again, to generate the application icon of new version.
Fig. 7 is the structural schematic diagram of the electronic equipment of one embodiment of the application.Referring to FIG. 7, in hardware view, it should
Electronic equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior
It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..Only to be indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus or a type of convenient for indicating
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The device of expression insertion candidates of input method is formed on face.Processor executes the program that memory is stored, and is specifically used for holding
The following operation of row:
Obtain each corresponding icon area of application icon in terminal desktop;
It is progressively scanned in the icon area respectively, obtains corresponding icon profile in the icon area;
It is analyzed respectively according to the icon profile, screening obtains target icon, and it is corresponding to extract the target icon
Edge radius;The edge radius is calculated by the profile of the target icon, for describing the average big of target icon
It is small;
In the icon area, the target icon is amplified by displaying according to the edge radius, it is new to generate
The application icon of version.
The control method of incoming call video can answer in the terminal in picture disclosed in the above-mentioned embodiment illustrated in fig. 7 such as the application
It is realized in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal
Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor
The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the public affairs in the embodiment of the present application
Each method, step and the logic diagram opened.General processor can be microprocessor or the processor be also possible to it is any often
The processor etc. of rule.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold
Row complete, or in decoding processor hardware and software module combine execute completion.Software module can be located at deposits at random
Reservoir, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register
In mature storage medium.The storage medium is located at memory, and processor reads the information in memory, completes in conjunction with its hardware
The step of above method.
The method that the electronic equipment can also carry out Fig. 1, and realize the device embodiment shown in Fig. 1 that icon optimizes in desktop
Function, details are not described herein for the embodiment of the present application.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as
Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each
Logic unit is also possible to hardware or logical device.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, and the instruction is when by the portable electronic including multiple application programs
When equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing with lower section
Method:
Obtain each corresponding icon area of application icon in terminal desktop;
It is progressively scanned in the icon area respectively, obtains corresponding icon profile in the icon area;
It is analyzed respectively according to the icon profile, screening obtains target icon, and it is corresponding to extract the target icon
Edge radius;The edge radius is calculated by the profile of the target icon, and the profile for describing target icon is big
It is small;
In the icon area, the target icon is amplified by displaying according to the edge radius, it is new to generate
The application icon of version.
Fig. 8 is the structural schematic diagram for the device that icon optimizes in the desktop of one embodiment of the application.Referring to FIG. 8,
In a kind of Software Implementation, the icon in picture optimizes device 800, may include: to obtain module 801, scan module
802, screening module 803 and amplification module 804, wherein
Module 801 is obtained, for obtaining each corresponding icon area of application icon in terminal desktop;
Scan module 802, for being progressively scanned in the icon area respectively, it is right in the icon area to obtain
The icon profile answered;
Screening module 803, for being analyzed respectively according to the icon profile, screening obtains target icon, and extracts
The corresponding edge radius of the target icon;The edge radius is calculated by the profile of the target icon, for describing
The profile size of target icon;
Amplification module 804, for being put the target icon according to the edge radius in the icon area
Show, to generate the application icon of new version.
In the scan module 801, comprising:
Statistic unit obtains each row for counting line by line to the corresponding color value of pixel each in the icon area
Corresponding distribution of color;
Analytical unit obtains the corresponding edge feature of the application icon for being analyzed according to the distribution of color;
Extraction unit obtains answering in the icon area for being extracted according to the respective coordinates of the edge feature
With the corresponding icon profile of icon.
Extraction unit specifically includes, and extracts the centre coordinate of the icon area, chooses respectively from the edge feature
It is extracted away from the centre coordinate apart from maximum respective coordinates point, obtains the application icon pair after being fitted the coordinate points
The icon profile answered.
In the screening module 803, specifically include:
The centre coordinate for extracting the icon area, according to pair between the centre coordinate and the edge feature coordinate
It should be related to the symmetry for judging the icon profile, such as the icon profile is asymmetric, then answers the icon profile is corresponding
Use icon as the target icon.
In the screening module 803, the edge radius includes mean radius and external radius, then described to extract the mesh
When corresponding edge radius of marking on a map,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
Using coordinate points average distance corresponding with the centre coordinate as mean radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the mesh is obtained according to the maximum distance
It marks on a map corresponding external radius.
In the screening module 803, the edge radius includes inscribed radius and external radius, then described to extract the mesh
When corresponding edge radius of marking on a map,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
The minimum range between the coordinate points is extracted, it is corresponding interior to obtain the target icon according to the minimum range
Cut radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the mesh is obtained according to the maximum distance
It marks on a map corresponding external radius.
The amplification module 804 further include:
Ratio setup unit, when for the target icon to be amplified displaying according to the edge radius, setting
Magnification ratio are as follows:
(R-r)/R
Wherein, R is external radius, and r is inscribed radius or mean radius.
In short, being not intended to limit the protection of this specification the foregoing is merely the preferred embodiment of this specification
Range.For all spirit in this specification within principle, any modification, equivalent replacement, improvement and so on should be included in this
Within the protection scope of specification.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
Claims (14)
1. a kind of method that icon optimizes in desktop, which is characterized in that the described method includes:
Obtain each corresponding icon area of application icon in terminal desktop;
It is progressively scanned in the icon area respectively, obtains corresponding icon profile in the icon area;
It is analyzed respectively according to the icon profile, screening obtains target icon, and extracts the corresponding side of the target icon
Edge radius;The edge radius is calculated by the profile of the target icon, for describing the profile size of target icon;
In the icon area, the target icon is amplified by displaying according to the edge radius, to generate new version
Application icon.
2. the method according to claim 1, wherein being swept line by line in the icon area described in including:
When retouching,
The corresponding color value of pixel each in the icon area is counted line by line, obtains the corresponding distribution of color of each row;
It is analyzed according to the distribution of color, obtains the corresponding edge feature of the application icon;
It is extracted according to the respective coordinates of the edge feature, obtains the corresponding icon wheel of application icon in the icon area
It is wide.
3. according to the method described in claim 2, it is characterized in that, the respective coordinates according to the edge feature are mentioned
When taking,
The centre coordinate for extracting the icon area is chosen maximum away from the centre coordinate distance respectively from the edge feature
Respective coordinates point extract, obtain the corresponding icon profile of the application icon after being fitted the coordinate points.
4. the method according to claim 1, wherein described when being analyzed respectively according to the icon profile,
The centre coordinate for extracting the icon area, according to the corresponding pass between the centre coordinate and the edge feature coordinate
System judges the symmetry of the icon profile, and such as described icon profile is asymmetric, then by the corresponding application drawing of the icon profile
It is denoted as the target icon.
5. the method according to claim 1, wherein the edge radius includes mean radius and external radius,
It is then described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
Using coordinate points average distance corresponding with the centre coordinate as mean radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the target figure is obtained according to the maximum distance
Mark corresponding external radius.
6. the method according to claim 1, wherein the edge radius includes inscribed radius and external radius,
It is then described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
The minimum range between the coordinate points is extracted, the corresponding inscribe of the target icon half is obtained according to the minimum range
Diameter;
The maximum distance between the coordinate points and the centre coordinate is extracted, the target figure is obtained according to the maximum distance
Mark corresponding external radius.
7. method according to claim 5 or 6, which is characterized in that it is described according to the edge radius by the target figure
When mark amplifies displaying, the magnification ratio of setting are as follows:
(R-r)/R
Wherein, R is external radius, and r is inscribed radius or mean radius.
8. the device that icon optimizes in a kind of desktop, which is characterized in that described device includes:
Module is obtained, for obtaining each corresponding icon area of application icon in terminal desktop;
Scan module obtains corresponding figure in the icon area for being progressively scanned in the icon area respectively
Mark profile;
Screening module, for being analyzed respectively according to the icon profile, screening obtains target icon, and extracts the target
The corresponding edge radius of icon;The edge radius is calculated by the profile of the target icon, for describing target icon
Profile size;
Amplification module, for the target icon to be amplified displaying according to the edge radius in the icon area,
To generate the application icon of new version.
9. device according to claim 8, which is characterized in that in the scan module, comprising:
It is corresponding to obtain each row for counting line by line to the corresponding color value of pixel each in the icon area for statistic unit
Distribution of color;
Analytical unit obtains the corresponding edge feature of the application icon for being analyzed according to the distribution of color;
Extraction unit obtains application drawing in the icon area for extracting according to the respective coordinates of the edge feature
Mark corresponding icon profile.
10. device according to claim 9, which is characterized in that the extraction unit specifically includes, and extracts the icon
The centre coordinate in region is chosen respectively from the edge feature and is carried out away from the centre coordinate apart from maximum respective coordinates point
It extracts, obtains the corresponding icon profile of the application icon after being fitted the coordinate points.
11. according to the device any in claim 8, which is characterized in that in the screening module, specifically include:
The centre coordinate for extracting the icon area, according to the corresponding pass between the centre coordinate and the edge feature coordinate
System judges the symmetry of the icon profile, and such as described icon profile is asymmetric, then by the corresponding application drawing of the icon profile
It is denoted as the target icon.
12. device according to claim 8, which is characterized in that in the screening module, the edge radius includes average
Radius and external radius, then it is described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
Using coordinate points average distance corresponding with the centre coordinate as mean radius;
The maximum distance between the coordinate points and the centre coordinate is extracted, the target figure is obtained according to the maximum distance
Mark corresponding external radius.
13. device according to claim 8, which is characterized in that in the screening module, the edge radius includes inscribe
Radius and external radius, then it is described when extracting the corresponding edge radius of the target icon,
The coordinate points on the centre coordinate and the target icon corresponding icon profile of the icon area are extracted respectively;
The minimum range between the coordinate points is extracted, the corresponding inscribe of the target icon half is obtained according to the minimum range
Diameter;
The maximum distance between the coordinate points and the centre coordinate is extracted, the target figure is obtained according to the maximum distance
Mark corresponding external radius.
14. any device in 2 or 13 according to claim 1, which is characterized in that the amplification module further include:
Ratio setup unit, when for the target icon to be amplified displaying according to the edge radius, the amplification of setting
Ratio are as follows:
(R-r)/R
Wherein, R is external radius, and r is inscribed radius or mean radius.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910318511.0A CN110321190B (en) | 2019-04-19 | 2019-04-19 | Method and device for optimizing icons in desktop |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910318511.0A CN110321190B (en) | 2019-04-19 | 2019-04-19 | Method and device for optimizing icons in desktop |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110321190A true CN110321190A (en) | 2019-10-11 |
CN110321190B CN110321190B (en) | 2022-04-29 |
Family
ID=68112930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910318511.0A Active CN110321190B (en) | 2019-04-19 | 2019-04-19 | Method and device for optimizing icons in desktop |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110321190B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638878A (en) * | 2020-04-26 | 2020-09-08 | 华为终端有限公司 | Method and device for processing style of icon |
CN113970989A (en) * | 2020-07-22 | 2022-01-25 | 宝能汽车集团有限公司 | Icon display method, icon display device and vehicle |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120162103A1 (en) * | 2010-12-28 | 2012-06-28 | Akihiko Kobayashi | Display Control Device and Display Control Method |
CN104077129A (en) * | 2014-06-10 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Icon processing method and device and terminal device |
US20140325425A1 (en) * | 2013-04-29 | 2014-10-30 | International Business Machines Corporation | Applying contextual function to a graphical user interface using peripheral menu tabs |
CN106445276A (en) * | 2016-08-30 | 2017-02-22 | 青岛海信移动通信技术股份有限公司 | Desktop icon processing method and apparatus |
CN106873981A (en) * | 2017-01-11 | 2017-06-20 | 努比亚技术有限公司 | A kind of icon processing method, device and terminal |
CN107219989A (en) * | 2017-05-31 | 2017-09-29 | 北京小米移动软件有限公司 | Icon processing method, device and terminal |
CN107797799A (en) * | 2016-08-31 | 2018-03-13 | 中兴通讯股份有限公司 | The icon display method and device of a kind of terminal interface |
CN108459856A (en) * | 2018-02-28 | 2018-08-28 | 平安普惠企业管理有限公司 | Interface icon configuration method, device, computer equipment and storage medium |
CN109064481A (en) * | 2018-07-24 | 2018-12-21 | 中山新诺科技股份有限公司 | A kind of machine vision localization method |
-
2019
- 2019-04-19 CN CN201910318511.0A patent/CN110321190B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120162103A1 (en) * | 2010-12-28 | 2012-06-28 | Akihiko Kobayashi | Display Control Device and Display Control Method |
US20140325425A1 (en) * | 2013-04-29 | 2014-10-30 | International Business Machines Corporation | Applying contextual function to a graphical user interface using peripheral menu tabs |
CN104077129A (en) * | 2014-06-10 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Icon processing method and device and terminal device |
CN106445276A (en) * | 2016-08-30 | 2017-02-22 | 青岛海信移动通信技术股份有限公司 | Desktop icon processing method and apparatus |
CN107797799A (en) * | 2016-08-31 | 2018-03-13 | 中兴通讯股份有限公司 | The icon display method and device of a kind of terminal interface |
CN106873981A (en) * | 2017-01-11 | 2017-06-20 | 努比亚技术有限公司 | A kind of icon processing method, device and terminal |
CN107219989A (en) * | 2017-05-31 | 2017-09-29 | 北京小米移动软件有限公司 | Icon processing method, device and terminal |
CN108459856A (en) * | 2018-02-28 | 2018-08-28 | 平安普惠企业管理有限公司 | Interface icon configuration method, device, computer equipment and storage medium |
CN109064481A (en) * | 2018-07-24 | 2018-12-21 | 中山新诺科技股份有限公司 | A kind of machine vision localization method |
Non-Patent Citations (1)
Title |
---|
王学莹: "基于标志设计的APP启动图标设计研究", 《中国优秀硕士学位论文全文数据库 (哲学与人文科学辑)》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638878A (en) * | 2020-04-26 | 2020-09-08 | 华为终端有限公司 | Method and device for processing style of icon |
CN111638878B (en) * | 2020-04-26 | 2023-06-02 | 华为终端有限公司 | Method and device for style processing of icons |
CN113970989A (en) * | 2020-07-22 | 2022-01-25 | 宝能汽车集团有限公司 | Icon display method, icon display device and vehicle |
Also Published As
Publication number | Publication date |
---|---|
CN110321190B (en) | 2022-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111860502B (en) | Picture form identification method and device, electronic equipment and storage medium | |
CN109978972B (en) | Method and device for editing characters in picture | |
AU2018320008A1 (en) | Method and device for generating and identifying identification code | |
CN109144649A (en) | Display methods, device, terminal and the storage medium of icon | |
CN110362242B (en) | Map display method and terminal equipment | |
ES2849827T3 (en) | Method and device for establishing a UI control background | |
CN111210473A (en) | Mobile phone contour positioning method and equipment | |
CN110321190A (en) | The method and device of icon optimization in a kind of desktop | |
CN113658316B (en) | Rendering method and device of three-dimensional model, storage medium and computer equipment | |
CN103559236A (en) | Image displaying method and terminal | |
CN108269220A (en) | Method and device for positioning digital watermark | |
CN109858542A (en) | A kind of character identifying method and device | |
CN115082788B (en) | Air pressure center identification method and device, electronic equipment and storage medium | |
CN111870953B (en) | Altitude map generation method, device, equipment and storage medium | |
CN108304562A (en) | Question searching method and device and intelligent terminal | |
CN104967786A (en) | Image selection method and device | |
CN112488095A (en) | Seal image identification method and device and electronic equipment | |
CN108280135B (en) | Method and device for realizing visualization of data structure and electronic equipment | |
CN109063085A (en) | Reduced graph generating method and device | |
CN112149745B (en) | Method, device, equipment and storage medium for determining difficult example sample | |
CN105719335A (en) | Map image rendering method and device, and vehicle-mounted terminal | |
CN110059563A (en) | A kind of text handling method and device | |
CN117274052A (en) | Information point identification method, device and equipment based on image super-division processing | |
CN106373090A (en) | Picture processing method and device | |
US20240104811A1 (en) | Image editing method and device |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220721 Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000 Patentee after: Zhengzhou Apas Technology Co.,Ltd. Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province Patentee before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |