CN110543345A - Wallpaper generation method and device, storage medium and electronic equipment - Google Patents

Wallpaper generation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110543345A
CN110543345A CN201910791030.1A CN201910791030A CN110543345A CN 110543345 A CN110543345 A CN 110543345A CN 201910791030 A CN201910791030 A CN 201910791030A CN 110543345 A CN110543345 A CN 110543345A
Authority
CN
China
Prior art keywords
time point
wallpaper
preset time
wallpaper image
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910791030.1A
Other languages
Chinese (zh)
Inventor
卢胤婷
邱胤焱
王龙平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910791030.1A priority Critical patent/CN110543345A/en
Publication of CN110543345A publication Critical patent/CN110543345A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a wallpaper generation method, a wallpaper generation device, a storage medium and electronic equipment, and relates to the technical field of terminals. The wallpaper generation comprises the following steps: presetting a plurality of preset time points in one day, configuring wallpaper images for the preset time points, and generating a mapping relation between the preset time points and the wallpaper images; determining a current time point, and if the current time point is different from each preset time point, determining a previous preset time point and a next preset time point which are adjacent to the current time point from a plurality of preset time points; determining a wallpaper image corresponding to a last preset time point as a first wallpaper image and determining a wallpaper image corresponding to a next preset time point as a second wallpaper image according to the mapping relation; and generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image. The display effect of the wallpaper can be enriched.

Description

