CN110059214A - A kind of image resource processing method and processing device - Google Patents

A kind of image resource processing method and processing device Download PDF

Info

Publication number
CN110059214A
CN110059214A CN201910258536.6A CN201910258536A CN110059214A CN 110059214 A CN110059214 A CN 110059214A CN 201910258536 A CN201910258536 A CN 201910258536A CN 110059214 A CN110059214 A CN 110059214A
Authority
CN
China
Prior art keywords
image resource
resource
image
title
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.)
Granted
Application number
CN201910258536.6A
Other languages
Chinese (zh)
Other versions
CN110059214B (en
Inventor
刘海军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910258536.6A priority Critical patent/CN110059214B/en
Publication of CN110059214A publication Critical patent/CN110059214A/en
Application granted granted Critical
Publication of CN110059214B publication Critical patent/CN110059214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of image resource processing method and processing device, this method comprises: the resource file in scanner program file, obtains the image resource set in the resource file;Extract the fisrt feature information of each image resource in described image resource collection;The code file in described program file is scanned, the image resource reference information in the code file is obtained, wherein described image quoting resource information is used to indicate image resource cited in the code file;According to described image quoting resource information, the second feature information for the image resource quoted in the code file is obtained;The title of image resource cited in the title and the code file of image resource each in described image resource collection is matched respectively, obtains the use information of image resource in the resource file.The image resource processing method provided through the invention, can be improved the efficiency of the use information of determining image resource.

Description

A kind of image resource processing method and processing device
Technical field
The present invention relates to field of computer technology more particularly to a kind of image resource processing method and processing devices.
Background technique
Currently, after completing program file (for example, application program (Application, referred to as App) file) exploitation, It generally requires using after optimizing program file, for example, some image resources being not used by program file are deleted, To reduce the size of program file.
However in the prior art, in determining program file during the service condition of image resource, for program Each image resource in file, is required to a time program file of scanning, and efficiency is lower.For example, passing through Find command lookup " * .png ", the image resource of the formats such as " * .jpg ", and all image resources found are traversed, each image resource is executed Ack order, if output is sky, it is determined that the image resource is the image resource being not used by.
As it can be seen that the problem that the efficiency that the service condition of image resource in determining program file exists in the prior art is lower.
Summary of the invention
The present invention provides a kind of image resource processing method and processing device, to solve to determine that image resource makes in program file With the lower problem of the efficiency of situation.
In a first aspect, the present invention provides a kind of image resource processing methods, this method comprises:
Resource file in scanner program file obtains the image resource set in the resource file;
Extract the fisrt feature information of each image resource in described image resource collection, wherein the fisrt feature letter Breath includes at least the title of image resource;
The code file in described program file is scanned, the image resource reference information in the code file is obtained, In, described image quoting resource information is used to indicate image resource cited in the code file;
According to described image quoting resource information, the second feature letter for the image resource quoted in the code file is obtained Breath, wherein the second feature information includes at least the title for the image resource quoted in the code file;
Respectively by figure cited in the title and the code file of image resource each in described image resource collection As the title of resource is matched, the use information of image resource in the resource file is obtained.
Second aspect, the present invention also provides a kind of image resource processing unit, which includes:
First scan module obtains the image money in the resource file for the resource file in scanner program file Source set;
Extraction module, for extracting the fisrt feature information of each image resource in described image resource collection, wherein institute State the title that fisrt feature information includes at least image resource;
Second scan module obtains the figure in the code file for scanning the code file in described program file As quoting resource information, wherein described image quoting resource information is used to indicate image money cited in the code file Source;
Module is obtained, for according to described image quoting resource information, obtaining the image quoted in code file money The second feature information in source, wherein the second feature information includes at least the image resource quoted in the code file Title;
Matching module, for respectively by the title and the code file of image resource each in described image resource collection In the title of cited image resource matched, obtain the use information of image resource in the resource file.
The third aspect the present invention also provides a kind of electronic equipment, including processor, memory and is stored in the memory Computer program that is upper and can running on the processor, the computer program is realized above-mentioned when being executed by the processor Image resource processing method the step of
Fourth aspect, the present invention also provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with computer program, the computer program realizes the step of above-mentioned image resource processing method when being executed by processor Suddenly.
In the embodiment of the present invention, provided by extracting each image from the image resource set scanned in resource file The title for each image resource quoted in the title and code file in source, and by image resource each in image resource set The title of cited image resource is matched in title and code file, to obtain the use of image resource in resource file Information, compared with the prior art in for each image resource in program file be required to scanning a time program file, with The use information of image resource into resource file, not only efficiency is higher, can also improve the use letter of determining image resource The accuracy of breath.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described.
Fig. 1 is the flow chart of image resource processing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart for the image resource processing method that further embodiment of this invention provides;
Fig. 3 is the structure chart of image resource processing unit provided in an embodiment of the present invention;
Fig. 4 is the structure chart for the image resource processing unit that further embodiment of this invention provides;
Fig. 5 is the structure chart for the image resource processing unit that further embodiment of this invention provides;
Fig. 6 is the structure chart of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
The embodiment of the present invention provides a kind of image resource processing method.It is provided in an embodiment of the present invention referring to Fig. 1, Fig. 1 The flow chart of image resource processing method, as shown in Figure 1, comprising the following steps:
Resource file in step 101, scanner program file obtains the image resource set in the resource file.
In the present embodiment, above procedure file can be the data packet of the program based on the exploitation of any development language, for example, The data packet of application program based on XCode exploitation.Above procedure file may include resource file and code file etc..Its In, above-mentioned resource file may include image resource (for example, still image resource and/or dynamic image resource etc.), character string Resource (for example, textual resources), object data etc., above-mentioned code file may include in source code, static library and dynamic base etc. One or it is multinomial.
In the step, entire program file can be scanned and obtain the image resource set in resource file, be also possible to only Resource file in scanner program file obtains the image resource set in resource file.It should be noted that above-mentioned image money Each image resource in the set of source can be indicated by the expression information of image resource, for example, character string "/XXX/ XXX/XXX/aaa.imageset " can be used to indicate that image resource aaa, wherein "/XXX/XXX/XXX/ " indicates image resource Path, above-mentioned " aaa " indicate image resource title, and " imageset " indicates the suffix of image resource.
For example, the image resource to end up in resource file with " imageset ", " jpg ", " gif " or " png " can be scanned, Obtain image resource list.Wherein, above-mentioned image resource list can be as follows:
/XXX/XXX/XXX/aaa.imageset;
/ XXX/XXX/XXX/bbb@2x~YYY.jpg;
/ XXX/XXX/XXX/bbb@3x~YYY.jpg;
/XXX/XXX/XXX/ccc.png。
Wherein, above-mentioned "/XXX/XXX/XXX/ " indicates image resource path, and above-mentioned " aaa ", " bbb " and " ccc " indicates figure As resource name, above-mentioned " 2x ", " 3x " indicate image resource resolution ratio, and above-mentioned " YYY " indicates platform parameters.
Step 102, the fisrt feature information for extracting each image resource in described image resource collection, wherein described the One characteristic information includes at least the title of image resource.
In the present embodiment, above-mentioned fisrt feature information may include the title of image resource.In addition to this, above-mentioned first is special Reference breath can also include one in path, resolution ratio and size etc. of image resource or multinomial.
In practical application, the expression information of each image resource generally includes the information compared with polymorphic type, for example, path, after Sew, resolution information etc..Optionally, for each image resource in image resource set, removal image resource can be passed through It indicates some information in information, obtains the title of image resource.For example, following steps a to step c can be used, extract every The title of a image resource:
Step a, the path in the expression information of image resource and suffix are removed, the first information is obtained.
For example, removing path for/XXX/XXX/XXX/bbb@2x~YYY.jpg and suffix obtaining later: bbb@2x~ YYY。
Step b, the platform parameters in the first information are removed, the second information is obtained.
For example, after removing platform parameters, obtaining bbb@2x for bbb@2x~YYY.
Step c, the resolution information in the second information is removed.
For example, after removing resolution information, obtaining the title of bbb namely image resource for bbb@2x.
Optionally, for each image resource in image resource set, the present embodiment can also pass through the canonical table of building It is matched up to formula, the title of image resource is extracted directly from the expression information of image resource.
Code file in step 103, scanning described program file obtains the image resource reference in the code file Information, wherein described image quoting resource information is used to indicate image resource cited in the code file.
In the present embodiment, above-mentioned code file may include source code.Optionally, above-mentioned code file can also include quiet At least one of in state library and dynamic base etc..
Above-mentioned image resource reference information can serve to indicate that image resource cited in code file, for example, above-mentioned Image resource reference information can be the character string that image resource is quoted in source code.Wherein, above-mentioned code file quotes image Resource can refer to the reference such as path that image resource is written in code file image resource.
In practical application, for different types of code file, image can be extracted using different feature extraction modes Quoting resource information.For example, be the source code of " m " for suffix, can be using regular expression "@" (.*?) " " extract figure As quoting resource information;For suffix be " swift " source code, can using regular expression " " (.*?) " " extract figure As quoting resource information;It is the source code of " storyboard " for suffix, regular expression " image name can be used =" (.+ ?) " " extract image resource reference information;It is the source code of " js " for suffix, regular expression can be used " [" '] (.* ?) [" '] " extract image resource reference information;It is the static library of " a " for suffix, " strings " can be used Character string (i.e. string) type character is extracted in order, to obtain image resource reference information;It is " framework " for suffix Dynamic base, can using " strings " order extract character string (i.e. string) type character, with obtain image resource reference Information.
Step 104, according to described image quoting resource information, obtain the of the image resource quoted in the code file Two characteristic informations, wherein the second feature information includes at least the title for the image resource quoted in the code file.
In the present embodiment, above-mentioned second feature information may include the title for the image resource quoted in code file.It removes Except this, above-mentioned second feature information can also include reference position and the reference number for the image resource quoted in code file One in or multinomial.
Optionally, the name for each image resource quoted in code file can be obtained according to above-mentioned steps a to step c Claim, namely remove path, suffix, platform parameters and the resolution information etc. in each image resource reference information respectively, obtains The title for each image resource quoted in code file;It can also be by the regular expression of building, directly from image resource The title of image resource is extracted in reference information.
Step 105, respectively by institute in the title and the code file of image resource each in described image resource collection The title of the image resource of reference is matched, and the use information of image resource in the resource file is obtained.
In the present embodiment, it will can be drawn in the title and code file of image resource each in image resource set respectively The title of image resource is matched, to determine the use information of each image resource in image resource set, wherein on The use information for stating image resource may include that image resource is used, image resource is not used by may be made with image resource It is with one in equal or multinomial.
For example, can by the title of title in image resource set and image resource cited in code file equal not phases Same image resource is determined as the image resource being not used by, for example, the title of the image resource in image resource set includes Aaa, the title of cited image resource does not include aaa in code file, then can determine that image resource aaa is to be not used by Image resource.
For another example can be by least one in image resource cited in title in image resource set and code file The identical image resource of the title of image resource is determined as the image resource used, for example, the image in image resource set The title of resource includes bbb, and the title of cited image resource also includes bbb in code file, then can determine that image provides Source bbb is the image resource used.
For another example can be by image resource cited in the partial content of title in image resource set and code file In the identical image resource of title of at least one image resource be determined as the image resource being likely to be used, for example, image provides The title of image resource in the set of source includes bbbc, and the title of cited image resource includes bbb in code file, then may be used To determine that image resource bbbc is the image resource being likely to be used.
The image resource processing method of the embodiment of the present invention, by extracting the image resource scanned from resource file The title for each image resource quoted in the title and code file of each image resource in set, and by image resource set In each image resource title and code file in the title of cited image resource matched, to obtain resource file The use information of middle image resource, compared with the prior art in scanning one is required to for each image resource in program file All over program file, to obtain the use information of image resource in resource file, not only efficiency is higher, can also improve identified The accuracy of the use information of image resource.
Referring to fig. 2, Fig. 2 is the flow chart of image resource processing method provided in an embodiment of the present invention.The embodiment of the present invention Difference with a upper embodiment, which essentially consists in, further limits above-mentioned steps 105.It is described respectively during the present invention is implemented In described image resource collection the title of image resource cited in the title of each image resource and the code file into Row matching, obtains the use information of image resource in the resource file, comprising: each figure in traversal described image resource collection It is matched as the title of resource, and with the title of image resource cited in the code file;By described image resource First object image resource in set is determined as the image resource being not used by;Wherein, the first object image resource packet The image resource that the title of image resource cited in title and the code file is all different is included, or including in title Predetermined fraction and the code file in cited image resource the image resource that is all different of title.
As shown in Fig. 2, image resource processing method provided in an embodiment of the present invention the following steps are included:
Resource file in step 201, scanner program file obtains the image resource set in the resource file.
The step can be with above-mentioned steps 101, and to avoid repeating, this will not be repeated here.
Step 202, the fisrt feature information for extracting each image resource in described image resource collection, wherein described the One characteristic information includes at least the title of image resource.
The step can be with above-mentioned steps 102, and to avoid repeating, this will not be repeated here.
Code file in step 203, scanning described program file obtains the image resource reference in the code file Information, wherein described image quoting resource information is used to indicate image resource cited in the code file.
The step can be with above-mentioned steps 103, and to avoid repeating, this will not be repeated here.
Step 204, according to described image quoting resource information, obtain the of the image resource quoted in the code file Two characteristic informations, wherein the second feature information includes at least the title for the image resource quoted in the code file.
The step can be with above-mentioned steps 104, and to avoid repeating, this will not be repeated here.
Step 205, traversal described image resource collection in each image resource title, and with institute in the code file The title of the image resource of reference is matched.
The present embodiment can traverse the title of each image resource in image resource collection, and respectively and in code file The title of cited image resource is matched.
For example, mode can be searched in sequence, by the title of image resource each in image resource set, respectively with generation The title of cited each image resource is compared in code file.
It should be noted that the title of image resource cited in code file includes splicing symbol (for example, %@, % S, %d etc.) in the case where, the splicing symbol in the title of cited image resource can be removed in code file, with image The title of image resource in resource collection is matched, to improve the accuracy of matching result.
First object image resource in described image resource collection is determined as the image being not used by money by step 206 Source, wherein the first object image resource includes that title and the title of image resource cited in the code file are equal Different image resource, or the name including predetermined fraction and image resource cited in the code file in title Claim the image resource being all different.
In the present embodiment, above-mentioned first object image resource can be image resource cited in title and code file The image resource that is all different of title.For example, in image resource set a certain image resource entitled aaa, and code is literary The title of cited image resource includes bbb and ccc in part, it can thus be appreciated that institute in the title and code file of the image resource The title of the image resource of reference is all different.
Above-mentioned predetermined fraction can be rationally arranged according to actual needs, for example, the top N in title, wherein N is Positive integer, N are less than title total length and are greater than or equal to the 1/2 of title total length.
In practical application, the title of the image resource in image resource collection can be traversed, for each image resource Title, if can first search in the title of a image resource cited in code file the length is M with the presence or absence of the M The title of position can then remove last position in M title if it does not exist, and cited in searching in code file It whether there is the M-1 title in the title of image resource, and if it exists, the image resource can be marked to be likely to be used Otherwise image resource continues removal one and is compared, until the digit removed is greater than or equal to M/2, stops comparing, and mark Remember that the image resource is the image resource being not used by.
The embodiment of the present invention is by by image cited in title in described image resource collection and the code file The predetermined fraction and image cited in the code file in image resource or title that the title of resource is all different The image resource that the title of resource is all different is determined as the image resource being not used by, and identified be not used by can be improved Image resource accuracy.
Optionally, described respectively will be in the title and the code file of image resource each in described image resource collection The title of cited image resource is matched, and the use information of image resource in the resource file is obtained, and can also be wrapped It includes at least one following:
The second target image resource in described image resource collection is determined as the image resource used;Wherein, institute Stating the second target image resource includes at least one image resource in image resource cited in title and the code file The identical image resource of title;
Third target image resource in described image resource collection is determined as the image resource being likely to be used;Its In, the third target image resource includes in image resource cited in predetermined fraction in title and the code file The identical image resource of the title of at least one image resource.
It, can be in image resource that will be cited in title in image resource set and the code file in the present embodiment The identical image resource of the title of at least one image resource, is determined as the image resource used.
For example, in image resource set a certain image resource entitled aaa, and image money cited in code file The title in source includes aaa, bbb and ccc, due to one in image resource cited in the title and code file of the image resource The title of image resource is identical, can determine that the image resource is the image resource used at this time.
Optionally, the present embodiment can also by image resource set in title predetermined fraction and the code file in The identical image resource of the title of at least one image resource in cited image resource, is determined as the image being likely to be used Resource.Wherein, above-mentioned predetermined fraction can be rationally arranged according to actual needs, for example, the top N in title, wherein N For positive integer, N is less than title total length and is greater than or equal to the 1/2 of title total length.
For example, in image resource set a certain image resource entitled aaac, and image cited in code file The title of resource includes aaa, bbb and ccc, due to cited in the predetermined fraction and code file of the title of the image resource An image resource is identical in image resource, can determine that the image resource is the image resource being likely to be used at this time.
The present embodiment by by image resource cited in title in image resource set and the code file extremely The identical image resource of title of a few image resource, is determined as the image resource used, and/or will provide image At least one image resource in cited image resource in predetermined fraction and the code file in the set of source in title The identical image resource of title, is determined as the image resource being likely to be used, so as to improve making for more image resources It is for reference with information, to optimize program file.
Optionally, the fisrt feature information further includes the attribute information of image resource in described image resource collection, institute It states the title of image resource and attribute information in image resource set and is stored as the first dictionary, wherein described image resource collection The name of middle image resource is referred to as the key of first dictionary, the attribute information conduct of image resource in described image resource collection The value of first dictionary;
The second feature information further includes the attribute information for the image resource quoted in the code file, the code The title and attribute information for the image resource quoted in file are stored as the second dictionary, wherein quote in the code file The name of image resource is referred to as the key of second dictionary, the attribute information conduct for the image resource quoted in the code file The value of second dictionary.
In the present embodiment, the attribute information of image resource in above-mentioned image resource set, may include the road of image resource Diameter, size etc..The attribute information for the image resource quoted in above-mentioned code file may include the reference position of image resource, draw With number etc..
The search speed of usual dictionary is very fast, and in order to improve search speed, the present embodiment can be by described image resource set The title of image resource and attribute information are stored as the first dictionary in conjunction, wherein image resource in described image resource collection Name is referred to as the key of first dictionary, and the attribute information of image resource is as first dictionary in described image resource collection Value;The title for the image resource quoted in code file and attribute information can also be stored as the second dictionary, wherein described The name for the image resource quoted in code file is referred to as the key of second dictionary, the image money quoted in the code file Value of the attribute information in source as second dictionary.
For example, above-mentioned first dictionary may include following key-value pair:
Aaa:/XXX/XXX/XXX/aaa.imageset;
Bbb:/XXX/XXX/XXX/bbb@2x~iphone.jpg;
Ccc:/XXX/XXX/XXX/ccc.png.
Above-mentioned second dictionary may include following key-value pair:
Aaa:/XXX/XXX/XXX/xxx.m;
Ddd:/XXX/XXX/XXX/yyy.js;
Ccc:/XXX/XXX/XXX/zzz.a.
In practical application, the key stored in the first dictionary namely the image resource in image resource set can be traversed Title, and search and whether there is the key in the second dictionary, and if it exists, it can then determine that the image resource is the image money used Source;Otherwise it can determine that the image resource is the image resource being not used by, or remove last position in the key, and search With the presence or absence of the key after one is removed in second dictionary, then determine that the image resource is the image resource that possible use if it exists, Otherwise it can continue to remove one of the key, until the digit removed is greater than or equal to the half of the key length, stop ratio Compared with, and marking the image resource is the image resource being not used by.
The present embodiment is by being stored as the first word for the title of image resource and attribute information in described image resource collection Allusion quotation, the title and attribute information for the image resource quoted in the code file are stored as the second dictionary, due to dictionary lookup speed Degree is very fast, can be further reduced and search the time, improves the efficiency for determining the use information of image resource in resource file.
Optionally, described respectively will be in the title and the code file of image resource each in described image resource collection The title of cited image resource is matched, and is obtained in the resource file after the use information of image resource, described Method can also include:
The 4th target image resource is deleted from the resource file;Wherein, the 4th target image resource is described It is determined as the image resource being not used by image resource set.
For example, the image resource for being marked as being not used by can be traversed, and according to its corresponding expression information (for example,/ XXX/XXX/XXX/bbb@2x~iphone.jpg) delete the image resource.
The present embodiment can be automatically deleted the image resource for being determined as being not used by above-mentioned resource file, can not only subtract The size of few program file, can also save user's operation.
Optionally, described respectively will be in the title and the code file of image resource each in described image resource collection The title of cited image resource is matched, and is obtained in the resource file after the use information of image resource, described Method can also include:
Show the use information and attribute information of the 5th target image resource;
Wherein, the 5th target image resource, which includes at least, in described image resource collection is determined as being likely to be used Image resource, the attribute information of the 5th target image resource include at least the 5th target image resource size and/ Or position.
In the present embodiment, the use for the image resource for being determined as being likely to be used in described image resource collection can be shown Information and attribute information.The attribute information of above-mentioned 5th target image resource may include the size of the 5th target image resource The position and/or.Wherein, the position of above-mentioned 5th target image resource may include the 5th target image resource present position (example Such as, the path of the 5th target image resource) and reference position (for example, quote the code file of the 5th target image resource Path) etc..
In practical application, by the use information for being determined as the image resource being likely to be used in display image resource set And attribute information, with for reference, convenient for helping whether user's decision needs to delete the figure for being confirmed as being likely to be used As resource.
It should be noted that the present embodiment can also show the image resource for being determined as being used in image resource set Use information and attribute information.
The embodiment of the present invention is illustrated below in conjunction with example:
Specifically, image processing method provided in an embodiment of the present invention includes the following steps:
Step s1, image resource list is retrieved
For example, the image resource to end up in disk with [" imageset ", " jpg ", " gif ", " png "] can be scanned, obtain To image resource be listed as follows:
/XXX/XXX/XXX/aaa.imageset;
/ XXX/XXX/XXX/bbb@2x~iphone.jpg;
/ XXX/XXX/XXX/bbb@3x~iphone.jpg;
/XXX/XXX/XXX/ccc.png。
Step s2, according to above-mentioned image resource list, the first dictionary is generated.
In the step, the title of image resource can be extracted using above-mentioned steps a to step c, and by the name of image resource Referred to as key (i.e. Key), the attribute information (for example, indicating information) of image resource generate the first dictionary as value (i.e. Value) (i.e. ImageDic).For example, the first dictionary can be as follows:
Wherein, paths is used to indicate to hit the image resource list of the same title;FileSize is for indicating paths The sum of disk occupied by image resource list.
Step s3, the image resource reference information in code file is obtained.
Above-mentioned steps s3 may include following three kinds of situations:
One, source scan
For different source codes, image resource reference information can be extracted using different regular expressions.For example, for rear Sew for the source code of " m ", can be using regular expression "@" (.*?) " " extract image resource reference information;It is for suffix The source code of " swift ", can using regular expression " " (.*?) " " extract image resource reference information;It is for suffix Can the source code of " storyboard ", be using regular expression " image name=" (.+?) " " extract image resource draw Use information;Be the source code of " js " for suffix, can using regular expression " [" '] (.*?) [" '] " extract image resource Reference information.
Two, static library scans
For example, retrieval suffix is the file path code of " .a ", and word is extracted using " strings " order in linux The character of symbol string (i.e. string) type, obtains the image resource reference information that static library includes.
Three, dynamic base scans
For example, retrieval suffix is the path code of the file of " framework ", binary directory is removed: Xxx.framework/xxx, and the character for extracting character string (i.e. string) type is ordered using " strings " in linux, Obtain the image resource reference information that dynamic base includes.
Step s4, according to the image resource reference information in code file, the second dictionary is generated.
, can be in conjunction with above-mentioned source scan, static library scanning and dynamic base scanning result in the step, and use above-mentioned Step a to step c extracts the title of image resource, and the name of image resource is referred to as key, the attribute information (example of image resource Such as, position is quoted) as value, it generates the second dictionary (i.e. CodeReferDic).For example, the second dictionary can be as follows:
Step s5, the first dictionary is traversed, checks that its key whether there is in the second dictionary, if it exists the image to be used Resource, there is no then carrying out suffix match, the image resource in suffix match is labeled as the image resource that can be used, and direct Match and suffix match all miss image resources are recorded as the image resource being not used by.
Specifically, if the first dictionary includes whether to be used attribute (i.e. used) and reference position attribution (i.e. refs), Then for being determined as the image resource used, used can be labeled as YES;For the image resource for being determined as to be used, Its used can be labeled as Maybe [N];For being determined as the image resource being not used by, used can be labeled as NO.
Specifically, after executing upper step s5, the dictionary (i.e. usedDic) and not of the image resource used can be generated The dictionary (i.e. UnUsedDic) of the image resource used.
For example, above-mentioned usedDic can be as follows:
For example, above-mentioned UnUsedDic can be as follows:
It should be noted that exist in the second dictionary with the splicing symbol ending such as %, %s and %d key when, can be with The splicing symbol in the key is removed, regenerates third dictionary, and the key in the first dictionary is matched with third dictionary.Example Such as, " ' aaa%@': { ... } " becoming " ' aaa ': { ... } ".
Above-mentioned suffix match may include steps of: each of first dictionary of traversal key (i.e. key), initial long Degree is M, first removes its last position, if the position M-1 of the key is present in third dictionary, labeled as Mabe [1], otherwise after It is continuous to remove a bit comparison, when removing digit more than or equal to M/2, stop suffix match, label used is NO.
For example, there are following codes in source code: [UIImage imageNamed:[NSString StringWithFormat:@" aaaaaa%@.png ", ISPHONE? @" _ s "]
By obtaining following character string: aaaaaa%@.png after regular expression matching;
Characteristics of image is gone to generate the second dictionary (i.e. CodeReferDic): ' aaaaaa%@': { ... } };
Suffix feature is gone to generate third dictionary (i.e. perfixCodeReferDic): { ' aaaaaa ': { ... } }
If there is image resource aaaaaabcd, first whether inspection aaaaaabcd is in CodeReferDic for meeting, if it exists then Directly to match, otherwise remove last position and obtain aaaaaabc, and check aaaaaabc whether there is in PerfixCodeReferDic is labeled as Maybe [3], really if being present in perfixCodeReferDic after removing three The fixed image resource is the image resource being likely to be used.
Optionally, the present embodiment can also traverse UnUsedDic automatically, and delete the figure in UnUsedDic according to paths As resource.
Optionally, the title of correspondence image resource can be shown according to the pattern of above-mentioned usedDic, position, occupy disk Empty space size, if for information such as suffix match, with for reference, whether aid decision making image resource can delete and image Whether resource is inessential and can be exchanged into cloud image, to be further reduced the size of program file.
It should be noted that the time complexity of the image processing method of the embodiment of the present invention includes:
(1), image retrieval time complexity, namely the time of a time image of traversal;
(2), source code sweep time complexity namely source code quantity * canonical match time;
(3), static library sweep time, namely (* .a quantity+* .framewor quantity) * is (when strings order executes Between);
(4), characteristic value compares time complexity namely the retrieval time complexity of dictionary and is O (1) and is not used by image The time complexity of resource is O (N), wherein N is the length of the first dictionary.
It the total time and traverse the time used in a file usually in same magnitude that above-mentioned (1) to (4) use, is set as E, then total time complexity is E+N*O (1), and wherein N*O (1) is much smaller than E.It follows that being determined in compared with the prior art It is not used by the complexity (i.e. N*E) of image resource, image processing method provided in an embodiment of the present invention is clearly more efficient.
In summary, image processing method provided in an embodiment of the present invention, according to the characteristic information of the image resource of extraction Determine the service condition of image resource, algorithm is more efficient.Further, since image feature information extraction can cover different type The characteristics of file, so that scanning result is more acurrate.Draw finally, carrying out image resource using dictionary structure (i.e. Hash storage result) With comparison, algorithm is more efficient, and is automatically deleted the image resource being not used by, and can save manual operation.
It is the structure chart of image resource processing unit provided in an embodiment of the present invention referring to Fig. 3, Fig. 3.As shown in figure 3, figure As resource processing unit 300 includes:
First scan module 301 obtains the image in the resource file for the resource file in scanner program file Resource collection;
Extraction module 302, for extracting the fisrt feature information of each image resource in described image resource collection, In, the fisrt feature information includes at least the title of image resource;
Second scan module 303 obtains in the code file for scanning the code file in described program file Image resource reference information, wherein described image quoting resource information is used to indicate image cited in the code file Resource;
Module 304 is obtained, for obtaining the image quoted in the code file according to described image quoting resource information The second feature information of resource, wherein the second feature information includes at least the image resource quoted in the code file Title;
Matching module 305, for respectively by the title of image resource each in described image resource collection and the code The title of cited image resource is matched in file, obtains the use information of image resource in the resource file.
Optionally, the matching module is specifically used for:
Traverse the title of each image resource in described image resource collection, and with figure cited in the code file As the title of resource is matched;
First object image resource in described image resource collection is determined as the image resource being not used by;
Wherein, the first object image resource includes the name of image resource cited in title and the code file Claim the image resource being all different, or including the predetermined fraction and image resource cited in the code file in title The image resource that is all different of title.
Optionally, the matching module is also used at least one following:
The second target image resource in described image resource collection is determined as the image resource used;Wherein, institute Stating the second target image resource includes at least one image resource in image resource cited in title and the code file The identical image resource of title;
Third target image resource in described image resource collection is determined as the image resource being likely to be used;Its In, the third target image resource includes in image resource cited in predetermined fraction in title and the code file The identical image resource of the title of at least one image resource.
Optionally, the fisrt feature information further includes the attribute information of image resource in described image resource collection, institute It states the title of image resource and attribute information in image resource set and is stored as the first dictionary, wherein described image resource collection The name of middle image resource is referred to as the key of first dictionary, the attribute information conduct of image resource in described image resource collection The value of first dictionary;
The second feature information further includes the attribute information for the image resource quoted in the code file, the code The title and attribute information for the image resource quoted in file are stored as the second dictionary, wherein quote in the code file The name of image resource is referred to as the key of second dictionary, the attribute information conduct for the image resource quoted in the code file The value of second dictionary.
Optionally, referring to fig. 4, described device further include:
Removing module 306, for described respectively by the title of image resource each in described image resource collection and described The title of cited image resource is matched in code file, obtains the use information of image resource in the resource file Later, the 4th target image resource is deleted from the resource file;Wherein, the 4th target image resource is described image It is determined as the image resource being not used by resource collection.
Optionally, referring to Fig. 5, described device further include:
Display module 307, for described respectively by the title of image resource each in described image resource collection and described The title of cited image resource is matched in code file, obtains the use information of image resource in the resource file Later, the use information and attribute information of the 5th target image resource are shown;
Wherein, the 5th target image resource, which includes at least, in described image resource collection is determined as being likely to be used Image resource, the attribute information of the 5th target image resource include at least the 5th target image resource size and/ Or position.
Image resource processing unit 300 can be realized each of the image resource processing method of the embodiment of the method for Fig. 1 to Fig. 2 A process, and reaching identical effect is to avoid repeating, which is not described herein again.
The image resource processing unit 300 of the embodiment of the present invention, the first scan module 301, in scanner program file Resource file, obtain the image resource set in the resource file;Extraction module 302, for extracting described image resource The fisrt feature information of each image resource in set, wherein the fisrt feature information includes at least the title of image resource; Second scan module 303 obtains the image resource in the code file for scanning the code file in described program file Reference information, wherein described image quoting resource information is used to indicate image resource cited in the code file;It obtains Module 304, for according to described image quoting resource information, obtain the image resource quoted in the code file second to be special Reference breath, wherein the second feature information includes at least the title for the image resource quoted in the code file;Match mould Block 305, for respectively will be cited in the title and the code file of image resource each in described image resource collection The title of image resource is matched, and the use information of image resource in the resource file is obtained, compared with the prior art in A time program file of scanning is required to for each image resource in program file, to obtain image resource in resource file Use information, not only efficiency is higher, can also improve the accuracy of the use information of determining image resource.
The embodiment of the present invention also provides a kind of image resource processing unit, including processor, memory and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Each process of the image resource processing method of existing any of the above-described embodiment of the method, and identical technical effect can be reached, to keep away Exempt to repeat, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is computer program, the computer program realizes each mistake of above-mentioned image resource processing method when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It is the structure chart that the present invention implements the electronic equipment provided referring to Fig. 6, Fig. 6, electronic equipment as shown in Figure 6 includes: Processor 601, memory 602 and it is stored in the computer program that can be run on the memory 602 and on the processor, Various components in image resource processing unit 600 are coupled by bus interface 603, and the computer program is described Processor 601 realizes following steps when executing:
Resource file in scanner program file obtains the image resource set in the resource file;
Extract the fisrt feature information of each image resource in described image resource collection, wherein the fisrt feature letter Breath includes at least the title of image resource;
The code file in described program file is scanned, the image resource reference information in the code file is obtained, In, described image quoting resource information is used to indicate image resource cited in the code file;
According to described image quoting resource information, the second feature letter for the image resource quoted in the code file is obtained Breath, wherein the second feature information includes at least the title for the image resource quoted in the code file;
Respectively by figure cited in the title and the code file of image resource each in described image resource collection As the title of resource is matched, the use information of image resource in the resource file is obtained.
Optionally, it is also used to when the computer program is executed by the processor 601:
Traverse the title of each image resource in described image resource collection, and with figure cited in the code file As the title of resource is matched;
First object image resource in described image resource collection is determined as the image resource being not used by;
Wherein, the first object image resource includes the name of image resource cited in title and the code file Claim the image resource being all different, or including the predetermined fraction and image resource cited in the code file in title The image resource that is all different of title.
Optionally, it is also used to realize when the computer program is executed by the processor 601 at least one following:
The second target image resource in described image resource collection is determined as the image resource used;Wherein, institute Stating the second target image resource includes at least one image resource in image resource cited in title and the code file The identical image resource of title;
Third target image resource in described image resource collection is determined as the image resource being likely to be used;Its In, the third target image resource includes in image resource cited in predetermined fraction in title and the code file The identical image resource of the title of at least one image resource.
Optionally, the fisrt feature information further includes the attribute information of image resource in described image resource collection, institute It states the title of image resource and attribute information in image resource set and is stored as the first dictionary, wherein described image resource collection The name of middle image resource is referred to as the key of first dictionary, the attribute information conduct of image resource in described image resource collection The value of first dictionary;
The second feature information further includes the attribute information for the image resource quoted in the code file, the code The title and attribute information for the image resource quoted in file are stored as the second dictionary, wherein quote in the code file The name of image resource is referred to as the key of second dictionary, the attribute information conduct for the image resource quoted in the code file The value of second dictionary.
Optionally, it is also used to when the computer program is executed by the processor 601:
It is described respectively will be cited in the title and the code file of image resource each in described image resource collection The title of image resource matched, obtain in the resource file after the use information of image resource, from the resource The 4th target image resource is deleted in file;Wherein, the 4th target image resource is to determine in described image resource collection For the image resource being not used by.
Optionally, it is also used to when the computer program is executed by the processor 601:
It is described respectively will be cited in the title and the code file of image resource each in described image resource collection The title of image resource matched, obtain in the resource file after the use information of image resource, show the 5th mesh The use information and attribute information of logo image resource;
Wherein, the 5th target image resource, which includes at least, in described image resource collection is determined as being likely to be used Image resource, the attribute information of the 5th target image resource include at least the 5th target image resource size and/ Or position.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

