CN113407289A - Wallpaper switching method, wallpaper generation method, device and storage medium - Google Patents

Wallpaper switching method, wallpaper generation method, device and storage medium Download PDF

Info

Publication number
CN113407289A
CN113407289A CN202110789052.1A CN202110789052A CN113407289A CN 113407289 A CN113407289 A CN 113407289A CN 202110789052 A CN202110789052 A CN 202110789052A CN 113407289 A CN113407289 A CN 113407289A
Authority
CN
China
Prior art keywords
wallpaper
background
target
switching
color
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
CN202110789052.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.)
Shanghai Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202110789052.1A priority Critical patent/CN113407289A/en
Publication of CN113407289A publication Critical patent/CN113407289A/en
Pending legal-status Critical Current

Links

Images

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

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

Abstract

The embodiment of the invention discloses a wallpaper switching method, a wallpaper generation method, a device and a storage medium, wherein the wallpaper switching method comprises the following steps: the method comprises the steps that a client generates a background switching request for switching a wallpaper background of current display wallpaper in a target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color; the client side sends the background switching request to a wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter so as to generate target display wallpaper based on the color switching parameter and the current display wallpaper; and the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper. The embodiment of the invention can realize the switching of the wallpaper backgrounds and better meet the individual requirements of users.

Description