wallpaper generation method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a wallpaper generation method, a wallpaper generation apparatus, a storage medium, and an electronic device.
background
With the continuous development of electronic technology, terminal devices such as mobile phones, tablets, smart watches, personal computers, smart televisions and the like have reached a high degree of popularity. These terminal devices each have a wallpaper display function.
at present, although a user can select a picture of interest to the user as wallpaper, the display effect of the wallpaper is still relatively single.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
disclosure of Invention
the present disclosure is directed to a wallpaper generation method, a wallpaper generation apparatus, a storage medium, and an electronic device, so as to overcome the problem of single display effect of wallpaper at least to some extent.
according to a first aspect of the present disclosure, there is provided a wallpaper generation method, including: presetting a plurality of preset time points in one day, configuring wallpaper images for the preset time points, and generating a mapping relation between the preset time points and the wallpaper images; determining a current time point, and if the current time point is different from each preset time point, determining a previous preset time point and a next preset time point which are adjacent to the current time point from a plurality of preset time points; determining a wallpaper image corresponding to a last preset time point as a first wallpaper image and determining a wallpaper image corresponding to a next preset time point as a second wallpaper image according to the mapping relation; and generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
According to a second aspect of the present disclosure, there is provided a wallpaper generation apparatus, including: the system comprises a pre-configuration module, a wallpaper image generation module and a wallpaper image generation module, wherein the pre-configuration module is used for pre-determining a plurality of preset time points in one day, configuring the wallpaper image for each preset time point and generating a mapping relation between each preset time point and the wallpaper image; the time point determining module is used for determining the current time point, and if the current time point is different from each preset time point, determining the previous preset time point and the next preset time point which are adjacent to the current time point from a plurality of preset time points; the wallpaper image determining module is used for determining a wallpaper image corresponding to a last preset time point as a first wallpaper image and determining a wallpaper image corresponding to a next preset time point as a second wallpaper image according to the mapping relation; and the first wallpaper generation module is used for generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
According to a third aspect of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the wallpaper generation method described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the wallpaper generation method described above via execution of the executable instructions.
In the technical solutions provided in some embodiments of the present disclosure, a mapping relationship between a preset time point and a wallpaper image is configured in advance, when a current time point is different from a preset time point, a previous preset time point and a next preset time point adjacent to the current time point are determined, and the wallpaper image corresponding to the current time point is generated and displayed by using the wallpaper images respectively corresponding to the previous preset time point and the next preset time point. According to the scheme of the exemplary embodiment of the disclosure, the wallpaper style can be dynamically changed in real time within one day according to the configured wallpaper image, the effect of simulating the daytime and the night in the real world by using the wallpaper can be realized, the display effect of the wallpaper is enriched, and the visual fatigue of a user is reduced.
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. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a wallpaper generation method according to an exemplary embodiment of the present disclosure;
fig. 2 schematically shows a flow chart of a current point in time wallpaper image generation process according to an exemplary embodiment of the present disclosure;
Fig. 3 schematically shows a block diagram of a wallpaper generation apparatus according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a provisioning module, according to an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a provisioning module, according to another exemplary embodiment of the present disclosure;
Fig. 6 schematically shows a block diagram of a wallpaper generation apparatus according to another exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a first wallpaper generation module according to an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a first wallpaper generation module according to another exemplary embodiment of the present disclosure;
Fig. 9 schematically shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, the terms "first" and "second" are used for distinguishing purposes only and should not be construed as limiting the present disclosure.
The wallpaper generation method of the exemplary embodiments of the present disclosure may be generally implemented by a terminal device, that is, the terminal device may perform the various steps of the wallpaper generation method described below. In this case, a wallpaper generation apparatus described below may be configured within the terminal device.
The terminal devices described in the present disclosure may include, but are not limited to, a mobile phone, a tablet, a smart watch, a personal computer, a smart television, and the like.
Fig. 1 schematically shows a flowchart of a wallpaper generation method of an exemplary embodiment of the present disclosure. Referring to fig. 1, the wallpaper generation method may include the steps of:
S12, a plurality of preset time points in one day are predetermined, wallpaper images are configured for the preset time points, and a mapping relation between the preset time points and the wallpaper images is generated.
according to some embodiments of the present disclosure, the plurality of preset time points may be set at equal time intervals for 24 hours a day. For example, 24 whole points may be set as the preset time points. For another example, the preset time point may be set every predetermined time, wherein the predetermined time may be two hours, three hours, or the like, and may also be half an hour, 10 minutes, or the like.
According to other embodiments of the present disclosure, first, a total number N of preset time points may be determined, where N is a positive integer and is artificially determined; next, N preset time points can be randomly determined from 24 hours. It is easily understood that the time intervals between adjacent time points of the N preset time points may not be the same.
For each preset time point, a wallpaper image can be configured for it.
according to some embodiments of the present disclosure, the wallpaper image may include a background map and a foreground element, wherein, for the background map, it may be a background representation of the wallpaper image, and may specifically be implemented by a map with a gradually changed color, or may be a map with a pure color. In addition, in order to reduce the memory occupation, the background map can be configured into a strip shape, and the background map can be transversely stretched when in use. Regarding the foreground elements, which may be various elements configured on the background map, such as mountains, trees, vehicles, pedestrians, etc., the present disclosure does not make particular limitations on the kinds of the foreground elements.
On one hand, the background maps may be configured for the preset time points, specifically, different background maps may be configured for different preset time points, for example, the preset time points may correspond to morning, midday, afternoon, evening or late night in a day, and the corresponding background maps may be configured for different preset time points according to the difference of the natural scenes. That is, the background map may be configured in different styles by morning, midday, afternoon, evening, or late night, etc.
On the other hand, foreground elements may be configured for a preset time point, specifically, each foreground element may be configured by using a shader (shader) algorithm based on OpenGL (Open Graphics Library), for example, a circle with anti-aliasing, a halo, and the like may be drawn, and linear gradual change of two-point colors, linear gradual change of three-point colors, and the like may also be implemented.
It should be understood that a preset point in time may correspond to a background map and one or more foreground elements.
The background map and the foreground elements can be combined for a preset time point. Specifically, the terminal device may obtain a background map and foreground elements configured for each preset time point, and generate a wallpaper image corresponding to each preset time point after combining the background map and the foreground elements. In addition, the background map and the foreground element corresponding to the preset time point can be stored separately, and when the wallpaper image needs to be formed, the background map and the foreground element are combined.
according to other embodiments of the disclosure, a shooting device may be used to determine wallpaper images corresponding to the preset time points, where the shooting device may be a camera included in the terminal device, or may be a camera which is specially used for shooting and exists independently from the terminal device.
Specifically, the shooting device may be fixed in a scene, and the same scene may be shot at the same time as the preset time point, so as to obtain multiple shot images corresponding to the preset time points, as wallpaper images corresponding to the preset time points. In addition, video frame images corresponding to the preset time points can be intercepted from videos shot by the shooting equipment and serve as wallpaper images corresponding to the preset time points.
Therefore, after the preset time points and the wallpaper images are determined, the mapping relation between the preset time points and the wallpaper images can be generated and stored in the terminal equipment.
S14, determining a current time point, and if the current time point is different from each preset time point, determining a previous preset time point and a next preset time point which are adjacent to the current time point from the plurality of preset time points.
the terminal device may obtain the current time point, and specifically, may read the system time in real time to determine the current time point. In addition, in the case of networking the terminal device, the system time can be calibrated to ensure that the current time point is accurate.
if the current time point is determined to be one of the preset time points determined in step S12, recording the preset time point as a target preset time point, determining a wallpaper image corresponding to the target preset time point according to the mapping relationship, and determining and displaying the wallpaper image as the wallpaper image at the current time point.
and if the current time point is different from each preset time point, determining the previous preset time point and the next preset time point which are adjacent to the current time point from the plurality of preset time points. For example, in the example in which 24 whole points are set as the preset time points, if it is determined that the current time point is 8 points and 15 points, the last preset time point immediately adjacent to the current time point is 8 points and the next preset time point immediately adjacent to the current time point is 9 points.
And S16, determining the wallpaper image corresponding to the last preset time point as a first wallpaper image and determining the wallpaper image corresponding to the next preset time point as a second wallpaper image according to the mapping relation.
In the case that it is determined in step S14 that the current time point is different from each preset time point, a wallpaper image corresponding to the previous preset time point is determined as a first wallpaper image, and a wallpaper image corresponding to the next preset time point is determined as a second wallpaper image according to the mapping relationship generated in step S12.
and S18, generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
in an exemplary embodiment of the present disclosure, time lengths of the current time point from the previous preset time point and the next preset time point may be calculated, and a weight value of the previous preset time point with respect to the current time point and a weight value of the next preset time point with respect to the current time point may be determined according to the two time lengths. In this case, the wallpaper image corresponding to the current time point may be generated according to the first wallpaper image, the second wallpaper image, and the determined weight value.
Specifically, first, the time length from the current time point to the last preset time point may be determined as the first time length T1, and the time length from the current time point to the next preset time point may be determined as the second time length T2. For example, the current time point is 8 o ' clock and 15 minutes, the previous preset time point is 8 o ' clock and the next preset time point is 9 o ' clock, in which case the first time length T1 is 15 minutes and the second time length T2 is 45 minutes.
Next, calculating a proportion of the second time length T2 to a sum of the first time length T1 and the second time length T2 as a first weight value W1; and calculating the proportion of the first time length T1 to the sum of the first time length T1 and the second time length T2 as a second weight value W2. It can be seen that the shorter the time length, the larger the weight value. Still in the above example, at this time, the first weighted value W1 is 0.75, and the second weighted value W2 is 0.25.
Subsequently, the pixel value (RGB value) of each pixel point in the first wallpaper image, the pixel value (RGB value) of each pixel point in the second wallpaper image, the first weight value W1, and the second weight value W2 may be used to calculate the pixel value of each pixel point in the wallpaper image at the current time point.
If the pixel values of all the pixel points of the first wallpaper image are characterized as a first pixel value matrix A, and the pixel values of all the pixel points of the second wallpaper image are characterized as a second pixel value matrix B, a pixel value matrix X of the wallpaper image representing the current time point can be determined by using the following formula:
X=A×W1+B×W2
wherein the sum of W1 and W2 is 1.
After the pixel value matrix X of the wallpaper image at the current time point is determined, the pixel value of each pixel point on the wallpaper image at the current time point is determined, that is, the wallpaper image corresponding to the current time point is determined.
The terminal equipment displays the wallpaper image corresponding to the current time point on the screen, so that the control process of the dynamic wallpaper can be realized.
Based on the processing procedure, the simulation of the day and the night of the real world by the screen within 24 hours can be automatically realized. The color and elements of the screen gradually and regularly change along with the time lapse from morning to night, the day can use blue sky as the background, the evening can present the gradual change of the sunset color, the background can be deep blue purple at night, and the effect that meteor slides across the sky can appear.
in addition, the wallpaper image can be changed in an accelerated manner in response to the preview operation of the wallpaper, so that the display effect of the dynamic wallpaper can be previewed.
in addition, the exemplary embodiment of the disclosure also provides a scheme for displaying dynamic wallpaper by fusing weather elements.
specifically, first, the terminal device may determine real-time weather information at a current time point. The weather information may include, but is not limited to, information such as sunny, rainy, snowy, fog, haze, temperature, wind direction, and the like.
and then, if the determined real-time weather information contains a preset type of weather element, fusing the weather element and the wallpaper image corresponding to the current time point, and displaying. In this case, a pre-generated image of the snow may be acquired, and the image of the snow may be fused with the wallpaper image corresponding to the current time point to display the wallpaper image with the snow element.
A current point-in-time wallpaper image generation process of an exemplary embodiment of the present disclosure will be explained with reference to fig. 2.
In step S200, a mapping relationship between a preset time point and a corresponding wallpaper image may be preconfigured and stored in the terminal device; in step S202, the terminal device determines a current time point; in step S204, it is determined whether the current time point is a preset time point, if yes, step S206 is executed, and if not, step S208 is executed; in step S206, the wallpaper image at the preset time point may be used as the wallpaper image at the current time point and displayed; in step S208, the terminal device may determine a previous preset time point and a next preset time point of the current time point; in step S210, determining a pixel value matrix of the wallpaper image corresponding to the previous preset time point; in step S212, a first weight value of the last preset time point relative to the current time point is determined; in step S214, determining a pixel value matrix of the wallpaper image corresponding to the next preset time point; in step S216, determining a second weight value of the next preset time point relative to the current time point; in step S218, a pixel value matrix of the wallpaper image corresponding to the previous preset time point, the first weight value, a pixel value matrix of the wallpaper image corresponding to the next preset time point, and the second weight value are used to generate and display the wallpaper image at the current time point, so as to implement a real-time control process of the dynamic wallpaper.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, the example embodiment also provides a wallpaper generation device.
Fig. 3 schematically shows a block diagram of a wallpaper generation apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 3, the wallpaper generation apparatus 3 according to an exemplary embodiment of the present disclosure may include a pre-configuration module 31, a point-in-time determination module 33, a wallpaper image determination module 35, and a first wallpaper generation module 37.
Specifically, the pre-configuration module 31 may be configured to pre-determine a plurality of preset time points in a day, configure a wallpaper image for each preset time point, and generate a mapping relationship between each preset time point and the wallpaper image; the time point determining module 33 may be configured to determine a current time point, and if the current time point is different from each preset time point, determine a previous preset time point and a next preset time point, which are adjacent to the current time point, from the plurality of preset time points; the wallpaper image determination module 35 may be configured to determine, according to the mapping relationship, a wallpaper image corresponding to a previous preset time point as a first wallpaper image, and determine a wallpaper image corresponding to a next preset time point as a second wallpaper image; the first wallpaper generation module 37 may be configured to generate and display a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
By utilizing the wallpaper generation device of the exemplary embodiment of the disclosure, the wallpaper style can be dynamically changed in real time within one day according to the configured wallpaper image, so that the effect of simulating the daytime and the night in the real world by utilizing the wallpaper can be realized, the display effect of the wallpaper is enriched, and the visual fatigue of a user is reduced.
According to an exemplary embodiment of the present disclosure, referring to fig. 4, the provisioning module 31 may include a first wallpaper image configuration unit 401.
Specifically, the first wallpaper image configuration unit 401 may be configured to perform: acquiring a background map configured for each preset time point; acquiring foreground elements configured for each preset time point; the background map and the foreground elements can be combined to generate wallpaper images corresponding to the preset time points.
according to an exemplary embodiment of the present disclosure, referring to fig. 5, the provisioning module 31 may include a second wallpaper image configuration unit 501.
Specifically, the second wallpaper image configuration unit 501 may be configured to perform: acquiring a plurality of shot images shot by a shooting device in the same scene; the shooting time of the plurality of shot images is respectively the same as the plurality of preset time points; and respectively determining the shot images as wallpaper images corresponding to the preset time points.
According to an exemplary embodiment of the present disclosure, referring to fig. 6, the wallpaper generation apparatus 6 may further include a second wallpaper generation module 61, compared to the wallpaper generation apparatus 3.
in particular, the second wallpaper generation module 61 may be configured to perform: if the current time point is the same as a target preset time point in a plurality of preset time points, determining a wallpaper image corresponding to the target preset time point according to the mapping relation; and determining the wallpaper image corresponding to the target preset time point as the wallpaper image of the current time point and displaying the wallpaper image.
According to an exemplary embodiment of the present disclosure, referring to fig. 7, the first wallpaper generation module 37 may include a weight value determination unit 701 and a wallpaper generation unit 703.
Specifically, the weight value determining unit 701 may be configured to determine a weight value of a previous preset time point relative to a current time point as a first weight value, and determine a weight value of a next preset time point relative to the current time point as a second weight value; wherein the sum of the first weight value and the second weight value is 1; the wallpaper generation unit 703 may be configured to calculate, by using the pixel value of each pixel in the first wallpaper image, the pixel value of each pixel in the second wallpaper image, the first weight value, and the second weight value, the pixel value of each pixel in the wallpaper image at the current time point, so as to generate and display the wallpaper image corresponding to the current time point.
According to an exemplary embodiment of the present disclosure, the weight value determining unit 701 may be configured to perform: determining the time length from the current time point to the last preset time point as a first time length, and determining the time length from the current time point to the next preset time point as a second time length; calculating the proportion of the second time length to the sum of the first time length and the second time length as a first weight value; and calculating the proportion of the first time length to the sum of the first time length and the second time length as a second weight value.
according to an exemplary embodiment of the present disclosure, referring to fig. 8, the first wallpaper generation module 37 may further include a weather element fusion unit 801 in addition to the weight value determination unit 701 and the wallpaper generation unit 703.
Specifically, the weather element fusion unit 801 may be configured to perform: determining real-time weather information of a current time point; and if the real-time weather information contains the preset type weather elements, fusing the weather elements and the wallpaper image corresponding to the current time point, and displaying.
since each functional module of the program operation performance analysis apparatus according to the embodiment of the present invention is the same as that in the embodiment of the present invention, it is not described herein again.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
the program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical disk, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
a computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to this embodiment of the invention is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification. For example, the processing unit 910 may perform steps S12 through S18 as shown in fig. 1.
The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a cache memory unit 9202, and may further include a read only memory unit (ROM) 9203.
Storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. As shown, the network adapter 960 communicates with the other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. 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 to be limited only by the terms of the appended claims.