1. a kind of image resource processing method characterized by comprising
Resource file in scanner program file obtains the image resource set in the resource file;
Extract the fisrt feature information of each image resource in described image resource collection, wherein the fisrt feature information is extremely It less include the title of image resource;
The code file in described program file is scanned, obtains the image resource reference information in the code file, wherein institute It states image resource reference information and is used to indicate image resource cited in the code file;
According to described image quoting resource information, the second feature information for the image resource quoted in the code file is obtained, Wherein, the second feature information includes at least the title for the image resource quoted in the code file;
Image cited in the title and the code file of image resource each in described image resource collection is provided respectively The title in source is matched, and the use information of image resource in the resource file is obtained.
2. the method according to claim 1, wherein described respectively by image each in described image resource collection The title of cited image resource is matched in the title of resource and the code file, obtains scheming in the resource file As the use information of resource, comprising:
The title of each image resource in described image resource collection is traversed, and is provided with image cited in the code file The title in source is matched;
First object image resource in described image resource collection is determined as the image resource being not used by;
Wherein, the first object image resource includes that title and the title of image resource cited in the code file are equal Different image resource, or the name including predetermined fraction and image resource cited in the code file in title Claim the image resource being all different.
3. according to the method described in claim 2, it is characterized in that, described respectively by image each in described image resource collection The title of cited image resource is matched in the title of resource and the code file, obtains scheming in the resource file Further include at least one following as the use information of resource:
The second target image resource in described image resource collection is determined as the image resource used;Wherein, described Two target image resources include the name of at least one image resource in image resource cited in title and the code file Claim identical image resource;
Third target image resource in described image resource collection is determined as the image resource being likely to be used;Wherein, institute State third target image resource include in image resource cited in predetermined fraction in title and the code file at least The identical image resource of the title of one image resource.
4. according to the method in any one of claims 1 to 3, which is characterized in that the fisrt feature information further includes institute The attribute information of image resource in image resource set is stated, the title and attribute information of image resource in described image resource collection It is stored as the first dictionary, wherein the name of image resource is referred to as the key of first dictionary in described image resource collection, described Value of the attribute information of image resource as first dictionary in image resource set;
The second feature information further includes the attribute information for the image resource quoted in the code file, the code file The title and attribute information of the image resource of middle reference are stored as the second dictionary, wherein the image quoted in the code file The name of resource is referred to as the key of second dictionary, described in the attribute information for the image resource quoted in the code file is used as The value of second dictionary.
5. the method according to claim 1, wherein described respectively by image each in described image resource collection The title of cited image resource is matched in the title of resource and the code file, obtains scheming in the resource file As resource use information after, the method also includes:
The 4th target image resource is deleted from the resource file;Wherein, the 4th target image resource is described image It is determined as the image resource being not used by resource collection.
6. the method according to claim 1, wherein described respectively by image each in described image resource collection The title of cited image resource is matched in the title of resource and the code file, obtains scheming in the resource file As resource use information after, the method also includes:
Show the use information and attribute information of the 5th target image resource;
Wherein, the 5th target image resource, which includes at least in described image resource collection, is determined as the image being likely to be used The attribute information of resource, the 5th target image resource includes at least size and/or the position of the 5th target image resource It sets.
7. a kind of image resource processing unit characterized by comprising
First scan module obtains the image resource collection in the resource file for the resource file in scanner program file It closes;
Extraction module, for extracting the fisrt feature information of each image resource in described image resource collection, wherein described One characteristic information includes at least the title of image resource;
Second scan module obtains the image money in the code file for scanning the code file in described program file Source reference information, wherein described image quoting resource information is used to indicate image resource cited in the code file;
Module is obtained, for obtaining the image resource quoted in the code file according to described image quoting resource information Second feature information, wherein the second feature information includes at least the title for the image resource quoted in the code file;
Matching module, for respectively by institute in the title and the code file of image resource each in described image resource collection The title of the image resource of reference is matched, and the use information of image resource in the resource file is obtained.
8. device according to claim 7, which is characterized in that the matching module is specifically used for:
The title of each image resource in described image resource collection is traversed, and is provided with image cited in the code file The title in source is matched;
First object image resource in described image resource collection is determined as the image resource being not used by;
Wherein, the first object image resource includes that title and the title of image resource cited in the code file are equal Different image resource, or the name including predetermined fraction and image resource cited in the code file in title Claim the image resource being all different.
9. device according to claim 8, which is characterized in that the matching module is also used at least one following:
The second target image resource in described image resource collection is determined as the image resource used;Wherein, described Two target image resources include the name of at least one image resource in image resource cited in title and the code file Claim identical image resource;
Third target image resource in described image resource collection is determined as the image resource being likely to be used;Wherein, institute State third target image resource include in image resource cited in predetermined fraction in title and the code file at least The identical image resource of the title of one image resource.
10. device according to any one of claims 7 to 9, which is characterized in that the fisrt feature information further includes institute The attribute information of image resource in image resource set is stated, the title and attribute information of image resource in described image resource collection It is stored as the first dictionary, wherein the name of image resource is referred to as the key of first dictionary in described image resource collection, described Value of the attribute information of image resource as first dictionary in image resource set;
The second feature information further includes the attribute information for the image resource quoted in the code file, the code file The title and attribute information of the image resource of middle reference are stored as the second dictionary, wherein the image quoted in the code file The name of resource is referred to as the key of second dictionary, described in the attribute information for the image resource quoted in the code file is used as The value of second dictionary.
11. device according to claim 7, which is characterized in that described device further include:
Removing module, for described respectively by the title and the code file of image resource each in described image resource collection In the title of cited image resource matched, obtain in the resource file after the use information of image resource, from The 4th target image resource is deleted in the resource file;Wherein, the 4th target image resource is described image resource set It is determined as the image resource being not used by conjunction.
12. device according to claim 7, which is characterized in that described device further include:
Display module, for described respectively by the title and the code file of image resource each in described image resource collection In the title of cited image resource matched, obtain in the resource file after the use information of image resource, show Show the use information and attribute information of the 5th target image resource;
Wherein, the 5th target image resource, which includes at least in described image resource collection, is determined as the image being likely to be used The attribute information of resource, the 5th target image resource includes at least size and/or the position of the 5th target image resource It sets.
13. a kind of electronic equipment, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor Any one of described in image resource processing method the step of.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that image resource described in any one of claims 1 to 6 such as is handled when the computer program is executed by processor The step of method.
CN201910258536.6A 2019-04-01 2019-04-01 Image resource processing method and device Active CN110059214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910258536.6A CN110059214B (en) 2019-04-01 2019-04-01 Image resource processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910258536.6A CN110059214B (en) 2019-04-01 2019-04-01 Image resource processing method and device

