CN109543062A - Image processing method, system, computer installation and readable storage medium storing program for executing - Google Patents

Image processing method, system, computer installation and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109543062A
CN109543062A CN201811151264.1A CN201811151264A CN109543062A CN 109543062 A CN109543062 A CN 109543062A CN 201811151264 A CN201811151264 A CN 201811151264A CN 109543062 A CN109543062 A CN 109543062A
Authority
CN
China
Prior art keywords
image
file
group
replaced
image group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811151264.1A
Other languages
Chinese (zh)
Inventor
苏先乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811151264.1A priority Critical patent/CN109543062A/en
Publication of CN109543062A publication Critical patent/CN109543062A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of image processing method, system, computer installation and readable storage medium storing program for executing.Described image processing method includes: to obtain the attribute information that the source file in application includes each image file, wherein the attribute information includes location information corresponding to described image file;Texture feature extraction is carried out to each described image file, and the similarity of textural characteristics is greater than two or more image files of preset value as image group;Identification operation is carried out according to image file of the recognition rule to described image group, to obtain the reservation image of corresponding described image group and be replaced image;It is to retain location information corresponding to image that updating location information corresponding to image file will be replaced in image group.The present invention is able to carry out deduplication operation by the same or similar picture of the source file of identification application, can correspond to and update the reference of source file and be changed to after duplicate removal as a result, being conducive to reduce the size of application file, the flow for reducing user consumes.

Description