Claims (10)

1. A wallpaper generation method is characterized by comprising the following steps:
Presetting a plurality of preset time points in one day, configuring wallpaper images for the preset time points, and generating a mapping relation between the preset time points and the wallpaper images;
Determining a current time point, and if the current time point is different from each preset time point, determining a previous preset time point and a next preset time point which are adjacent to the current time point from the plurality of preset time points;
Determining the wallpaper image corresponding to the last preset time point as a first wallpaper image and determining the wallpaper image corresponding to the next preset time point as a second wallpaper image according to the mapping relation;
and generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
2. A wallpaper generation method as claimed in claim 1, wherein configuring a wallpaper image for each of the preset time points comprises:
acquiring a background map configured for each preset time point;
Acquiring foreground elements configured for each preset time point;
The background map and the foreground elements can be combined to generate wallpaper images corresponding to the preset time points.
3. A wallpaper generation method as claimed in claim 1, wherein configuring a wallpaper image for each of the preset time points comprises:
acquiring a plurality of shot images shot by a shooting device aiming at the same scene; the shooting time of the plurality of shot images is respectively the same as the plurality of preset time points;
And respectively determining the shot images as wallpaper images corresponding to the preset time points.
4. A wallpaper generation method according to claim 1, further comprising:
If the current time point is the same as a target preset time point in the preset time points, determining a wallpaper image corresponding to the target preset time point according to the mapping relation;
And determining the wallpaper image corresponding to the target preset time point as the wallpaper image of the current time point and displaying the wallpaper image.
5. A wallpaper generation method according to any one of claims 1 to 4, wherein generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image comprises:
Determining a weight value of the last preset time point relative to the current time point as a first weight value, and determining a weight value of the next preset time point relative to the current time point as a second weight value; wherein the sum of the first weight value and the second weight value is 1;
And calculating the pixel value of each pixel point in the wallpaper image at the current time point by using the pixel value of each pixel point in the first wallpaper image, the pixel value of each pixel point in the second wallpaper image, the first weight value and the second weight value so as to generate and display the wallpaper image corresponding to the current time point.
6. A wallpaper generation method as claimed in claim 5, wherein determining the weight value of the last preset time point relative to the current time point as a first weight value, and determining the weight value of the next preset time point relative to the current time point as a second weight value comprises:
Determining the time length from the current time point to the last preset time point as a first time length, and determining the time length from the current time point to the next preset time point as a second time length;
Calculating the proportion of the second time length to the sum of the first time length and the second time length as the first weight value;
And calculating the proportion of the first time length to the sum of the first time length and the second time length as the second weight value.
7. The wallpaper generation method according to claim 6, wherein after generating the wallpaper image corresponding to the current time point, the wallpaper generation method further comprises:
Determining real-time weather information of the current time point;
And if the real-time weather information contains a preset type of weather element, fusing the weather element with the wallpaper image corresponding to the current time point, and displaying.
8. A wallpaper generation apparatus, comprising:
The pre-configuration module is used for pre-determining a plurality of preset time points in one day, configuring wallpaper images for the preset time points and generating a mapping relation between the preset time points and the wallpaper images;
a time point determining module, configured to determine a current time point, and if the current time point is different from each of the preset time points, determine, from the multiple preset time points, a previous preset time point and a next preset time point that are immediately adjacent to the current time point;
The wallpaper image determining module is used for determining the wallpaper image corresponding to the last preset time point as a first wallpaper image according to the mapping relation, and determining the wallpaper image corresponding to the next preset time point as a second wallpaper image;
And the first wallpaper generation module is used for generating and displaying a wallpaper image corresponding to the current time point according to the first wallpaper image and the second wallpaper image.
9. a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the wallpaper generation method according to any one of claims 1 to 7.
10. An electronic device, comprising:
A processor; and
A memory for storing executable instructions of the processor;
Wherein the processor is configured to perform the wallpaper generation method of any one of claims 1 to 7 via execution of the executable instructions.
CN201910791030.1A 2019-08-26 2019-08-26 Wallpaper generation method and device, storage medium and electronic equipment Pending CN110543345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910791030.1A CN110543345A (en) 2019-08-26 2019-08-26 Wallpaper generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910791030.1A CN110543345A (en) 2019-08-26 2019-08-26 Wallpaper generation method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110543345A true CN110543345A (en) 2019-12-06