Publications (2)

Publication Number Publication Date
CN110059214A true CN110059214A (en) 2019-07-26
CN110059214B CN110059214B (en) 2021-12-14

Family

ID=67318044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910258536.6A Active CN110059214B (en) 2019-04-01 2019-04-01 Image resource processing method and device

Country Status (1)

Country Link
CN (1) CN110059214B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625242A (en) * 2020-04-16 2020-09-04 广州华多网络科技有限公司 Item code deleting method and device, electronic equipment and storage medium
CN112379891A (en) * 2020-10-09 2021-02-19 广州博冠信息科技有限公司 Data processing method and device
CN113434139A (en) * 2021-06-23 2021-09-24 平安普惠企业管理有限公司 Image packaging processing method and device, server and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050135853A1 (en) * 2003-12-19 2005-06-23 Kabushiki Kaisha Toshiba Image forming apparatus and image forming method
CN101853174A (en) * 2009-04-03 2010-10-06 中兴通讯股份有限公司 Method and device for synchronizing defining and calling of string resource
US20110286720A1 (en) * 2010-05-18 2011-11-24 Sony Corporation Electronic apparatus, video processing method, and program
CN103582884A (en) * 2011-04-14 2014-02-12 高通股份有限公司 Robust feature matching for visual search
CN103970516A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Superfluous picture deletion method and device
CN104036012A (en) * 2014-06-24 2014-09-10 中国科学院计算技术研究所 Dictionary learning method, visual word bag characteristic extracting method and retrieval system
CN104077593A (en) * 2013-03-27 2014-10-01 富士通株式会社 Image processing method and image processing device
CN105979265A (en) * 2016-05-05 2016-09-28 贵州白山云科技有限公司 Image compression method and apparatus
CN106599151A (en) * 2016-12-07 2017-04-26 Tcl集团股份有限公司 Method and system for parallel cleaning of Android engineering useless resources
CN106648638A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Python-based R.java file optimization method and system
CN106708565A (en) * 2016-11-29 2017-05-24 武汉斗鱼网络科技有限公司 Method and device for removing useless picture resources in APK (Android Package)
CN108961362A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of generation method and device of network picture
CN109146517A (en) * 2018-08-02 2019-01-04 惠龙 A kind of fake products data identification method based on online dictionary learning Data Matching model

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050135853A1 (en) * 2003-12-19 2005-06-23 Kabushiki Kaisha Toshiba Image forming apparatus and image forming method
CN101853174A (en) * 2009-04-03 2010-10-06 中兴通讯股份有限公司 Method and device for synchronizing defining and calling of string resource
US20110286720A1 (en) * 2010-05-18 2011-11-24 Sony Corporation Electronic apparatus, video processing method, and program
CN103582884A (en) * 2011-04-14 2014-02-12 高通股份有限公司 Robust feature matching for visual search
CN103970516A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Superfluous picture deletion method and device
CN104077593A (en) * 2013-03-27 2014-10-01 富士通株式会社 Image processing method and image processing device
CN104036012A (en) * 2014-06-24 2014-09-10 中国科学院计算技术研究所 Dictionary learning method, visual word bag characteristic extracting method and retrieval system
CN105979265A (en) * 2016-05-05 2016-09-28 贵州白山云科技有限公司 Image compression method and apparatus
CN106708565A (en) * 2016-11-29 2017-05-24 武汉斗鱼网络科技有限公司 Method and device for removing useless picture resources in APK (Android Package)
CN106599151A (en) * 2016-12-07 2017-04-26 Tcl集团股份有限公司 Method and system for parallel cleaning of Android engineering useless resources
CN106648638A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Python-based R.java file optimization method and system
CN108961362A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of generation method and device of network picture
CN109146517A (en) * 2018-08-02 2019-01-04 惠龙 A kind of fake products data identification method based on online dictionary learning Data Matching model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FUHUA FAN 等: "A method for ultra-wideband signal representation based on adaptive redundancy dictionary", 《2012 5TH INTERNATIONAL CONGRESS ON IMAGE AND SIGNAL PROCESSING》 *
林志强: "基于Hadoop的图像检索系统设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625242A (en) * 2020-04-16 2020-09-04 广州华多网络科技有限公司 Item code deleting method and device, electronic equipment and storage medium
CN111625242B (en) * 2020-04-16 2023-08-29 广州方硅信息技术有限公司 Project code deleting method and device, electronic equipment and storage medium
CN112379891A (en) * 2020-10-09 2021-02-19 广州博冠信息科技有限公司 Data processing method and device
CN112379891B (en) * 2020-10-09 2023-12-29 广州博冠信息科技有限公司 Data processing method and device
CN113434139A (en) * 2021-06-23 2021-09-24 平安普惠企业管理有限公司 Image packaging processing method and device, server and storage medium