Image processing method, system, computer installation and readable storage medium storing program for executing
Technical field
The present invention relates to data processing field more particularly to a kind of image processing method, system, computer installations and readable Storage medium.
Background technique
This part intends to provides background for the embodiments of the present invention stated in claims and specific embodiment Or context.Description herein recognizes it is the prior art not because not being included in this section.
Mobile device has been widely used, and to be applicable in different crowd, there are plurality of optional for the size of the screen of mobile device Type.Thus, in project development, an icon is adaptation screen of different sizes, needs that different size is arranged in the project Picture.However, the size that will lead to file after project is packaged when different size of picture is arranged in project is larger, Yong Huxu More network flow is spent to be downloaded.
Summary of the invention
In view of above-mentioned, the present invention provides a kind of image processing method, system, computer installation and readable storage medium storing program for executing, with Advantageously reduce the size of the file after being packaged.
A kind of image processing method, comprising:
The attribute information that the source file in application includes each image file is obtained, wherein the attribute information includes every Location information corresponding to a described image file;
Texture feature extraction is carried out to each described image file, and the similarity of textural characteristics is greater than the two of preset value A or multiple described image files are as image group;
Identification operation is carried out according to image file of the recognition rule to described image group, to obtain corresponding described image group Retain image and is replaced image;
It is position corresponding to the reservation image that updating location information corresponding to image file will be replaced in image group Confidence breath.
Further, in the image processing method, it is described to each image file carry out texture feature extraction it Before include:
Remove the preset characters for including in the name information of image file;
Judge whether there is the identical two or more image files of name information after removing preset characters;
The identical two or more image files of name information after removal preset characters if it exists, after removal preset characters Name information is identical described two or multiple images file is as described image group;
It is described to include: to each described image file progress texture feature extraction
Texture feature extraction is carried out to the image file for not having grouping in described image file.
Further, described literary according to image of the recognition rule to described image group in the image processing method Part carries out identification operation, to obtain the reservation image of corresponding described image group and be replaced image to include:
Judge in described image group whether include vector type image file;
When in described image group including the image file of vector type, using the image file of the vector type as institute Reservation image is stated, other image files in described image group other than the reservation image are replaced figure as described in Picture.
Further, described literary according to image of the recognition rule to described image group in the image processing method Part carries out identification operation, to obtain the reservation image of corresponding described image group and be replaced image to include:
Judge the reference picture for meeting preset condition with the presence or absence of one in described image group;Wherein, the preset condition are as follows: The reference picture is amplified to the clarity after other images in described image group and is not less than default clarity;
If it exists, using the reference picture for meeting preset condition as the reservation image, and will be in described image group Other images be used as described in be replaced image.
Further, in the image processing method, meet in advance in the judgement described image group with the presence or absence of one If the reference picture of condition includes:
Judge amplification replacement rate corresponding when the reference picture is converted into other images in described image group whether In preset range, wherein the amplification replacement rate is according to the reference picture and is converted into the rulers of other images in described image group Very little information is calculated.
Further, in the image processing method, the reference picture is converted into other figures in described image group As when corresponding amplification replacement rate whether include: within a preset range
Using the smallest image file of dimension information in image group as reference picture, and by other sizes information in image group Image file image as a comparison;
Judge amplification replacement rate when being converted to a contrast images in image group by the reference picture whether described pre- If in range;
When the amplification replacement rate is in the preset range, the contrast images are replaced image as described in, And return execute amplification replacement rate when the judgement is replaced with a contrast images in image group by the reference picture whether In the preset range;
When amplifying replacement rate not in the preset range, using the reference picture as being replaced image, and return Execute it is described using the smallest image file of dimension information in image group as reference picture, and by other sizes information in image group Image file image as a comparison, wherein the reference picture and contrast images are that described will be replaced in image group except described Other image files outside image.
Further, the image processing method further include:
It deletes in described image group and is replaced image file.
A kind of image processing system, comprising:
Acquiring unit, for obtaining the attribute information that the source file in application includes each image file, wherein described Attribute information includes location information corresponding to each described image file;
Extraction unit, for carrying out texture feature extraction to each described image file, and by the similarity of textural characteristics Greater than preset value two or more described image files as image group;
Recognition unit, for carrying out identification operation according to image file of the recognition rule to described image group, to obtain pair It answers the reservation image of described image group and is replaced image;
Replacement unit is the reserved graph for will be replaced updating location information corresponding to image file in image group As corresponding location information.
A kind of computer installation, including processor and memory are stored with several computer programs, institute on the memory The step of image processing method is realized when stating processor for executing the computer program stored in memory.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Now the step of image processing method.
The source file that above-mentioned image processing method, system, computer installation and readable storage medium storing program for executing are applied by identification Same or similar picture, is able to carry out deduplication operation, can correspond to and update the reference of source file and be changed to after duplicate removal as a result, to reach To use do not need to do extra work substantially can facilitate remove identical and/or similar pictures, reduce the big of application file It is small, reduce the flow consumption of user, while can also be improved the success rate of downloading.
Detailed description of the invention
It, below will be to required in embodiment description in order to illustrate more clearly of the technical solution of embodiment of the present invention The attached drawing used is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow chart of the better embodiment of image processing method of the present invention;
Fig. 2 is the illustrative structural schematic diagram for the computer installation that an embodiment of the present invention provides;
Fig. 3 is the illustrative block diagram for the image processing system that an embodiment of the present invention provides.
Main element symbol description
Computer installation 40
Processor 401
Memory 405
Input/output interface 407
Network interface 409
Bus 411
Display screen 403
Image processing system 417
Acquiring unit 410
Extraction unit 712
Removal unit 714
Replacement unit 716
Filter element 718
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention will be described in detail.It should be noted that in the absence of conflict, presently filed embodiment and reality The feature applied in mode can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment Only some embodiments of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this field Those of ordinary skill's every other embodiment obtained without making creative work, belongs to guarantor of the present invention The range of shield.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart of the image processing method of first embodiment of the invention, it should be noted that present embodiment Described image processing method is not limited to step and sequence in flow chart shown in FIG. 1.Shown process according to different requirements, Step in figure can increase, remove or change sequence.
First better embodiment of the image processing method of present embodiment may include following steps:
Step 100, the attribute information that source file in application includes each image file is obtained.
It is to be appreciated that the application is mountable in terminal (such as smart phone), to realize specific function, including But it is not limited to the functions such as social activity, short message.It is to be appreciated that may may require that several images in an application, it is better to provide User interface.Thus, it may include one or more image files in the source file of the application.
Preferably, the attribute information of each image file (each image file) includes but is not limited to the name of image file The information such as title, type, size, position, size.For example, the name information of image file can be sample.png, sample@ 2x.png, [email protected] etc.;The type information of image file may include the lattice of the types such as polar plot or bit map/bitmap Formula, such as svg, jpeg, png, bmp, wherein the type information of image file can include from image file name information It is obtained in extension name, the entitled png of extension as corresponding in the image file of entitled sample.png therefore can be true The type for determining image file sample.png is then png;The dimension information of image file is image pixel dimensions, e.g., 30px* 30px (pixel), 48px*48px, 200px*200px etc.;The location information of image file can be image file in source file Interior path, location information can be relative path or absolute path;The size information of image file is shared by image The size of memory space, such as 32KB, 54KB, 1MB.
Preferably, included source file can entirely be applied by traversing, to obtain corresponding to the attribute of each image file Information.It is prepared in file in addition, the attribute information for the image file that traversal obtains after entire can be can be stored in.Wherein, described Each settable different file identification of image file in file is prepared, therefore, in the preparation file, each file identification can Corresponding to information such as the title of image file, type, size, position, sizes.
Step 102, filter operation is executed according to the name information of each image file, to obtain one or more images Group, wherein each image group contains the same image of different dimension informations.
In order to make using varying environment or terminal screen is adapted to, there are the file of a variety of sizes, difference masters for an image It will be in size, thus, it will usually it is distinguished by different titles, for example, for the screen size of 1:1, described image The title of file can are as follows: sample.png (1 times of figure);For the screen size of 1:2, the title of described image file can are as follows: [email protected] (2 times of figures);For the screen size of 1:3, the title of described image file can are as follows: [email protected] (3 Scheme again).Thus, image file name filter operation can be executed according to the name information of image file.
It is to be appreciated that the name information of several image files can be obtained from configuration file, and to several image files Title matched, if it exists the difference of the title of image file be specific preset characters (such as above-mentioned 2x, It 3x), then can be using these images of title difference on specific character as an image group.It specifically, can be first from preparation The name information of each image file is obtained in file, later, the preset characters that the name information of image file includes can be removed, And judge whether there is the identical two or more image files of name information after removal preset characters, and if it exists, can will then go Except name information is identical described two after preset characters or multiple images file is as image group, such as by corresponding file identification Image file as image group.For example, name information sample.png, [email protected], the sample@of image 3x.png and [email protected] remove preset characters after be respectively sample.png, sample.png, sample.png and abc.jpg.Wherein, sample.png can correspond to the first file identification, and [email protected] can correspond to the second file identification, [email protected] can correspond to third file identification, and [email protected] can correspond to the 4th file identification.Due to removing preset characters First is sample.png to the name information of image corresponding to third file identification afterwards, can be used as same image, and The name information of four file identification institute images is abc.jpg.It therefore, can be by first to the text of image corresponding to third file identification Part is as the first image group.
For this image group, to reduce the volume size after being packaged, wherein one can be only retained in the source file of application Image, to obtain retaining image, and other image files then can be used as and be replaced image, can will also be replaced image from answering It is deleted in source file.For example, above-mentioned image sample.png, [email protected], [email protected] can make For an image group, and in three images any one can retain, and other can then be deleted as the file for being replaced image. Certainly, it also can need to retain wherein one according to realizing.
Step 104, texture feature extraction is carried out to each described image file, and the similarity of textural characteristics is greater than in advance If two or more described image files of value are as image group.
It is to be appreciated that the textural characteristics of some image files may be same or similar in the source file of application, but its Image file name has differences, thus, it is identical being likely present after image file name filter operation, in source file Or similar image.Wherein, identical image can be expressed as image file textural characteristics it is identical, the information such as size can be identical Or it is different;The textural characteristics that similar image is represented by image file are similar, and the information such as size can not be identical or different.
It is to be appreciated that in other embodiments, step 102 can also be omitted, can directly to all image files into Row texture feature extraction, and according to textural characteristics to determine whether can be using multiple images file as image group.Certainly, due to The filter operation of step 102 can be grouped operation according to the name information of image file, in the filtering of implementation steps 102 Under the premise of operation, the extraction of textural characteristics can carry out in image file ungrouped after filter operation, be conducive to accelerate The processing speed of image grouping.
It is to be appreciated that texture characteristic extracting method may include LBP (Local Binary Pattern, local binary Mode), the step of texture feature extraction of LBP, is as follows:
The zonule (cell) that n*n (such as 16*16) can first be divided an image into, for a pixel in each cell, 8 points (being also possible to the multiple points of annular neighborhood) in its annular neighborhood are subjected to comparison clockwise or counterclockwise, if in Heart pixel value is bigger than the adjoint point, then adjoint point is assigned a value of 1, is otherwise assigned a value of 0, point each in this way can obtain one 8 two into Number (generally also can be exchanged into decimal number) processed.Then the histogram of each cell is calculated, i.e., each number is (it is assumed that the decimal system Number) (namely one carries out about putting a big binary sequence in the whether neighbour domain of each pixel for the frequency that occurs Statistics), then the histogram is normalized.Finally the statistic histogram of obtained each cell is attached, The LBP textural characteristics of whole picture figure have just been obtained, have judged whether it is the same or similar image with the textural characteristics according to image.
It is to be appreciated that when the similarity of at least textural characteristics of two images is greater than preset value, it can be by these images File is as an image group.
For example, when the textural characteristics of the first image group are arrows with rounded corners, by the texture feature extraction of image Afterwards, it is believed that its textural characteristics is identical, thus, it is believed that each image in the first image group is identical image.And when second Include in the textural characteristics of image group arrow with rounded corners with arrow with wedge angle when, due to including arrow in this second image group The textural characteristics of head, difference are fillet or wedge angle, and in some interfaces, these images are can be replaced mutually, thus, It is considered that containing similar image in second group of image.
Step 106, identification operation is carried out according to image file of the recognition rule to described image group, described in being corresponded to The reservation image of image group and it is replaced image.
Preferably, can be according to recognition rule come to obtain one in described image group reservation image and one or more It is replaced image.
Preferably, the recognition rule may include executing identification operation according to the type of image file or according to image file Dimension information execute identification operation.
It is to be appreciated that when executing identification operation according to the type of image file, for the type of image file, Image type be vector image, and vector image can keep identical clarity when scaling different size.Thus, It there are the type information of an image file is vector image if they are the same or in similar image group, then can protect in image group Stay image file type information be vector image, it is and other in same or similar image group are non-to obtain retaining image Vector image replaces with the reservation image, in this way, the image that changes of other non-vectors can be used as institute in same or similar image group It states and is replaced image.
It is to be appreciated that the file for being replaced image can be deleted, and updates in the source file of the application and be replaced image Reference.Preferably, the location information for being replaced image file can be needed to obtain from the preparation file, and figure will be replaced As the location information of file replaces with or be updated to location information corresponding to the image file retained in described image group, such as This, to show or call it is described be replaced image file when, can be shown by the image file of the reservation, wherein showing When the image file of the reservation, phase can be carried out to the image file of the reservation according to the size information for being replaced image file That answers zooms in or out, and zooming in or out for vector image, and for a user, the effect of display has no significantly Difference.
It is to be appreciated that being executed in identification operation according to the dimension information of each image file, if being in image group When non-vector image, then the identification can be executed according to the dimension information of image file and operated.
Preferably, the dimension information for the image file that image group includes can be obtained.For example, an image group may include Sample.png, [email protected], [email protected] tri- open image file, wherein image file sample.png, [email protected], [email protected] dimension information may respectively be 30px*30px, 48px*48px, 200px*200px.
Judge in described image group with the presence or absence of an image file by the way that other images into described image group are enlarged Clarity afterwards is not less than default clarity.
Preferably, assuming in image group, reservation image V1 can be replaced other and be replaced image, in this way, can be by comparing Retain image V1 and other are replaced the dimension information between image V2 to be judged.In addition, passing through when retaining image needs When diminution mode becomes to be replaced image, since image file diminution is little to the image of its clarity, for will protect It stays image needs to be directly become when being replaced image by diminution mode, can will be replaced image and directly delete.
For example, the dimension information for retaining image V1 is a1;The dimension information for being replaced image V2 is a2;Definition amplification replacement Rate R=(a2-a1)/a1, wherein a2 is not less than a1, indicates that replacement image needs become to be replaced image by way of amplification. When amplify replacement rate R not within a preset range when, replacement image scaling can be indicated to may when being replaced image file pattern Lead to the decline or improper of its clarity;When amplify replacement rate R be located at preset range (such as 0 to 1) it is interior when, can indicate replace image It zooms to and can guarantee certain clarity when being replaced image file pattern.
It is to be appreciated that judging in image group with the presence or absence of an image file by being enlarged to other images, and put Image may also include that before not less than preset clarity after big operation
Judge in image group with the presence or absence of the identical image file of dimension information;When there are the identical image texts of dimension information When part, same or similar, identical at least two image files of dimension information that indicate in the image group that there are images therefore can will One image file of at least two image files is as reservation image, and other identical image files of dimension information can be used as and be replaced Change image.
When the dimension information of image file each in image group is not identical, can determine whether in image group reference picture be converted by Whether within a preset range to replace amplification replacement rate corresponding when image;When amplifying replacement rate in the preset range, It can retain reference picture file in image group as document retaining, other image files can be then replaced.In other implementations It, also can be without the judgement of identical dimension information in mode.
Preferably, can by preparing in file acquisition image group the smallest image file of dimension information as reference picture, By the image file of other sizes information in image group image as a comparison, judge to be replaced with by reference picture a pair of in image group Within a preset range whether amplification replacement rate when than image.In other embodiments, when in described image group exist at least When two the smallest image files, an image file can be randomly choosed in described at least two the smallest image files as institute State reference paper.
When amplifying replacement rate in the preset range, expression can by it is described replaced with by the reference picture it is described right Than image, therefore, the reference picture can be used as reservation image, and the contrast images then can be used as and be replaced image, so The lesser image file of dimension information in image group can be retained, advantageously reduce the volume of the file after being packaged;It later, can also be after The continuous amplification replacement rate judged when reference picture replaces with other contrast images in image group.
When amplifying replacement rate not in the preset range, after indicating the contrast images by reference picture amplification It may have a certain impact to clarity, still, be obtained after diminution can be passed through by the contrast images due to the reference picture, Thus, can using the reference picture as being replaced image, and return execute it is described by the smallest figure of dimension information in image group As file is as reference picture, and by the image file of other sizes information in image group image as a comparison, wherein the ginseng Examine image and contrast images be it is described by image group except it is described be replaced image in addition to other image files.
Later, whether the quantity that can determine whether documents in image group is 1;When quantity is 1, indicate in described image group Remaining contrast images can be used as retaining image.
In other embodiments, the step of judging image file identical with the presence or absence of dimension information in image group also may be used It omits.For example, when containing the identical image file of two dimension informations in image group, the dimension information for retaining image V1 is A1, the dimension information for being replaced image V2 is a2, according to amplification replacement rate R=(a2-a1)/a1 it is found that R=0.At this point, when putting Big replacement rate R be located at preset range (such as 0 to 1) it is interior when, can indicate to replace image scaling to can when being replaced image file pattern Certain clarity is protected, therefore, can obtain being replaced image V2, and the location information for being replaced image is replaced with reserved graph The location information of picture.
In other embodiments, it can determine whether in described image group with the presence or absence of a reference picture by being enlarged to it Corresponding each amplification replacement rate is not less than preset clarity when his all contrast images.It when it is present, can be by the ginseng Image is examined as the reservation image, and other contrast images are replaced image as described in.When it be not present, then by institute Image file of the image group with full-size information is stated as the reservation image, and other image files are as the quilt Replace image.
For example, for the first image group, sample.png (1 times of figure), [email protected] (2 times of figures), sample@ The size of 3x.png (3 times of figures) may respectively be 30px*30px, 44px*44px, 48px*48px.When retaining 1 times of figure, due to 2 Figure can be reached with 1 times of figure by way of scaling again, and having its amplification replacement rate of certain clarity after scaling is (44- 30)/30=0.47 can consider (in other embodiments, to be amplified replacement rate and is also referred to as (44*44- within a preset range 30*30)/30*30=1.15, and preset range at this time then needs to be adjusted correspondingly);And due to 3 times of figures and 1 times of figure It can be reached by way of scaling, and with certain clarity, (it is (48-30)/30=0.6 that it, which amplifies replacement rate, after scaling It is considered that within a preset range, and the standard of other amplification replacement rates also needs being consistent property);Therefore, it is possible to protect Staying 1 times of figure is to retain image, and 2 times of figures and 3 times of figures can be carried out as image, i.e., 2 times figures and 3 times of figures are replaced by 1 times of figure Replacement.
For the second image group, sample.png (1 times of figure), [email protected] (2 times of figures), [email protected] (3 Times scheme) size may respectively be 30px*30px, 44px*44px, 77px*77px.When retaining 1 times of figure, due to 2 times of figures and 1 times Figure can be reached by way of scaling, and have certain clarity after scaling;And after being scaled due to 3 times of figures by 1 times of figure Scaling is lower (it is that (77-30)/30=1.57 can consider not within a preset range that it, which amplifies replacement rate) with clarity, and by 2 times of figures can be reached by way of scaling when being amplified to 3 times of figures (its amplify replacement rate be (77-44)/44=0.75 can recognize For within a preset range), and there is certain clarity after scaling;Therefore, it is possible to retaining 2 times of figures is reservation image, and by 1 times Figure and 3 times of figures are used as and are replaced image, and 1 times of figure obtains after being shunk by 2 times of figures, and the influence to its clarity is not Greatly.
For third image group, sample.png (1 times of figure), [email protected] (2 times of figures), [email protected] (3 Times scheme) size may respectively be 30px*30px, 44px*44px, 200px*200px.When retaining 2 times of figures, since 1 times of figure can It can be reached by way of scaling by 2 times of figures, and there is certain clarity after scaling, therefore, it is possible to which retaining 2 times of figures is to protect Image is stayed, and 1 times of figure is used as and is replaced image;But 2 times of figures are by way of scaling when reaching 3 times of figures, after scaling The clear degree of 3 times of figures is significantly affected that (it is (200-44)/44=3.54 that it, which amplifies replacement rate, it is believed that it is not default In range), thus, 3 times of figures can also remain in image group, and by 2 times of figures as image is replaced, i.e., image group at this time In contain 3 times of figures.At this point, 3 times in image group are schemed that reservation image can be left (with full-size information), and 1 times of figure And 2 times of figures are used as and are replaced image, and can be replaced by the reservation image.
Step 108, updating location information corresponding to image file will be replaced in image group as reservation image institute Corresponding location information.
For example, due to retaining 1 times of figure, quoting 2 times of figures and 3 in turn, in the source file of application in the first above-mentioned image group The position of times figure can be updated to the path where 1 times of figure.
In the second above-mentioned image group, due to retaining 2 times of figures, 1 times of figure and 3 times of figures are quoted in turn, in the source file of application Position can be updated to 1 times figure where path.
In above-mentioned third image group, due to retaining 3 times of figures, but 1 times of figure and 2 times of figures are used as and are replaced image, in turn, The position that 1 times of figure and 2 times of figures are quoted in the source file of application can be updated to 3 times of paths for scheming place.
Step 110, image-erasing will be replaced in described image group.Pass through the similar diagram of the source file of identification application Piece, can automatic duplicate removal (being replaced image as deleted), can automatically by the reference in engineering be changed to it is after duplicate removal as a result, thus Reach use do not need to do extra work substantially and can facilitate identification similar pictures, reduce the size of application file, reduce The flow of user consumes, while can also be improved the success rate of downloading.
Referring to Fig. 2, image processing system 417 of the present invention is applied to the box of the better embodiment of computer installation 40 Figure.The computer installation 40 may include calculation processing apparatus 417, such as mobile phone, tablet computer, computer, server have The computer installation of data processing function.
The computer installation 40 is that one kind can be automatic to carry out numerical value calculating according to the instruction for being previously set or storing And/or the equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The computer installation 40 may be, but not limited to, any one can with user by keyboard, mouse, remote controler, The modes such as touch tablet or voice-operated device carry out the electronic product of human-computer interaction, for example, tablet computer, smart phone, individual digital Assistant (Personal Digital Assistant, PDA), game machine, intellectual wearable device etc..
Network locating for the computer installation 40 includes, but are not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, void Quasi- dedicated network (Virtual Private Network, VPN) etc., such as computer installation 40 can the accesses of network interface 409 Internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network.
The memory 405 can be different type storage equipment or computer readable storage medium, all kinds of for storing Data.For example, it may be the memory of computer installation 40, can also be the storage card that can be external in the computer installation 40, such as Flash memory, SM card (Smart Media Card, smart media card), SD card (Secure Digital Card, safe digital card) Deng.Memory 405 is for storing Various types of data, for example, the application including information processing installed in the computer installation 40 (Applications), the information such as the data be arranged using above- mentioned information processing method, obtained.
The processor 401 be used to execute installed in the computation processing method and the computer installation 40 it is all kinds of Software, such as operating system, messaging software etc..The processor 401 is including but not limited to processor (Central Processing Unit, CPU), micro-control unit (Micro Controller Unit, MCU) etc. refers to for interpretive machine The device for enabling and handling the data in computer software, may include one or more microprocessor, digital processing unit.Institute State display screen 403 can be touch screen etc. other be used for show picture equipment.
The image processing system 417 that the computer installation 40 includes may include one or more module, and described one A or multiple modules can be stored in the memory 405 of computer installation 40 and may be configured to by one or more It manages device (the present embodiment is a processor 401) to execute, to complete the present invention.For example, as shown in fig.2, the computer fills 40 are set including memory 405, input/output interface 407, display screen 403 and passes through bus 411 and the memory 405, input Output interface 407 and display screen 403 carry out the processor 401 of data exchange.Wherein, the input/output interface 407 can connect In mouse and/or keyboard (not shown).The so-called module of the present invention is to complete the program segment of a specific function, is more suitable for than program In the implementation procedure of description software in the processor.
In the present embodiment, the display screen 403 is used to provide convenience for the operation of user.The memory 405 can store There are several program codes, to be executed by the processor 401, and then realizes the function of described image processing system 417.
Also referring in Fig. 3 present embodiment, described image processing system 417 may include acquiring unit 710, extract list Member 712, recognition unit 714, replacement unit 716 and filter element 718.
The acquiring unit 710 is used to obtain the attribute information that source file in application includes each image file.
It is to be appreciated that the application is mountable in terminal (such as smart phone), to realize specific function, including But it is not limited to the functions such as social activity, short message.It is to be appreciated that may may require that several images in an application, it is better to provide User interface.Thus, it may include one or more image files in the source file of the application.
Preferably, the attribute information of each image file (each image file) includes but is not limited to the name of image file The information such as title, type, size, position, size.For example, the name information of image file can be sample.png, sample@ 2x.png, [email protected] etc.;The type information of image file may include the lattice of the types such as polar plot or bit map/bitmap Formula, such as svg, jpeg, png, bmp, wherein the type information of image file can include from image file name information It is obtained in extension name, the entitled png of extension as corresponding in the image file of entitled sample.png therefore can be true The type for determining image file sample.png is then png;The dimension information of image file is image pixel dimensions, e.g., 30px* 30px (pixel), 48px*48px, 200px*200px etc.;The location information of image file can be image file in source file Interior path, location information can be relative path or absolute path;The size information of image file is shared by image The size of memory space, such as 32KB, 54KB, 1MB.
Preferably, included source file can entirely be applied by traversing, to obtain corresponding to the attribute of each image file Information.It is prepared in file in addition, the attribute information for the image file that traversal obtains after entire can be can be stored in.Wherein, described Each settable different file identification of image file in file is prepared, therefore, in the preparation file, each file identification can Corresponding to information such as the title of image file, type, size, position, sizes.
The filter element 718 is used to execute filter operation according to the name information of each image file, to obtain one Or multiple images group, wherein each image group contains the same image of different dimension informations.
In order to make using varying environment or terminal screen is adapted to, there are the file of a variety of sizes, difference masters for an image It will be in size, thus, it will usually it is distinguished by different titles, for example, for the screen size of 1:1, described image The title of file can are as follows: sample.png (1 times of figure);For the screen size of 1:2, the title of described image file can are as follows: [email protected] (2 times of figures);For the screen size of 1:3, the title of described image file can are as follows: [email protected] (3 Scheme again).Thus, image file name filter operation can be executed according to the name information of image file.
It is to be appreciated that the acquiring unit 710 can obtain the name information of several image files, institute from configuration file Filter element 718 is stated for matching to the title of several image files, the difference of the title of image file is if it exists It is specific preset characters (such as above-mentioned 2x, 3x), then can be by these figures of title difference on specific character As being used as an image group.Specifically, the acquiring unit 710 can first obtain the title letter of each image file from preparation file Breath, later, the filter element 718 can remove the preset characters that the name information of image file includes, and judge whether to deposit The identical two or more image files of name information after removing preset characters, and if it exists, can will then remove preset characters Name information is identical described two afterwards or multiple images file is as image group, such as by the image file of corresponding file identification As image group.For example, name information sample.png, the [email protected] of image, [email protected] and abc@ 2x.jpg is respectively sample.png, sample.png, sample.png and abc.jpg after removing preset characters.Wherein, Sample.png can correspond to the first file identification, and [email protected] can correspond to the second file identification, and [email protected] can Corresponding third file identification, [email protected] can correspond to the 4th file identification.Since first is literary to third after removal preset characters The name information of the corresponding image of part mark is sample.png, can be used as same image, and the 4th file identification is schemed The name information of picture is abc.jpg.Therefore, the filter element 718 can be by first to image corresponding to third file identification File is as the first image group.
For this image group, to reduce the volume size after being packaged, wherein one can be only retained in the source file of application Image, to obtain retaining image, and other image files then can be used as and be replaced image, can will also be replaced image from answering It is deleted in source file.For example, above-mentioned image sample.png, [email protected], [email protected] can make For an image group, and in three images any one can retain, and other can then be deleted as the file for being replaced image. Certainly, in other embodiments, the image file in described image group also can need to retain wherein one according to realizing.
The extraction unit 712 is used to carry out texture feature extraction to each image file, and by the similar of textural characteristics Degree is greater than two or more described image files of preset value as image group.
It is to be appreciated that the textural characteristics of some image files may be same or similar in the source file of application, but its Image file name has differences, and thus, the filter element 718 is after image file name filter operation, source file In be likely present the same or similar image.Wherein, identical image can be expressed as image file textural characteristics it is identical, The information such as size may be the same or different;The textural characteristics that similar image is represented by image file are similar, and the information such as size can It is not identical or different.
It is to be appreciated that in other embodiments, the function that the filter element 718 executes is omitted, the extraction is single Member 712 directly can carry out texture feature extraction to all image file, and according to textural characteristics to determine whether can will be more A image file is as image group.Certainly, since the filter operation of the filter element 718 can be believed according to the title of image file Breath can be grouped operation, in the processing speed for implementing that image grouping can be accelerated under the premise of filter operation.
It is to be appreciated that texture characteristic extracting method may include LBP (Local Binary Pattern, local binary Mode), the step of texture feature extraction of LBP, is as follows:
The zonule (cell) that n*n (such as 16*16) can first be divided an image into, for a pixel in each cell, 8 points (being also possible to the multiple points of annular neighborhood) in its annular neighborhood are subjected to comparison clockwise or counterclockwise, if in Heart pixel value is bigger than the adjoint point, then adjoint point is assigned a value of 1, is otherwise assigned a value of 0, point each in this way can obtain one 8 two into Number (generally also can be exchanged into decimal number) processed.Then the histogram of each cell is calculated, i.e., each number is (it is assumed that the decimal system Number) (namely one carries out about putting a big binary sequence in the whether neighbour domain of each pixel for the frequency that occurs Statistics), then the histogram is normalized.Finally the statistic histogram of obtained each cell is attached, The LBP textural characteristics of whole picture figure have just been obtained, have judged whether it is the same or similar image with the textural characteristics according to image.
It is to be appreciated that when the similarity of at least textural characteristics of two images is greater than preset value, it can be by these images File is as an image group.
For example, the extraction unit 712 passes through image when the textural characteristics of the first image group are arrows with rounded corners Texture feature extraction after, it is believed that its textural characteristics is identical, thus, it is believed that each image in the first image group is identical Image.And when including arrow with rounded corners in the textural characteristics of the second image group and with the arrow of wedge angle, due to this second figure Textural characteristics as in group including arrow, difference is fillet or wedge angle, and in some interfaces, these images are can be with It is replaced mutually, thus, the extraction unit 712 is it is considered that contain similar image in second group of image.
The recognition unit 714 is used to execute identification operation to image group according to recognition rule, to obtain corresponding to the figure As the reservation image organized and it is replaced image.
Preferably, the recognition unit 714 can execute identification operation according to recognition rule, to obtain described image group In a reservation image and one or more be replaced image.
Preferably, the recognition rule may include executing identification operation according to the type of image file or according to image file Dimension information execute identification operation.
It is to be appreciated that when executing identification operation according to the type of image file, for the type of image file, Image type be vector image, and vector image can keep identical clarity when scaling different size.Thus, It there are the type information of an image file is vector image if they are the same or in similar image group, then described in image group Recognition unit 714 can retain image file type information be vector image, and it is other in same or similar image group are non- Vector image replaces with the reservation image, in this way, other non-vectors can be used as and be replaced to be described in same or similar image group Change image.
It is to be appreciated that the file for being replaced image can be deleted, and updates in the source file of the application and be replaced image Reference.Preferably, the location information for being replaced image file, the unit replacement can be needed to obtain from the preparation file 716 can replace with the location information for being replaced image file in the letter of position corresponding to the image file retained in described image group Breath, and can will be replaced image-erasing in described image group, in this way, to show it is described be replaced image file when, can be by institute The image file of reservation is stated to show, it, can be according to being replaced image file wherein when showing the image file of the reservation Size information zooms in or out the image file of the reservation accordingly, and zooming in or out for vector image, For a user, the effect shown has no apparent difference.
It is to be appreciated that the recognition unit 714 is executing in identification operation according to the dimension information of image file, if figure When as in group being non-vector image, then the identification can be executed according to the dimension information of image file and operated.
Preferably, the acquiring unit 710 can obtain the dimension information for the image file that image group includes.For example, a figure As group may include that sample.png, [email protected], [email protected] tri- open image file, wherein image file Sample.png, [email protected], [email protected] dimension information may respectively be 30px*30px, 48px*48px, 200px*200px。
The recognition unit 714 is for judging in described image group with the presence or absence of an image file by being enlarged to institute Clarity after stating other images in image group is not less than default clarity.
Preferably, assuming in image group, reservation image V1 can be replaced other and be replaced image, in this way, can be by comparing Retain image V1 and other are replaced the dimension information between image V2 to be judged.In addition, passing through when retaining image needs When diminution mode becomes to be replaced image, since image file diminution is little to the image of its clarity, for will protect It stays image needs to be directly become when being replaced image by diminution mode, can will be replaced image and directly delete.
For example, the dimension information for retaining image V1 is a1, the dimension information for being replaced image V2 is a2;Definition amplification replacement Rate R=(a2-a1)/a1, wherein a2 is not less than a1, indicates that replacement image needs become to be replaced image by way of amplification. When amplify replacement rate R not within a preset range when, replacement image scaling can be indicated to may when being replaced image file pattern Lead to the decline or improper of its clarity;When amplify replacement rate R be located at preset range (such as 0 to 1) it is interior when, can indicate replace image It zooms to and can guarantee certain clarity when being replaced image file pattern.
It is to be appreciated that the recognition unit 714 passes through amplification behaviour with the presence or absence of an image file in judging image group Make to other images, and the preset clarity that is not less than of image also can determine whether to whether there is in image group before after amplifying operation The identical image file of dimension information.
When image file identical there are dimension information, the same or similar, size that indicates in the image group that there are images Identical at least two image files of information, therefore, the recognition unit 714 can will retain the image text of at least two image files Part is as reservation image, and other identical image files of very little information can be used as and be replaced image.
When the dimension information of image file each in image group is not identical, the recognition unit 714 be can determine whether in image group Whether within a preset range reference picture is converted into being replaced amplification replacement rate corresponding when image;When amplification replacement rate is in institute When stating in preset range, it can retain reference picture file in image group as document retaining, other image files can then be made To be replaced image.
Preferably, the recognition unit 714 can be by preparing the smallest image text of dimension information in file acquisition image group Part by the image file of other sizes information in image group image as a comparison, judges to be replaced by reference picture as reference picture Within a preset range whether amplification replacement rate when being changed to a contrast images in image group.In other embodiments, when described There are when at least two the smallest image files in image group, the recognition unit 714 can randomly choose described at least two most An image file is as the reference paper in small image file.
When amplifying replacement rate in the preset range, the recognition unit 714 is replaced described by the reference picture The contrast images are changed to, therefore, the reference picture can be used as reservation image, and using the contrast images as being replaced figure Picture, later, the replacement unit 716 can be replaced image-erasing for described, and it is smaller can so to retain dimension information in image group Image file, advantageously reduce be packaged after file volume;Later, it can also continue to judge that reference picture replaces with image group In other contrast images when amplification replacement rate.
When amplifying replacement rate not in the preset range, after indicating the contrast images by reference picture amplification It may have a certain impact to clarity, still, be obtained after diminution can be passed through by the contrast images due to the reference picture, Thus, the recognition unit 714 can using the reference picture as being replaced image, and return execute it is described by ruler in image group The very little the smallest image file of information is schemed as a comparison as reference picture, and by the image file of other sizes information in image group Picture, wherein the reference picture and contrast images be it is described by image group except it is described be replaced image in addition to other images text Part.
Later, whether the quantity that can determine whether contrast images in image group is 1;When quantity is 1, indicate in described image group Remaining contrast images can be used as retaining image.
In other embodiments, the recognition unit 714 judges in image group with the presence or absence of the identical figure of dimension information As file can also omit.For example, retaining image V1's when containing the identical image file of two dimension informations in image group Dimension information is a1, and the dimension information for being replaced image V2 is a2, according to amplification replacement rate R=(a2-a1)/a1 it is found that R=0. At this point, the judgement of the recognition unit 714 amplification replacement rate R is located in preset range (such as 0 to 1), replacement image scaling can be indicated To that can protect certain clarity when being replaced image file pattern, therefore, the recognition unit 714 can obtain being replaced image V2, and the location information for being replaced image is replaced with to the location information for retaining image.
In other embodiments, the recognition unit 714 can determine whether in described image group with the presence or absence of a reference picture Corresponding each amplification replacement rate is not less than preset clarity when by amplifying operation to other all contrast images.When depositing When, the recognition unit 714 can be using the reference picture as the reservation image, and using other contrast images as institute It states and is replaced image.When it be not present, described image group is then had the image text of full-size information by the recognition unit 714 Part is replaced image described in other image file conducts as the reservation image.
For example, for the first image group, sample.png (1 times of figure), [email protected] (2 times of figures), sample@ The size of 3x.png (3 times of figures) may respectively be 30px*30px, 44px*44px, 48px*48px.When retaining 1 times of figure, due to 2 Figure can be reached with 1 times of figure by way of scaling again, and having its amplification replacement rate of certain clarity after scaling is (44- 30)/30=0.47 can consider (in other embodiments, to be amplified replacement rate and is also referred to as (44*44- within a preset range 30*30)/30*30=1.15, and preset range at this time then needs to be adjusted correspondingly);And due to 3 times of figures and 1 times of figure It can be reached by way of scaling, and with certain clarity, (it is (48-30)/30=0.6 that it, which amplifies replacement rate, after scaling It is considered that within a preset range, and the standard of other amplification replacement rates also needs being consistent property);Therefore, it is possible to protect Staying 1 times of figure is to retain, and 2 times of figures and 3 times of figures can be replaced as image, i.e., 2 times figures and 3 times of figures are replaced by 1 times of figure.
For the second image group, sample.png (1 times of figure), [email protected] (2 times of figures), [email protected] (3 Times scheme) size may respectively be 30px*30px, 44px*44px, 77px*77px.When retaining 1 times of figure, due to 2 times of figures and 1 times Figure can be reached by way of scaling, and have certain clarity after scaling;And after being scaled due to 3 times of figures by 1 times of figure Scaling is lower (it is that (77-30)/30=1.57 can consider not within a preset range that it, which amplifies replacement rate) with clarity, and by 2 times of figures can be reached by way of scaling when being amplified to 3 times of figures (its amplify replacement rate be (77-44)/44=0.75 can recognize For within a preset range), and there is certain clarity after scaling;Therefore, it is possible to retaining 2 times of figures is reservation image, and by 1 times Figure and 3 times of figures are used as and are replaced image, and 1 times of figure obtains after being shunk by 2 times of figures, and the influence to its clarity is not Greatly.
For third image group, sample.png (1 times of figure), [email protected] (2 times of figures), [email protected] (3 Times scheme) size may respectively be 30px*30px, 44px*44px, 200px*200px.When retaining 2 times of figures, since 1 times of figure can It can be reached by way of scaling by 2 times of figures, and there is certain clarity after scaling, therefore, it is possible to which retaining 2 times of figures is to protect Image is stayed, and 1 times of figure is used as and is replaced image;But 2 times of figures are by way of scaling when reaching 3 times of figures, 3 after scaling The clear degree of times figure is significantly affected that (it is (200-44)/44=3.54 that it, which amplifies replacement rate, it is believed that it is not in default model In enclosing), thus, 3 times of figures can also remain in image group, and 2 times of figures are used as and are replaced image, i.e., in image group at this time Contain 3 times of figures.At this point, 3 times of figures in image group can retain, and 1 times of figure and 2 times of figures can be used as and are replaced image, and can quilt The reservation image replacement.
The replacement unit 716 replaces image institute for will be replaced the updating location information of image file in image group Corresponding location information.
For example, due to retaining 1 times of figure, the replacement unit 716 can be by the source file of application in the first above-mentioned image group The location information of middle 2 times of figures of reference and 3 times of figures can be updated to the path where 1 times of figure.
In the second above-mentioned image group, due to retaining 2 times of figures, the replacement unit 716 can will draw in the source file of application The path where 1 times of figure can be updated to the location information of 1 times of figure and 3 times of figures.
In above-mentioned third image group, due to retaining 3 times of figures, but 1 times of figure and 2 times of figures are used as and are replaced image, described The position that 1 times of figure and 2 times of figures are quoted in the source file of application can be updated to the path where 3 times of figures by replacement unit 716.
Above-mentioned image processing system is able to carry out duplicate removal behaviour by the same or similar picture of the source file of identification application Make, can correspond to and update the reference of source file and be changed to after duplicate removal as a result, so that reaching not needing substantially of using does additional work Work can facilitate identification similar pictures, reduce the size of application file, reduce the flow consumption of user, while can also be improved down The success rate of load.
It should be noted that each embodiment of corresponding above system control method, image processing system 417 may include Part or all in each functional module shown in Fig. 3, the function of each module will introduced in detail below.At images above Identical noun related terms and its specific explanation are readily applicable to following to each in each embodiment of reason method The function introduction of module.For the sake of saving space and avoiding repetition, details are not described herein again.
If the integrated module of computer installation 40 of the present invention is realized in the form of SFU software functional unit and as only Vertical product when selling or using, can store in a computer readable storage medium.Based on this understanding, this hair All or part of the process in the bright method for controlling volume for realizing the respective embodiments described above, can also be referred to by computer program Relevant hardware is enabled to complete, the computer program can be stored in a computer readable storage medium, the computer journey Sequence is when being executed by processor, it can be achieved that step in the method for controlling volume of the respective embodiments described above.Wherein, the computer Program includes computer program code, and the computer program code can be source code form, object identification code form, can be performed File or certain intermediate forms etc..The computer-readable medium may include: that can carry the computer program code Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be managed according to the administration of justice Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent Practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.System, device or mobile terminal apparatus Multiple units, module or the device stated in claim can also by the same unit, module or device by software or Hardware is realized.The first, the second equal words are used to indicate names, and are not indicated any particular order.
Embodiment of above is only used to illustrate the technical scheme of the present invention and not to limit it, although referring to the above preferable embodiment party Formula describes the invention in detail, those skilled in the art should understand that, it can be to technical solution of the present invention It modifies or equivalent replacement should not all be detached from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a kind of image processing method, which is characterized in that the described method includes:
The attribute information that the source file in application includes each image file is obtained, wherein the attribute information includes each institute State location information corresponding to image file;
Texture feature extraction carried out to each described image file, and by the similarity of textural characteristics be greater than two of preset value or Multiple described image files are as image group;
Identification operation is carried out according to image file of the recognition rule to described image group, to obtain the reservation of corresponding described image group Image and it is replaced image;
It is the letter of position corresponding to the reservation image that updating location information corresponding to image file will be replaced in image group Breath.
2. image processing method as described in claim 1, which is characterized in that described to carry out textural characteristics to each image file Include: before extracting
Remove the preset characters for including in the name information of image file;
Judge whether there is the identical two or more image files of name information after removing preset characters;
The identical two or more image files of name information after removal preset characters if it exists, will remove title after preset characters Information is identical described two or multiple images file is as described image group;
It is described to include: to each described image file progress texture feature extraction
Texture feature extraction is carried out to the image file for not having grouping in described image file.
3. image processing method as described in claim 1, which is characterized in that it is described according to recognition rule to described image group Image file carries out identification operation, to obtain the reservation image of corresponding described image group and be replaced image to include:
Judge in described image group whether include vector type image file;
When in described image group including the image file of vector type, using the image file of the vector type as the guarantor Image is stayed, other image files in described image group other than the reservation image are replaced image as described in.
4. image processing method as described in claim 1, which is characterized in that it is described according to recognition rule to described image group Image file carries out identification operation, to obtain the reservation image of corresponding described image group and be replaced image to include:
Judge the reference picture for meeting preset condition with the presence or absence of one in described image group;Wherein, the preset condition are as follows: described Reference picture is amplified to the clarity after other images in described image group and is not less than default clarity;
If it exists, using the reference picture for meeting preset condition as the reservation image, and by its in described image group His image is replaced image described in being used as.
5. image processing method as claimed in claim 4, which is characterized in that whether there is one in the judgement described image group The reference picture for meeting preset condition includes:
Judge amplification replacement rate corresponding when the reference picture is converted into other images in described image group whether default In range, wherein it is described amplification replacement rate according to the reference picture and be converted into other images in described image group size believe Breath is calculated.
6. image processing method as claimed in claim 5, which is characterized in that the judgement reference picture is converted into described In image group amplification replacement rate corresponding when other images whether include: within a preset range
Using the smallest image file of dimension information in image group as reference picture, and by the figure of other sizes information in image group As file image as a comparison;
Judge amplification replacement rate when being converted to a contrast images in image group by the reference picture whether in the default model In enclosing;
When the amplification replacement rate is in the preset range, the contrast images are replaced image as described in, and return Judge amplification replacement rate when replacing with a contrast images in image group by the reference picture whether described described in receipt row In preset range;
When amplifying replacement rate not in the preset range, using the reference picture as being replaced image, and execution is returned to It is described using the smallest image file of dimension information in image group as reference picture, and by the figure of other sizes information in image group As file image as a comparison, wherein the reference picture and contrast images are that described will be replaced image except described in image group Other outer image files.
7. the image processing method as described in any one of claim 1-6, which is characterized in that the method also includes:
It deletes in described image group and is replaced image file.
8. a kind of image processing system, which is characterized in that the system comprises:
Acquiring unit, for obtaining the attribute information that the source file in application includes each image file, wherein the attribute Information includes location information corresponding to each described image file;
Extraction unit for carrying out texture feature extraction to each described image file, and the similarity of textural characteristics is greater than Two or more described image files of preset value are as image group;
Recognition unit, for carrying out identification operation according to image file of the recognition rule to described image group, to obtain corresponding institute It states the reservation image of image group and is replaced image;
Replacement unit, for updating location information corresponding to image file will to be replaced in image group as reservation image institute Corresponding location information.
9. a kind of computer installation, including processor and memory, several computer programs are stored on the memory, it is special Sign is, is realized when the processor is for executing the computer program stored in memory as any one in claim 1-7 The step of image processing method described in item.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed The step of image processing method as described in any one of claim 1-7 is realized when device executes.
CN201811151264.1A 2018-09-29 2018-09-29 Image processing method, system, computer installation and readable storage medium storing program for executing Pending CN109543062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811151264.1A CN109543062A (en) 2018-09-29 2018-09-29 Image processing method, system, computer installation and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811151264.1A CN109543062A (en) 2018-09-29 2018-09-29 Image processing method, system, computer installation and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109543062A true CN109543062A (en) 2019-03-29

