CN112232394A - Method and device for processing image, electronic equipment and storage medium - Google Patents
Method and device for processing image, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112232394A CN112232394A CN202011063073.7A CN202011063073A CN112232394A CN 112232394 A CN112232394 A CN 112232394A CN 202011063073 A CN202011063073 A CN 202011063073A CN 112232394 A CN112232394 A CN 112232394A
- Authority
- CN
- China
- Prior art keywords
- image
- images
- target
- group
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a method and a device for processing images, electronic equipment and a storage medium, and belongs to the technical field of internet. The method comprises the following steps: the method includes the steps that a plurality of first images corresponding to a target APP and paths of the first images in the first images are obtained. Determining the similarity between different first images, and dividing the plurality of first images into at least one image group according to the similarity. For any image group, a second image is determined from the image group, images except the second image in the image group are used as third images, a target object which refers to the third images is determined, a path which is referred by the target object is replaced by a path of the second images, and the third images are deleted. According to the image processing method and device, the similar first images are divided into the same image group, only the second image is reserved in one image group, and the third image is deleted, so that the image repetition phenomenon is thoroughly eliminated, and the image processing effect is good. The normal operation of the target object is ensured through the path replacement process.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for processing an image, an electronic device, and a storage medium.
Background
With the development of internet technology, the development amount of APP (Application) is increasing. Among them, there is often duplication between images contained in version-updated APPs. Since the image duplication phenomenon may increase the packet size of the APP installation packet and increase the traffic consumption of the user, it is necessary to eliminate the image duplication phenomenon through an image processing process.
In the related art, first, an image component library for storing images already included in the APP is created. When a new image is needed in the version updating process, the image component library is searched first. And if the image component library contains images needing to be newly added, using the images stored in the image component library. And if the image component library does not contain the image which needs to be newly added, adding the image which needs to be newly added into the APP installation package.
However, development of APP often involves multiple services. After a plurality of service parties respectively determine images needing to be newly added according to the image component library, the images needing to be newly added still have the possibility of being repeated. Therefore, the related technology can eliminate the image duplication phenomenon thoroughly and has poor image processing effect.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing an image, electronic equipment and a storage medium, and aims to solve the problems that in the related art, the image repetition phenomenon is not thoroughly eliminated and the image processing effect is poor. The technical scheme is as follows:
in one aspect, a method of processing an image is provided, the method comprising:
the method comprises the steps of obtaining a plurality of first images corresponding to a target application program, and obtaining the path of each first image in the plurality of first images;
determining the similarity between different first images, and dividing the plurality of first images into at least one image group according to the similarity;
for any image group, a second image is determined from any image group, images except the second image in any image group are used as third images, a target object which refers to the third images is determined, a path which the target object refers to is replaced by a path of the second images from the path of the third images, and the third images are deleted.
In an exemplary embodiment, after the obtaining the path of each of the plurality of first images, the method further comprises: acquiring a working domain, copying the plurality of first images to obtain a plurality of copied images, and transferring the plurality of copied images into the working domain, wherein the copied images correspond to the first images one by one;
the determining, for any one image group, a second image from the any one image group, and regarding other images in the any one image group except the second image as third images, includes: for any image group in the working domain, determining the second image from the copy images included in the any image group, and taking the other copy images except the second image in the any image group as the third image;
the deleting the third image comprises: and deleting the image group where the third image is located from the working domain, deleting the first image corresponding to the third image, wherein the first image corresponding to the third image is used for copying to obtain the third image.
In an exemplary embodiment, the determining the similarity between different first images, and dividing the plurality of first images into at least one image group according to the similarity includes: determining a target image from the copy images stored in the working domain, acquiring a first folder in the working domain, and transferring the target image to the first folder; determining the similarity value between each copy image in the other copy images except the target image in the working domain and the target image, transferring the copy images with the similarity value larger than the similarity threshold value with the target image into the first folder, and taking the first folder as an image group; and responding to the fact that the copy images remain in the working domain, acquiring at least one other folder according to the copy images remaining in the working domain, and taking any other folder as an image group.
In an exemplary embodiment, said for any one image group, before determining the second image from said any one image group, said method comprises: for any one image group, determining the number of images in the any one image group; and in response to the number of images in any one image group being greater than the number threshold, re-executing the determining of the second image from any one image group.
In an exemplary embodiment, the method further comprises: deleting the any one image group in response to the number of images in the any one image group not being greater than a number threshold.
In an exemplary embodiment, the acquiring a plurality of first images corresponding to a target application includes: acquiring a target project of the target application program, wherein the target project comprises a plurality of subfiles; traversing the plurality of subfiles, and using the subfile in the plurality of subfiles, which is suffixed to the image suffix, as the first image.
In an exemplary embodiment, said determining, for any one of the image groups, a second image from said any one of the image groups comprises: for any one image group, determining the image quality of each image in the any one image group; and taking the image with the highest image quality in any image group as the second image.
In one aspect, there is provided an apparatus for processing an image, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of first images corresponding to a target application program and acquiring the path of each first image in the plurality of first images;
the dividing module is used for determining the similarity between different first images and dividing the plurality of first images into at least one image group according to the similarity;
a determining module, configured to determine, for any one of the image groups, a second image from the any one of the image groups, determine, as a third image, an image other than the second image in the any one of the image groups, and determine a target object that refers to the third image;
and the replacing module is used for replacing the path referenced by the target object from the path of the third image to the path of the second image and deleting the third image.
In an exemplary embodiment, the apparatus further comprises: the copying module is used for acquiring a working domain, copying the plurality of first images to obtain a plurality of copy images, transferring the plurality of copy images into the working domain, and enabling the copy images to be in one-to-one correspondence with the first images;
the determining module is configured to determine, for any one image group in the work domain, the second image from the copy images included in the any one image group, and take the other copy images except the second image in the any one image group as the third image;
the replacing module is used for deleting the image group where the third image is located from the working domain, deleting the first image corresponding to the third image, and copying the first image corresponding to the third image to obtain the third image.
In an exemplary embodiment, the dividing module is configured to determine a target image from the copy images stored in the work domain, obtain a first folder in the work domain, and transfer the target image to the first folder; determining the similarity value between each copy image in the other copy images except the target image in the working domain and the target image, transferring the copy images with the similarity value larger than the similarity threshold value with the target image into the first folder, and taking the first folder as an image group; and responding to the fact that the copy images remain in the working domain, acquiring at least one other folder according to the copy images remaining in the working domain, and taking any other folder as an image group.
In an exemplary embodiment, the dividing module is further configured to determine, for any one image group, the number of images in the any one image group; and determining a second image from any one image group in response to the number of images in any one image group being greater than the number threshold.
In an exemplary embodiment, the apparatus further comprises: a deleting module for deleting any one of the image groups in response to a number of images in the any one of the image groups not being greater than a number threshold.
In an exemplary embodiment, the obtaining module is configured to obtain a target project of a target application, where the target project includes a plurality of subfiles; traversing the plurality of subfiles, and using the subfile in the plurality of subfiles, which is suffixed to the image suffix, as the first image.
In an exemplary embodiment, the determining module is configured to determine, for any one of the image groups, image qualities of respective images in the any one of the image groups; and taking the image with the highest image quality in any image group as the second image.
In one aspect, an electronic device is provided that includes a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement a method of processing an image as provided by any of the exemplary embodiments of this application.
In one aspect, a readable storage medium is provided, in which at least one instruction is stored, the instruction being loaded and executed by a processor to implement the method for processing an image provided by any one of the exemplary embodiments of the present application.
In another aspect, there is provided a computer program or computer program product comprising: computer instructions which, when executed by a computer, cause the computer to implement a method of processing an image as provided by any of the exemplary embodiments of this application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the process of processing the images, the first images which are relatively similar are firstly divided into the same image group. Thereafter, by leaving only the second image in one image group and deleting the other images except the second image, the image duplication phenomenon is eliminated. And the path referred by the target object is replaced by the path of the deleted third image into the path of the reserved second image, so that the target object can continue to refer to the second image similar to the third image subsequently, and normal display and operation of the target object in the APP are ensured. Therefore, the method provided by the embodiment has the advantages that the image repetition phenomenon is eliminated thoroughly, the image processing effect is good, the third image is deleted from the APP, the size of the target project of the APP is reduced, the package size of the APP installation package obtained by compressing the package of the target project is reduced, the flow consumption of an APP user is reduced, and the use experience of the APP user is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for processing an image provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of transferring a copy image into a work domain as provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart of transferring a copy image into a folder according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for processing an image according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a method for processing an image, which can be applied to an implementation environment as shown in fig. 1. In fig. 1, at least one electronic device 11 and a server 12 are included, and the electronic device 11 may be communicatively connected to the server 12 to download an installation package of a target application from the server 12.
The electronic device 11 may be any electronic product that can perform human-computer interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment, for example, a PC (Personal computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC (pocket PC), a tablet computer, a smart car, a smart television, a smart speaker, and the like.
The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
It should be understood by those skilled in the art that the above-mentioned electronic device 11 and server 12 are only examples, and other existing or future electronic devices or servers may be suitable for the present application and are included within the scope of the present application and are incorporated herein by reference.
Based on the implementation environment shown in fig. 1, referring to fig. 2, an embodiment of the present application provides a method for processing an image, where the method is applicable to a server or an electronic device shown in fig. 1. As shown in fig. 2, the method includes the following process 201 and 203.
And 201, acquiring a plurality of first images corresponding to the target APP, and acquiring a path of each first image in the plurality of first images.
The plurality of first images corresponding to the target APP are images for displaying in an APP interface provided by the target APP. In the plurality of first images, there may be repetitions between different first images. Therefore, the present embodiment needs to determine whether there is an image duplication phenomenon in the plurality of first images, and if there is an image duplication phenomenon, the image duplication phenomenon is reduced or eliminated through the image processing process. In this embodiment, the repetition of different first images includes not only the case where two or more first images are completely identical, but also the case where two or more first images are relatively similar.
In an exemplary embodiment, acquiring a plurality of first images corresponding to a target application includes: and acquiring a target project of the target APP, wherein the target project comprises a plurality of subfiles. And traversing the plurality of subfiles, and using the subfile which is suffixed to the image suffix in the plurality of subfiles as the first image.
The target project of the target APP comprises a plurality of subfiles, and the plurality of subfiles are used for providing related functions of the target APP. Through compressing the package to the target engineering, can obtain the installation package of target APP, this target APP's installation package is used for this target APP of electronic equipment installation. In this embodiment, it is through the image processing process that the repeated first image is deleted from the target project, thereby reducing the size of the target project. And then, compressing and packaging the target project with the reduced size to obtain a smaller installation package of the target APP.
Each subfile in the plurality of subfiles in the target project has a file name, and the subfiles correspond to the file names one to one. One file name comprises a file main name and a file suffix, and the file type of the sub-file can be confirmed through the file suffix. Since a subfile suffixed to an image suffix from among the plurality of subfiles belongs to the image category, the subfile suffixed to the image suffix from among the plurality of subfiles can be regarded as the first image. Exemplary image suffixes include, but are not limited to,. jpg (Joint Photographic Experts Group),. png (Portable Network Graphics),. bmp (Bitmap), and. gif (Graphics exchange Format), among others.
For a plurality of subfiles included in a target project of a target APP, the first image is obtained through a traversal process of the plurality of subfiles, so that omission is avoided. Illustratively, the present embodiment performs traversal in a recursive traversal manner. The target project often includes a plurality of folders, and the plurality of subfiles are located in the plurality of folders, respectively. In the process of recursive traversal, one of the plurality of folders is taken as a starting point, all the subfiles included in the folder are traversed, and the folder is returned after the traversal is completed. And then, transferring to the next folder in the target project, traversing all sub-files included in the next folder, and returning to the next folder. And circularly performing in the mode until all the folders in the target project are traversed, so that the traversal of all the subfiles in the target project is realized.
Of course, the above-mentioned recursive traversal method is only an example, and the present embodiment may also employ other traversal methods according to experience or needs. For example, the present embodiment may also adopt non-recursive depth-first traversal and breadth-first traversal.
The plurality of first images correspond to file names, and each of the plurality of first images corresponds to a path, and the path of any one first image is a path that needs to be used when reference needs to be made to the any one first image. For example, if the first image W needs to be displayed in the interface Q in the target APP, the path of the first image W may be added to the relevant code of the interface Q, and the first image W may be displayed in the interface Q by referring to the first image W according to the added path.
In an exemplary embodiment, after obtaining the path of each of the plurality of first images corresponding to the target application program, the method further includes: and acquiring a working domain, copying the plurality of first images to obtain a plurality of copy images, and transferring the plurality of copy images into the working domain, wherein the copy images correspond to the first images one to one.
See FIG. 3, P1、P2、……、Pn(n ≧ 2) is a plurality of first images in the target project G of the target APP. By applying to any one of the first images PnCan obtain a copy of the first picture P with the one of the first pictures PnAre all identicalA copy picture Pn'. Note that the image P is copiedn' with the first picture PnThe complete agreement means that: copy picture Pn' the content, file name and path are the same as those of the first image. After the plurality of first images are copied, a plurality of copy images can be obtained, and thus the copied plurality of copy images are transferred to the work domain a. It can be understood that after the transfer process is completed, the target project G of the target APP still stores a plurality of first images P1、P2、……、PnAnd a plurality of copy images P are stored in the working field A1’、P2’、……、Pn', and the copy image corresponds one-to-one to the first image.
Since the copy image and the first image have the same content, the copy image in the work domain a can be directly used to determine whether the image duplication phenomenon exists in the subsequent process, without directly using the first image in the target project G of the target APP. In the mode, even if processing errors occur in the process of determining whether the image repetition phenomenon exists, the target project G of the target APP cannot be influenced, and therefore the normal operation of the target APP can be guaranteed.
In addition, as shown in fig. 3, the embodiment may further obtain an index file M to convert the first image P into the first image P1、P2、……、PnThe file name and the path of (2) are written in the index file M, respectively. Wherein the file name is used for identifying the first image. When the path of the first image needs to be acquired subsequently, the path of the first image can be searched and acquired from the index file M through the file name.
For example, in this embodiment, the work domain a and the index file M may be created after the plurality of first images and the file names and the paths of the first images are acquired. After the creation is completed, all the copy images of the first image are collectively transferred to the work domain a, and the file names and paths of all the first images are collectively written in the index file M. Alternatively, the working domain a and the index file M may be created in advance in this embodiment. In this case, in this embodiment, each time a first image is obtained from the target project G of the target APP, the first image is copied, the obtained copy image is transferred to the created work domain a, and the file name and path of the first image are written into the created index file M. Illustratively, the above-mentioned working domain a index file M and the target project G of the target APP are located under the same directory.
And 202, determining the similarity between different first images, and dividing the plurality of first images into at least one image group according to the similarity.
The method for dividing the plurality of first images into at least one image group according to the similarity comprises the following steps: the first images with the larger similarity are divided into the same image group, and each first image included in any one image group is a relatively similar image, namely an image which is mutually repeated. Therefore, the deletion of the duplicate image can be subsequently performed in each image group, thereby eliminating the image duplication phenomenon.
Corresponding to the case where the plurality of copied images obtained by copying the first image are transferred to the work domain in 201, in the exemplary embodiment, the similarity between different first images is determined, and the plurality of first images are divided into at least one image group according to the similarity, including the following process 2021 and 2023.
2021, determining a target image from the copy images stored in the work area, obtaining a first folder in the work area, and transferring the target image to the first folder.
In this embodiment, if the first folder in the working domain a can be created in advance, acquiring the first folder includes: the created first folder is called. Alternatively, the first folder may be created after the target image is determined. That is, acquiring a first folder includes: a first folder is created. For example, from the determination of the target image, the present embodiment may randomly select one copy image as the target image from among the copy images stored in the work area a. Alternatively, the present embodiment may also determine the time at which the copy image is transferred into the work domain a, so that the copy image that is transferred into the work domain a at the earliest time, that is, the copy image that is transferred into the work domain a first, is taken as the target image. The present embodiment does not limit the manner of determining the target image, and the present embodiment may also determine the target image in other feasible manners besides the above-mentioned exemplary manner.
2022, determining the similarity value between each copy image in the copy images except the target image in the working domain and the target image, transferring the copy images with the similarity value larger than the similarity threshold value to a first folder, and regarding the first folder as an image group.
For example, for any copy image, the present embodiment may determine a similarity value between the any copy image and the target image through an image recognition algorithm. The similarity value between any one of the copy images and the target image is used to indicate the similarity between the copy image and the target image. The higher the similarity value between any one of the copy images and the target image, the more similar the any one of the copy images and the target image. Therefore, the copy image having the similarity value with the target image larger than the similarity threshold value is an image having a high similarity with the target image, and thus the copy image and the target image can be regarded as a duplicate image, and the copy image can be transferred to the first folder in which the target image is located. The first folder can then be treated as an image group.
It should be noted that the smaller the value of the similarity threshold, the easier the similarity value between the copy image and the target image is greater than the similarity threshold, so that the copy image is easier to be transferred to the first folder where the target image is located. Therefore, the larger the number of copy images included in the first folder, the smaller the number of image groups obtained by the division. In this case, the smaller the number of first images remaining in the target project of the target APP after the subsequent deletion of the duplicate images. That is, the larger the reduction amount of the target project is, the smaller the package size of the installation package obtained by subsequently compressing and packaging the target project is. It follows that in practical applications, the similarity threshold may be set according to the required package size of the installation package. The smaller the required package size of the installation package, the smaller the similarity threshold may be set.
Referring to fig. 4, the steps of transferring the target image and the copy image to the first folder will be explained:
the method comprises the following steps: determining a target image P from a work field A1Creating a first folder B in the working domain A1A target image P1Transfer to the first folder B1In (1).
Step two: for the division target image P in the working field A1Any other copy picture Pn(n.gtoreq.2), determining the copy image PnWith the target image P1The similarity value between them. If the similarity value is greater than the similarity threshold, the copied image P is copiednTransfer to the first folder B1In (1). If the similarity value is not greater than the similarity threshold f, the copied image P is copiednRemain in working domain a. For the copy picture PnAfter the transfer or reservation, the n + + indication in FIG. 4 increases the value of n by 1 to continue to apply the copy image P as described in step twonIs processed, i.e. it is determined that the next copy image needs to be transferred to the first document B1Still needs to be retained in the working domain a.
Step three: repeating the step two for one time or multiple times until the division target image P in the working domain A is traversed1All but the copied image. After the traversal is completed, the first folder B1Including the target image P1And all the images P in the working field A and the target image P1A more similar copy image.
After the execution of 2021 and 2022, if there is no copy image left in the work domain a, it means that all the copy images in the work domain a have been transferred to the first folder. That is, all the other copy images except the target image in the working domain a are similar to the target image, or there is a duplication between all the other copy images and the target image. In this case, 2023 does not need to be executed continuously, and 203 may be executed directly after 2022 is executed. For the case that there is a copy image left in the working area a, 2023 is further executed, and after 2023 is further executed, 203 is further executed, as described below.
2023, in response to the copy image remaining in the work area, acquiring at least one other folder from the copy image remaining in the work area, and regarding any one of the other folders as an image group.
It can be understood that, if there are remaining copy images in the working domain a, the similarity values between the remaining copy images and the target image are not greater than the similarity threshold, that is, the remaining copy images are all images with low similarity to the target image and no duplication with the target image. Therefore, it is necessary to further divide the remaining copy images into at least one image group in order to acquire images that are mutually overlapped in the remaining copy images.
The manner of dividing the remaining copy images into at least one image group is the same as that described in 2021 and 2022. Namely: determining a reference image from the remaining copy images, and transferring the reference image to a second folder B in the working domain A2In the second folder B, the copy images of the other copy images except the reference image and the reference image are transferred to the second folder B2In (1). After the transfer is completed, the second folder B2I.e. one other folder, the second folder B can be used2As a group of images.
Of course, if there are still remaining copy images in the working domain after the first folder and the second folder are obtained, the above-mentioned manner of dividing the remaining copy images into at least one image group needs to be continuously repeated until there are no remaining copy images in the working domain. It can be understood that, in the case where there are no remaining copy images in the work domain, the plurality of copy images existing in the work domain are respectively transferred to different image groups, so that the duplicate images are respectively deleted in the respective image groups in 203.
Note that 2021-2023 correspond to the case where the plurality of copy images obtained by copying the first image in 201 are transferred to the work area. When the first image is not copied and the plurality of first images in the target project of the target APP are directly divided into at least one image group, the dividing manner can also refer to the manner described in the above 2021-2023, and details thereof are not described herein again.
And 203, for any image group, determining a second image from any image group, using other images except the second image in any image group as third images, determining a target object which refers to the third images, replacing the path referred by the target object by the path of the third images into the path of the second images, and deleting the third images.
It can be understood that, without copying the first image, the images included in any image group are all the first images located in the target project of the target APP, and thus the second image and the third image determined from the image group are also located in the target project of the target APP. In the case of copying the first image, the images included in any one of the image groups are all copy images obtained by copying the first image while being located in the work area, and therefore the second image and the third image specified from the image group are also located in the work area. It can be seen that, in the latter case, determining the second image from any one of the image groups, and regarding the other images except the second image in any one of the image groups as the third image, includes: for any image group in the work domain, a second image is determined from the copy images included in any image group, and the other copy images except the second image in any image group are taken as third images.
Regardless of whether the first image is copied or not, the image duplication phenomenon can be eliminated for any one image group. That is, only images not greater than the number threshold are retained among all images included in any one image group, and the other images are deleted. The second image is an image to be reserved, and the third image is an image to be deleted. The number threshold is not limited in this embodiment, and for example, the number threshold is one in this embodiment.
In the process of determining the second image, the present embodiment may randomly select the second image from any one of the image groups. However, considering that the second image is an image to be retained, the present embodiment can also select an image with the highest image quality from any one image group as the second image. That is, in an exemplary embodiment, for any one image group, determining a second image from any one image group includes: for any one image group, the image quality of each image in any one image group is determined, and the image with the highest image quality in any one image group is taken as the second image. The factors affecting the image quality include, but are not limited to, image resolution, image brightness, image chroma, and the like, and the manner of determining the image quality is not limited in this embodiment.
Further, regardless of whether the first image is copied or not, in an exemplary embodiment, for any one of the image groups, before determining the second image from any one of the image groups, the method includes: for any one image group, the number of images in any one image group is determined. Determining the second image from any one of the image groups is performed in response to the number of images in any one of the image groups being greater than the number threshold.
Wherein, in response to the number of images in any one of the image groups being greater than the number threshold, it indicates that there is an image duplication phenomenon in any one of the image groups, and thus a second image can be further determined from any one of the image groups, so as to eliminate the image duplication phenomenon in the image group subsequently. And responding to the fact that the number of the images in any one image group is not larger than the number threshold, the situation that the image duplication phenomenon does not exist in any one image group is indicated, and a second image does not need to be determined from any one image group, so that waste of processing resources is avoided.
When the number of images in any one image group is not greater than the number threshold, the processing method used in the case of not copying the first image and the case of copying the first image are different. The images included in any one of the image groups are images located in the target project of the target APP without copying the first image. Since there is no image duplication phenomenon in any image group, there is no need to perform any processing on any image group, so that the images in any image group can be retained in the target project of the target APP.
When the first image is copied, the adopted processing mode comprises the following steps: any one of the image groups is deleted. The images included in the image group are copy images obtained by copying the first images, and the image group is located in the work domain, so that the processing performed on the image group does not affect the respective first images used for copying the respective copy images in the image group. That is, after any image group is deleted from the working domain, the first images used for copying the copy images in the image group still remain in the target project of the target APP and are not affected.
Regardless of the manner and process of determining the second image and the third image from any image group, after the determination of the second image and the third image is completed, the path referenced by the target object referencing the third image needs to be replaced by the path of the third image, so as to ensure the normal use of the target object. When the number of the third images is more than two, each third image needs to be traversed, and the path referred by the target object referring to each third image can be sequentially replaced according to the traversal order in the embodiment. For any third image, for example, the present embodiment may first find the paths of the second image and the third image from the index file according to the file names of the second image and the third image, and then replace the path of the third image with the path of the second image. Additionally, target objects include, but are not limited to, interfaces, windows, and the like, involving the display of images.
And before replacement, the target object refers to the third image through the path of the third image, and the target object displays the third image. After the replacement, the path referenced by the target object is the path of the second image, and thus the target object displays the second image instead. It can be understood that, since the second image and the third image are images with higher similarity located in the same image group, the replacing process does not affect the display effect of the target object.
After the replacement process is completed, the third image may be deleted, thereby reducing the size of the target project of the target APP. In the case where the first image is not copied, the third image is an image located in the target project of the target APP, and therefore the third image may be deleted directly from the target APP. And for the case of copying the first image, the third image is a copy image located in the work domain. If only the third image is deleted, the first image used for copying the third image is still remained in the target project of the target APP, so that the effect of reducing the size of the target project of the target APP cannot be achieved. Thus, deleting the third image includes: and deleting the image group where the third image is located from the working domain, deleting the first image corresponding to the third image, and copying the first image corresponding to the third image to obtain the third image.
As can be seen from the above description in 203, when the first image is copied, if the number of images in any one image group is not greater than the number threshold, the image group is directly deleted from the work field. If the number of images in any image group is larger than the number threshold, path replacement is carried out, and then any image group is deleted from the working domain. It can be seen that in this case, each time processing of one image group in the work domain is completed, the image group is deleted from the work domain, and thus after all the image groups in the work domain are deleted, that is, after any one image group does not exist in the work domain, the processing of the respective image groups obtained by division is completed. Therefore, after any image group does not exist in the working domain, all images with repetition in the target APP are deleted, so that the image processing process is completed, and the size of the target project of the target APP is reduced. It can be understood that, compared with the installation package obtained by compressing and packaging the target project which is not processed by the image processing process, the package size of the installation package of the target APP obtained by compressing and packaging the target project which is processed by the image processing process and eliminates the image duplication phenomenon is reduced.
In summary, in the process of processing the images, the present embodiment first divides the first images that are relatively similar into the same image group. Thereafter, by leaving only the second image in one image group and deleting the other images except the second image, the image duplication phenomenon is eliminated. And the path referred by the target object is replaced by the path of the deleted third image into the path of the reserved second image, so that the target object can continue to refer to the second image similar to the third image subsequently, and normal display and operation of the target object in the APP are ensured. Therefore, the method provided by the embodiment has the advantages that the image repetition phenomenon is eliminated thoroughly, the image processing effect is good, the third image is deleted from the APP, the size of the target project of the APP is reduced, the package size of the APP installation package obtained by compressing the package of the target project is reduced, the flow consumption of an APP user is reduced, and the use experience of the APP user is guaranteed.
An embodiment of the present application provides an apparatus for processing an image, and referring to fig. 5, the apparatus includes:
an obtaining module 501, configured to obtain multiple first images corresponding to a target application program, and obtain a path of each first image in the multiple first images;
a dividing module 502, configured to determine similarity between different first images, and divide the plurality of first images into at least one image group according to the similarity;
a determining module 503, configured to determine, for any one of the image groups, a second image from any one of the image groups, determine, as a third image, an image other than the second image in any one of the image groups, and determine a target object that refers to the third image;
and a replacing module 504, configured to replace the path referenced by the target object from the path of the third image to the path of the second image, and delete the third image.
In an exemplary embodiment, the apparatus further comprises: the copying module is used for acquiring a working domain, copying the plurality of first images to obtain a plurality of copied images, and transferring the plurality of copied images into the working domain, wherein the copied images correspond to the first images one by one;
a determining module 503, configured to determine, for any image group in the work domain, a second image from the copy images included in any image group, and take the other copy images except the second image in any image group as third images;
and a replacing module 504, configured to delete the image group where the third image is located from the work domain, delete the first image corresponding to the third image, where the first image corresponding to the third image is used to copy to obtain the third image.
In an exemplary embodiment, the partitioning module 502 is configured to determine a target image from copy images stored in a work domain, obtain a first folder in the work domain, and transfer the target image to the first folder; determining the similarity value between each copy image and the target image in the other copy images except the target image in the working domain, transferring the copy images of which the similarity value with the target image is greater than the similarity threshold value into a first folder, and taking the first folder as an image group; and responding to the fact that the copy images remain in the working domain, acquiring at least one other folder according to the copy images remaining in the working domain, and taking any other folder as an image group.
In an exemplary embodiment, the dividing module 502 is further configured to determine, for any one of the image groups, a number of images in any one of the image groups; in response to the number of images in any one of the image groups being greater than the number threshold, a second image is then determined from any one of the image groups.
In an exemplary embodiment, the apparatus further comprises: and the deleting module is used for responding to the condition that the number of the images in any one image group is not larger than the number threshold value, and deleting any one image group.
In an exemplary embodiment, the obtaining module 501 is configured to obtain a target project of a target application, where the target project includes a plurality of subfiles; and traversing the plurality of subfiles, and using the subfile which is suffixed to the image suffix in the plurality of subfiles as the first image.
In an exemplary embodiment, the determining module 503 is configured to determine, for any one of the image groups, image qualities of respective images in any one of the image groups; and taking the image with the highest image quality in any image group as the second image.
In summary, in the process of processing the images, the present embodiment first divides the first images that are relatively similar into the same image group. Thereafter, by leaving only the second image in one image group and deleting the other images except the second image, the image duplication phenomenon is eliminated. And the path referred by the target object is replaced by the path of the deleted third image into the path of the reserved second image, so that the target object can continue to refer to the second image similar to the third image subsequently, and normal display and operation of the target object in the APP are ensured. Therefore, the method provided by the embodiment has the advantages that the image repetition phenomenon is eliminated thoroughly, the image processing effect is good, the third image is deleted from the APP, the size of the target project of the APP is reduced, the package size of the APP installation package obtained by compressing the package of the target project is reduced, the flow consumption of an APP user is reduced, and the use experience of the APP user is guaranteed.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 6, a schematic structural diagram of an electronic device 600 provided in an embodiment of the present application is shown. The electronic device 600 may be a portable mobile electronic device such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Electronic device 600 may also be referred to by other names as user equipment, portable electronic device, laptop electronic device, desktop electronic device, and so on.
In general, the electronic device 600 includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, a 6-core processor, and so on. The processor 601 may be implemented in at least one hardware form selected from the group consisting of a DSP (Digital Signal Processing), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display 605. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement the method of processing images provided by the method embodiments herein.
In some embodiments, the electronic device 600 may further optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of the group consisting of a radio frequency circuit 604, a display 605, a camera 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 604 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 604 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or Wi-Fi (Wireless Fidelity) networks. In some embodiments, the rf circuit 604 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 605 may be one, providing the front panel of the electronic device 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the electronic device 600 or in a foldable design; in still other embodiments, the display 605 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The positioning component 608 is used to locate a current geographic Location of the electronic device 600 to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
The power supply 609 is used to supply power to various components in the electronic device 600. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 600 also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 610 may detect acceleration magnitudes on three coordinate axes of a coordinate system established with the electronic device 600. For example, the acceleration sensor 611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the electronic device 600, and the gyro sensor 612 and the acceleration sensor 611 may cooperate to acquire a 3D motion of the user on the electronic device 600. The processor 601 may implement the following functions according to the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 613 may be disposed on a side bezel of the electronic device 600 and/or on a lower layer of the display screen 605. When the pressure sensor 613 is disposed on a side frame of the electronic device 600, a user's holding signal of the electronic device 600 can be detected, and the processor 601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability control comprises at least one of a group consisting of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 614 is used for collecting a fingerprint of a user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the electronic device 600. When a physical button or vendor Logo is provided on the electronic device 600, the fingerprint sensor 614 may be integrated with the physical button or vendor Logo.
The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, processor 601 may control the display brightness of display screen 605 based on the ambient light intensity collected by optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the touch screen 606 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.
Proximity sensor 616, also referred to as a distance sensor, is typically disposed on the front panel of electronic device 600. The proximity sensor 616 is used to capture the distance between the user and the front of the electronic device 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the electronic device 600 gradually decreases, the processor 601 controls the display 605 to switch from the bright screen state to the dark screen state; when the proximity sensor 616 detects that the distance between the user and the front surface of the electronic device 600 is gradually increased, the processor 601 controls the display 605 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the electronic device 600, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement a method of processing an image as provided by any of the exemplary embodiments of this application.
The embodiment of the application provides a readable storage medium, and at least one instruction is stored in the readable storage medium and is loaded and executed by a processor to realize the method for processing the image provided by any one of the exemplary embodiments of the application.
An embodiment of the present application provides a computer program or a computer program product, where the computer program or the computer program product includes: computer instructions which, when executed by a computer, cause the computer to implement a method of processing an image as provided by any of the exemplary embodiments of this application.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method of processing an image, the method comprising:
the method comprises the steps of obtaining a plurality of first images corresponding to a target application program, and obtaining the path of each first image in the plurality of first images;
determining the similarity between different first images, and dividing the plurality of first images into at least one image group according to the similarity;
for any image group, a second image is determined from any image group, images except the second image in any image group are used as third images, a target object which refers to the third images is determined, a path which the target object refers to is replaced by a path of the second images from the path of the third images, and the third images are deleted.
2. The method of claim 1, wherein after the obtaining the path for each of the plurality of first images, the method further comprises:
acquiring a working domain, copying the plurality of first images to obtain a plurality of copied images, and transferring the plurality of copied images into the working domain, wherein the copied images correspond to the first images one by one;
the determining, for any one image group, a second image from the any one image group, and regarding other images in the any one image group except the second image as third images, includes:
for any image group in the working domain, determining the second image from the copy images included in the any image group, and taking the other copy images except the second image in the any image group as the third image;
the deleting the third image comprises:
and deleting the image group where the third image is located from the working domain, deleting the first image corresponding to the third image, wherein the first image corresponding to the third image is used for copying to obtain the third image.
3. The method according to claim 2, wherein the determining the similarity between different first images, and the dividing the plurality of first images into at least one image group according to the similarity comprises:
determining a target image from the copy images stored in the working domain, acquiring a first folder in the working domain, and transferring the target image to the first folder;
determining the similarity value between each copy image in the other copy images except the target image in the working domain and the target image, transferring the copy images with the similarity value larger than the similarity threshold value with the target image into the first folder, and taking the first folder as an image group;
and responding to the fact that the copy images remain in the working domain, acquiring at least one other folder according to the copy images remaining in the working domain, and taking any other folder as an image group.
4. The method according to claim 2, wherein said for any one image group, before determining a second image from said any one image group, said method comprises:
for any one image group, determining the number of images in the any one image group;
and in response to the number of images in any one image group being greater than the number threshold, re-executing the determining of the second image from any one image group.
5. The method of claim 4, further comprising:
deleting the any one image group in response to the number of images in the any one image group not being greater than a number threshold.
6. The method according to any one of claims 1-5, wherein said obtaining a plurality of first images corresponding to a target application comprises:
acquiring a target project of the target application program, wherein the target project comprises a plurality of subfiles;
traversing the plurality of subfiles, and using the subfile in the plurality of subfiles, which is suffixed to the image suffix, as the first image.
7. The method according to any one of claims 1 to 5, wherein said determining a second image from any one of said image groups for any one of said image groups comprises:
for any one image group, determining the image quality of each image in the any one image group;
and taking the image with the highest image quality in any image group as the second image.
8. An apparatus for processing an image, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of first images corresponding to a target application program and acquiring the path of each first image in the plurality of first images;
the dividing module is used for determining the similarity between different first images and dividing the plurality of first images into at least one image group according to the similarity;
a determining module, configured to determine, for any one of the image groups, a second image from the any one of the image groups, determine, as a third image, an image other than the second image in the any one of the image groups, and determine a target object that refers to the third image;
and the replacing module is used for replacing the path referenced by the target object from the path of the third image to the path of the second image and deleting the third image.
9. An electronic device, comprising a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of processing an image of any of claims 1-7.
10. A readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement a method of processing an image as claimed in any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011063073.7A CN112232394A (en) | 2020-09-30 | 2020-09-30 | Method and device for processing image, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011063073.7A CN112232394A (en) | 2020-09-30 | 2020-09-30 | Method and device for processing image, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112232394A true CN112232394A (en) | 2021-01-15 |
Family
ID=74120548
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011063073.7A Withdrawn CN112232394A (en) | 2020-09-30 | 2020-09-30 | Method and device for processing image, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112232394A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115543943A (en) * | 2021-06-30 | 2022-12-30 | 青岛海尔科技有限公司 | WEB picture compression method, system, electronic equipment and medium |
| CN116246189A (en) * | 2021-12-06 | 2023-06-09 | 中移(成都)信息通信科技有限公司 | Image deduplication method, device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130339848A1 (en) * | 2012-06-14 | 2013-12-19 | International Business Machines Corporation | Deduplicating similar image objects in a document |
| US8909625B1 (en) * | 2011-06-02 | 2014-12-09 | Google Inc. | Image search |
| CN105095903A (en) * | 2015-07-16 | 2015-11-25 | 努比亚技术有限公司 | Electronic equipment and image processing method |
| US20170364303A1 (en) * | 2016-06-17 | 2017-12-21 | Microsoft Technology Licensing, Llc. | Suggesting image files for deletion based on image file parameters |
| CN109543062A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Image processing method, system, computer installation and readable storage medium storing program for executing |
-
2020
- 2020-09-30 CN CN202011063073.7A patent/CN112232394A/en not_active Withdrawn
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8909625B1 (en) * | 2011-06-02 | 2014-12-09 | Google Inc. | Image search |
| US20130339848A1 (en) * | 2012-06-14 | 2013-12-19 | International Business Machines Corporation | Deduplicating similar image objects in a document |
| CN105095903A (en) * | 2015-07-16 | 2015-11-25 | 努比亚技术有限公司 | Electronic equipment and image processing method |
| US20170364303A1 (en) * | 2016-06-17 | 2017-12-21 | Microsoft Technology Licensing, Llc. | Suggesting image files for deletion based on image file parameters |
| CN109543062A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Image processing method, system, computer installation and readable storage medium storing program for executing |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115543943A (en) * | 2021-06-30 | 2022-12-30 | 青岛海尔科技有限公司 | WEB picture compression method, system, electronic equipment and medium |
| CN116246189A (en) * | 2021-12-06 | 2023-06-09 | 中移(成都)信息通信科技有限公司 | Image deduplication method, device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108881030B (en) | Routing method and device in gray release scene | |
| US20220244930A1 (en) | Application porting method and apparatus, device, and medium | |
| CN110288689B (en) | Method and device for rendering electronic map | |
| CN110569220B (en) | Game resource file display method and device, terminal and storage medium | |
| CN111159604A (en) | Picture resource loading method and device | |
| CN111625315A (en) | Page display method and device, electronic equipment and storage medium | |
| CN113722827A (en) | CAD data creating method and device and computer storage medium | |
| CN110677713B (en) | Video image processing method and device and storage medium | |
| CN113301422B (en) | Method, terminal and storage medium for acquiring video cover | |
| CN111275607A (en) | Interface display method and device, computer equipment and storage medium | |
| CN110086814B (en) | Data acquisition method and device and storage medium | |
| CN112232394A (en) | Method and device for processing image, electronic equipment and storage medium | |
| CN112560435B (en) | Text corpus processing method, device, equipment and storage medium | |
| CN108805961A (en) | Data processing method, device and storage medium | |
| CN110264292A (en) | Determine the method, apparatus and storage medium of effective period of time | |
| CN110032421B (en) | Method and device for managing atlas in memory, terminal and storage medium | |
| CN114168120B (en) | Data acquisition method, device, computer equipment and storage medium | |
| CN113282243B (en) | Method and device for storing object file | |
| CN110971840A (en) | Video mapping method and device, computer equipment and storage medium | |
| CN111125571B (en) | Picture display method and device | |
| CN110045999B (en) | Method, device, terminal and storage medium for drawing assembly | |
| CN109189525B (en) | Method, device and equipment for loading sub-page and computer readable storage medium | |
| CN115774822A (en) | Data updating method, device, terminal and storage medium | |
| CN113268234A (en) | Page generation method, device, terminal and storage medium | |
| CN111930686A (en) | Method and device for storing log and computer equipment |
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 | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210115 |
|
| WW01 | Invention patent application withdrawn after publication |