Also Published As

Publication number Publication date
CN110059214B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
US9245007B2 (en) Dynamically detecting near-duplicate documents
CN110059214A (en) A kind of image resource processing method and processing device
EP1587006A2 (en) Method and system for renaming consecutive keys in a B-tree
CN110515896B (en) Model resource management method, model file manufacturing method, device and system
US9348832B2 (en) Method and device for reassembling a data file
CN107402798B (en) Method and apparatus for converting sequencing scripts to reuse JCL in different coding environments
US11074133B2 (en) Method, electronic device and computer readable medium of file management
CN110007906B (en) Script file processing method and device and server
CN111241496B (en) Method and device for determining small program feature vector and electronic equipment
CN112784009A (en) Subject term mining method and device, electronic equipment and storage medium
KR20000054899A (en) Searching device using moving picture index descripter and method thereof
WO2012058212A2 (en) Coding order-independent collections of words
CN107590233B (en) File management method and device
CN104090924B (en) The method for cleaning and device of a kind of private data
CN113220821A (en) Index establishing method and device for test question retrieval and electronic equipment
CN113743432A (en) Image entity information acquisition method, device, electronic device and storage medium
JP2002007413A (en) Image retrieving device
CN113127776A (en) Breadcrumb path generation method and device and terminal equipment
US11838322B2 (en) Phishing site detection device, phishing site detection method and phishing site detection program
KR20110023580A (en) The method and system for recovering data
CN111291208B (en) Front-end page element naming method and device and electronic equipment
CN113486148A (en) PDF file conversion method and device, electronic equipment and computer readable medium
Jo et al. Smart learning of logo detection for mobile phone applications
CN110489130A (en) A kind of client-based business datum extracting method and device
CN116304156A (en) Picture retrieval method, device, electronic equipment and storage medium

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