Family

ID=65841372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811151264.1A Pending CN109543062A (en) 2018-09-29 2018-09-29 Image processing method, system, computer installation and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109543062A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232394A (en) * 2020-09-30 2021-01-15 北京三快在线科技有限公司 Method and device for processing image, electronic equipment and storage medium
CN112783840A (en) * 2020-06-08 2021-05-11 北京金山办公软件股份有限公司 Method and device for storing document, electronic equipment and storage medium
WO2021088333A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Image storage method, image reading method, image memory and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094588A1 (en) * 2005-10-25 2007-04-26 Research In Motion Limited Image stitching for mobile electronic devices
CN105912657A (en) * 2016-04-11 2016-08-31 乐视控股(北京)有限公司 Automatic detection and compression method and system of images in application
CN106777007A (en) * 2016-12-07 2017-05-31 北京奇虎科技有限公司 Photograph album Classified optimization method, device and mobile terminal
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN108089865A (en) * 2017-12-04 2018-05-29 北京小米移动软件有限公司 Using method of cutting out, device and storage medium
CN108170747A (en) * 2017-12-20 2018-06-15 北京酷我科技有限公司 A kind of method that picture in APP is managed on iOS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094588A1 (en) * 2005-10-25 2007-04-26 Research In Motion Limited Image stitching for mobile electronic devices
CN105912657A (en) * 2016-04-11 2016-08-31 乐视控股(北京)有限公司 Automatic detection and compression method and system of images in application
CN106777007A (en) * 2016-12-07 2017-05-31 北京奇虎科技有限公司 Photograph album Classified optimization method, device and mobile terminal
CN107368536A (en) * 2017-06-22 2017-11-21 深圳市金立通信设备有限公司 The optimization method and terminal of a kind of installation kit
CN108089865A (en) * 2017-12-04 2018-05-29 北京小米移动软件有限公司 Using method of cutting out, device and storage medium
CN108170747A (en) * 2017-12-20 2018-06-15 北京酷我科技有限公司 A kind of method that picture in APP is managed on iOS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王元_TRUMP: "Android App包瘦身优化实践(转自美团)", pages 1 - 14, Retrieved from the Internet <URL:https://www.jianshu.com/p/6c17f6438aab> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021088333A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Image storage method, image reading method, image memory and storage medium
CN112783840A (en) * 2020-06-08 2021-05-11 北京金山办公软件股份有限公司 Method and device for storing document, electronic equipment and storage medium
CN112783840B (en) * 2020-06-08 2024-06-25 北京金山办公软件股份有限公司 Method and device for storing document, electronic equipment and storage medium
CN112232394A (en) * 2020-09-30 2021-01-15 北京三快在线科技有限公司 Method and device for processing image, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108710613B (en) Text similarity obtaining method, terminal device and medium
CN114155543B (en) Neural network training method, document image understanding method, device and equipment
CN106294798A (en) A kind of images share method based on thumbnail and terminal
EP3869385A1 (en) Method for extracting structural data from image, apparatus and device
CN112541338A (en) Similar text matching method and device, electronic equipment and computer storage medium
CN109543062A (en) Image processing method, system, computer installation and readable storage medium storing program for executing
CN111325245B (en) Repeated image recognition method, device, electronic equipment and computer readable storage medium
WO2019062081A1 (en) Salesman profile formation method, electronic device and computer readable storage medium
CN109272043A (en) Training data generation method, system and electronic equipment for optical character identification
CA3168501A1 (en) Machine learned structured data extraction from document image
CN107391545A (en) A kind of method classified to user, input method and device
CN107590291A (en) A kind of searching method of picture, terminal device and storage medium
CN113378940A (en) Neural network training method and device, computer equipment and storage medium
CN111144370A (en) Document element extraction method, device, equipment and storage medium
CN115293332A (en) Method, device and equipment for training graph neural network and storage medium
CN111488732A (en) Deformed keyword detection method, system and related equipment
CN114821590A (en) Document information extraction method, device, equipment and medium
JP7186075B2 (en) A method for guessing character string chunks in electronic documents
CN114022891A (en) Method, device and equipment for extracting key information of scanned text and storage medium
CN111444368B (en) Method and device for constructing user portrait, computer equipment and storage medium
CN115409041B (en) Unstructured data extraction method, device, equipment and storage medium
CN104516899B (en) Character library update method and device
CN110544166A (en) Sample generation method, device and storage medium
CN115116080A (en) Table analysis method and device, electronic equipment and storage medium
CN114661904A (en) Method, apparatus, device, storage medium, and program for training document processing model

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