CN107741850B - Method and device for generating dynamic wallpaper package and storage medium - Google Patents

Method and device for generating dynamic wallpaper package and storage medium Download PDF

Info

Publication number
CN107741850B
CN107741850B CN201710911277.3A CN201710911277A CN107741850B CN 107741850 B CN107741850 B CN 107741850B CN 201710911277 A CN201710911277 A CN 201710911277A CN 107741850 B CN107741850 B CN 107741850B
Authority
CN
China
Prior art keywords
image
images
theme pack
image set
resource
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.)
Active
Application number
CN201710911277.3A
Other languages
Chinese (zh)
Other versions
CN107741850A (en
Inventor
于淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710911277.3A priority Critical patent/CN107741850B/en
Publication of CN107741850A publication Critical patent/CN107741850A/en
Application granted granted Critical
Publication of CN107741850B publication Critical patent/CN107741850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

The disclosure relates to a method, a device and a storage medium for generating a dynamic wallpaper package, wherein the method comprises the following steps: acquiring a first theme pack with a complete structure; acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents; converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image; and generating a dynamic wallpaper packet by adding animation effect to the target image resource. The generation process of the dynamic wallpaper package can be simplified on the basis of ensuring smaller occupied space by extracting and integrating image resources in the existing theme package.

Description

Method and device for generating dynamic wallpaper package and storage medium
Technical Field
The present disclosure relates to the field of mobile terminal applications, and in particular, to a method and an apparatus for generating a dynamic wallpaper package, and a storage medium.
Background
With the popularization of intelligent mobile terminals, a single system interface gradually fails to meet aesthetic requirements of users, and in order to meet diversified requirements of users, a mobile terminal system generally provides a theme (also referred to as skin) with a wide variety of styles. In the related technology, the Android system achieves the purpose of beautifying the interface of the software system by running different theme pack programs. The theme pack is a data pack which conforms to the format specification of a specific system and occupies a large space, and the realized functions are complex. The theme pack program can change background wallpaper, icon styles or structural layout and the like in the system interface according to data in the theme pack, so that the effect of beautifying the system interface is achieved.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and an apparatus for generating a dynamic wallpaper package, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for generating a dynamic wallpaper package, including:
acquiring a first theme pack with a complete structure;
acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
and generating a dynamic wallpaper packet by adding animation effect to the target image resource.
Optionally, the image parameters include: at least one of an image type, an image size, and an image pixel.
Optionally, the obtaining of the first theme pack with a complete structure includes:
capturing a second theme pack from the Internet through a crawler technology;
determining whether a potential safety hazard exists in the second theme pack, wherein the potential safety hazard comprises: viruses, trojan horses;
detecting whether the structure of the second theme pack is complete;
and when the theme pack has no potential safety hazard and the structure of the second theme pack is complete, acquiring the second theme pack as the first theme pack.
Optionally, the obtaining a first image set from the first theme pack, where the first image set includes a plurality of images with consistent image parameters and similar image contents, includes:
acquiring the similarity of image contents between any two images in the first theme pack and image parameters of the images;
and when the similarity is determined to be larger than a preset similarity threshold image and a plurality of images with consistent image parameters exist, acquiring the plurality of images with consistent image parameters and similar image contents as the first image set.
Optionally, the converting the first image set into the target image resource includes:
selecting a reference image from the first image set;
comparing the reference image to other images in the first set of images;
acquiring image difference information of the reference image and other images in the first image set according to a comparison result;
and compressing the reference image and the image difference information to obtain the target image resource.
Optionally, the generating a dynamic wallpaper packet by adding an animation effect to the target image resource includes:
adding animation effects to the target image resources;
compiling the target image resource added with the animation effect to generate the dynamic wallpaper packet.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for generating a dynamic wallpaper package, including:
the theme pack acquisition module is configured to acquire a first theme pack with a complete structure;
the image set acquisition module is configured to acquire a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
an image conversion module configured to convert the first image set into a target image resource, the target image resource including a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
a wallpaper packet generation module configured to generate a dynamic wallpaper packet by adding an animation effect to the target image resource.
Optionally, the image parameters include: at least one of an image type, an image size, and an image pixel.
Optionally, the theme pack acquiring module includes:
the theme pack capturing sub-module is configured to capture a second theme pack from the Internet through a crawler technology;
a safety determination submodule configured to determine whether a safety hazard exists in the second theme pack, the safety hazard including: viruses, trojan horses;
a structure detection submodule configured to detect whether a structure of the second theme pack is complete;
and the theme pack confirming submodule is configured to acquire the second theme pack as the first theme pack when the second theme pack has no potential safety hazard and has a complete structure.
Optionally, the image set obtaining module includes:
the image information acquisition submodule is configured to acquire similarity of image content between any two images in the first theme pack and image parameters of the images;
and the image set acquisition sub-module is configured to acquire a plurality of images with consistent image parameters and similar image contents as the first image set when the similarity is determined to be greater than a preset similarity threshold image and a plurality of images with consistent image parameters exist.
Optionally, the image conversion module includes:
a reference image acquisition sub-module configured to select a reference image from the first image set;
an image comparison sub-module configured to compare the reference image with other images in the first set of images;
a difference obtaining sub-module configured to obtain image difference information of the reference image and other images in the first image set according to a comparison result;
and the image compression sub-module is configured to compress the reference image and the image difference information to obtain the target image resource.
Optionally, the wallpaper packet generation module is configured to:
adding animation effects to the target image resources;
compiling the target image resource added with the animation effect to generate the dynamic wallpaper packet.
According to a third aspect of the embodiments of the present disclosure, there is provided a dynamic wallpaper package generation apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a first theme pack with a complete structure;
acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
and generating a dynamic wallpaper packet by adding animation effect to the target image resource.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method for generating a dynamic wallpaper package provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of acquiring a first theme pack with a complete structure; acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents; converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image; and generating a dynamic wallpaper packet by adding animation effect to the target image resource. The generation process of the dynamic wallpaper package can be simplified on the basis of ensuring smaller occupied space by extracting and integrating image resources in the existing theme package.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of generating a dynamic wallpaper package according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a theme pack acquisition method according to the embodiment shown in fig. 1.
FIG. 3 is a flow chart of an image set acquisition method according to the embodiment shown in FIG. 1.
FIG. 4 is a flow chart illustrating a method of image set conversion according to the embodiment shown in FIG. 1.
Fig. 5 is a flowchart illustrating an image resource compiling method according to the embodiment shown in fig. 1.
Fig. 6 is a block diagram illustrating a dynamic wallpaper package generation apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of a theme pack acquisition module according to the embodiment shown in fig. 6.
FIG. 8 is a block diagram of an image set acquisition module according to the embodiment shown in FIG. 6.
Fig. 9 is a block diagram of an image conversion module according to the embodiment shown in fig. 6.
Fig. 10 is a block diagram illustrating an apparatus for dynamic wallpaper package generation according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before describing the method for generating the dynamic wallpaper package provided by the present disclosure, an application scenario related to the present disclosure is first described, where the application scenario may include a server, and the server may provide data services for an operating system of the mobile terminal, including a server for collecting, managing and distributing specific data, such as a database server, an application server, a WEB server, and the like. The method for creating the dynamic wallpaper package provided by the present disclosure is now explained by the following examples.
Fig. 1 is a flowchart illustrating a method for generating a dynamic wallpaper package, which is applied to a server in the above application scenario, according to an exemplary embodiment, and as shown in fig. 1, the method includes the following steps.
In step 101, a first theme pack with a complete structure is obtained.
Illustratively, the theme pack includes an image resource and basic information of the theme pack, the image resource may include a screen saver image, a wallpaper image, an application icon image, etc. applicable to a corresponding version of the mobile terminal system, and the basic information of the theme pack may include a name, an author, a version, basic structure information, etc. of the theme pack. Before the theme pack is analyzed, whether the basic structure of the captured theme pack is complete or not can be determined according to the basic structure information, and whether the theme pack is a safe theme pack which does not carry viruses or cannot cause system risks or not is detected, namely the first theme pack.
In step 102, a first set of images is obtained from the first theme pack.
Wherein, the first image set comprises a plurality of images with consistent image parameters and similar image contents, and the image parameters comprise: at least one of an image type, an image size, and an image pixel.
For example, after confirming that the captured theme pack is the first theme pack with a complete structure, the images in the first theme pack may be extracted, and the extracted images need to be a set of a plurality of images which have a linkage effect or a dynamic effect and can be combined into a dynamic image, as the first image set. The linkage effect or the dynamic effect may be formed by continuously playing a plurality of images having the same image parameter and having similarity. Note that the image parameters include: at least one of the image type, the image size and the image pixel, all of which are included in the embodiment.
In step 103, the first set of images is converted into a target image asset.
Wherein the target image resource includes a reference image in a first image set and image difference information generated by comparing other images in the first image set with the reference image. The reference image may be any one of the images in the first set of images. As described in step 102, the first image set includes a plurality of images having the same image parameters and high similarity, so that the target image resource can be composed by the image information of any one image in the first image set and the difference information between the other images in the first image set and the image. Because the images in the first image set have similarity, the same parts between the images do not need to be repeatedly recorded, and the purpose of reducing the occupied space of the original first image set is achieved.
In step 104, a dynamic wallpaper package is generated by adding animation effects to the target image asset.
Illustratively, animation effects may be added to the target image asset by looping through a plurality of images in the target image asset.
To sum up, the method for generating the dynamic wallpaper package provided by the embodiment of the disclosure can obtain a theme package with a complete structure; acquiring a first image set from the theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents; converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image; and generating a dynamic wallpaper packet by adding animation effect to the target image resource. The generation process of the dynamic wallpaper package can be simplified on the basis of ensuring smaller occupied space by extracting and integrating image resources in the existing theme package.
Fig. 2 is a flowchart of a theme pack acquisition method according to the embodiment shown in fig. 1, and as shown in fig. 2, step 101 shown in fig. 1 includes the following steps.
In step 1011, the second theme pack is crawled from the internet through crawler technology.
The crawler technology is also called web crawler, and is a technology for automatically capturing programs or scripts of internet information according to a certain rule. In this embodiment, according to a difference between a system structure and an implementation technology, a theme pack in the internet may be captured at a preset frequency as a second theme pack in a manner that one or more of a general web crawler, a focused web crawler, an incremental web crawler, and a deep web crawler are combined.
In step 1012, it is determined whether there is a security risk in the second theme pack.
The security risk may include, for example, viruses and trojans that pose a risk to the server system and the terminal system. And when the second theme pack is grabbed, performing safety detection on the second theme pack, and eliminating the second theme pack with potential safety hazards.
In step 1013, it is detected whether the structure of the second theme pack is complete.
For example, while it is determined that the second theme pack does not have a potential safety hazard, basic structure information in the second theme pack may be detected, and when it is determined that the basic structure information is incomplete, the second theme pack with the incomplete structure is abandoned.
In step 1014, when the second theme pack has no potential safety hazard and the structure of the second theme pack is complete, the second theme pack is acquired as the first theme pack.
Fig. 3 is a flowchart illustrating an image set acquisition method according to the embodiment shown in fig. 1, and as shown in fig. 3, step 102 shown in fig. 1 includes the following steps.
In step 1021, the similarity of image content between any two images in the first theme pack and the image parameter of each image are obtained.
For example, similar images of the images in the first theme pack may be searched for by an image matching algorithm such as a perceptual hash algorithm. And when the similarity of the image contents is greater than or equal to a preset similarity threshold value, determining that the two currently compared images have similarity. This step 1021 may be performed multiple times to traverse all images in the theme pack. Thereafter, when it is determined that the number of images having similarity included in the first theme pack is greater than 2, the process proceeds to step 1022.
In step 1022, when it is determined that the similarity is greater than the preset similarity threshold image and there are multiple images with the same image parameters, the multiple images with the same image parameters and similar image contents are acquired as the first image set.
For example, when it is determined that a plurality of images with similarity are included in the theme pack, a plurality of images with consistent image parameters and similar image contents in the plurality of images may be acquired as the first image set.
Fig. 4 is a flowchart illustrating an image set conversion method according to the embodiment shown in fig. 1, and as shown in fig. 4, step 103 shown in fig. 1 includes the following steps.
In step 1031, a reference image is selected from the first set of images.
For example, the reference image may be selected by a preset criterion, for example, a similarity between each image in the first image set and any other image may be acquired, and then an image with the highest similarity to the other images in the first image set may be selected as the reference image. It is understood that, since there are a plurality of images in the first image set, the similarity of each image with each of the other images can be ranked, so that each image can obtain a plurality of similarities, for example, if there are n images in the first image set, each image can obtain n-1 similarities, so that the n-1 similarities are all the highest, or the image with most of the n-1 similarities being the highest can be used as the reference image.
In step 1032, the reference image is compared with other images in the first set of images.
In step 1033, image difference information between the reference image and other images in the first image set is obtained according to the comparison result.
For example, image content in the first image set, including data of features, structures, relationships, textures, gray scales and the like, may be compared through an image comparison algorithm such as a difference hash algorithm, and similarity or consistency of images is analyzed, so as to obtain image difference information between the reference image and other images in the first image set.
In step 1034, the reference image and the image difference information are compressed to obtain the target image resource.
Fig. 5 is a flowchart illustrating an image resource compiling method according to the embodiment shown in fig. 1, and as shown in fig. 5, step 104 shown in fig. 1 includes the following steps.
In step 1041, an animation effect is added to the target image resource.
In step 1042, the target image resource added with animation effect is compiled to generate the dynamic wallpaper package.
To sum up, the method for generating the dynamic wallpaper package provided by the embodiment of the disclosure can obtain the first theme package with a complete structure; acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents; converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image; and generating a dynamic wallpaper packet by adding animation effect to the target image resource. The generation process of the dynamic wallpaper package can be simplified on the basis of ensuring smaller occupied space by extracting and integrating image resources in the existing theme package.
Fig. 6 is a block diagram illustrating a dynamic wallpaper package generation apparatus according to an exemplary embodiment. The apparatus for generating a dynamic wallpaper package is applied to a server, which is the server described in the application scenario, and referring to fig. 6, the apparatus includes:
a theme pack acquisition module 610 configured to acquire a first theme pack having a complete structure from the internet;
an image set obtaining module 620 configured to obtain a first image set from the first theme pack, where the first image set includes a plurality of images with consistent image parameters and similar image contents;
an image conversion module 630 configured to convert the first image set into a target image resource, the target image resource including a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
a wallpaper packet generation module 640 configured to generate a dynamic wallpaper packet by adding an animation effect to the target image resource.
Optionally, the image parameters include: at least one of an image type, an image size, and an image pixel.
Optionally, fig. 7 is a block diagram of a theme pack acquisition module according to the embodiment shown in fig. 6. Referring to fig. 7, the theme pack acquisition module 610 includes:
the theme pack capturing sub-module 611, configured to capture a second theme pack from the internet through a crawler technology;
a safety determination sub-module 612 configured to determine whether the second theme pack has a safety hazard, the safety hazard comprising: viruses, trojan horses;
a structure detection sub-module 613 configured to detect whether the structure of the second theme pack is complete;
the theme pack confirming sub-module 614 is configured to, when the second theme pack has no potential safety hazard and the structure of the second theme pack is complete, obtain the second theme pack as the first theme pack.
Alternatively, FIG. 8 is a block diagram of an image set acquisition module according to the embodiment shown in FIG. 6. Referring to fig. 8, the image set obtaining module 620 includes:
the image information obtaining sub-module 621 is configured to obtain similarity of image content between any two images in the first theme pack and an image parameter of each image;
and an image set obtaining sub-module 622 configured to, when it is determined that the similarity is greater than the preset similarity threshold image and there are multiple images with the same image parameter, obtain the multiple images with the same image parameter and similar image content as the first image set.
Alternatively, fig. 9 is a block diagram of an image conversion module according to the embodiment shown in fig. 6. Referring to fig. 9, the image conversion module 630 includes:
a reference image acquisition sub-module 631 configured to select a reference image from the first set of images;
an image comparison sub-module 632 configured to compare the reference image with other images in the first image set;
a difference obtaining sub-module 633 configured to obtain image difference information of the reference image and other images in the first image set according to the comparison result;
an image compression sub-module 634 configured to compress the reference image and the image difference information to obtain the target image resource.
Optionally, the wallpaper packet generation module 640 is configured to:
adding animation effect to the target image resource;
compiling the target image resource added with the animation effect to generate the dynamic wallpaper packet.
To sum up, the device for generating a dynamic wallpaper package provided by the embodiment of the disclosure can obtain a first theme package with a complete structure; acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents; converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image; and generating a dynamic wallpaper packet by adding animation effect to the target image resource. The generation process of the dynamic wallpaper package can be simplified on the basis of ensuring smaller occupied space by extracting and integrating image resources in the existing theme package.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method for generating a dynamic wallpaper package provided by the present disclosure.
Fig. 10 is a block diagram illustrating an apparatus 1000 for dynamic wallpaper package generation according to an example embodiment. For example, the apparatus 1000 may be provided as a server. Referring to fig. 10, the apparatus 1000 includes a processing component 1022 that further includes one or more processors and memory resources, represented by memory 1032, for storing instructions, such as application programs, that are executable by the processing component 1022. The application programs stored in memory 1032 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1022 is configured to execute instructions to perform the above-described method of generating a dynamic wallpaper package.
The device 1000 may also include a power supply component 1026 configured to perform power management for the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input/output (I/O) interface 1058. The apparatus 1000 may operate based on an operating system stored in memory 1032, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method for generating a dynamic wallpaper package, the method comprising:
acquiring a first theme pack with a complete structure;
acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
generating a dynamic wallpaper packet by adding animation effects to the target image resources;
wherein the converting the first image set into a target image resource comprises:
selecting a reference image from the first image set;
comparing the reference image to other images in the first set of images;
acquiring image difference information of the reference image and other images in the first image set according to a comparison result;
obtaining the target image resource according to the reference image and the image difference information;
the selecting a reference image from the first image set comprises:
and taking the image with the highest similarity with other images in the first image set as the reference image.
2. The method of claim 1, wherein the image parameters comprise: at least one of an image type, an image size, and an image pixel.
3. The method according to claim 1 or 2, wherein the obtaining of the structurally complete first theme pack comprises:
capturing a second theme pack from the Internet through a crawler technology;
determining whether a potential safety hazard exists in the second theme pack, wherein the potential safety hazard comprises: viruses, trojan horses;
detecting whether the structure of the second theme pack is complete;
and when the second theme pack has no potential safety hazard and the structure of the second theme pack is complete, acquiring the second theme pack as the first theme pack.
4. The method of claim 1, wherein said obtaining a first image set from said first theme pack, said first image set comprising a plurality of images with consistent image parameters and similar image content, comprises:
acquiring the similarity of image contents between any two images in the first theme pack and image parameters of the images;
and when the similarity is determined to be larger than a preset similarity threshold and a plurality of images with consistent image parameters exist, acquiring the plurality of images with consistent image parameters and similar image contents as the first image set.
5. The method of claim 1, wherein the generating a dynamic wallpaper package by adding an animation effect to the target image resource comprises:
adding animation effects to the target image resources;
compiling the target image resource added with the animation effect to generate the dynamic wallpaper packet.
6. An apparatus for generating a dynamic wallpaper package, the apparatus comprising:
the theme pack acquisition module is configured to acquire a first theme pack with a complete structure;
the image set acquisition module is configured to acquire a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
an image conversion module configured to convert the first image set into a target image resource, the target image resource including a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
a wallpaper packet generation module configured to generate a dynamic wallpaper packet by adding animation effects to the target image resource;
wherein the image conversion module comprises:
a reference image acquisition sub-module configured to select a reference image from the first image set;
an image comparison sub-module configured to compare the reference image with other images in the first set of images;
a difference obtaining sub-module configured to obtain image difference information of the reference image and other images in the first image set according to a comparison result;
the image compression submodule is configured to compress the reference image and the image difference information to obtain the target image resource;
the reference image acquisition sub-module is configured to take the image with the highest similarity with other images in the first image set as the reference image.
7. The apparatus of claim 6, wherein the image parameters comprise: at least one of an image type, an image size, and an image pixel.
8. The apparatus according to claim 6 or 7, wherein the theme pack acquisition module comprises:
the theme pack capturing sub-module is configured to capture a second theme pack from the Internet through a crawler technology;
a safety determination submodule configured to determine whether a safety hazard exists in the second theme pack, the safety hazard including: viruses, trojan horses;
a structure detection submodule configured to detect whether a structure of the second theme pack is complete;
and the theme pack confirming submodule is configured to acquire the second theme pack as the first theme pack when the second theme pack has no potential safety hazard and has a complete structure.
9. The apparatus of claim 6, wherein the image set acquisition module comprises:
the image information acquisition submodule is configured to acquire similarity of image content between any two images in the first theme pack and image parameters of the images;
and the image set acquisition sub-module is configured to acquire a plurality of images with consistent image parameters and similar image contents as the first image set when the similarity is determined to be greater than a preset similarity threshold image and a plurality of images with consistent image parameters exist.
10. The apparatus of claim 6, wherein the wallpaper packet generation module is configured to:
adding animation effects to the target image resources;
compiling the target image resource added with the animation effect to generate the dynamic wallpaper packet.
11. A device for generating a dynamic wallpaper package, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a first theme pack with a complete structure;
acquiring a first image set from the first theme pack, wherein the first image set comprises a plurality of images with consistent image parameters and similar image contents;
converting the first image set into a target image resource, wherein the target image resource comprises a reference image in the first image set and image difference information generated by comparing other images in the first image set with the reference image;
generating a dynamic wallpaper packet by adding animation effects to the target image resources;
wherein the converting the first image set into a target image resource comprises:
selecting a reference image from the first image set;
comparing the reference image to other images in the first set of images;
acquiring image difference information of the reference image and other images in the first image set according to a comparison result;
obtaining the target image resource according to the reference image and the image difference information;
the selecting a reference image from the first image set comprises:
and taking the image with the highest similarity with other images in the first image set as the reference image.
12. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 5.
CN201710911277.3A 2017-09-29 2017-09-29 Method and device for generating dynamic wallpaper package and storage medium Active CN107741850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710911277.3A CN107741850B (en) 2017-09-29 2017-09-29 Method and device for generating dynamic wallpaper package and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710911277.3A CN107741850B (en) 2017-09-29 2017-09-29 Method and device for generating dynamic wallpaper package and storage medium

Publications (2)

Publication Number Publication Date
CN107741850A CN107741850A (en) 2018-02-27
CN107741850B true CN107741850B (en) 2020-12-04

Family

ID=61236437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710911277.3A Active CN107741850B (en) 2017-09-29 2017-09-29 Method and device for generating dynamic wallpaper package and storage medium

Country Status (1)

Country Link
CN (1) CN107741850B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769361B (en) * 2018-04-03 2020-10-27 华为技术有限公司 Control method of terminal wallpaper, terminal and computer-readable storage medium
CN110489121B (en) * 2019-07-04 2024-04-19 北京雷石天地电子技术有限公司 Skin package file generation method and system
CN116166349A (en) * 2021-11-24 2023-05-26 华为技术有限公司 Linkage animation display method and related device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7372536B2 (en) * 2005-03-08 2008-05-13 Microsoft Corporation Photostory 3—automated motion generation
CN101800791A (en) * 2009-12-31 2010-08-11 康佳集团股份有限公司 Method for taking dynamic photo album as terminal wallpaper
CN102387239A (en) * 2010-08-27 2012-03-21 希姆通信息技术(上海)有限公司 Method for implementing dynamic wallpaper of mobile phone
JP6351313B2 (en) * 2013-07-11 2018-07-04 キヤノン株式会社 Image encoding device, image decoding device, image processing device, and control method thereof
WO2017147403A1 (en) * 2016-02-24 2017-08-31 Preaction Technology Corporation, dba/4c Sports Corporation Method and system for determining physiological status of users based on marker-less motion capture
CN106504303B (en) * 2016-09-13 2019-11-26 广州华多网络科技有限公司 A kind of method and apparatus playing frame animation
CN106406900A (en) * 2016-09-28 2017-02-15 乐视控股(北京)有限公司 Wallpaper display method and device
CN106649541A (en) * 2016-10-26 2017-05-10 广东小天才科技有限公司 Cartoon playing and generating method and device

Also Published As

Publication number Publication date
CN107741850A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN112527816B (en) Data blood relationship analysis method, system, computer equipment and storage medium
CN109582395B (en) Applet running method and device, electronic equipment and storage medium
US10325080B2 (en) Identity information verification
CN107741850B (en) Method and device for generating dynamic wallpaper package and storage medium
US10496696B2 (en) Search method and apparatus
CN106453572B (en) Method and system based on Cloud Server synchronous images
US10754628B2 (en) Extracting web API endpoint data from source code to identify potential security threats
CN103942491A (en) Internet malicious code disposal method
CN105630662A (en) Memory detection method and apparatus
JP2016540333A (en) Terminal marking method, terminal marking device, program, and recording medium
KR102018046B1 (en) Method and apparatus for extracting image feature
CN110795162B (en) Method and device for generating container mirror image file
CN113810375B (en) Webshell detection method, device and equipment and readable storage medium
CN111598128B (en) Control state identification and control method, device, equipment and medium of user interface
CN103955713A (en) Icon recognition method and device
CN113297416A (en) Video data storage method and device, electronic equipment and readable storage medium
JP2014164499A (en) Image classification device and image classification program
JP2016045929A (en) Method and apparatus for scanning files
CN112541087A (en) Cross-language knowledge graph construction method and device based on encyclopedia
CN107704175B (en) Image collection method and device and storage medium
Supriya Implementation of Image Processing System using Big Data in the Cloud Environment
Ali et al. Implementation of image processing system using handover technique with map reduce based on big data in the cloud environment.
CN113127860A (en) Executable file detection method, device, terminal and storage medium
JP2017517162A (en) Asset collection service by content capture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant