CN106484226A - The renewal method of calibration of icon and device - Google Patents
The renewal method of calibration of icon and device Download PDFInfo
- Publication number
- CN106484226A CN106484226A CN201610857604.7A CN201610857604A CN106484226A CN 106484226 A CN106484226 A CN 106484226A CN 201610857604 A CN201610857604 A CN 201610857604A CN 106484226 A CN106484226 A CN 106484226A
- Authority
- CN
- China
- Prior art keywords
- icon
- target
- executable file
- replacement
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The invention discloses a kind of renewal method of calibration of icon and device, wherein, methods described includes:Target icon is write executable file, to generate the corresponding replacement icon of source icon in the executable file;Extract the replacement icon in current executable file;The replacement icon is carried out similarity mode with the target icon;If the similarity that replaces between icon and the target icon meets predetermined threshold value, confirm that icon is updated successfully.The present invention is verified to the renewal of icon with the similarity mode result of target icon according to icon is replaced, it is ensured that is improve the accuracy of icon renewal, and then can quickly be realized the accurate renewal of a large amount of icons.
Description
Technical field
The present invention relates to Internet technical field, the renewal method of calibration of more particularly to a kind of icon and device.
Background technology
Icon is that have the computer graphical for clearly referring to implication.For example, APP (application program) is being attached to electricity by user
After sub- equipment, the corresponding application icon of the APP on the screen of electronic equipment, will be shown.
Under normal circumstances, the icon of application program is diversified, and shape is different, without unified standard.When
When our icons to a certain application program are updated, typically directly new icon is write file, original to replace
Icon.
In process of the present invention is realized, inventor has found the icon update method of application program in prior art, due to figure
Mark ablation process uncertainty, especially for a large amount of icons replace situation, it is impossible to by manually being verified, therefore Wu
Method guarantees the accuracy that icon updates.
Content of the invention
In view of the above problems, it is proposed that on the present invention is overcome the problems referred to above or solves at least in part so as to offer one kind
State renewal method of calibration and the device of the icon of problem.
A kind of one aspect of the present invention, there is provided the renewal method of calibration of icon, including:
Target icon is write executable file, to generate the corresponding replacement icon of source icon in the executable file;
Extract the replacement icon in current executable file;
The replacement icon is carried out similarity mode with the target icon;
If the similarity that replaces between icon and the target icon meets predetermined threshold value, confirm that icon is updated to
Work(.
Alternatively, the method also includes:
If the similarity that replaces between icon and the target icon is unsatisfactory for predetermined threshold value, again by the mesh
Mark on a map and write the executable file.
Alternatively, the replacement icon has identical iconic format with the target icon.
Alternatively, the replacement icon extracted in current executable file includes:
Calling system api interface extracts the replacement icon in current executable file.
Alternatively, described the replacement icon is carried out similarity mode with the target icon and includes:
The replacement icon is decomposed, obtains the picture set included by the replacement icon;
By the phase in each picture in the picture set respectively Target Photo set corresponding with the target icon
Picture is answered to carry out the similarity mode of pixel.
Alternatively, each picture by picture set Target Photo corresponding with the target icon respectively
Corresponding picture in set carries out the similarity mode of pixel, including:
By the binary data of each picture in the picture set, target figure corresponding with the target icon respectively
The binary data of the corresponding picture in piece set carries out the similarity mode of pixel.
Alternatively, described target icon is write executable file, including:
Data characteristics according to icon file searches the source icon in the property data fields of the executable file;
The target icon is write source icon corresponding picture mark position in the executable file.
Alternatively, the data characteristics of the icon file includes file name and/or the file path of icon file.
A kind of another aspect of the present invention, there is provided the renewal calibration equipment of icon, including:
Generation module, is suitable to for target icon to write executable file, to generate source icon pair in the executable file
The replacement icon that answers;
Extraction module, is suitable to extract the replacement icon in current executable file;
Matching module, is suitable to for the replacement icon to carry out similarity mode with the target icon;
Determination module, is suitable to when the matching result of the matching module is between the replacement icon and the target icon
Similarity when meeting predetermined threshold value, confirm that icon is updated successfully.
Alternatively, the generation module, it is the replacement icon and institute to be further adapted for when the matching result of the matching module
When stating the similarity between target icon predetermined threshold value is unsatisfactory for, again the target icon is write the executable file.
Alternatively, the replacement icon has identical iconic format with the target icon.
Alternatively, the extraction module, is particularly adapted to calling system api interface and extracts the replacement in current executable file
Icon.
Alternatively, the matching module, including:
Resolving cell, is suitable to decompose the replacement icon, obtains the picture set included by the replacement icon;
Matching unit, is suitable to the target figure corresponding with the target icon respectively of each picture in the picture set
Corresponding picture in piece set carries out the similarity mode of pixel.
Alternatively, the matching unit, is particularly adapted to the binary data of each picture in the picture set, point
The similarity of pixel is not carried out to the binary data of the corresponding picture in the corresponding Target Photo set of the target icon
Coupling.
Alternatively, the generation module, including:
Searching unit, is suitable to be looked in the property data fields of the executable file according to the data characteristics of icon file
Look for the source icon;
Writing unit, is suitable to for the target icon to write source icon corresponding icon in the executable file
Position.
Alternatively, the data characteristics of the icon file includes file name and/or the file path of icon file.
The renewal method of calibration of icon provided in an embodiment of the present invention and device, by can perform text by target icon write
Part is generated, and is obtained the corresponding replacement icon of source icon in executable file, and the replacement icon and target icon is carried out similar
Degree coupling, verifies to the renewal of icon according to matching result, improves the accuracy of icon renewal, and then can be quickly real
The now accurate renewal of a large amount of icons.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
The flow chart that Fig. 1 shows a kind of renewal method of calibration of icon according to an embodiment of the invention;
The flow chart that Fig. 2 shows a kind of renewal method of calibration of icon according to another embodiment of the present invention;
Fig. 3 shows the subdivision flow process of step S13 in the renewal method of calibration of icon according to an embodiment of the invention
Figure;
Fig. 4 shows the subdivision flow process of step S11 in the renewal method of calibration of icon according to an embodiment of the invention
Figure;
Fig. 5 shows a kind of structural representation of the renewal calibration equipment of icon according to an embodiment of the invention;
Fig. 6 shows a kind of structural representation of the renewal calibration equipment of icon according to another embodiment of the present invention;
Fig. 7 shows the internal structure for updating matching module in calibration equipment of icon according to an embodiment of the invention
Schematic diagram;
Fig. 8 shows the internal structure for updating generation module in calibration equipment of icon according to an embodiment of the invention
Schematic diagram.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.Conversely, provide these embodiments to be able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention
Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding
Other features one or more, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art
Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also
It is understood by, those terms defined in such as general dictionary, it should be understood that with the context with prior art
The consistent meaning of meaning, and unless by specific definitions, otherwise will not be explained with idealization or excessively formal implication.
The flow chart that Fig. 1 diagrammatically illustrates the renewal method of calibration of the icon of one embodiment of the invention.
With reference to Fig. 1, the renewal method of calibration of the icon of the embodiment of the present invention specifically includes following steps:
S11, target icon is write executable file, to generate the corresponding replacement figure of source icon in the executable file
Mark.
In embodiments of the present invention, when needing to carry out executable file icon renewal, then send to server and be directed to
The icon of the executable file updates request;Wherein, the icon updates request for making the server by the executable text
The corresponding icon file to be updated of part is that target icon is issued to current device, with by current device in the executable file
Icon file is updated replacing.Wherein, exploitation side's server of the operating system that server can be for installing in current device,
The server can be realized issuing target icon by the interface of configuration in the operating system, corresponding in order to realize
The replacement of icon updates.
Specifically, by target icon is write executable file in the present embodiment, held described with replacing source icon
The position being located in style of writing part, generates icon corresponding replacement icon in source in the executable file.Wherein, executable file bag
Include but .exe file .dll file etc. is not limited to, can be the executable file of application program, or system executable file.
S12, the replacement icon extracted in current executable file.
In the embodiment of the present invention, target icon is being write executable file, is generating source icon in the executable file
After corresponding replacement icon, further by extracting replacement figure from the current executable file after target icon write
Mark, with realize subsequently replacing icon and target icon compare verification the step of.
S13, by described replacement icon carry out similarity mode with the target icon.
In the embodiment of the present invention, by the replacement icon is carried out the similarity based on pixel with the target icon
Coupling, compares and whether obtains target icon to be updated after icon is replaced, and then realizes replacing the comparison of icon and target icon
Verification.
Intelligible, icon file be by the ICO file of the picture stacked combination such as multigroup .png or .jpg, therefore,
When the replacement icon is carried out similarity mode with the target icon, the present embodiment passes through to replacing each of icon
Layer picture corresponding with target icon carries out similarity mode to layer .png or .jpg picture respectively, realizes replacing icon and target figure
Target Inspection.
If the S14 similarity that replaces between icon and the target icon meets predetermined threshold value, icon is confirmed more
New success.
In embodiments of the present invention, according to the similarity mode result that replaces between icon and the target icon to icon
Renewal verified, when replacing the similarity between icon and the target icon and meeting predetermined threshold value, then confirm icon
It is updated successfully.Wherein, between above-mentioned replacement icon and target icon the predetermined threshold value met required for similarity is bigger, then scheme
Target renewal verification is more accurate, but, it is updated to power accordingly and also accordingly can reduces.Therefore, the value of the predetermined threshold value can
To be configured according to the needs of concrete business, the present invention is not specifically limited to this.
The renewal method of calibration of icon provided in an embodiment of the present invention, by writing executable file life by target icon
Become, the corresponding replacement icon of source icon in executable file is obtained, and the replacement icon and target icon are carried out similarity
Join, the renewal of icon is verified according to matching result, the accuracy of icon renewal is improve, and then quickly can be realized big
Spirogram target accurately updates.
The flow chart that Fig. 2 diagrammatically illustrates the renewal method of calibration of the icon of another embodiment of the present invention.
With reference to Fig. 2, the renewal method of calibration of the icon of the embodiment of the present invention specifically includes following steps:
S21, target icon is write executable file, to generate the corresponding replacement figure of source icon in the executable file
Mark.
S22, the replacement icon extracted in current executable file.
S23, by described replacement icon carry out similarity mode with the target icon.
Wherein, step S21~S23 is identical with step S11 in above-described embodiment~S13, and the present embodiment is not done to this specifically
Limit.
Whether S24, the judgement similarity that replaces between icon and the target icon meet predetermined threshold value, if described
The similarity that replaces between icon and the target icon meets predetermined threshold value, then execution step S25, otherwise, return to step
The target icon is write the executable file by S21 again.
S25, confirmation icon are updated successfully.
In embodiments of the present invention, for different business demands, the accuracy rate for needing the icon for reaching to update is required
Inconsistent, but in order to, while renewal verification accuracy is improved, improve further and be updated to power, in the embodiment of the present invention
By when the similarity between replacement icon and the target icon is unsatisfactory for predetermined threshold value, again the target icon being write
Enter the executable file, to avoid due to the impact of uncertain factor present in target icon write executable file process
The icon that causes updates failure, so improve icon be updated to power.
The renewal method of calibration of icon provided in an embodiment of the present invention, by writing executable file life by target icon
Become, the corresponding replacement icon of source icon in executable file is obtained, and the replacement icon and target icon are carried out similarity
Join, the renewal of icon is verified according to matching result, and when the similarity between replacement icon and the target icon
Predetermined threshold value is unsatisfactory for, again the target icon is write the executable file, until similarity meets predetermined threshold value then
Confirm that icon is updated successfully, further ensure that the accuracy that each icon updates, it is to avoid in icon renewal process, there are indivedual figures
Mark updates the problem of failure, and then quickly realizes the accurate renewal of a large amount of icons.
In an alternate embodiment of the present invention where, the replacement icon is preferably with identical with the target icon
Iconic format.The embodiment of the present invention, in order to subsequently be better achieved the similarity mode for replacing icon and the target icon, institute
State the icon file for icon being replaced with the target icon preferably with identical iconic format.Wherein, the image pane of icon
Formula includes:Size pixel and color.For example:RGB (32 color depths), 32x32 pixel size.
Intelligible, the replacement icon can also be with different iconic format from the target icon.
In order to embody the superiority of invention further, the renewal method of calibration of announcement icon of the present invention is another further below
One embodiment.In the renewal method of calibration of the icon of the embodiment of the present invention, step S12 is extracted in current executable file
Icon is replaced, specifically includes following steps:
Calling system api interface extracts the replacement icon in current executable file.
In order to accurately and rapidly realize replacing the extraction of icon in executable file, in the embodiment of the present invention, by calling
System api interface function realizes the extraction of the replacement icon in current executable file.Wherein, API:Application programming interfaces
(API:Application Program Interface) be one group of definition, program and agreement set, by api interface reality
Being in communication with each other between existing computer software.
In order to embody the superiority of invention further, the renewal method of calibration of announcement icon of the present invention is another further below
One embodiment.With reference to Fig. 3, in the renewal method of calibration of the icon of the embodiment of the present invention, step S13 is by the replacement icon
Similarity mode is carried out with the target icon, specifically include following steps:
S131, the replacement icon is decomposed, obtain described replacing the picture set that included of icon;
S132, by each picture in the picture set respectively Target Photo set corresponding with the target icon
Corresponding picture carry out the similarity mode of pixel.
In practical application, icon file be by the ICO file of the picture stacked combination such as multigroup .png or .jpg.Cause
This, in the present embodiment, when the replacement icon is carried out similarity mode with the target icon, first by replacing to described
Change icon to be decomposed, to obtain the picture set included by the replacement icon, then will be each in the picture set
The pictures such as picture, such as .png or .jpg, are carried out to the corresponding picture in the corresponding Target Photo set of the target icon respectively
The similarity mode of pixel, and then realization replacement icon carries out similarity mode with the target icon exactly.
Further, in step S132 by each picture in the picture set respectively with the target icon
Corresponding picture in corresponding Target Photo set carries out the similarity mode of pixel, specifically includes:
By the binary data of each picture in the picture set, target figure corresponding with the target icon respectively
The binary data of the corresponding picture in piece set carries out the similarity mode of pixel.
In practical application, the corresponding icon file of executable file is present in executable file in the form of binary data
Property data part.The embodiment of the present invention, by searching the property data part of executable file, obtains in picture set
The binary data of each picture, and obtain the binary number of corresponding picture in the corresponding Target Photo set of target icon
According to, by the binary data of each picture in the picture set, Target Photo collection corresponding with the target icon respectively
The binary data of the corresponding picture in conjunction carries out the similarity mode of pixel, and then quickly and accurately realizes replacing icon
Similarity mode is carried out with the target icon.
In order to embody the superiority of invention further, the renewal method of calibration of announcement icon of the present invention is another further below
One embodiment.With reference to Fig. 4, in the renewal method of calibration of the icon of the embodiment of the present invention, target icon is write by step S11
Executable file, specifically includes following steps:
S111, the source is searched in the property data fields of the executable file according to the data characteristics of icon file
Icon.
Wherein, the data characteristics of icon file described in the present embodiment includes file name and/or the file of icon file
Path.
Intelligible, in the present embodiment the data characteristics of icon file include but is not limited to icon file file name and
File path.Wherein, the file name of icon file, file path are only used for illustrating, and are not the number to icon file
Concrete restriction according to feature.
In the present embodiment, icon file has the data characteristics of itself, the file name including icon file and/or file
Path.And, in practical application, the corresponding icon file of executable file is present in executable text in the form of binary data
The property data part of part.The embodiment of the present invention pass through according to the file name of icon file and/or file path described can
The source icon is searched in the property data fields for executing file, in order to subsequently carry out icon renewal.
S112, the target icon is write source icon corresponding picture mark position in the executable file.
In the present embodiment, the source icon in executable file is found in the property data fields of the executable file
Afterwards, the target icon is write source icon corresponding picture mark position in the executable file, realizes target icon
Write.
The embodiment of the present invention, by the data characteristics according to icon file, e.g., file name and/or file path, in institute
The source icon is searched in the property data fields for stating executable file, and the target icon is write the source icon in institute
Corresponding picture mark position in executable file is stated, and then quickly and accurately realizes renewal and the verification of icon.
For embodiment of the method, in order to be briefly described, therefore which is all expressed as a series of combination of actions, but this area
Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention
Example, some steps using other orders or while can be carried out.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Fig. 5 diagrammatically illustrates the structural representation of the renewal calibration equipment of the icon of one embodiment of the invention.
With reference to Fig. 5, the renewal calibration equipment of the icon of the embodiment of the present invention specifically includes generation module 501, extraction module
502nd, matching module 503 and determination module 504, wherein:
Described generation module 501, is suitable to for target icon to write executable file, to generate in the executable file
The corresponding replacement icon of source icon.In the present embodiment, generation module 501 by target icon is write executable file, to replace
The position that source icon is located in the executable file is changed, is generated corresponding replacement of source icon in the executable file and schemes
Mark.Wherein, executable file includes but is not limited to .exe file .dll file etc., can be the executable file of application program,
Or system executable file.
Described extraction module 502, is suitable to extract the replacement icon in current executable file.
Described matching module 503, is suitable to for the replacement icon to carry out similarity mode with the target icon.This
In bright embodiment, by the replacement icon and the target icon to be carried out the similarity mode based on pixel, comparison diagram
Whether mark obtains target icon to be updated after replacing, and then realizes replacing the Inspection of icon and target icon.
Intelligible, icon file be by the ICO file of the picture stacked combination such as multigroup .png or .jpg, therefore,
When the replacement icon is carried out similarity mode with the target icon, the present embodiment passes through to replacing each of icon
The picture of layer .png or .jpg picture layer corresponding with target icon respectively carries out similarity mode, realizes replacing icon and target
The Inspection of icon.
Described determination module 504, it is the replacement icon and the mesh to be suitable to when the matching result of the matching module
When similarity between marking on a map meets predetermined threshold value, confirm that icon is updated successfully.
In an embodiment, the predetermined threshold value met required for the similarity between icon and target icon is replaced bigger, then
The renewal verification of icon is more accurate, but, it is updated to power accordingly and also accordingly can reduces.Therefore, the value of the predetermined threshold value
Can be configured according to the needs of concrete business, the present invention is not specifically limited to this.
The renewal calibration equipment of icon provided in an embodiment of the present invention, generation module 501 passes through can by target icon write
File generated is executed, the corresponding replacement icon of source icon in executable file is obtained, is extracted by extraction module 502 and can currently hold
Replacement icon in style of writing part, so that the replacement icon and target icon are carried out similarity mode by matching module 503, according to
Join result the renewal of icon is verified, the accuracy of icon renewal is improve, and then can quickly realize a large amount of icons
Accurately update.
In an alternate embodiment of the present invention where, as shown in fig. 6, the generation module 501, is further adapted for when the coupling
When the matching result of module is that the similarity that replaces between icon and the target icon is unsatisfactory for predetermined threshold value, again will
The target icon writes the executable file.
The renewal calibration equipment of icon provided in an embodiment of the present invention, generation module 501 passes through can by target icon write
Execute file generated, obtain the corresponding replacement icon of source icon in executable file, matching module 503 and by the replacement icon with
Target icon carries out similarity mode, the renewal of icon is verified according to matching result, and when replace icon with described
Similarity between target icon is unsatisfactory for predetermined threshold value, and generation module 501 will can be held described in target icon write again
Until similarity meets predetermined threshold value, style of writing part, then confirms that icon is updated successfully, further ensure that each icon updates accurate
Property, it is to avoid there is a problem of in icon renewal process that individual icon updates failure, and then quickly realize a large amount of icons accurately more
Newly.
In an alternate embodiment of the present invention where, the replacement icon has identical chart scale with the target icon
Formula.The embodiment of the present invention, in order to subsequently be better achieved the similarity mode for replacing icon and the target icon, the replacement
Icon is preferably the icon file with identical iconic format with the target icon.Wherein, the picture format of icon includes:
Size pixel and color.For example:RGB (32 color depths), 32x32 pixel size.
Intelligible, the replacement icon can also be with different iconic format from the target icon.
In an alternate embodiment of the present invention where, the extraction module 502, is particularly adapted to calling system api interface and carries
Take the replacement icon in current executable file.In order to accurately and rapidly realize replacing the extraction of icon in executable file, this
In inventive embodiments, extraction module 502 realizes the replacement icon in current executable file by calling system api interface function
Extraction.Wherein, API:Application programming interfaces (API:Application Program Interface) it is one group of definition, journey
Sequence and the set of agreement, realize being in communication with each other between computer software by api interface.
In order to embody the superiority of the present invention further, disclosed in the renewal calibration equipment of icon of the present invention further below
The internal structure schematic diagram of matching module 503, embodies the details of another embodiment that realizes according to matching module 503.Reference
Fig. 7, matching module 503 further include resolving cell 5031 and matching unit 5032, wherein:
Described resolving cell 5031, is suitable to decompose the replacement icon, obtains the replacement icon and included
Picture set;
Described matching unit 5032, be suitable to by each picture in the picture set respectively with the target icon pair
Corresponding picture in the Target Photo set that answers carries out the similarity mode of pixel.
Further, the matching unit 5032, is particularly adapted to the binary system of each picture in the picture set
Data, carry out pixel to the binary data of the corresponding picture in the corresponding Target Photo set of the target icon respectively
Similarity mode.
In practical application, the corresponding icon file of executable file is present in executable file in the form of binary data
Property data part.The embodiment of the present invention, by searching the property data part of executable file, obtains in picture set
The binary data of each picture, and obtain the binary number of corresponding picture in the corresponding Target Photo set of target icon
According to, matching unit 5032 by the binary data of each picture in the picture set, corresponding with the target icon respectively
Target Photo set in the binary data of corresponding picture carry out the similarity mode of pixel, and then quickly and accurately
Realizing replacement icon carries out similarity mode with the target icon.
In order to embody the superiority of the present invention further, disclosed in the renewal calibration equipment of icon of the present invention further below
The internal structure schematic diagram of generation module 501, embodies the details of another embodiment that realizes according to generation module 501.Reference
Fig. 8, generation module 501 further include searching unit 5011 and writing unit 5012, wherein:
Described searching unit 5011, is suitable to the attribute number in the executable file according to the data characteristics of icon file
According to searching the source icon in field;Wherein, the data characteristics of icon file described in the present embodiment includes the text of icon file
Part title and/or file path.
Intelligible, in the present embodiment the data characteristics of icon file include but is not limited to icon file file name and
File path.Wherein, the file name of icon file, file path are only used for illustrating, and are not the number to icon file
Concrete restriction according to feature.
In the present embodiment, icon file has the data characteristics of itself, the file name including icon file and/or file
Path.And, in practical application, the corresponding icon file of executable file is present in executable text in the form of binary data
The property data part of part.In the embodiment of the present invention, searching unit 5011 passes through file name and/or the text according to icon file
The source icon is searched in part path in the property data fields of the executable file, in order to subsequently carry out icon renewal.
Described writing unit 5012, is suitable to for the target icon to write the source icon in the executable file
Corresponding picture mark position.
In the present embodiment, searching unit 5011 finds executable text in the property data fields of the executable file
After source icon in part, it is corresponding in the executable file that the target icon is write the source icon by writing unit 5012
Picture mark position, realize the write of target icon.
The embodiment of the present invention, searching unit 5011 pass through according to the data characteristics of icon file, e.g., file name and/or
File path, searches the source icon in the property data fields of the executable file, and will by writing unit 5012
The target icon writes source icon corresponding picture mark position in the executable file, and then quickly and accurately real
The renewal of existing icon and verification.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related
Part is illustrated referring to the part of embodiment of the method.
The renewal method of calibration of icon provided in an embodiment of the present invention and device, by can perform text by target icon write
Part is generated, and is obtained the corresponding replacement icon of source icon in executable file, and the replacement icon and target icon is carried out similar
Degree coupling, verifies to the renewal of icon according to matching result, improves the accuracy of icon renewal, and then can be quickly real
The now accurate renewal of a large amount of icons.
Algorithm is not inherently related to any certain computer, virtual system or miscellaneous equipment with display provided herein.
Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description that above language-specific is done be in order to disclose this
Bright preferred forms.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure helping understand one or more in each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor
The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module in embodiment or list
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can identical by offers, be equal to or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments
Including some features rather than further feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment required for protection any it
One can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) are realizing in gateway according to embodiments of the present invention, proxy server, system
Some or all parts some or all functions.The present invention is also implemented as executing side as described herein
Some or all equipment of method or program of device (for example, computer program and computer program).Such
The program for realizing the present invention can be stored on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and be obtained, or provide on carrier signal, or with any other shape
Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol Wei Yu bracket between should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
Existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The present invention provides following technical proposal:
A1, a kind of renewal method of calibration of icon, including:
Target icon is write executable file, to generate the corresponding replacement icon of source icon in the executable file;
Extract the replacement icon in current executable file;
The replacement icon is carried out similarity mode with the target icon;
If the similarity that replaces between icon and the target icon meets predetermined threshold value, confirm that icon is updated to
Work(.
A2, the method according to A1, also include:
If the similarity that replaces between icon and the target icon is unsatisfactory for predetermined threshold value, again by the mesh
Mark on a map and write the executable file.
A3, the method according to A1 or 2, the replacement icon have identical iconic format with the target icon.
A4, the method according to any one of A1-3, the replacement icon in the current executable file of the extraction include:
Calling system api interface extracts the replacement icon in current executable file.
A5, the method according to any one of A1-4, described by described replacement icon carry out to the target icon similar
Degree coupling includes:
The replacement icon is decomposed, obtains the picture set included by the replacement icon;
By the phase in each picture in the picture set respectively Target Photo set corresponding with the target icon
Picture is answered to carry out the similarity mode of pixel.
A6, the method according to A5, each picture by the picture set respectively with the target icon
Corresponding picture in corresponding Target Photo set carries out the similarity mode of pixel, including:
By the binary data of each picture in the picture set, target figure corresponding with the target icon respectively
The binary data of the corresponding picture in piece set carries out the similarity mode of pixel.
A7, the method according to any one of A1-6, described target icon is write executable file, including:
Data characteristics according to icon file searches the source icon in the property data fields of the executable file;
The target icon is write source icon corresponding picture mark position in the executable file.
A8, the method according to A7, the data characteristics of the icon file include the file name of icon file and/or
File path.
B9, a kind of renewal calibration equipment of icon, including:
Generation module, is suitable to for target icon to write executable file, to generate source icon pair in the executable file
The replacement icon that answers;
Extraction module, is suitable to extract the replacement icon in current executable file;
Matching module, is suitable to for the replacement icon to carry out similarity mode with the target icon;
Determination module, is suitable to when the matching result of the matching module is between the replacement icon and the target icon
Similarity when meeting predetermined threshold value, confirm that icon is updated successfully.
B10, the device according to B9, the generation module, it is institute to be further adapted for when the matching result of the matching module
When stating the similarity that replaces between icon and the target icon predetermined threshold value is unsatisfactory for, again the target icon is write institute
State executable file.
B11, the device according to B9 or 10, the replacement icon have identical chart scale with the target icon
Formula.
B12, the device according to any one of B9-11, the extraction module, it is particularly adapted to calling system api interface and carries
Take the replacement icon in current executable file.
B13, the device according to any one of B9-12, the matching module, including:
Resolving cell, is suitable to decompose the replacement icon, obtains the picture set included by the replacement icon;
Matching unit, is suitable to the target figure corresponding with the target icon respectively of each picture in the picture set
Corresponding picture in piece set carries out the similarity mode of pixel.
B14, the device according to B13, the matching unit, it is particularly adapted to each picture in the picture set
Binary data, carry out to the binary data of the corresponding picture in the corresponding Target Photo set of the target icon respectively
The similarity mode of pixel.
C15, the device according to any one of C9-14, the generation module, including:
Searching unit, is suitable to be looked in the property data fields of the executable file according to the data characteristics of icon file
Look for the source icon;
Writing unit, is suitable to for the target icon to write source icon corresponding icon in the executable file
Position.
C16, the device according to C15, the data characteristics of the icon file include the file name of icon file and/
Or file path.
Claims (10)
1. the renewal method of calibration of a kind of icon, including:
Target icon is write executable file, to generate the corresponding replacement icon of source icon in the executable file;
Extract the replacement icon in current executable file;
The replacement icon is carried out similarity mode with the target icon;
If the similarity that replaces between icon and the target icon meets predetermined threshold value, confirm that icon is updated successfully.
2. method according to claim 1, also includes:
If the similarity that replaces between icon and the target icon is unsatisfactory for predetermined threshold value, again by the target figure
The mark write executable file.
3. method according to claim 1 and 2, the replacement icon have identical chart scale with the target icon
Formula.
4. the method according to any one of claim 1-3, the replacement icon in the current executable file of the extraction include:
Calling system api interface extracts the replacement icon in current executable file.
5. the replacement icon described is carried out phase with the target icon by the method according to any one of claim 1-4
Include like degree coupling:
The replacement icon is decomposed, obtains the picture set included by the replacement icon;
By each picture in the picture set respectively to the corresponding figure in the corresponding Target Photo set of the target icon
Piece carries out the similarity mode of pixel.
6. method according to claim 5, each picture by the picture set respectively with the target figure
Marking the corresponding picture in corresponding Target Photo set carries out the similarity mode of pixel, including:
By the binary data of each picture in the picture set, Target Photo collection corresponding with the target icon respectively
The binary data of the corresponding picture in conjunction carries out the similarity mode of pixel.
7. the method according to any one of claim 1-6, described target icon is write executable file, including:
Data characteristics according to icon file searches the source icon in the property data fields of the executable file;
The target icon is write source icon corresponding picture mark position in the executable file.
8. method according to claim 7, the data characteristics of the icon file include the file name of icon file and/
Or file path.
9. the renewal calibration equipment of a kind of icon, including:
Generation module, is suitable to for target icon to write executable file, corresponding to generate source icon in the executable file
Replace icon;
Extraction module, is suitable to extract the replacement icon in current executable file;
Matching module, is suitable to for the replacement icon to carry out similarity mode with the target icon;
Determination module, it is the phase that replaces between icon and the target icon to be suitable to when the matching result of the matching module
When predetermined threshold value is met like degree, confirm that icon is updated successfully.
10. device according to claim 9, the generation module, be further adapted for when the matching result of the matching module be
When the similarity that replaces between icon and the target icon is unsatisfactory for predetermined threshold value, again the target icon is write
The executable file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610857604.7A CN106484226A (en) | 2016-09-27 | 2016-09-27 | The renewal method of calibration of icon and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610857604.7A CN106484226A (en) | 2016-09-27 | 2016-09-27 | The renewal method of calibration of icon and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106484226A true CN106484226A (en) | 2017-03-08 |
Family
ID=58268241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610857604.7A Pending CN106484226A (en) | 2016-09-27 | 2016-09-27 | The renewal method of calibration of icon and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484226A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019037471A1 (en) * | 2017-08-24 | 2019-02-28 | 中兴通讯股份有限公司 | Video processing method, video processing device and terminal |
CN109710125A (en) * | 2018-10-29 | 2019-05-03 | 努比亚技术有限公司 | A kind of application control method, terminal and computer readable storage medium |
CN112416193A (en) * | 2020-11-12 | 2021-02-26 | 潘翠连 | Application service monitoring system and method based on big data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424107A (en) * | 2013-09-03 | 2015-03-18 | 北京谊安医疗系统股份有限公司 | Reliable storage method and reliable storage device for calibration data of anaesthesia machine |
CN105138318A (en) * | 2015-07-27 | 2015-12-09 | 深圳市万普拉斯科技有限公司 | Application icon updating method and apparatus |
CN105260081A (en) * | 2015-10-16 | 2016-01-20 | 上海卓易科技股份有限公司 | Icon processing method and apparatus |
CN105701834A (en) * | 2016-02-26 | 2016-06-22 | 努比亚技术有限公司 | Picture automatic backup device and method |
-
2016
- 2016-09-27 CN CN201610857604.7A patent/CN106484226A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424107A (en) * | 2013-09-03 | 2015-03-18 | 北京谊安医疗系统股份有限公司 | Reliable storage method and reliable storage device for calibration data of anaesthesia machine |
CN105138318A (en) * | 2015-07-27 | 2015-12-09 | 深圳市万普拉斯科技有限公司 | Application icon updating method and apparatus |
CN105260081A (en) * | 2015-10-16 | 2016-01-20 | 上海卓易科技股份有限公司 | Icon processing method and apparatus |
CN105701834A (en) * | 2016-02-26 | 2016-06-22 | 努比亚技术有限公司 | Picture automatic backup device and method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019037471A1 (en) * | 2017-08-24 | 2019-02-28 | 中兴通讯股份有限公司 | Video processing method, video processing device and terminal |
CN109710125A (en) * | 2018-10-29 | 2019-05-03 | 努比亚技术有限公司 | A kind of application control method, terminal and computer readable storage medium |
CN112416193A (en) * | 2020-11-12 | 2021-02-26 | 潘翠连 | Application service monitoring system and method based on big data |
CN112416193B (en) * | 2020-11-12 | 2023-03-31 | 信翼博达科技(深圳)有限公司 | Application service monitoring system and method based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111310934B (en) | Model generation method and device, electronic equipment and storage medium | |
US10698571B2 (en) | Behavior feature use in programming by example | |
CN104536744A (en) | Method and server for automatically building and deploying codes | |
US10877846B2 (en) | Performing a closure merge operation | |
US9996527B1 (en) | Supporting interactive text mining process with natural language and dialog | |
US20150301806A1 (en) | Tentative program code in an editor | |
US20180024912A1 (en) | Application Testing System and Method | |
CN106484226A (en) | The renewal method of calibration of icon and device | |
CN110806873A (en) | Target control determining method and device, electronic equipment and storage medium | |
CN116406459A (en) | Code processing method, device, equipment and medium | |
CN105095464A (en) | Method and device for detecting retrieval system | |
CN111813649A (en) | Automatically generating integration tests from unit tests | |
CN104572439A (en) | Regression alert method and system | |
US10606580B2 (en) | Cognitive identification of related code changes | |
CN111061522B (en) | Method, device, equipment and storage medium for generating front-end card assembly based on back end | |
CN109032696A (en) | A kind of page tune method, terminal and computer storage medium | |
CN105786888A (en) | Method and system for generating shortcut option as well as electronic equipment | |
CN102043855B (en) | Method and system for integrating configuration management and defect management | |
CN109240696A (en) | A kind of Oftware updating method and device | |
WO2016053298A1 (en) | Evaluating documentation coverage | |
US8495050B2 (en) | Identifying universal resource locator rewriting rules | |
US20160103811A1 (en) | Enhanced documentation validation | |
US10789208B2 (en) | Dependency mapping in a database environment | |
CN102402598A (en) | Application file system access | |
CN111026438B (en) | Method, device, equipment and medium for extracting small program package and page key information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |
|
RJ01 | Rejection of invention patent application after publication |