Family

ID=68712116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910791030.1A Pending CN110543345A (en) 2019-08-26 2019-08-26 Wallpaper generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110543345A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089876A (en) * 2020-08-10 2022-02-25 深圳市万普拉斯科技有限公司 Wallpaper display method and device, computer equipment and storage medium
CN114089876B (en) * 2020-08-10 2024-05-24 深圳市万普拉斯科技有限公司 Wallpaper display method, wallpaper display device, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6354212B1 (en) * 2000-01-05 2002-03-12 Lynn Paula Krinsky Method of preparing customized wallpaper panels
US7945947B1 (en) * 2007-12-03 2011-05-17 The United States Of America As Represented By The Director, National Security Agency Method of providing a computer user with high-level privileges
CN103559007A (en) * 2013-10-17 2014-02-05 三星电子(中国)研发中心 Method and device for dynamically generating screen wallpaper
CN107145361A (en) * 2017-05-26 2017-09-08 北京小米移动软件有限公司 Wallpaper displaying method and device
CN107392974A (en) * 2017-07-13 2017-11-24 北京金山安全软件有限公司 Picture generation method and device and terminal equipment
CN107396111A (en) * 2017-07-13 2017-11-24 河北中科恒运软件科技股份有限公司 The compensation method of automatic video frequency interleave and system in mediation reality
US20180091768A1 (en) * 2016-09-28 2018-03-29 Gopro, Inc. Apparatus and methods for frame interpolation based on spatial considerations
WO2018120169A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Method for automatically setting wallpaper, terminal device and graphical user interface
CN109120935A (en) * 2018-09-27 2019-01-01 贺禄元 A kind of coding method of video image and device
WO2019041982A1 (en) * 2017-09-04 2019-03-07 北京京东金融科技控股有限公司 Display content control method, apparatus and system, storage medium, and electronic device
CN109597668A (en) * 2018-10-26 2019-04-09 北京奇安信科技有限公司 A kind of wallpaper replacement processing method and processing device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6354212B1 (en) * 2000-01-05 2002-03-12 Lynn Paula Krinsky Method of preparing customized wallpaper panels
US7945947B1 (en) * 2007-12-03 2011-05-17 The United States Of America As Represented By The Director, National Security Agency Method of providing a computer user with high-level privileges
CN103559007A (en) * 2013-10-17 2014-02-05 三星电子(中国)研发中心 Method and device for dynamically generating screen wallpaper
US20180091768A1 (en) * 2016-09-28 2018-03-29 Gopro, Inc. Apparatus and methods for frame interpolation based on spatial considerations
WO2018120169A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Method for automatically setting wallpaper, terminal device and graphical user interface
CN107145361A (en) * 2017-05-26 2017-09-08 北京小米移动软件有限公司 Wallpaper displaying method and device
CN107392974A (en) * 2017-07-13 2017-11-24 北京金山安全软件有限公司 Picture generation method and device and terminal equipment
CN107396111A (en) * 2017-07-13 2017-11-24 河北中科恒运软件科技股份有限公司 The compensation method of automatic video frequency interleave and system in mediation reality
WO2019041982A1 (en) * 2017-09-04 2019-03-07 北京京东金融科技控股有限公司 Display content control method, apparatus and system, storage medium, and electronic device
CN109120935A (en) * 2018-09-27 2019-01-01 贺禄元 A kind of coding method of video image and device
CN109597668A (en) * 2018-10-26 2019-04-09 北京奇安信科技有限公司 A kind of wallpaper replacement processing method and processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089876A (en) * 2020-08-10 2022-02-25 深圳市万普拉斯科技有限公司 Wallpaper display method and device, computer equipment and storage medium
CN114089876B (en) * 2020-08-10 2024-05-24 深圳市万普拉斯科技有限公司 Wallpaper display method, wallpaper display device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101969527B (en) Content-aware video stabilization
CN111068312B (en) Game picture rendering method and device, storage medium and electronic equipment
US20200302656A1 (en) Object-Based Color Adjustment
CN110210532B (en) Background color generation method and device and electronic equipment
CN103984553A (en) 3D (three dimensional) desktop display method and system
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
US20150325048A1 (en) Systems, methods, and computer-readable media for generating a composite scene of a real-world location and an object
US20180364871A1 (en) Automatic cognitive adjustment of display content
CN114863418B (en) Voltage-sharing field identification method and device, storage medium and terminal
CN110120087B (en) Label marking method and device for three-dimensional virtual sand table and terminal equipment
CN110766780A (en) Method and device for rendering room image, electronic equipment and computer readable medium
CN109640068A (en) Information forecasting method, device, equipment and the storage medium of video frame
CN113110731B (en) Method and device for generating media content
CN114444653A (en) Method and system for evaluating influence of data augmentation on deep learning model performance
CN109448123B (en) Model control method and device, storage medium and electronic equipment
CN112991274A (en) Crowd counting method and device, computer equipment and storage medium
CN110543345A (en) Wallpaper generation method and device, storage medium and electronic equipment
CN109688381B (en) VR monitoring method, device, equipment and storage medium
Gárate Voxel datacubes for 3D visualization in Blender
CN112446944B (en) Method and system for simulating real environment light in AR scene
CN113989427A (en) Illumination simulation method and device, electronic equipment and storage medium
CN113987902A (en) Weather scene simulation method and device, electronic equipment and storage medium
JP2023550970A (en) Methods, equipment, storage media, and program products for changing the background in the screen
JP2022551671A (en) OBJECT DISPLAY METHOD, APPARATUS, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM
CN109062645B (en) Method and apparatus for processing information for terminal

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