Wallpaper switching method, wallpaper generation method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a wallpaper switching method, a wallpaper generation device and a storage medium.
Background
With the wide popularization of electronic devices, the demand of users for personalized display of electronic devices is also increasing. Setting different desktop wallpapers for the electronic equipment becomes one of means for embodying individualization.
At present, desktop wallpaper of electronic equipment is usually a preset static picture or dynamic picture, once the played wallpaper is selected, fixed content is displayed, and the content of the wallpaper is usually not changeable. If a user needs to display a wallpaper which has the same content as a currently displayed wallpaper but has a different background, the user often needs to search for the wallpaper which has the same content as the currently displayed wallpaper but has a different background, but the user often needs to search for the wallpaper which has the same content but has a different background color, which is difficult, time-consuming and labor-consuming, and even if the user finds a desired wallpaper, the user also needs to operate the electronic device and reset the wallpaper, which results in a tedious operation process and affects user experience.
In summary, most of the current wallpaper display modes of wallpaper software are single picture or video playing, once a video is confirmed, the color of the video cannot be modified, different videos are required to be displayed, the manufacturing cost is high, the flexibility is poor, interaction with a user cannot be performed, and the use experience of the user is affected.
Disclosure of Invention
The embodiment of the invention provides a wallpaper switching method, a wallpaper generation method, a device and a storage medium, which are used for achieving the effect of switching the background of the current displayed wallpaper.
In a first aspect, an embodiment of the present invention provides a wallpaper switching method, where the method includes:
the method comprises the steps that a client generates a background switching request for switching a wallpaper background of current display wallpaper in a target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the client side sends the background switching request to a wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter so as to generate target display wallpaper based on the color switching parameter and the current display wallpaper;
and the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper.
In a second aspect, an embodiment of the present invention further provides a wallpaper generation method, where the method includes:
the wallpaper player receives a background switching request which is sent by the client and used for switching a wallpaper background of the current display wallpaper in a wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the wallpaper player analyzes the background switching request to obtain the color switching parameter, and generates target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper player feeds the target display wallpaper back to the client so as to enable the target client to display the target display wallpaper.
In a third aspect, an embodiment of the present invention further provides a wallpaper switching device, where the wallpaper switching device includes:
the request generation module is used for generating a background switching request for switching a wallpaper background of the current display wallpaper in the target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
a request sending module, configured to send the background switching request to a wallpaper player, where the wallpaper player is configured to analyze the background switching request to obtain the color switching parameter, so as to generate a target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper display module is used for receiving the target display wallpaper fed back by the wallpaper player and displaying the target display wallpaper.
In a fourth aspect, an embodiment of the present invention further provides a wallpaper generation apparatus, where the apparatus includes:
the request receiving module is used for receiving a background switching request which is sent by the client and used for switching a wallpaper background of the current display wallpaper in the wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the wallpaper generation module is used for analyzing the background switching request to obtain the color switching parameter and generating target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper feedback module is used for feeding the target display wallpaper back to the client so as to enable the target client to display the target display wallpaper.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the wallpaper switching method and the wallpaper generation method provided by any embodiment of the invention.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the wallpaper switching method and the wallpaper generation method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the client generates the background switching request for switching the wallpaper background of the current displayed wallpaper in the target wallpaper video, and can provide a request entry for switching the background for a user; then, the client side sends the background switching request to a wallpaper player, so that the wallpaper player can analyze the background switching request carrying color switching parameters, and generates target display wallpaper based on the color switching parameters and the current display wallpaper, namely, the target display wallpaper corresponding to the background switching request can be generated through the wallpaper player; finally, after the wallpaper player generates the target display wallpaper, the client can receive the target display wallpaper fed back by the wallpaper player and display the target display wallpaper on the client, so that the wallpaper background can be switched. Compared with the traditional mode of replacing the wallpaper video file or remanufacturing the wallpaper, the wallpaper background can be conveniently replaced, the manufacturing cost is saved, the technical problems that the wallpaper background of the current wallpaper software can display fixed contents and the contents of the wallpaper background cannot be changed are solved, the technical effect of personalized switching of the background displaying the wallpaper at present is achieved, the personalized requirements of a user are met, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart illustrating a wallpaper switching method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a currently displayed wallpaper provided in accordance with one embodiment of the invention;
fig. 3 is a schematic flowchart illustrating a wallpaper switching method according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart of a wallpaper generation method according to a third embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a wallpaper generation method according to a fourth embodiment of the present invention;
fig. 6 is a schematic flowchart of an alternative example of a wallpaper generation method according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a wallpaper switching control device according to a sixth embodiment of the invention;
fig. 8 is a schematic structural diagram of a wallpaper generation control device according to a seventh embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart illustrating a wallpaper switching method according to an embodiment of the present invention, where the method may be implemented by a wallpaper switching device, the device may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the wallpaper switching method according to the embodiment of the present invention.
As shown in fig. 1, the method of the embodiment may specifically include:
s110, a background switching request for switching a wallpaper background of the current display wallpaper in the target wallpaper video is generated by the client, wherein the background switching request carries a color switching parameter of a target background color.
Wherein a target wallpaper video may be understood as a video used by a current user interface for presenting a currently displayed wallpaper display. The target wallpaper video may include one frame, two frames, or more than two frames of wallpaper images. Specifically, the currently displayed wallpaper may be understood as a wallpaper image played at the current time in the target wallpaper video, or a wallpaper image displayed at the current time by the client.
When processing an image, the image may be divided into a foreground portion and a background portion. The manner of dividing the image into the foreground part and the background part can be various, and the specific manner can be determined according to the actual requirement. For example, an object of interest in an image may be identified, with the object of interest as a foreground portion of the image and the remainder as a background portion of the image; or determining a pure color continuous area in the image, taking the pure color continuous area as a background part of the image, and taking the rest areas in the image as a foreground part of the image; or when the image carries the identification marks of the foreground part and/or the background part, dividing the image into the foreground part and the background part based on the identification marks; or receiving a selection operation of the foreground part or the background part input by a user, and dividing the image into the foreground part and the background part based on the selection operation. Alternatively, the wallpaper background of the currently displayed wallpaper may be understood as an image portion of the wallpaper image displayed at the current time, wherein the color is to be replaced. As mentioned above, the wallpaper background is specifically which part of the currently displayed wallpaper can be determined according to actual requirements.
For example, the wallpaper background of the currently displayed wallpaper may be an area other than a person or an object in the currently displayed wallpaper. Taking the wallpaper shown in fig. 2 as the current display wallpaper as an example, the foreground portion of the current display wallpaper may be a girl, a swing, a shadow and a dark corner portion, and the rest portion is used as the wallpaper background of the current display wallpaper.
In the embodiment of the present invention, there may be a plurality of triggering manners for the client to generate the background switching request for switching the wallpaper background of the currently displayed wallpaper in the target wallpaper video. Optionally, the client is triggered to execute an operation of generating a background switching request for switching a wallpaper background of the currently displayed wallpaper in the target wallpaper video based on a preset event trigger condition. The preset event triggering condition may include that the current time is sent to a preset time, or a time interval between the current time and the last wallpaper background switching time reaches a preset time, or a preset triggering operation is received, or a preset associated event for triggering generation of a background switching request is detected, and the like.
And S120, the client side sends the background switching request to a wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter, so as to generate target display wallpaper based on the color switching parameter and the current display wallpaper.
As can be seen from the foregoing, the background switching request is generated by the client, and may be used to request switching of the wallpaper background of the currently used target wallpaper video, and in order to enable the wallpaper player to accurately capture the request purpose, the background switching request generated by the client carries the color switching parameter of the target background color. In the embodiment of the present invention, the color switching parameter may be understood as a color parameter required by the wallpaper player to convert the background color of the currently displayed wallpaper into the target background color. Optionally, the color switching parameter is obtained by the client through color space conversion according to the target background color.
Among them, the wallpaper player may be understood as a player capable of performing operations such as generating and switching wallpapers, and may be used for responding to a request for displaying wallpaper. When the wallpaper player receives the background switching request, the background switching request can be analyzed to obtain a color switching parameter required for switching the current background color of the current display wallpaper, and then the current background color of the current display wallpaper is switched to the target background color based on the color switching parameter to generate the target display wallpaper so as to respond to the background switching request. Specifically, the wallpaper player analyzes the background switching request to obtain the color switching parameter, generates a target display wallpaper based on the color switching parameter and the current display wallpaper, and feeds the target display wallpaper back to the client, so that the target client displays the target display wallpaper.
Optionally, generating a target display wallpaper based on the color switching parameter and the current display wallpaper includes: determining at least one frame of wallpaper to be switched corresponding to the current displayed wallpaper in the target wallpaper video; analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel, and generating background texture data based on the color switching parameters; and fusing the foreground texture data and the background texture data to obtain the target display wallpaper.
Analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel, wherein the analyzing of the wallpaper to be switched can include: analyzing the wallpaper to be switched to obtain target main body information with an Alpha channel and dark part information corresponding to the wallpaper to be switched; and taking the analyzed target main body information and the analyzed picture vignetting information as foreground texture data of the target display wallpaper.
Generating background texture data based on the color switching parameter, which may be to color a preset transparent background based on the color switching parameter to generate the background texture data of the target background color.
S130, the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper.
The target display wallpaper is a new wallpaper which is obtained through processing by the wallpaper player and has been switched to the target background color, and serves as content fed back to the client by the wallpaper player. And after the client receives the feedback of the target display wallpaper obtained by the wallpaper player, outputting the target display wallpaper, thereby realizing the switching of the wallpaper background of the current display wallpaper.
The wallpaper player can feed back the target display wallpaper in various ways. For example, after generating a target display wallpaper based on the color-switching parameter and the current display wallpaper, a wallpaper player may send the target display wallpaper to the client. For another example, after generating a target display wallpaper based on the color switching parameter and the current display wallpaper, a wallpaper player may send display inquiry information to the client for inquiring whether the client displays the target display wallpaper; when the wallpaper player receives a confirmation display instruction for confirming the display of the target wallpaper, which is fed back by the client, the wallpaper player can feed back the target display wallpaper to the client.
In the technical scheme of this embodiment, a background switching request for switching a wallpaper background of a currently displayed wallpaper in a target wallpaper video is generated by a client, a user selects a wallpaper background color of the target displayed wallpaper by presetting a plurality of trigger modes at the client, the client generates a background switching request according to a color switching parameter of the wallpaper background color selected by the user and sends the background switching request to a wallpaper player, the wallpaper player analyzes the background switching request to obtain a color switching parameter, and simultaneously divides the currently displayed wallpaper in the target displayed video into a foreground and a background by an image processing method, the target displayed wallpaper can be generated based on the color switching parameter and the currently displayed wallpaper by a color space switching method, finally the generated target displayed wallpaper is fed back to the client, after the client receives a feedback result of the wallpaper player, the wallpaper switching method has the advantages that the wallpaper switching method is used for displaying on the client side, the problem that when a user needs to display the wallpaper which is the same as the current wallpaper in content and different from the background, the wallpaper which is the same in content and different from the background is needed to be searched is solved, the background switching of the current displayed wallpaper is controlled by the user through the mode that the client side selects the background color of the wallpaper, and the personalized requirements of target users are met.
Example two
Fig. 3 is a flowchart of a wallpaper switching method according to a second embodiment of the present invention, where the wallpaper switching method is refined based on any optional technical solution in the second embodiment of the present invention. Optionally, the generating, by the client, a background switching request for switching a wallpaper background of a currently displayed wallpaper in a wallpaper video includes: the client receives a target background color which is input by a target user and used for switching a wallpaper background of the current display wallpaper in a wallpaper video; the client converts the target background color into a color switching parameter corresponding to the wallpaper player through a color space based on the target background color; the client generates a background switching request based on the color switching parameter.
As shown in fig. 3, the method of this embodiment includes the following specific steps:
s310, the client receives a target background color which is input by a target user and used for switching the wallpaper background of the wallpaper displayed currently in the wallpaper video.
Various modes can be used for inputting the target background color for switching the wallpaper background of the current displayed wallpaper in the wallpaper video. Illustratively, the target background color of the wallpaper background for switching the wallpaper currently displayed in the wallpaper video can be input by inputting a voice instruction, or the target background color of the wallpaper background for switching the wallpaper currently displayed in the wallpaper video can be input by triggering a preset color switching element, or the target background color of the wallpaper background for switching the wallpaper currently displayed in the wallpaper video can be input by gesture recognition, image recognition or character input. It can be understood that, as long as it can be determined through the information input by the user that the mode that the user wants to switch the wallpaper background of the currently displayed wallpaper in the wallpaper video to the target background color is within the protection scope of the embodiment of the present invention, the specific information content or the specific input mode that is input is not limited herein.
In order to facilitate user operation, a background color selection interface can be arranged, so that a user can quickly and conveniently input the background color of the target. Illustratively, when the client receives a switching trigger instruction which is input by a target user and used for switching the wallpaper background of the wallpaper currently displayed in the wallpaper video, a background color selection interface containing at least one color is displayed; receiving the selection operation of the target user on the displayed color on the background color selection interface, and taking the color selected by the target user as the target background color.
Specifically, the background color selection interface may be provided with a target background color selection area for a target user to switch the background color of the target wallpaper video wallpaper, and the target user may select the color according to actual requirements. Wherein, the object background color selection area can display two or more alternative colors. The target background selection area may include at least one color selection icon. One color may correspond to one color selection icon, or a plurality of colors may correspond to one color selection icon. The display form of the color selection icon is not limited herein, and can be set according to actual requirements. For example, it may be circular, square, rectangular, polygonal, or the like.
Illustratively, the target background color area can be provided as a color bar or a disc with various colors, or as a sliding bar with a color preview function, so as to fully display the colors selectable in the system, and the triggering manner when the target user selects the target background color of the target wallpaper video background is various, for example, the triggering manner can be pulling, rotating or clicking.
Illustratively, the client may receive that a target user triggers a target background color selection area by pulling, rotating, clicking or the like, and selects a certain color as a target background color of a wallpaper background of a currently displayed wallpaper in a target wallpaper video; if the target user does not select, the client may display the first background color in the system as the target background color.
It should be noted that, there may be many ways to generate the switching trigger instruction, for example, when it is detected that the mouse cursor moves into the preset trigger area, the switching trigger instruction for switching the wallpaper background of the currently displayed wallpaper in the wallpaper video is generated; or when detecting that a preset switching element for switching the wallpaper background of the current display wallpaper in the wallpaper video is triggered, generating a switching trigger instruction; or, when the sound detection device receives target sound information for switching the wallpaper background of the wallpaper currently displayed in the wallpaper video, a switching trigger instruction for switching the wallpaper background of the wallpaper currently displayed in the wallpaper video is generated, or when a switching trigger instruction for switching the wallpaper background of the wallpaper currently displayed in the wallpaper video is generated based on a preset switching time condition, and the like.
For example, the switching time condition may be a timed switching, that is, the timing may be selected to switch the background in the target wallpaper video. Alternatively, the switching time interval can be set by the user according to the requirement of the user. For example, the background switching of the target wallpaper video may be performed every 5 s.
And S320, converting the target background color into a color switching parameter corresponding to the wallpaper player through a color space by the client based on the target background color.
The target user triggers a target background color selection area of the target wallpaper video wallpaper background color of the client, after the target background color is selected, the client converts the target background color through a color conversion space, and the conversion result is a color switching parameter which can be processed by the wallpaper player.
In the embodiment of the invention, the conversion of the color parameter can be completed by a color space conversion method based on factors such as chroma, hue, saturation, intensity or color difference of the target background color. The method for color space conversion may include: RGB color space conversion, YUV color space conversion, HIS space conversion, and the like, which method is specifically adopted may be determined according to actual requirements.
According to the principle of colorimetry, various colors in the nature can be formed by mixing red, green and blue colors according to the proportion of different colors, so that various colors can be obtained by inputting different color parameters to three color channels of red, green and blue in an RGB conversion space.
Specifically, after the target user determines the target background color, the color conversion space of the client may convert the target background color into color parameters corresponding to three color channels of Red (Red, R), Green (Green, G), and Blue (Blue, B) according to a mixing ratio of Red, Green, and Blue in the target background color based on a colorimetry principle, and may generate various non-passing colors by inputting different color parameters to R, G, B three color channels, where the RGB value may be a value automatically generated by a certain color selected by the user through the target background color selection region, or a value manually input by the user. Optionally, the determined RGB values are used as color switching parameters corresponding to the wallpaper player.
And S330, the client generates a background switching request based on the color switching parameter and sends the request to the wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter so as to generate a target display wallpaper based on the color switching parameter and the current display wallpaper.
As described above, after receiving the target background color input by the user, the color space may convert the target background color into the color switching parameter, and generate the background switching request of the target wallpaper video based on the color switching parameter, so as to send the background switching request to the wallpaper player. After being processed by the wallpaper player, generating target display wallpaper, and feeding the target display wallpaper back to the client
S340, the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper.
Specifically, the wallpaper player switches the background color in the target wallpaper video to obtain the target display wallpaper, feeds the target display wallpaper back to the client, and the client can display the target display wallpaper on the client after receiving the feedback result of the wallpaper player.
According to the technical scheme of the embodiment, the client receives a target background color of a wallpaper background for switching wallpaper displayed currently in a wallpaper video, which is input by a target user, wherein a target background color selection area for the target user to switch the background color of the wallpaper video is arranged on an interface of the client, so that the target user can determine the target background color according to actual requirements; the client converts the target background color into a color switching parameter corresponding to the wallpaper player through a color space based on the target background color, and the client converts the target background color into the color switching parameter through a color space conversion method for processing the color switching parameter by the wallpaper player; the client generates a background switching request based on the color switching parameters and sends the request to the wallpaper player, and the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper, so that the problem that the wallpaper background cannot be switched once a target wallpaper video of a user is determined is solved, and the effect of switching the wallpaper background is realized.
EXAMPLE III
Fig. 4 is a flowchart of a wallpaper generation method according to a third embodiment of the present invention, where the method may be applied to a situation where a user generates a wallpaper background without modifying wallpaper content, and the method may be executed by a wallpaper generation apparatus, and the apparatus may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the wallpaper generation method according to the third embodiment of the present invention.
As shown in fig. 4, the method of this embodiment may specifically include:
s410, the wallpaper player receives a background switching request which is sent by the client and used for switching a wallpaper background of the wallpaper displayed currently in the wallpaper video, wherein the background switching request carries a color switching parameter of a target background color.
The wallpaper player can be understood as functional software which can receive a background switching request sent by a client and complete generation of a target wallpaper background. Illustratively, a software implementation may be drawn based on DX 11. The background switching request may be a client-generated background switching request for switching a wallpaper background of a currently displayed wallpaper in the target wallpaper video. And the background switching request comprises a corresponding color switching parameter after the color space of the client is converted. Illustratively, the color switching parameter may be R, G, B color values for three color channels. By adjusting the color values of the three color channels, different colors can be mixed and generated.
The manner in which the client generates the background switching request for switching the wallpaper background of the current displayed wallpaper in the target wallpaper video may be referred to the description in the foregoing embodiments, and is not described herein again.
S420, the wallpaper player analyzes the background switching request to obtain the color switching parameter, and generates target display wallpaper based on the color switching parameter and the current display wallpaper.
Specifically, the wallpaper player may analyze the background switching request to obtain a color switching parameter of the target background color, and generate background texture data of the target display wallpaper together with the color switching parameter. And analyzing foreground texture data of the wallpaper to be switched, corresponding to the current display wallpaper, in the target wallpaper video, and further generating the target display wallpaper based on the generated background texture data and the analyzed foreground texture data.
S430, the wallpaper player feeds the target display wallpaper back to the client side, so that the target client side can display the target display wallpaper.
Specifically, after fusing the foreground content of the wallpaper currently displayed by the target wallpaper video and the new wallpaper background generated based on the color switching parameter into the target wallpaper image, the wallpaper player may send the target display wallpaper as a feedback result to the client for the client to display the target display wallpaper.
As mentioned above, the wallpaper player may feed the target display wallpaper back to the client in various ways. For example, after generating a target display wallpaper based on the color-switching parameter and the current display wallpaper, a wallpaper player may send the target display wallpaper to the client. For another example, after generating a target display wallpaper based on the color switching parameter and the current display wallpaper, a wallpaper player may send display inquiry information to the client for inquiring whether the client displays the target display wallpaper; when the wallpaper player receives a confirmation display instruction for confirming the display of the target wallpaper, which is fed back by the client, the wallpaper player can feed back the target display wallpaper to the client.
According to the technical scheme, the wallpaper player receives a background switching request which is sent by a client and used for switching a wallpaper background of a wallpaper displayed currently in a wallpaper video, wherein the background switching request carries a color switching parameter of a target background color, so that the wallpaper player can switch the background color of the target displayed wallpaper based on the color switching parameter obtained by the client, and the target background color requested by the client is accurately responded; the wallpaper player analyzes the background switching request to obtain the color switching parameters, generates target display wallpaper based on the color switching parameters and the current display wallpaper, switches the wallpaper background of the current display wallpaper to be a target background color based on the color switching parameters carried in the background switching request sent by the client, generates a background part of the target display wallpaper, and fuses the obtained background part and the analyzed foreground part to obtain the target display wallpaper; the wallpaper player feeds the target display wallpaper back to the client side, so that the target client side can display the target display wallpaper, the problem that the wallpaper of a target wallpaper video cannot be generated is solved, switching of the wallpaper background of the current display wallpaper is achieved, and the technical effect of meeting personalized requirements of users is achieved.
Example four
Fig. 5 is a flowchart of a wallpaper generation method according to a fourth embodiment of the present invention, where the wallpaper generation method is refined based on any optional technical solution in the fourth embodiment of the present invention. Optionally, the generating a target display wallpaper based on the color switching parameter and the current display wallpaper includes: determining at least one frame of wallpaper to be switched corresponding to the current displayed wallpaper in the target wallpaper video; analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel, and generating background texture data based on the color switching parameters; and fusing the foreground texture data and the background texture data to obtain the target display wallpaper.
As shown in fig. 5, the method of this embodiment includes the following specific steps:
s510, the wallpaper player receives a background switching request which is sent by the client and used for switching a wallpaper background of the wallpaper displayed currently in the wallpaper video, wherein the background switching request carries a color switching parameter of a target background color.
S520, the wallpaper player analyzes the background switching request to obtain the color switching parameter.
S530, determining at least one frame of wallpaper to be switched corresponding to the current displayed wallpaper in the target wallpaper video.
The wallpaper to be switched can be understood as the wallpaper which is analyzed from the target wallpaper video and is to be switched into the target background color based on the background switching request. In the embodiment of the invention, the background switching request can be only used for requesting to switch the wallpaper background which is the same as the current display wallpaper in the target wallpaper video, and can also be used for switching the wallpaper backgrounds of two or more wallpapers related to the current display wallpaper in the target wallpaper video. Therefore, the wallpaper to be switched can be one frame, two frames or more than two frames. The wallpaper to be switched may be a wallpaper currently being played in the target wallpaper video, that is, a wallpaper in the target wallpaper video that is the same as the currently displayed wallpaper, may also be a wallpaper in the target wallpaper video that has wallpaper playing time after the playing time of the currently displayed wallpaper (that is, the current playing time), and may also be a wallpaper in the target wallpaper video that has main information that is the same as the currently displayed wallpaper, and the like.
The wallpaper player can decode a target wallpaper video currently used by a user into a continuous multi-frame image sequence arranged according to a time sequence, and further determine the wallpaper to be switched, corresponding to the currently displayed wallpaper, in the target wallpaper video. The format of the video decoding may be an RGB format, a YUV format, or the like.
Optionally, at least one frame of wallpaper to be switched corresponding to the currently displayed wallpaper in the target wallpaper video may be determined based on a preset switching rule. The switching rule may be set according to actual requirements, a fixed switching rule may be set, or different switching rules may be set correspondingly based on different triggering manners, and the number of the switching rules or the switching manner is not specifically limited herein.
S540, analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel, and generating background texture data based on the color switching parameters.
Where Alpha generally refers to the transparency and translucency of an image. The foreground texture data may be information that is desired to be preserved in the wallpaper to be switched, and may include, but is not limited to, a target subject in the wallpaper to be switched and dark part information in the image. The target subject can be automatically set by the system or can be specified by the user, specifically, the target subject can be the contents of people, buildings, landscapes and the like in the image and can be located at any position in the image. The dark part information may be understood as a part of the wallpaper to be switched with a darker brightness compared to the reference brightness, for example, may be dark corner information of the wallpaper to be switched. The advantage of providing the wallpaper with a dark portion is that the light change condition of the actually shot image can be simulated more realistically. The background texture data may be understood as the part of the wallpaper to be switched other than the foreground texture data.
The wallpaper player can analyze the target wallpaper video to obtain the foreground part and the background part of the wallpaper to be switched. For example, the analysis mode may be video decoding, the video may be decoded into a frame image by video decoding, and the format of the decoded image data may be RGB format. Optionally, the foreground part after video parsing is a background texture image with color switching parameters and a foreground texture image with an Alpha channel.
Optionally, generating background texture data based on the color switching parameter includes: and coloring a preset transparent background based on the color switching parameter to generate background texture data of the target background color. The generated background texture data may be, for example, pure color image data with RGB values, preset transparent background image data without any color, or any other image data with water ripples, light and dark stripes, texture data, and the like.
The wallpaper player can receive a color switching parameter obtained by converting a target background color in a client color space, and further utilize functional software generated by the target background, such as DX11 drawing software, to color a preset transparent background into a new background color based on the color switching parameter, so as to generate background texture data corresponding to the target wallpaper video and the background switching request.
And S550, fusing the foreground texture data and the background texture data to generate target display wallpaper.
Specifically, the background texture data and the foreground texture data obtained through analysis by the wallpaper player can be regarded as two images, and the two images can be fused into one image as a target display wallpaper by using image fusion software. Illustratively, when generating the target display wallpaper, color space fusion in a pixel level fusion method may be adopted, different color channels are utilized to map the background texture data and the foreground texture data to a special color channel respectively, and the colors of the channels are merged to enhance the visibility of the image color. The overlapped part of the background texture data and the foreground texture data can mix two colors through a color channel to generate a new color, and can also retain the foreground texture data and only display the color of the foreground texture data.
And S560, the wallpaper player feeds the target display wallpaper back to the client side so that the target client side can display the target display wallpaper.
According to the technical scheme, the wallpaper to be switched corresponding to the currently displayed wallpaper in the target wallpaper video is determined, that is, the switching requirements of the target user are fully considered, and all wallpapers to be switched can be accurately acquired. And then analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel so as to reserve an original foreground part, generating background texture data based on color switching parameters, namely generating a background part with a target background color, then fusing the foreground texture data and the background texture data to generate target display wallpaper which only changes the background of the wallpaper without changing the foreground content of the wallpaper, and finally feeding the target display wallpaper as a feedback result to a client by a wallpaper player for displaying the target display wallpaper by the client, thereby realizing switching of the background wallpaper.
EXAMPLE five
Fig. 6 is a flowchart illustrating an optional example of a wallpaper generation method according to a fifth embodiment of the present invention, where this embodiment is applicable to a case where a user autonomously performs wallpaper switching, and the method may be executed by a wallpaper generation apparatus, where the apparatus may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the wallpaper generation method according to the fifth embodiment of the present invention.
In an optional embodiment, when a target user wants to autonomously switch a wallpaper background of a currently displayed wallpaper in a target wallpaper video, first, when a client receives a switching trigger instruction for switching the wallpaper background of the currently displayed wallpaper in the wallpaper video, which is input by the target user, a background color selection interface for displaying at least one color is displayed, and the target user is received to select a certain color as a target background color through the background color selection interface displayed at the client. The target user can select the target background color through clicking, sliding, rotating and other operations. Then, the color space in the client can decompose the target background color into corresponding RGB values as color switching parameters, further generate a background switching request carrying the color switching parameters of the target background color, and send the background switching request to the wallpaper player.
As shown in fig. 6, after receiving a background switching request for switching a wallpaper background of a currently displayed wallpaper in a wallpaper video sent by a client, a wallpaper player parses the background switching request to determine whether the request is a request for switching the wallpaper background of the currently displayed wallpaper, and if so, generates background texture data based on a color switching parameter of a target background color. Optionally, the preset transparent background is colored based on the color switching parameter, and background texture data of the target background color is generated. To realize the switching of the wallpaper background of the current display wallpaper, the foreground texture data of the current display wallpaper needs to be analyzed. Specifically, at least one frame of wallpaper to be switched corresponding to the current display wallpaper in the target wallpaper video is determined, the wallpaper to be switched is analyzed to obtain foreground texture data with an Alpha channel, and then the foreground texture data and the background texture data are fused to obtain the target display wallpaper.
Target wallpaper video it can be understood that for foreground texture data, the wallpaper player may not process it, and retain the original information of the foreground texture data, such as color saturation, and brightness information.
After the wallpaper player generates the target display wallpaper, the generated result needs to be fed back to the client side and displayed by the client side, so that the function of switching the wallpaper currently displaying the wallpaper in the target wallpaper video into the target display wallpaper carrying the target background color based on the background switching request initiated by the target user through the client side can be interacted with the user, the actual requirement of the user is captured, and the user experience is greatly improved.
EXAMPLE six
Fig. 7 is a schematic structural diagram of a wallpaper switching control apparatus according to a sixth embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the wallpaper switching method according to the sixth embodiment of the present invention. The device may specifically comprise: a request generation module 710, a request sending module 720, and a wallpaper display module 730.
The request generating module 710 is configured to generate a background switching request for switching a wallpaper background of a currently displayed wallpaper in a target wallpaper video, where the background switching request carries a color switching parameter of a target background color;
a request sending module 720, configured to send the background switching request to a wallpaper player, where the wallpaper player is configured to analyze the background switching request to obtain the color switching parameter, so as to generate a target display wallpaper based on the color switching parameter and the current display wallpaper;
and a wallpaper display module 730, configured to receive the target display wallpaper fed back by the wallpaper player, and display the target display wallpaper.
According to the technical scheme of the embodiment of the invention, a client generates a background switching request for switching the wallpaper background of the current displayed wallpaper in a target wallpaper video, a request entry for switching the background can be provided for a user, and the background switching request is provided with a color switching parameter of the target background color, so that the user requirement can be better met, and the background color can be switched as required; then, the client side sends the background switching request to a wallpaper player, so that the wallpaper player can analyze the background switching request carrying color switching parameters, and generates target display wallpaper based on the color switching parameters and the current display wallpaper, namely, the target display wallpaper corresponding to the background switching request can be generated through the wallpaper player; finally, after the wallpaper player generates the target display wallpaper, the client can receive the target display wallpaper fed back by the wallpaper player and display the target display wallpaper on the client, so that the wallpaper background can be switched. Compared with the traditional mode of replacing the wallpaper video file or remanufacturing the wallpaper, the wallpaper background can be conveniently replaced, the manufacturing cost is saved, the technical problems that the wallpaper background of the current wallpaper software can display fixed contents and the contents of the wallpaper background cannot be changed are solved, the technical effect of personalized switching of the background displaying the wallpaper at present is achieved, the personalized requirements of a user are met, and the user experience is improved.
On the basis of the above technical solutions, optionally, the request generation module specifically includes:
the background color receiving unit is used for receiving a target background color of a wallpaper background for switching wallpaper currently displayed in the wallpaper video, which is input by a target user, by the client;
the background color conversion unit is used for converting the target background color into a color switching parameter corresponding to the wallpaper player through a color space by the client side based on the target background color;
a background switching request unit, configured to generate a background switching request based on the color switching parameter by the client.
On the basis of the above technical solutions, optionally, the background color receiving unit is specifically configured to:
when the client receives a switching trigger instruction which is input by a target user and used for switching the wallpaper background of the current display wallpaper in the wallpaper video, a background color selection interface used for displaying at least one color is displayed;
receiving the selection operation of the target user on the displayed color on the background color selection interface, and taking the color selected by the target user as the target background color.
The wallpaper switching device provided by the embodiment of the invention can execute the wallpaper switching method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 8 is a schematic structural diagram of a wallpaper generation apparatus according to a seventh embodiment of the present invention, where the wallpaper generation apparatus may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement a wallpaper generation method according to an embodiment of the present invention. The device may specifically comprise: request acceptance module 810, wallpaper generation module 820, and wallpaper feedback module 830.
The request receiving module 810 is configured to receive a background switching request sent by the client and used for switching a wallpaper background of a currently displayed wallpaper in a wallpaper video, where the background switching request carries a color switching parameter of a target background color;
a wallpaper generation module 820, configured to analyze the background switching request to obtain the color switching parameter, and generate a target display wallpaper based on the color switching parameter and the current display wallpaper;
a wallpaper feedback module 830, configured to feed back the target display wallpaper to the client, so that the target client displays the target display wallpaper.
According to the technical scheme, the wallpaper player receives a background switching request which is sent by a client and used for switching a wallpaper background of a wallpaper displayed currently in a wallpaper video, wherein the background switching request carries a color switching parameter of a target background color, so that the wallpaper player can switch the background color of the target displayed wallpaper based on the color switching parameter obtained by the client, and the target background color requested by the client is accurately responded; the wallpaper player analyzes the background switching request to obtain the color switching parameters, generates target display wallpaper based on the color switching parameters and the current display wallpaper, switches the wallpaper background of the current display wallpaper to be a target background color based on the color switching parameters carried in the background switching request sent by the client, generates a background part of the target display wallpaper, and fuses the obtained background part and the analyzed foreground part to obtain the target display wallpaper; the wallpaper player feeds the target display wallpaper back to the client side, so that the target client side can display the target display wallpaper, the problem that the wallpaper of a target wallpaper video cannot be generated is solved, switching of the wallpaper background of the current display wallpaper is achieved, and the technical effect of meeting personalized requirements of users is achieved.
On the basis of the above technical solutions, optionally, the wallpaper generation module specifically includes:
a wallpaper to be switched determining unit, configured to determine at least one frame of wallpaper to be switched, corresponding to the currently displayed wallpaper, in the target wallpaper video;
the wallpaper to be switched analyzing unit is used for analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel and generating background texture data based on the color switching parameters;
and the target wallpaper display unit is used for fusing the foreground texture data and the background texture data to obtain target display wallpaper. On the basis of the above technical solutions, optionally, the wallpaper analyzing unit to be switched is configured to:
analyzing the wallpaper to be switched to obtain target main body information with an Alpha channel and dark part information corresponding to the wallpaper to be switched;
and taking the analyzed target main body information and the analyzed picture vignetting information as foreground texture data of the target display wallpaper.
On the basis of the above technical solutions, optionally, the wallpaper generation module is further configured to color a preset transparent background based on the color switching parameter, and generate background texture data of the target background color.
The wallpaper generation device provided by the embodiment of the invention can execute the wallpaper generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example eight
Fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention. FIG. 9 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 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 20. As shown in FIG. 9, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 9, other hardware and/or software modules may be used in conjunction with electronic device 12, 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.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a wallpaper switching method or a wallpaper generation method provided by an embodiment of the present invention.
Example nine
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a wallpaper switching method, where the wallpaper switching method includes: the method comprises the steps that a client generates a background switching request for switching a wallpaper background of current display wallpaper in a target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color; the client side sends the background switching request to a wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter so as to generate target display wallpaper based on the color switching parameter and the current display wallpaper; and the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper.
Alternatively, the computer executable instructions, when executed by a computer processor, are for performing a wallpaper generation method, wherein the method comprises: the wallpaper player receives a background switching request which is sent by the client and used for switching a wallpaper background of the current display wallpaper in a wallpaper video, wherein the background switching request carries a color switching parameter of a target background color; the wallpaper player analyzes the background switching request to obtain the color switching parameter, and generates target display wallpaper based on the color switching parameter and the current display wallpaper; and the wallpaper player feeds the target display wallpaper back to the client so as to enable the target client to display the target display wallpaper.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer 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 computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer 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.
A computer readable signal medium may include a propagated data signal with computer 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 computer readable signal medium may also be any computer readable medium that is not a computer 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 computer 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.
Computer program code for carrying out operations for embodiments 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, Smalltalk, 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A wallpaper switching method is characterized by comprising the following steps:
the method comprises the steps that a client generates a background switching request for switching a wallpaper background of current display wallpaper in a target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the client side sends the background switching request to a wallpaper player, wherein the wallpaper player is used for analyzing the background switching request to obtain the color switching parameter so as to generate target display wallpaper based on the color switching parameter and the current display wallpaper;
and the client receives the target display wallpaper fed back by the wallpaper player and displays the target display wallpaper.
2. The method of claim 1, wherein the client generates a background switching request for switching a wallpaper background of a currently displayed wallpaper in a wallpaper video, comprising:
the client receives a target background color which is input by a target user and used for switching a wallpaper background of the current display wallpaper in a wallpaper video;
the client converts the target background color into a color switching parameter corresponding to the wallpaper player through a color space based on the target background color;
the client generates a background switching request based on the color switching parameter.
3. The method as claimed in claim 2, wherein the client receives a target background color for switching a wallpaper background of the wallpaper currently displayed in the wallpaper video, which is input by a target user, and comprises:
when the client receives a switching trigger instruction which is input by a target user and used for switching the wallpaper background of the current display wallpaper in the wallpaper video, a background color selection interface used for displaying at least one color is displayed;
receiving the selection operation of the target user on the displayed color on the background color selection interface, and taking the color selected by the target user as the target background color.
4. A wallpaper generation method is characterized by comprising the following steps:
the wallpaper player receives a background switching request which is sent by the client and used for switching a wallpaper background of the current display wallpaper in a wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the wallpaper player analyzes the background switching request to obtain the color switching parameter, and generates target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper player feeds the target display wallpaper back to the client so as to enable the target client to display the target display wallpaper.
5. The method of claim 4, wherein generating a target display wallpaper based on the color-switching parameter and the current display wallpaper comprises:
determining at least one frame of wallpaper to be switched corresponding to the current displayed wallpaper in the target wallpaper video;
analyzing the wallpaper to be switched to obtain foreground texture data with an Alpha channel, and generating background texture data based on the color switching parameters;
and fusing the foreground texture data and the background texture data to obtain the target display wallpaper.
6. The method according to claim 5, wherein the analyzing the wallpaper to be switched to obtain foreground texture data with Alpha channels comprises:
analyzing the wallpaper to be switched to obtain target main body information with an Alpha channel and dark part information corresponding to the wallpaper to be switched;
and taking the analyzed target main body information and the analyzed picture vignetting information as foreground texture data of the target display wallpaper.
7. The method of claim 5, wherein generating background texture data based on the color switching parameter comprises:
and coloring a preset transparent background based on the color switching parameter to generate background texture data of the target background color.
8. A wallpaper switching device, configured at a client, includes:
the request generation module is used for generating a background switching request for switching a wallpaper background of the current display wallpaper in the target wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
a request sending module, configured to send the background switching request to a wallpaper player, where the wallpaper player is configured to analyze the background switching request to obtain the color switching parameter, so as to generate a target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper display module is used for receiving the target display wallpaper fed back by the wallpaper player and displaying the target display wallpaper.
9. A wallpaper generation device, which is provided in a wallpaper player, includes:
the request receiving module is used for receiving a background switching request which is sent by the client and used for switching a wallpaper background of the current display wallpaper in the wallpaper video, wherein the background switching request carries a color switching parameter of a target background color;
the wallpaper generation module is used for analyzing the background switching request to obtain the color switching parameter and generating target display wallpaper based on the color switching parameter and the current display wallpaper;
and the wallpaper feedback module is used for feeding the target display wallpaper back to the client so as to enable the target client to display the target display wallpaper.
10. A computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the wallpaper switching method as claimed in any one of claims 1 to 3 or the wallpaper generation method as claimed in any one of claims 4 to 7.
CN202110789052.1A 2021-07-13 2021-07-13 Wallpaper switching method, wallpaper generation method, device and storage medium Pending CN113407289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110789052.1A CN113407289A (en) 2021-07-13 2021-07-13 Wallpaper switching method, wallpaper generation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110789052.1A CN113407289A (en) 2021-07-13 2021-07-13 Wallpaper switching method, wallpaper generation method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113407289A true CN113407289A (en) 2021-09-17

Family

ID=77686118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110789052.1A Pending CN113407289A (en) 2021-07-13 2021-07-13 Wallpaper switching method, wallpaper generation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113407289A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089897A (en) * 2021-11-11 2022-02-25 深圳传音控股股份有限公司 Wallpaper switching method, intelligent terminal and storage medium
CN115967762A (en) * 2021-10-12 2023-04-14 花瓣云科技有限公司 Display method, display resource management method, readable medium, and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015117505A1 (en) * 2014-08-26 2015-08-13 中兴通讯股份有限公司 Method and device for changing application logos on terminal
US9288374B1 (en) * 2012-09-10 2016-03-15 Amazon Technologies, Inc. Systems and methods for updating camera characteristics using a remote computing device
CN106126255A (en) * 2016-06-30 2016-11-16 北京奇虎科技有限公司 The method of adjustment of the background colour of the title of picture plate and device
CN107102863A (en) * 2017-05-08 2017-08-29 广州视源电子科技股份有限公司 A kind of method and system that carousel region background color is automatically determined according to carousel picture
CN107391150A (en) * 2017-07-28 2017-11-24 闻泰通讯股份有限公司 The adaptive variation of mobile terminal topic tone and system
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108334202A (en) * 2018-02-27 2018-07-27 广东欧珀移动通信有限公司 Wallpaper update method and Related product
CN108520259A (en) * 2018-04-13 2018-09-11 国光电器股份有限公司 A kind of extracting method of foreground target, device, equipment and storage medium
CN109413264A (en) * 2018-09-26 2019-03-01 维沃移动通信有限公司 A kind of background picture method of adjustment and terminal device
CN109766048A (en) * 2018-12-29 2019-05-17 维沃移动通信有限公司 A kind of display methods and mobile terminal of flexible display screen
EP3537710A1 (en) * 2018-03-06 2019-09-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Imaging control method and imaging device
CN110377392A (en) * 2019-07-26 2019-10-25 珠海豹趣科技有限公司 Wallpaper displaying method and device
CN112561844A (en) * 2020-12-08 2021-03-26 中国人民解放军陆军炮兵防空兵学院 Automatic generation method of digital camouflage pattern fused with texture structure

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9288374B1 (en) * 2012-09-10 2016-03-15 Amazon Technologies, Inc. Systems and methods for updating camera characteristics using a remote computing device
WO2015117505A1 (en) * 2014-08-26 2015-08-13 中兴通讯股份有限公司 Method and device for changing application logos on terminal
CN106126255A (en) * 2016-06-30 2016-11-16 北京奇虎科技有限公司 The method of adjustment of the background colour of the title of picture plate and device
CN107102863A (en) * 2017-05-08 2017-08-29 广州视源电子科技股份有限公司 A kind of method and system that carousel region background color is automatically determined according to carousel picture
CN107391150A (en) * 2017-07-28 2017-11-24 闻泰通讯股份有限公司 The adaptive variation of mobile terminal topic tone and system
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108334202A (en) * 2018-02-27 2018-07-27 广东欧珀移动通信有限公司 Wallpaper update method and Related product
EP3537710A1 (en) * 2018-03-06 2019-09-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Imaging control method and imaging device
CN108520259A (en) * 2018-04-13 2018-09-11 国光电器股份有限公司 A kind of extracting method of foreground target, device, equipment and storage medium
CN109413264A (en) * 2018-09-26 2019-03-01 维沃移动通信有限公司 A kind of background picture method of adjustment and terminal device
CN109766048A (en) * 2018-12-29 2019-05-17 维沃移动通信有限公司 A kind of display methods and mobile terminal of flexible display screen
CN110377392A (en) * 2019-07-26 2019-10-25 珠海豹趣科技有限公司 Wallpaper displaying method and device
CN112561844A (en) * 2020-12-08 2021-03-26 中国人民解放军陆军炮兵防空兵学院 Automatic generation method of digital camouflage pattern fused with texture structure

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TECK WEE CHUA ET AL: "Adaptive texture-color based background subtraction for video surveillance", 《 2012 19TH IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING》 *
胡苏阳 等: "基于CIELAB颜色模型的数字照片背景色替换", 《计算机应用与软件》 *
陈振跃等: "基于HSI颜色空间和小波变换的多光谱图像和偏振图像融合实验研究", 《光子学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115967762A (en) * 2021-10-12 2023-04-14 花瓣云科技有限公司 Display method, display resource management method, readable medium, and electronic device
CN114089897A (en) * 2021-11-11 2022-02-25 深圳传音控股股份有限公司 Wallpaper switching method, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
WO2021068558A1 (en) Simultaneous subtitle translation method, smart television, and storage medium
JP7270661B2 (en) Video processing method and apparatus, electronic equipment, storage medium and computer program
US20160232871A1 (en) Display method and display device
CN108737878B (en) Method and system for modifying user interface color in conjunction with video presentation
CN113407289A (en) Wallpaper switching method, wallpaper generation method, device and storage medium
CN114286173A (en) Display device and sound and picture parameter adjusting method
EP4376423A1 (en) Virtual object interaction method and device, and storage medium and computer program product
CN112580302B (en) Subtitle correction method and display equipment
CN114399437A (en) Image processing method and device, electronic equipment and storage medium
CN111356025A (en) Multi-subtitle display method, intelligent terminal and storage medium
CN113014939A (en) Display device and playing method
CN112698905A (en) Screen protection display method, display device, terminal device and server
CN113645476B (en) Picture processing method and device, electronic equipment and storage medium
EP3596700B1 (en) Methods, systems, and media for color palette extraction for video content items
CN114125498A (en) Video data processing method, device, equipment and storage medium
WO2023207381A1 (en) Image processing method and apparatus, and electronic device and storage medium
CN113453069B (en) Display device and thumbnail generation method
CN115278332A (en) Display device, playing device and data transmission method
CN113992960A (en) Subtitle previewing method on display device and display device
CN111491184B (en) Method and device for generating situational subtitles, electronic equipment and storage medium
CN112926420A (en) Display device and menu character recognition method
CN112989846B (en) Text translation method, text translation device, text translation apparatus, and storage medium
CN113766164B (en) Display equipment and signal source interface display method
CN115396717B (en) Display device and display image quality adjusting method
CN116684674A (en) Subtitle display method and display equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210917

RJ01 Rejection of invention patent application after publication