Wallpaper display method and device

By displaying foreground and background wallpaper images on different layers of electronic devices and obtaining driving frames using user-selected video frames, the problem of monotonous raster wallpaper display effects is solved, achieving more diverse three-dimensional display effects.

CN121996342APending Publication Date: 2026-05-08VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2026-01-23
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In existing technologies, the display method of raster wallpaper is relatively fixed, resulting in a monotonous display effect.

Method used

By displaying foreground and background wallpaper images on different layers of an electronic device and obtaining driving frames using user-selected video frames, dynamic updates of foreground and background images are achieved, simulating a three-dimensional spatial effect.

Benefits of technology

It improves the diversity of raster wallpaper display effects and enhances the user's interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996342A_ABST
    Figure CN121996342A_ABST
Patent Text Reader

Abstract

The invention discloses a wallpaper display method and device, and belongs to the technical field of electronics, and the method comprises the steps: obtaining a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video under the condition that a wallpaper display condition is satisfied; the first video is obtained based on user selection; the foreground wallpaper image is displayed on a first layer of the first interface, the background wallpaper image is displayed on a second layer of the first interface, and the first layer is an upper layer of the second layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, specifically relating to a wallpaper display method and apparatus. Background Technology

[0002] Raster wallpapers, as a type of smart live wallpaper, can change the displayed content in real time based on the device's motion sensor data, thus bringing users a novel user experience.

[0003] In related technologies, after a user triggers an electronic device to set a raster wallpaper based on a video selected by the user, when the user rotates the electronic device, the electronic device can detect changes in motion sensor data, and thus display the corresponding video frame based on the motion sensor data to change the content of the raster wallpaper displayed on the electronic device.

[0004] However, in the above process, since the electronic device directly displays the video frames corresponding to the sensor data, the way the electronic device displays raster wallpaper is relatively fixed, resulting in a single display effect for raster wallpaper. Summary of the Invention

[0005] The purpose of this application is to provide a wallpaper display method and apparatus that can improve the diversity of display effects of raster wallpapers.

[0006] In a first aspect, embodiments of this application provide a wallpaper display method, which includes: when wallpaper display conditions are met, acquiring a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video; the first video is obtained based on user selection; displaying the foreground wallpaper image on a first layer of a first interface, and displaying the background wallpaper image on a second layer of the first interface, wherein the first layer is an upper layer of the second layer.

[0007] Secondly, embodiments of this application provide a wallpaper display device, which includes: an acquisition module and a display module; the acquisition module is used to acquire a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video when wallpaper display conditions are met; the first video is obtained based on user selection; the display module is used to display the foreground wallpaper image on a first layer of a first interface and display the background wallpaper image on a second layer of the first interface, wherein the first layer is an upper layer of the second layer.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the wallpaper display method as described in the first aspect.

[0009] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the wallpaper display method as described in the first aspect.

[0010] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the wallpaper display method as described in the first aspect.

[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the wallpaper display method as described in the first aspect.

[0012] In this embodiment, when the wallpaper display conditions are met, a foreground wallpaper image and a background wallpaper image are obtained based on the driving frames in the first video. The first video is obtained based on user selection. The foreground wallpaper image is displayed on the first layer of the first interface, and the background wallpaper image is displayed on the second layer of the first interface. The first layer is the upper layer of the second layer. In this solution, since the first video is obtained based on user selection, it contains driving frames corresponding to the video frames selected by the user for wallpaper display. In other words, the driving frames can obtain wallpaper images for wallpaper display. Therefore, when the wallpaper display conditions are met, the corresponding driving frame can be directly selected from the first video, and then the foreground wallpaper image and the background wallpaper image are obtained and displayed based on the driving frame. This allows the wallpaper displayed on the electronic device to be updated each time the wallpaper display conditions are met. Furthermore, since the foreground wallpaper image and the background wallpaper image can be displayed on different layers of the first interface, the foreground wallpaper image, the background wallpaper image, and the interface elements in the interface have a three-dimensional spatial effect, thus giving the displayed raster wallpaper a depth effect. This improves the diversity of the display effect of the raster wallpaper displayed on the electronic device. Attached Figure Description

[0013] Figure 1 This is one of the flowcharts of the wallpaper display method provided in some embodiments of this application;

[0014] Figure 2 This is the second flowchart of a wallpaper display method provided in some embodiments of this application;

[0015] Figure 3 This is the third flowchart of a wallpaper display method provided in some embodiments of this application;

[0016] Figure 4These are schematic diagrams of segmented driving frames provided in some embodiments of this application;

[0017] Figure 5 These are schematic diagrams of foreground wallpaper images provided in some embodiments of this application;

[0018] Figure 6 This is the fourth flowchart of a wallpaper display method provided in some embodiments of this application;

[0019] Figure 7 This is one of the schematic diagrams of a wallpaper display component provided in some embodiments of this application;

[0020] Figure 8 This is the fifth flowchart of a wallpaper display method provided in some embodiments of this application;

[0021] Figure 9 This is a second schematic diagram of a wallpaper display component provided in some embodiments of this application;

[0022] Figure 10 This is the sixth flowchart of a wallpaper display method provided in some embodiments of this application;

[0023] Figure 11 These are schematic diagrams illustrating the display of wallpapers provided in some embodiments of this application;

[0024] Figure 12 This is the seventh flowchart of a wallpaper display method provided in some embodiments of this application;

[0025] Figure 13 This is one of the schematic diagrams of user-set wallpapers provided in some embodiments of this application;

[0026] Figure 14 This is a second schematic diagram of a user setting wallpaper provided in some embodiments of this application;

[0027] Figure 15 This is a schematic diagram of a foreground contour image provided in some embodiments of this application;

[0028] Figure 16 This is a schematic diagram of a driver frame provided in some embodiments of this application;

[0029] Figure 17 This is a schematic diagram of a compressed driver frame provided in some embodiments of this application;

[0030] Figure 18 This is one of the schematic diagrams of a wallpaper display device provided in some embodiments of this application;

[0031] Figure 19 This is a second schematic diagram of a wallpaper display device provided in some embodiments of this application;

[0032] Figure 20 These are schematic diagrams of the electronic devices provided in some embodiments of this application;

[0033] Figure 21 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0035] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0036] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0037] The following explains some concepts and terms involved in the wallpaper display method and apparatus provided in the embodiments of this application.

[0038] Application: An application can also be simply referred to as an "application." Multiple applications (Apps) can be installed on an electronic device, and their identifiers are displayed on the device's home screen. In some embodiments of this application, the application can be an embedded application, i.e., a system application of the electronic device, or a downloadable application.

[0039] Interface: This refers to the visual interface through which users interact with electronic devices, such as mobile phones. It serves as the medium for information presentation and input / output within a hardware or software system. Electronic devices can display an interface on a screen, allowing users to interact with the device through touch, clicks, or gestures. The interface may include elements such as icons, buttons, menus, text, and symbols.

[0040] Desktop: The desktop is the core area of ​​an interactive graphical user interface, typically serving as the initial visual platform for users to interact with the operating system or applications. It is both a virtual mapping of the physical screen and a spatial carrier for functional aggregation, containing elements such as icons, shortcuts, folders, and widgets, allowing users to manage files, launch programs, or access system functions through clicks, drags, and other operations.

[0041] Identifiers: In this application, identifiers are text, symbols, images, etc. used to indicate information. They can be used as carriers for displaying information, including but not limited to text identifiers, image identifiers, symbol identifiers, etc.

[0042] Components: Also known as controls, components are graphical user interface elements. Components are the basic building blocks of a user interface, such as windows or text boxes, displayed in the program interface of any application. Components can be buttons, text boxes, labels, etc., and are used to control all the data processed by each application and the interactive operations related to that data.

[0043] A floating window is a graphical user interface element independent of the main application interface. It can float at the system or application level and has features such as being draggable, collapsible, and temporarily on top. It typically does not occupy full screen space. The shape of a floating window is usually rectangular, but other shapes are also possible. In the embodiments of this application, the size, position, and shape of the floating window are not limited.

[0044] Cards are information carriers with closed outlines, providing various applications with information in a condensed and intuitive way for displaying and interacting with information across different programs. In the Android system, cards are stackable window interfaces. The shape of a card is typically a rounded rectangle, similar to a credit card, but other shapes are also possible. Cards make it easier for users of electronic devices to obtain information and perform operations intuitively, hence their wide application. In the embodiments of this application, the size, position, and shape of the cards are not limited.

[0045] Artificial Intelligence (AI) is a branch of computer science that aims to simulate human cognitive and decision-making abilities through algorithms, data, and computing power, enabling machines to perform tasks such as learning, reasoning, perception, planning, and natural language processing. Its core technologies include machine learning (especially deep learning), knowledge representation, computer vision, and speech recognition.

[0046] The wallpaper display method and apparatus provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0047] The embodiments of this application can be applied to scenarios where raster wallpapers need to be displayed.

[0048] In a specific application scenario, the wallpaper display method provided in this application embodiment can be applied to the scenario of displaying raster wallpaper on the lock screen interface of an electronic device, such as scenario 1.

[0049] Scenario 1: Taking a scenario where the foreground content is a portrait and the background content is a raster wallpaper of the sun on a phone's lock screen as an example. The user can trigger the phone to acquire the portrait foreground wallpaper image and the sun background wallpaper image based on the driving frames in the first video, provided the wallpaper display conditions are met; the first video is obtained based on the user's selection; then the phone displays the portrait foreground wallpaper image on the first layer of the lock screen and the sun background wallpaper image on the second layer of the lock screen, with the first layer being the upper layer of the second layer.

[0050] In another specific application scenario, the wallpaper display method provided in this application embodiment can be applied to the scenario of displaying raster wallpaper on the desktop of an electronic device, such as scenario 2.

[0051] Scenario 2: Taking a scenario where a raster wallpaper with a car as the foreground and a building as the background is displayed on the phone's desktop as an example. The user can trigger the phone to acquire the car foreground wallpaper image and the building background wallpaper image based on the driving frames in the first video, provided the wallpaper display conditions are met; the first video is obtained based on the user's selection; then the phone displays the car foreground wallpaper image on the first layer of the desktop and the building background wallpaper image on the second layer of the lock screen, with the first layer being the upper layer of the second layer.

[0052] It should be noted that the above scenarios 1 and 2 are merely exemplary examples of some scenarios that may be applied to the embodiments of this application. In actual implementation, the embodiments of this application can also be applied to any possible scenario where more raster wallpapers need to be displayed. The embodiments of this application are not limited here.

[0053] This application provides a wallpaper display method and apparatus. When wallpaper display conditions are met, a foreground wallpaper image and a background wallpaper image are obtained based on a driving frame in a first video. The first video is selected by the user. The foreground wallpaper image is displayed on a first layer of a first interface, and the background wallpaper image is displayed on a second layer of the first interface. The first layer is an upper layer of the second layer. In this solution, since the first video is selected by the user, it contains driving frames corresponding to the video frames selected by the user for wallpaper display. These driving frames can obtain wallpaper images for wallpaper display. Therefore, when wallpaper display conditions are met, the corresponding driving frame can be directly selected from the first video, and then the foreground and background wallpaper images are obtained and displayed based on the driving frame. This allows the wallpaper displayed on the electronic device to be updated each time the wallpaper display conditions are met. Furthermore, since the foreground and background wallpaper images can be displayed on different layers of the first interface, a three-dimensional spatial effect exists between the foreground wallpaper image, the background wallpaper image, and interface elements, resulting in a depth-of-field effect for the displayed raster wallpaper. This improves the diversity of raster wallpaper display effects on electronic devices.

[0054] The wallpaper display method provided in this application can be implemented by a wallpaper display device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device as an example to illustrate the technical solution provided in this application.

[0055] Figure 1 A flowchart of a wallpaper display method provided in an embodiment of this application is shown, such as... Figure 1 As shown, the wallpaper display method provided in this application embodiment may include the following steps 201 and 202.

[0056] Step 201: When the wallpaper display conditions are met, the electronic device acquires the foreground wallpaper image and the background wallpaper image based on the driving frame in the first video.

[0057] In some embodiments of this application, the first video described above may also be referred to as a wallpaper-driven video.

[0058] In some embodiments of this application, the first video described above is obtained based on user selection.

[0059] In some embodiments of this application, the first video described above is used as a source video for the foreground wallpaper image and the background wallpaper image.

[0060] For example, taking scenario 1 as an example, the first video in scenario 1 is a video of a person in the foreground and a sun in the background.

[0061] For example, taking scenario 2 as an example, the first video in scenario 2 is a video of a car in the foreground and a building in the background.

[0062] In some embodiments of this application, the source of the first video may include at least one of the following: video captured by a camera, video captured in real time by a camera, video downloaded by any application, or video acquired via Bluetooth. Of course, the source of the first video may also include other sources, which can be determined according to actual needs, and this application does not limit this.

[0063] In some embodiments of this application, the format of the first video includes at least one of the following: MPEG-4 Part 14 (MP4), Audio Video Interleave (AVI) format, and Flash format. Of course, the format of the first video may also include other video formats, which can be determined according to actual needs, and this application does not limit this.

[0064] In some embodiments of this application, the first video described above may be a video containing foreground content and background content.

[0065] In some embodiments of this application, the foreground content can be the image content of an object that is close to the camera when the first video is captured, such as a person, a pet, or a car.

[0066] In some embodiments of this application, the background content can be the image content of an object that is far from the camera when the first video is captured, such as the sun, mountains, buildings, etc.

[0067] In some embodiments of this application, the first interface may include at least one of the following: a lock screen interface, a desktop, and a component page. Of course, the first interface may also include other interfaces, which can be determined according to actual needs, and this application does not limit this.

[0068] In some embodiments of this application, the desktop type includes at least one of the following: normal desktop, negative one screen, and scene desktop. Of course, the desktop type may also include other desktop types, which can be determined according to actual needs, and this application does not limit this.

[0069] In some embodiments of this application, the above-mentioned ordinary desktop includes at least one of the following pages: a main screen and a secondary screen.

[0070] In some embodiments of this application, when the first interface is a normal desktop, the first interface may include at least one page in the desktop.

[0071] In some embodiments of this application, the aforementioned component pages include at least one of the following: a card component page, a floating window component page, an image component page, and a video component page. Of course, the aforementioned component pages may also include other component pages, which can be determined according to actual needs, and this application does not limit this.

[0072] Step 202: The electronic device displays the foreground wallpaper image in the first layer of the first interface and the background wallpaper image in the second layer of the first interface.

[0073] In some embodiments of this application, the first layer is the upper layer of the second layer.

[0074] In some embodiments of this application, the foreground wallpaper image may be an image that includes the foreground content of the first video but does not include the background content of the first video.

[0075] In some embodiments of this application, the background wallpaper image may be an image containing the background content of the first video.

[0076] For example, taking scenario 1 as an example, the foreground wallpaper image is an image that contains portrait content but does not contain sun content, and the background wallpaper image is an image that contains sun content.

[0077] For example, taking scenario 2, the foreground wallpaper image is an image that includes car content but does not include building content, and the background wallpaper image is an image that includes building content.

[0078] This application provides a wallpaper display method. Since the first video is obtained based on user selection, meaning the first video contains driving frames corresponding to the video frames selected by the user for wallpaper display (i.e., the driving frames can generate wallpaper images for display), when wallpaper display conditions are met, the corresponding driving frame can be directly selected from the first video. Then, based on the driving frame, the foreground and background wallpaper images are obtained and displayed, allowing the wallpaper displayed on the electronic device to update each time the wallpaper display conditions are met. Furthermore, since the foreground and background wallpaper images can be displayed on different layers of the first interface, a three-dimensional spatial effect exists between the foreground wallpaper image, the background wallpaper image, and interface elements, resulting in a depth-of-field effect for the displayed raster wallpaper. This improves the diversity of raster wallpaper display effects on electronic devices.

[0079] In some embodiments of this application, combined with Figure 1 ,like Figure 2As shown, step 201 above can be implemented through step 201a below.

[0080] Step 201a: When the wallpaper display conditions are met, the electronic device acquires a first foreground wallpaper image and a first background wallpaper image based on the first driving frame in the first video.

[0081] In some embodiments of this application, the above-mentioned wallpaper display conditions may also be referred to as wallpaper display driving conditions or wallpaper update triggering conditions.

[0082] The conditions for displaying the wallpaper include any of the following: the user's viewing angle of the electronic device changes, the distance between the electronic device and other electronic devices connected to the electronic device changes, or the attitude angle of the electronic device changes.

[0083] In some embodiments of this application, the first driving frame can be any driving frame in the first video.

[0084] In some embodiments of this application, the first driving frame is determined based on any one of the aforementioned perspective change parameters, distance change parameters, or attitude angle change parameters.

[0085] In some embodiments of this application, the changes in the user's viewing angle of the electronic device include at least one of the following: detecting user head movement or detecting user eye movement. Of course, other situations may also occur, which can be determined according to actual needs, and this application does not limit them.

[0086] In some embodiments of this application, the change in the posture angle of the electronic device can be due to the detection of user rotation input to the electronic device.

[0087] In some embodiments of this application, when the wallpaper display condition is that user head movement is detected, the electronic device can detect the user head movement through face recognition function, and determine the first driving frame based on the direction and angle of the user head movement, so that the wallpaper display screen of the electronic device can be updated with the movement of the user's head.

[0088] For example, assuming the foreground and background wallpaper images currently displayed on the electronic device are obtained from the third driving frame of the first video, when the wallpaper update trigger condition is the detection of user head movement, if the electronic device detects that the user's head has turned K degrees to the left, it acquires the fourth driving frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the fourth driving frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user's head has turned K degrees to the right, it acquires the third frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the third frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user's head has turned K degrees to the left or right again, it continues to update the wallpaper displayed on the electronic device according to the above process.

[0089] In some embodiments of this application, K is a positive integer.

[0090] In some embodiments of this application, when the wallpaper update trigger condition is the detection of user rotation input on the electronic device, the electronic device can determine the first driving frame based on the direction and degree of user rotation of the electronic device, so that the wallpaper displayed on the electronic device can be updated as the user rotates the electronic device.

[0091] For example, assuming the foreground and background wallpaper images currently displayed on the electronic device are obtained from the 6th driving frame of the first video, when the wallpaper update trigger condition is the detection of user rotation input on the electronic device, if the electronic device detects that the user rotates the electronic device to the left by M degrees, it acquires the 7th driving frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the 7th driving frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user rotates the electronic device to the right by M degrees, it acquires the 6th frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the 6th frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user rotates the electronic device to the left or right by M degrees again, it continues to update the wallpaper displayed on the electronic device according to the above process.

[0092] In some embodiments of this application, M is a positive integer.

[0093] In some embodiments of this application, when the wallpaper update trigger condition is the detection of user eye movement, the electronic device can determine the first driving frame based on the direction and degree of user eye movement, so that the wallpaper displayed by the electronic device can be updated as the user's eye moves.

[0094] For example, assuming the foreground and background wallpaper images currently displayed on the electronic device are obtained from the 9th driving frame of the first video, when the wallpaper update trigger condition is the detection of user eye movement, if the electronic device detects that the user's eye has rotated counterclockwise by N degrees, it acquires the 10th driving frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the 10th driving frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user's eye has rotated clockwise by N degrees, it acquires the 9th frame of the first video as the first driving frame, and obtains the corresponding foreground and background wallpaper images based on the 9th frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the user's eye has rotated clockwise or counterclockwise by N degrees again, it continues to update the wallpaper displayed on the electronic device according to the above process.

[0095] In some embodiments of this application, N is a positive integer.

[0096] In some embodiments of this application, when two electronic devices equipped with the function of displaying wallpaper according to the wallpaper display method provided in this application establish a Bluetooth connection and the distance between the devices is less than a first distance threshold, the electronic device that first detects the other device will automatically send a friend pairing request to the other electronic device via Bluetooth. After the other electronic device receives the friend pairing request and receives the user's second input, a "friend link" is established between the two devices, and the device identifiers of the two devices are stored in the background server. This allows the two devices to automatically establish a "friend link" when the distance between them is less than the first distance threshold, without needing to receive the user's second input.

[0097] In some embodiments of this application, the first distance threshold can be a fixed value, such as 10 meters. Of course, the first distance threshold can also be other values ​​preset by the system, which can be determined according to actual needs, and this application does not limit this.

[0098] In some embodiments of this application, the second input described above is used to trigger an electronic device to accept a friend pairing request sent by another electronic device.

[0099] The aforementioned second input includes, but is not limited to: touch input by the user through a touch device such as a finger or stylus, voice commands input by the user, specific gestures input by the user, or other feasible inputs. The specific input can be determined based on actual usage needs, and this application does not impose any limitations on it.

[0100] For example, the second input described above can be a click input to the accept control.

[0101] In some embodiments of this application, when the wallpaper update trigger condition is a change in the distance between the aforementioned electronic device and other electronic devices connected to the aforementioned electronic device, the user can trigger the aforementioned electronic device to establish a "friend link" with other electronic devices via Bluetooth, and determine the aforementioned first driving frame based on the change in distance between the aforementioned electronic device and other electronic devices that have established a "friend link", so that the first wallpaper displayed by the electronic device can change with the change in position between the two electronic devices.

[0102] For example, assuming that the foreground and background wallpaper images currently displayed on user A's electronic device are obtained from the 12th frame of the aforementioned first video, user A can trigger a "friend link" between their electronic device and user B's electronic device. After the "friend link" is established, when the distance between user A's electronic device and user B's electronic device decreases by Z meters, user A's electronic device acquires the 13th frame of the aforementioned first video as the first driving frame, and acquires the corresponding foreground and background wallpaper images based on the 13th frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the distance between user A's electronic device and user B's electronic device increases by Z meters, it acquires the 12th frame of the aforementioned first video as the first driving frame, and acquires the corresponding foreground and background wallpaper images based on the 12th frame to update the wallpaper displayed on the electronic device. If the electronic device subsequently detects that the distance between user A's electronic device and user B's electronic device again increases or decreases by Z meters, it continues to update the wallpaper displayed on the electronic device according to the above process.

[0103] In some embodiments of this application, Z is a positive integer.

[0104] In this way, the user can trigger the electronic device to obtain the corresponding driving frame from the first video each time the wallpaper display conditions are met, and process the driving frame to obtain the foreground wallpaper image and the background wallpaper image. This allows the raster wallpaper displayed by the electronic device to change each time the wallpaper display conditions are met, thus improving the diversity of the raster wallpaper display effect on the electronic device.

[0105] In some embodiments of this application, combined with Figure 2 ,like Figure 3 As shown, step 201a can be implemented by steps 301a to 301c, and step 202 can be implemented by step 202A.

[0106] Step 301a: When the wallpaper display conditions are met, the electronic device performs segmentation processing on the first driving frame in the first video to obtain the first video frame and the first foreground contour image.

[0107] In some embodiments of this application, the first video frame is a video frame in the first video that corresponds to the first driving frame.

[0108] In some embodiments of this application, the above-mentioned segmentation process includes at least one of the following: left-right segmentation, top-bottom segmentation, and vertex segmentation. Of course, the above-mentioned segmentation process may also include other segmentation processes, which can be determined according to actual needs, and this application does not limit them.

[0109] In some embodiments of this application, the first foreground contour image described above may be an image that only contains the contour of the foreground content in the first video frame described above.

[0110] For example, taking scenario 1 as an example, such as Figure 4 As shown, after the mobile phone performs left and right segmentation processing on the first driving frame, it obtains the first video frame 20 and the first foreground contour image 21.

[0111] In some embodiments of this application, the electronic device can obtain the foreground contour image corresponding to each video frame in the first video based on each video frame in the first video described above.

[0112] It should be noted that the specific implementation process of the electronic device obtaining the foreground contour image corresponding to each video frame in the first video can be found in the relevant description in the following embodiments. To avoid repetition, this application will not elaborate on it here.

[0113] Step 301b: The electronic device acquires a first foreground wallpaper image based on the first video frame and the first foreground outline image.

[0114] In some embodiments of this application, an electronic device can use a fusion algorithm to fuse the first video frame and the first foreground contour image to obtain the first foreground wallpaper image.

[0115] For example, an electronic device can perform a fusion process on the first video frame and the first foreground outline image using the following formula 1 to obtain the first foreground wallpaper image.

[0116]

[0117] in, Characterizes the color value of a pixel in the first foreground contour image mentioned above; Characterizes the transparency of the first foreground contour image mentioned above; The transparency of the first video frame described above is used to characterize the transparency of the video frame. Characterizes the color value of a pixel in the first foreground contour image mentioned above; The color value of a pixel in the first video frame is represented.

[0118] For example, taking scenario 1 as an example, the mobile phone can use the above formula 1 to perform image fusion processing on the first foreground contour image obtained by segmenting the first driving frame in the first video and the first video frame, to obtain the following: Figure 5 The first foreground wallpaper image shown.

[0119] Step 301c: The electronic device determines the first video frame as the first background wallpaper image.

[0120] In some embodiments of this application, the electronic device may determine the first video frame as the first background wallpaper image, and subsequently display the first foreground wallpaper image in the first layer of the first interface, and display the first background wallpaper image in the second layer of the first interface.

[0121] It should be noted that the specific implementation process of displaying the first foreground wallpaper image on the first layer of the first interface and the first background wallpaper image on the second layer of the first interface on the electronic device can be found in the relevant description in the above embodiments. To avoid repetition, this application will not repeat it here.

[0122] Step 202A: The electronic device displays a first foreground wallpaper image on the first layer of the first interface and a first background wallpaper image on the second layer of the first interface.

[0123] In this way, the electronic device can obtain a first driving frame from the first video each time the wallpaper display conditions are met, and segment the obtained first driving frame to obtain the corresponding first video frame and the first foreground contour image. Then, based on the corresponding first video frame and the first foreground contour image, it can obtain the foreground wallpaper image and the background wallpaper image, and then display the obtained foreground wallpaper image and background wallpaper image in layers. This allows the raster wallpaper displayed by the electronic device to change each time the wallpaper display conditions are met. Furthermore, when displaying the raster wallpaper, the foreground wallpaper image and the background wallpaper image are displayed on different layers to simulate the real occlusion relationship between objects, thereby displaying a raster wallpaper with a depth effect. This gives users the feeling that the raster wallpaper displayed by the electronic device has a three-dimensional effect, and improves the diversity of the display effect of the raster wallpaper displayed by the electronic device.

[0124] In some embodiments of this application, combined with Figure 1 ,like Figure 6 As shown, step 202 above can be specifically implemented through step 202a below.

[0125] Step 202a: The electronic device displays the foreground wallpaper image on the layer above the interface element of the first interface, and displays the background wallpaper image on the layer or the layer below the interface element.

[0126] In some embodiments of this application, the aforementioned interface elements include at least one of the following: application identifier, component, and unlock identifier. Of course, the aforementioned interface elements may also include other interface elements, such as text and images in the interface, which can be determined according to actual needs, and this application does not limit this.

[0127] For example, when the first interface is the lock screen of an electronic device, the interface elements may include at least one of the following: an unlock icon and a component; when the first interface is the desktop of an electronic device, the interface elements may include at least one of the following: an application icon and a component.

[0128] In some embodiments of this application, the application identifier includes at least one of the following: application icon, application name.

[0129] In some embodiments of this application, the above-mentioned components include at least one of the following: a time component, a weather forecast component, a compass component, and a card component. Of course, the above-mentioned components may also include other components, which can be determined according to actual needs, and this application does not limit them.

[0130] In some embodiments of this application, the electronic device can acquire the foreground wallpaper image and the background wallpaper image based on the first driving frame, and display the foreground wallpaper image and the background wallpaper image on different layers.

[0131] It should be noted that the specific implementation process of an electronic device acquiring the foreground wallpaper image and the background wallpaper image based on the first driving frame and displaying the foreground wallpaper image and the background wallpaper image on different layers can be found in the relevant description in the following embodiments. To avoid repetition, this application will not elaborate further here.

[0132] In some embodiments of this application, the foreground wallpaper image is displayed on the layer above the layer where the interface element is located in the first interface, and the background wallpaper image is displayed on the layer below the layer where the interface element is located in the first interface. Alternatively, the foreground wallpaper image is displayed on the layer above the layer where the interface element is located in the first interface, and the background wallpaper image is displayed on the layer where the interface element is located in the first interface.

[0133] For example, such as Figure 7 As shown, assuming the first desktop element is the application icon of a social application, the phone can display a wallpaper component 23 on the desktop. This wallpaper component 23 is displayed on the same layer as the application icon of the social application. The wallpaper component 23 includes a foreground wallpaper image 24 and a background wallpaper image 25. The display area of ​​the portrait foreground wallpaper image 24 extends beyond the display area of ​​the wallpaper component 23, and the portrait foreground wallpaper image 24 is displayed on the layer above the layer where the application icon 26 of the social application is located. The display area of ​​the sun background wallpaper image 25 is limited to the display area of ​​the wallpaper component 23, and the sun background wallpaper image 25 is displayed on the layer where the application icon 26 of the social application is located.

[0134] In this way, the electronic device can display the foreground wallpaper image on the upper layer of the interface elements on the first interface, and display the background wallpaper image on the layer where the interface elements on the first interface are located or on the layer below the layer where they are located. This allows the electronic device to display different objects on different layers, simulating the real occlusion relationship between objects, thereby displaying a raster wallpaper with a depth effect. This gives users the feeling that the raster wallpaper displayed by the electronic device has a three-dimensional effect, improving the diversity of the display effect of the raster wallpaper displayed by the electronic device.

[0135] In some embodiments of this application, combined with Figure 6 ,like Figure 8 As shown, the step 202a above, "the electronic device displays the foreground wallpaper image on the layer above the interface element of the first interface and displays the background wallpaper image on the layer of the interface element", can be specifically implemented through the following steps 302a and 302b.

[0136] Step 302a: The electronic device displays the foreground wallpaper image on the layer above the layer where the first interface element of the first interface is located, and displays the background wallpaper image on the layer where the first interface element of the first interface is located.

[0137] In some embodiments of this application, the first interface element described above may be a wallpaper component.

[0138] In some embodiments of this application, the component type of the wallpaper component may include at least one of the following: a floating window, a card, or a video component. Of course, the component type of the wallpaper component may also include other component types, which can be determined according to actual needs, and this application does not limit this.

[0139] In some embodiments of this application, the display range of the foreground wallpaper image can extend beyond the display range of the first interface element, while the display range of the background wallpaper image is limited to the display range of the first interface element.

[0140] In some embodiments of this application, the electronic device can crop out the display portion of the background wallpaper image that exceeds the display range of the first interface element, thereby limiting the display range of the background wallpaper image to the display range of the first interface element.

[0141] Step 302b: The electronic device displays a symmetrical foreground wallpaper image above the layer where the second interface element of the first interface is located, and displays a symmetrical background wallpaper image above the background wallpaper image in the layer where the second interface element of the first interface is located.

[0142] In some embodiments of this application, the second interface element described above may be a wallpaper component.

[0143] In some embodiments of this application, the first interface element and the second interface element can be two interface elements that are symmetrically positioned in the first interface.

[0144] In some embodiments of this application, the aforementioned second interface element may also be referred to as a linked interface element of the first interface element.

[0145] In some embodiments of this application, the electronic device can receive a third input from the user for a first interface element and create a linked interface element for the first interface element.

[0146] In some embodiments of this application, the aforementioned third input is used to trigger the electronic device to create a linked interface element of the first interface element.

[0147] In some embodiments of this application, the aforementioned third input includes, but is not limited to: touch input by the user through a touch device such as a finger or stylus, voice commands input by the user, specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this application does not impose any limitations on it.

[0148] For example, the third input mentioned above can be a long press input on the first interface element mentioned above.

[0149] In some embodiments of this application, the first interface element and the second interface element described above can be components of the same type.

[0150] For example, both the first interface element and the second interface element can be video components.

[0151] In some embodiments of this application, the aforementioned symmetrical foreground wallpaper image is obtained by mirroring the aforementioned foreground wallpaper image.

[0152] In some embodiments of this application, the aforementioned symmetrical background wallpaper image is obtained by mirroring the aforementioned background wallpaper image.

[0153] In some embodiments of this application, the display range of the aforementioned symmetrical foreground wallpaper image may extend beyond the display range of the second interface element, while the display range of the aforementioned symmetrical background wallpaper image is limited to the display range of the aforementioned second interface element.

[0154] In some embodiments of this application, the electronic device can crop out the display portion of the symmetrical background wallpaper image that exceeds the display range of the second interface element, thereby limiting the display range of the symmetrical background wallpaper image to the display range of the second interface element.

[0155] In some embodiments of this application, the electronic device can, when the wallpaper display conditions are met, acquire a foreground wallpaper image and a background wallpaper image based on the driving frame in the first video, and perform mirroring processing on the acquired foreground wallpaper image and background wallpaper image to obtain the aforementioned symmetrical foreground wallpaper image and symmetrical background wallpaper image. Then, the electronic device displays the aforementioned foreground wallpaper image on the layer above the layer where the first interface element of the first interface is located, and displays the aforementioned background wallpaper image on the layer where the first interface element of the first interface is located; displays the aforementioned symmetrical foreground wallpaper image on the layer above the layer where the second interface element of the first interface is located, and displays the aforementioned symmetrical background wallpaper image on the layer where the second interface element of the first interface is located.

[0156] In some embodiments of this application, the electronic device may display the foreground wallpaper image on the layer above the layer where the first interface element is located, and display the background wallpaper image on the layer where the first interface element is located. In addition, the electronic device may display a symmetrical foreground wallpaper image above the layer where the second interface element is located, and display a symmetrical background wallpaper image on the layer where the second interface element is located.

[0157] For example, such as Figure 9As shown, assuming the first interface element is video component 27 and the second interface element is video component 28, the phone can display the first interface element 27 on the desktop and the second interface element 28 in a position symmetrical to the display position of the first interface element 27. The first interface element 27 includes a foreground wallpaper image and a background wallpaper image. The foreground wallpaper image is displayed on the layer above the application icon of the social application. The display range of the sun background wallpaper image is limited to the display range of the first interface element 27, and the sun background wallpaper image is displayed on the layer of the application icon of the social application. The second interface element 28 includes a symmetrical foreground wallpaper image corresponding to the foreground wallpaper image in the first interface element 27 and a symmetrical background wallpaper image corresponding to the background wallpaper image in the first interface element 27.

[0158] In this way, the electronic device can display the foreground wallpaper image and the background wallpaper image in layers within one interface element, and display the symmetrical foreground wallpaper image and the symmetrical background wallpaper image of the background wallpaper image in layers within another interface element, thereby improving the diversity of display effects of the components on the desktop of the electronic device.

[0159] In some embodiments of this application, combined with Figure 1 ,like Figure 10 As shown, step 202 above can be specifically implemented through step 402a below.

[0160] Step 402a: The electronic device displays the foreground wallpaper image in the layer between the third and fourth layers of the first interface, and displays the background wallpaper image in the layer below the fourth layer of the first interface.

[0161] In some embodiments of this application, the third layer is a layer located above the fourth layer.

[0162] In some embodiments of this application, the electronic device may display a first component on the third layer and a second component on the fourth layer.

[0163] In some embodiments of this application, the first component and the second component can be components of the same type. Alternatively, the first component and the second component can be components of different types.

[0164] For example, taking scenario 1 as an example, such as Figure 11As shown, assuming that both the first and second components are time components, with the first component being a clock component and the second component being a minute component, the mobile phone performs image fusion processing on the foreground contour image frame and background image frame obtained from each third stitched video frame in the third video segmentation. After obtaining at least one foreground image frame, the mobile phone can obtain at least one wallpaper frame based on the at least one foreground image frame and the at least one background image frame, and then obtain the first wallpaper based on the at least one wallpaper frame, such as... Figure 11 As shown, the first wallpaper is displayed on the lock screen of the phone. The first wallpaper includes a background image frame 40 and a foreground image frame 42. The lock screen includes a time component 41, wherein the background image frame 40 is displayed on the layer below the layer where the time component 41 is located, and the foreground image frame 42 is displayed on the layer above the layer where the time component 41 is located.

[0165] In this way, the electronic device can display different objects sequentially in four layers from top to bottom on the first interface. The foreground wallpaper image is displayed in the layer between the third and fourth layers, and the background wallpaper image is displayed in the layer below the fourth layer. This makes the user feel that the foreground wallpaper image displayed by the electronic device is very close to them, while the background wallpaper image displayed by the electronic device is very far away from them, so that the foreground wallpaper image and the background wallpaper image displayed by the electronic device have a better depth effect.

[0166] In some embodiments of this application, combined with Figure 1 ,like Figure 12 As shown, before "obtaining the foreground wallpaper image and the background wallpaper image based on the driving frame in the first video" in step 201 above, the wallpaper display method provided in this application embodiment further includes the following steps 200a and 200b. It can be understood that when performing steps 200a and 200b, step 201 above specifically means "the electronic device obtains the foreground wallpaper image and the background wallpaper image based on the driving frame in the first video".

[0167] Step 200a: When the wallpaper display conditions are met, the electronic device acquires the outline video based on the video selected by the user.

[0168] In some embodiments of this application, the video selected by the user can be the first video selected by the user through a first input.

[0169] In some embodiments of this application, the first input described above is used to set a video selected by the user as wallpaper.

[0170] In some embodiments of this application, the aforementioned first input includes, but is not limited to: touch input by the user through a touch device such as a finger or stylus, a voice command input by the user, a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this application does not limit it.

[0171] For example, the above-mentioned touch input can be single-click input, double-click input, or any number of clicks, or it can be long-press input or short-press input.

[0172] For example, the above voice input can be a voice command entered by the user: "Help me set the first video as wallpaper".

[0173] For example, the specific gesture mentioned above can be any one of the following: a single click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, or a double tap gesture.

[0174] For example, the first input may include a first sub-input, a second sub-input, and a third sub-input. The first sub-input may be an input identifying the video of the first video to trigger the electronic device to play the first video. The second sub-input may be a long press on the playback interface of the first video to trigger the electronic device to display a wallpaper setting control. The third sub-input may be a click on the wallpaper setting control to trigger the electronic device to set the first video as the wallpaper of the first interface on the electronic device.

[0175] In some embodiments of this application, the video identifier includes at least one of the following: a video cover image and a video file identifier.

[0176] For example, taking scenario 1, assuming the video with a portrait in the foreground and a sun in the background is a video in a mobile phone's photo album application, then in scenario 1, the first sub-input can be the user's click input on the video cover image with a portrait in the foreground and a sun in the background of the photo album application interface, to trigger the mobile phone to play the video with a portrait in the foreground and a sun in the background. Figure 13 As shown, the second sub-input can be a long press input on the playback interface 43 of a video where the foreground content is a human figure and the background content is the sun, to trigger the phone to display the wallpaper setting control. Combined with... Figure 13 ,like Figure 14 As shown, the third sub-input can be a click input to the wallpaper setting control 44, which triggers the phone to set a video with a human portrait in the foreground and a sun in the background as the wallpaper of the phone's first screen.

[0177] For example, taking scenario 2, assuming the video with a car as the foreground and a building as the background is a video in a file management application on a mobile phone, then in scenario 2, the first sub-input can be the user clicking on the file identifier of the video with the car as the foreground and a building as the background in the application interface of the file management application, triggering the phone to play the video. The second sub-input can be a long press on the playback interface of the video with the car as the foreground and a building as the background, triggering the phone to display the wallpaper setting control. The third sub-input can be clicking on the wallpaper setting control, triggering the phone to set the video with the car as the foreground and a building as the wallpaper of the phone's first screen.

[0178] In some embodiments of this application, the above-described contour video includes at least one foreground contour image.

[0179] In some embodiments of this application, the foreground contour image is the contour image of the foreground content corresponding to the video frame in the first video.

[0180] In some embodiments of this application, the electronic device can generate a foreground video corresponding to the video selected by the user through an AI large model.

[0181] In some embodiments of this application, the aforementioned AI large model includes at least one of the following: Segment Anything Model 2 (SAM2), Robust Video Matting (RVM), and Boundary Equilibrium Network 2 (BEN2). Of course, the aforementioned AI large model may also include other AI large models that can obtain at least one foreground video frame from the aforementioned first video. The specific model can be determined according to actual needs, and this application does not limit it.

[0182] In some embodiments of this application, the foreground video includes at least one foreground video frame.

[0183] In some embodiments of this application, the foreground video frame includes foreground content from the user-selected video but excludes background content from the user-selected video.

[0184] In some embodiments of this application, a foreground video frame corresponds to a first video frame.

[0185] In some embodiments of this application, a first video frame corresponding to a foreground video frame can be a video frame in a first video with the same timestamp as the foreground video frame.

[0186] In some embodiments of this application, the electronic device generates a contour video based on the object contour of each foreground video frame in the foreground video described above.

[0187] In some embodiments of this application, the object outline may be the outline of the foreground content in the foreground video frame.

[0188] In some embodiments of this application, the electronic device can detect the object contour in each foreground video frame in the foreground video using an edge detection algorithm or a large AI model, and obtain the foreground contour frame corresponding to each foreground video frame in the first video, and then generate the contour video based on the foreground contour frame corresponding to each foreground video frame.

[0189] For example, the electronic device can first perform noise reduction and grayscale processing on each foreground video frame in the foreground video, then extract key points in the object contour of each foreground video frame through an edge detection algorithm, and obtain at least one foreground contour frame through a graphics engine based on the key points in the object contour of each foreground video frame, and encode the at least one foreground contour frame to obtain the aforementioned contour video.

[0190] For example, taking scenario 1 as an example, the mobile phone can extract a foreground video frame containing a human figure but not a sun from the foreground video generated based on the user's selected video. Then, it uses an edge detection algorithm to extract key points from the human figure's outline in this foreground video frame. Finally, through a graphics engine, it obtains an image based on the key points in the human figure's outline in this foreground video frame. Figure 15 The foreground outline frame containing the human figure outline shown is obtained by repeating the above process for each foreground video frame in the foreground video. The foreground outline frame containing at least one human figure content is then encoded to obtain the outline video.

[0191] For example, taking scenario 2, the mobile phone can extract a foreground video frame containing car content but not building content from the foreground video generated based on the user's selected video. Then, it can extract key points in the car outline of the foreground video frame containing car content but not building content using an edge detection algorithm. After that, the graphics engine can obtain a foreground outline frame containing the car outline based on the key points in the car outline of the foreground video frame containing car content but not building content. Repeating the above process for each foreground video frame in the foreground video can obtain at least one foreground outline frame containing car content. Encoding the at least one foreground outline frame containing car content yields the outline video.

[0192] Step 200b: The electronic device stitches together at least one foreground contour image included in the contour video and the corresponding video frame in the video selected by the user to obtain the first video.

[0193] In some embodiments of this application, a foreground contour image corresponds to a first video frame.

[0194] In some embodiments of this application, a first video frame corresponding to a foreground contour image can be a video frame in a first video with the same timestamp as the foreground contour image.

[0195] In some embodiments of this application, the above-mentioned splicing process includes at least one of the following: left-right splicing, top-bottom splicing, and vertex splicing. Of course, the above-mentioned splicing process may also include other splicing processes, which can be determined according to actual needs, and are not limited herein.

[0196] In some embodiments of this application, the first video described above includes at least one wallpaper-driven spliced ​​video frame.

[0197] In some embodiments of this application, the electronic device can splice each foreground video frame and the corresponding first video frame to obtain at least one wallpaper-driven spliced ​​video frame, and encode the at least one wallpaper-driven spliced ​​video frame to obtain the aforementioned first video.

[0198] In some embodiments of this application, the splicing process described above corresponds to the segmentation process described above.

[0199] For example, when the above splicing process is a left-right splicing process, the above segmentation process is a left-right segmentation process. When the above splicing process is a top-bottom splicing process, the above segmentation process is a top-bottom segmentation process. When the above splicing process is a vertex splicing process, the above segmentation process is a vertex segmentation process.

[0200] In some embodiments of this application, when the above-described stitching process is a left-right stitching process, the stitching order can be with the foreground outline image on the left and the first video frame on the right. Alternatively, when the above-described stitching process is a left-right stitching process, the stitching order can also be with the first video frame on the left and the foreground outline image on the right.

[0201] In some embodiments of this application, when the above-described stitching process is a top-to-bottom stitching process, the stitching order can be foreground outline image on top and first video frame on the bottom. Alternatively, when the above-described stitching process is a left-to-right stitching process, the stitching order can also be first video frame on the bottom and foreground outline image on top.

[0202] For example, taking scenario 1 as an example, the mobile phone can obtain a foreground video frame of a human figure from a video with a sun as the background content, thus obtaining a foreground video of a human figure. Then, based on each foreground video frame in this foreground video, at least one foreground outline image of a human figure is obtained, resulting in a foreground outline video of a human figure. Finally, each foreground outline image in this foreground outline video is stitched together with the corresponding first video frame in the video with a human figure as the foreground content and a sun as the background content, with the foreground outline image on the left and the corresponding first video frame on the right, to obtain the following result: Figure 16 The spliced ​​video frames shown are encoded to obtain the first video.

[0203] For example, taking scenario 2, the mobile phone can obtain a car foreground video frame from the video where the foreground content is a car and the background content is a building, and then obtain at least one car foreground outline image based on each car foreground video frame in the car foreground video, and obtain a car foreground outline video. Then, each car foreground outline image in the car foreground outline video is stitched together with the corresponding first video frame in the video where the foreground content is a car and the background content is a building, with the car foreground outline image on the left and the corresponding first video frame on the right, to obtain a stitched video frame. Each stitched video frame is then encoded to obtain the first video.

[0204] In some embodiments of this application, the electronic device can store the generated first video in a preset directory, so that the electronic device can retrieve the preset directory, read the first video and obtain the driving frame, and then obtain the foreground wallpaper image and the background wallpaper image based on the obtained driving frame.

[0205] It should be noted that the specific implementation process of the electronic device reading the first video and obtaining the driving frame, and then obtaining the foreground wallpaper image and the background wallpaper image based on the obtained driving frame, can be found in the relevant description in the above embodiments. To avoid repetition, this application will not repeat it here.

[0206] In this way, the electronic device can stitch together the foreground outline image and the video frames with the same timestamp in the user-selected video to obtain the first video, thereby aligning the foreground outline image and the corresponding video frames in the user-selected video. Then, the electronic device can obtain a driving frame from the first video and perform segmentation processing on the driving frame to obtain the matching first video frame and foreground outline image. Based on the first video frame and foreground outline image, the electronic device can obtain and display the foreground wallpaper image and background wallpaper image with the same timestamp, thereby improving the display effect of the raster wallpaper displayed by the electronic device.

[0207] Optionally, in some embodiments of this application, step 200b can be implemented by steps 300a and 300b as described below.

[0208] Step 300a: The electronic device stitches together at least one foreground contour image included in the above contour video and the corresponding video frame in the video selected by the user, and compresses the stitched video frame according to a preset size ratio to obtain the second video.

[0209] In some embodiments of this application, the above-mentioned preset size ratio can be a fixed value, such as 0.5. Of course, the above-mentioned preset size ratio can also be other values ​​preset by the system. The specific value can be determined according to actual needs, and this application does not limit it.

[0210] In some embodiments of this application, the electronic device can compress the width or height of the spliced ​​video frames according to the above-mentioned preset size ratio to obtain at least one compressed video frame, and encode the at least one compressed video frame to obtain the above-mentioned second video.

[0211] For example, taking scenario 1 as an example, combined with Figure 16 ,like Figure 17 As shown, assuming the preset size ratio is 0.5, the mobile phone can... Figure 16 The video frames shown are compressed horizontally to obtain the following result: Figure 17 The mobile phone repeats the above process for each of the above spliced ​​video frames to obtain at least one compressed video frame. The mobile phone encodes the at least one compressed video frame to obtain the above second video.

[0212] In some embodiments of this application, the video frames in the second video described above include keyframes and non-keyframes.

[0213] In some embodiments of this application, the aforementioned keyframe refers to a completely self-contained frame in the video, which is the starting point for decoding all predicted frames, and the keyframe data contains all pixel information of that frame.

[0214] In some embodiments of this application, the aforementioned non-keyframes refer to intermediate frames that compress video data by recording residual data between the keyframes, and their decoding depends on the image information in the keyframes.

[0215] Step 300b: The electronic device performs full keyframe processing on the second video to obtain the first video.

[0216] In some embodiments of this application, the video frames in the first video described above are all keyframes.

[0217] In some embodiments of this application, the electronic device can obtain the complete pixel information corresponding to the non-key frame based on the key frame data and the residual data between the key frame and the key frame in the non-key frame data of the second video, and re-encode the complete pixel information to obtain the key frame corresponding to the non-key frame, and replace the non-key frame in the second video with the key frame corresponding to the non-key frame to obtain the aforementioned first video.

[0218] In some embodiments of this application, the electronic device may store the aforementioned first video in a first directory.

[0219] In some embodiments of this application, the first directory can be a pre-defined directory in the system. Alternatively, the first directory can be a directory created by the user.

[0220] For example, the first directory mentioned above can be the bbkcore directory preset in the system.

[0221] In some embodiments of this application, the electronic device can read a first video from a first directory, obtain key frames from the first video, use the obtained key frames as driving frames, and then perform segmentation processing on the driving frames to obtain and display a foreground wallpaper image and a background wallpaper image.

[0222] In some embodiments of this application, the electronic device can obtain the index information of the first directory and locate the storage location of the first video according to the index information of the first directory, thereby reading the first video.

[0223] It is understandable that since all video frames in the first video are keyframes, electronic devices can quickly read each video frame in the first video, thereby quickly obtaining the foreground wallpaper image and the background wallpaper image based on each video frame in the first video.

[0224] In some embodiments of this application, the electronic device can segment a key frame in a first video to obtain a foreground outline image and a corresponding video frame in a user-selected video, and subsequently obtain a foreground wallpaper image and a background wallpaper image based on the foreground outline image and the corresponding video frame in the user-selected video.

[0225] It should be noted that the specific implementation process of segmenting a key frame in the first video by the electronic device to obtain a foreground contour image and a corresponding video frame in the user-selected video, and then obtaining the foreground wallpaper image and the background wallpaper image based on the foreground contour image and the corresponding video frame in the user-selected video, can be found in the relevant description in the above embodiments. To avoid repetition, this application will not repeat it here.

[0226] In this way, the electronic device can perform splicing processing on the at least one foreground outline image and the corresponding video frame in the video selected by the user to obtain the spliced ​​video frame, thereby reducing the data volume of each spliced ​​video frame. It can also perform full keyframe processing on the second video obtained by encoding the spliced ​​video frame, converting the non-keyframes in the second video into keyframes to obtain the first video. This allows the electronic device to quickly read the keyframes in the first video when it detects that the wallpaper display conditions are met, and quickly obtain and display the foreground wallpaper image and the background wallpaper image based on the keyframes in the first video, thereby improving the speed at which the electronic device updates and displays the foreground wallpaper image and the background wallpaper image.

[0227] The implementation process of the wallpaper display method provided in this application embodiment will be illustrated below through specific implementation methods.

[0228] In this embodiment, a depth-of-field raster video wallpaper is realized for the first time in the industry, and the application of depth-of-field elements on the desktop is also realized for the first time.

[0229] For the various scenarios in which the embodiments of this application can be applied, and in conjunction with the various implementation schemes of the embodiments of this application described above, specific examples are given below to illustrate the implementation process of the embodiments of this application in various scenarios:

[0230] Example 1: A user selects a video from their album with a portrait in the foreground and a sun in the background, and clicks the wallpaper setting control, triggering the phone to set this video as the lock screen wallpaper. The phone retrieves the portrait video from the video with the portrait in the foreground and the sun in the background, and then retrieves the portrait outline video based on the portrait video. The phone stitches the portrait video and the portrait outline video together horizontally to form a single video, compressing the width of this video to half of its original width to obtain the driving video. The phone performs full keyframe processing on this driving video to obtain a full keyframe driving video, and stores this full keyframe driving video in the phone's system directory. The phone reads this full keyframe driving video from the system directory, retrieves the key video frames from the full keyframe driving video, and expands the width of the retrieved key video frames. The size is increased by up to twice to obtain the video frames to be segmented. The mobile phone obtains the video frames in the video to be segmented and performs left and right segmentation processing on the obtained video frames to obtain contour frame data and background frame data. The mobile phone performs fusion processing on the contour frame data and background frame data to obtain at least one foreground image frame containing a portrait but not containing the sun. The aforementioned background frame data is used as at least one background image frame. The mobile phone places the foreground image frame on the upper layer of the time component layer of the lock screen interface and places the background image frame on the lower layer of the time component layer of the lock screen interface, thus realizing the display of a first wallpaper with a depth effect on the lock screen interface.

[0231] Example 2: A user selects a video from their photo album with a car in the foreground and a building in the background, and clicks the wallpaper setting control, triggering the phone to set that video as the desktop wallpaper. The phone retrieves the car video from the car-foreground, building-background video and extracts a car outline video from it. The phone stitches the car video and the car outline video together vertically, compressing the width of this video to half its original width to obtain the driving video. The phone performs full keyframe processing on this driving video to obtain a full keyframe driving video, which is then stored in the phone's system directory. The phone reads this full keyframe driving video from the system directory, retrieves the key video frames from it, and sets the width of the retrieved key video frames... The image is expanded to twice its original size to obtain video frames to be segmented. The mobile phone acquires the video frames from the video to be segmented and performs vertical segmentation on the acquired video frames to obtain contour frame data and background frame data. The mobile phone then merges the contour frame data and background frame data to obtain at least one foreground image frame containing a car but not a building. The aforementioned background frame data is used as at least one background image frame. The mobile phone places the foreground image frame on the upper layer of the weather forecast component on the desktop and places the background image frame on the lower layer of the weather forecast component on the desktop, thus achieving the display of a first wallpaper with a depth effect on the desktop.

[0232] It should be noted that each of the above method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

[0233] The wallpaper display method provided in this application can be executed by a wallpaper display device. This application uses a wallpaper display device executing the wallpaper display method as an example to illustrate the wallpaper display device provided in this application.

[0234] Figure 18 This is a schematic diagram of the structure of a wallpaper display device provided in an embodiment of this application. Figure 18 As shown, the wallpaper display device 500 includes an acquisition module 501 and a display module 502.

[0235] The acquisition module 501 is used to acquire a foreground wallpaper image and a background wallpaper image based on the driving frame in the first video when the wallpaper display conditions are met; the first video is obtained based on user selection; the display module 502 is used to display the foreground wallpaper image on the first layer of the first interface and the background wallpaper image on the second layer of the first interface, wherein the first layer is the upper layer of the second layer.

[0236] In one possible implementation, the acquisition module 501 is specifically used to acquire a first foreground wallpaper image and a first background wallpaper image based on a first driving frame in the first video, provided that wallpaper display conditions are met; wherein the wallpaper display conditions include any one of the following: a change in the user's viewing angle of the electronic device, a change in the distance between the wallpaper display device 500 and other wallpaper display devices connected to the wallpaper display device 500, or a change in the posture angle of the electronic device; the first driving frame is determined based on any one of the parameters of the change in viewing angle, the change in distance, or the change in posture angle.

[0237] In one possible implementation, the acquisition module 501 is specifically used to segment the first driving frame to obtain a first video frame and a first foreground contour image; the first video frame is a video frame in the video corresponding to the first driving frame; and, based on the first video frame and the first foreground contour image, to acquire a first foreground wallpaper image; and, to determine the first video frame as the first background wallpaper image.

[0238] In one possible implementation, the display module 502 is specifically used to display the foreground wallpaper image on the upper layer of the layer where the interface element of the first interface is located, and to display the background wallpaper image on the layer where the interface element is located or on the lower layer of the layer where the interface element is located.

[0239] In one possible implementation, the display module 502 is specifically used to display the foreground wallpaper image on the layer above the layer where the first interface element of the first interface is located, and to display the background wallpaper image on the layer where the first interface element of the first interface is located; the display module 502 is also used to display a symmetrical foreground wallpaper image above the layer where the second interface element of the first interface is located, and to display a symmetrical background wallpaper image on the layer where the second interface element of the first interface is located.

[0240] In one possible implementation, the interface elements of the first interface are displayed in the third and fourth layers, with the third layer being the upper layer of the fourth layer; the display module 502 is specifically used to display the foreground wallpaper image in the layer between the third and fourth layers of the first interface, and to display the background wallpaper image in the lower layer of the fourth layer of the first interface.

[0241] In one possible implementation, combining Figure 18 ,like Figure 19As shown, the wallpaper display device 500 further includes a processing module 503; the acquisition module 501 is further configured to acquire a contour video based on the video selected by the user before acquiring the foreground wallpaper image and the background wallpaper image based on the driving frame in the first video, the contour video including at least one foreground contour image, the foreground contour image being the contour image of the foreground image corresponding to the video frame in the video; the processing module 503 is configured to perform splicing processing on the at least one foreground contour image and the corresponding video frame in the video to obtain the first video.

[0242] This application provides a wallpaper display device. Since the first video is obtained based on user selection, meaning the first video contains driving frames corresponding to the video frames selected by the user for wallpaper display (i.e., the driving frames can generate wallpaper images for display), when wallpaper display conditions are met, the corresponding driving frame can be directly selected from the first video. Then, based on the driving frame, the foreground and background wallpaper images are obtained and displayed. This allows the wallpaper displayed by the wallpaper display device to update each time the wallpaper display conditions are met. Furthermore, since the foreground and background wallpaper images can be displayed on different layers of the first interface, a three-dimensional spatial effect exists between the foreground wallpaper image, the background wallpaper image, and the interface elements, resulting in a depth-of-field effect for the displayed raster wallpaper. This improves the diversity of the raster wallpaper display effect of the wallpaper display device.

[0243] The wallpaper display device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0244] The wallpaper display device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0245] The wallpaper display device provided in this application embodiment can implement the various processes implemented in the above method embodiments. To avoid repetition, it will not be described again here.

[0246] Optionally, such as Figure 20 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-described wallpaper display method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0247] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0248] Figure 21 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0249] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0250] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 21 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0251] The processor 110 is configured to acquire a foreground wallpaper image and a background wallpaper image based on the driving frame in the first video, provided that the wallpaper display conditions are met; the first video is obtained based on user selection; the display unit 106 is configured to display the foreground wallpaper image on a first layer of the first interface and display the background wallpaper image on a second layer of the first interface, wherein the first layer is the upper layer of the second layer.

[0252] In one possible implementation, the processor 110 is specifically configured to acquire a first foreground wallpaper image and a first background wallpaper image based on a first driving frame in the first video, provided that wallpaper display conditions are met; wherein the wallpaper display conditions include any one of the following: a change in the user's viewing angle of the electronic device, a change in the distance between the electronic device and other electronic devices connected to the electronic device, or a change in the posture angle of the electronic device; and the first driving frame is determined based on any one of the parameters of the change in viewing angle, the change in distance, or the change in posture angle.

[0253] In one possible implementation, the processor 110 is specifically configured to perform segmentation processing on the first driving frame to obtain a first video frame and a first foreground contour image; the first video frame is a video frame in the video corresponding to the first driving frame; and, based on the first video frame and the first foreground contour image, obtain a first foreground wallpaper image and determine the first video frame as a first background wallpaper image.

[0254] In one possible implementation, the display unit 106 is specifically used to display the foreground wallpaper image on the upper layer of the layer where the interface element of the first interface is located, and to display the background wallpaper image on the layer where the interface element is located or on the lower layer of the layer where the interface element is located.

[0255] In one possible implementation, the display unit 106 is specifically used to display the foreground wallpaper image on the layer above the layer where the first interface element of the first interface is located, and to display the background wallpaper image on the layer where the first interface element of the first interface is located; the display unit 106 is also used to display a symmetrical foreground wallpaper image above the layer where the second interface element of the first interface is located, and to display a symmetrical background wallpaper image on the layer where the second interface element of the first interface is located.

[0256] In one possible implementation, the interface elements of the first interface are displayed in the third and fourth layers, with the third layer being the upper layer of the fourth layer; the display unit 106 is specifically used to display the foreground wallpaper image in the layer between the third and fourth layers of the first interface, and to display the background wallpaper image in the lower layer of the fourth layer of the first interface.

[0257] This application provides an electronic device where, since the first video is obtained based on user selection (i.e., the first video contains driving frames corresponding to video frames selected by the user for wallpaper display), the driving frames can generate wallpaper images for display. Therefore, when wallpaper display conditions are met, the corresponding driving frame can be directly selected from the first video, and then the foreground and background wallpaper images can be obtained and displayed based on the driving frame. This allows the wallpaper displayed by the electronic device to update each time the wallpaper display conditions are met. Furthermore, since the foreground and background wallpaper images can be displayed on different layers of the first interface, a three-dimensional spatial effect exists between the foreground wallpaper image, the background wallpaper image, and interface elements, resulting in a depth-of-field effect for the displayed raster wallpaper. This enhances the diversity of the raster wallpaper display effect on the electronic device.

[0258] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0259] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0260] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0261] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described wallpaper display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0262] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0263] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described wallpaper display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0264] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0265] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the wallpaper display method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0266] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0267] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0268] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A wallpaper display method, characterized in that, Applied to electronic devices, including: If the wallpaper display conditions are met, the foreground wallpaper image and the background wallpaper image are obtained based on the driving frames in the first video; the first video is obtained based on user selection. The foreground wallpaper image is displayed in the first layer of the first interface, and the background wallpaper image is displayed in the second layer of the first interface, wherein the first layer is the upper layer of the second layer.

2. The method according to claim 1, characterized in that, Under the condition that the wallpaper display conditions are met, the process of obtaining the foreground wallpaper image and the background wallpaper image based on the driving frames in the first video includes: If the wallpaper display conditions are met, a first foreground wallpaper image and a first background wallpaper image are obtained based on the first driving frame in the first video; The wallpaper display conditions include any of the following: the user's viewing angle of the electronic device changes, the distance between the electronic device and other electronic devices connected to the electronic device changes, or the posture angle of the electronic device changes. The first driving frame is determined based on any one of the parameters of the change in viewpoint, the change in distance, and the change in attitude angle.

3. The method according to claim 2, characterized in that, The step of obtaining the first foreground wallpaper image and the first background wallpaper image based on the first driving frame in the first video includes: The first driving frame is segmented to obtain a first video frame and a first foreground contour image; the first video frame is the video frame corresponding to the first driving frame. Based on the first video frame and the first foreground contour image, obtain the first foreground wallpaper image; The first video frame is identified as the first background wallpaper image.

4. The method according to claim 1, characterized in that, The step of displaying the foreground wallpaper image in a first layer of the first interface and the background wallpaper image in a second layer of the first interface includes: The foreground wallpaper image is displayed in the layer above the layer where the interface element is located on the first interface, and the background wallpaper image is displayed in the layer where the interface element is located or in the layer below the layer where the interface element is located.

5. The method according to claim 1, characterized in that, The interface elements of the first interface are displayed in the third layer and the fourth layer, wherein the third layer is the upper layer of the fourth layer; The step of displaying the foreground wallpaper image in a first layer of the first interface and displaying the background wallpaper image in a second layer of the first interface includes: The foreground wallpaper image is displayed in a layer between the third and fourth layers of the first interface, and the background wallpaper image is displayed in a layer below the fourth layer of the first interface.

6. A wallpaper display device, characterized in that, include: Acquisition module and display module; The acquisition module is used to acquire the foreground wallpaper image and the background wallpaper image based on the driving frames in the first video, provided that the wallpaper display conditions are met. The first video was obtained based on user selection; The display module is used to display the foreground wallpaper image in a first layer of the first interface and the background wallpaper image in a second layer of the first interface, wherein the first layer is the upper layer of the second layer.

7. The apparatus according to claim 6, characterized in that, The acquisition module is specifically used to acquire a first foreground wallpaper image and a first background wallpaper image based on the first driving frame in the first video, when the wallpaper display conditions are met. The wallpaper display conditions include any one of the following: the user's viewing angle of the wallpaper display device changes, the distance between the wallpaper display device and other wallpaper display devices connected to the wallpaper display device changes, and the orientation angle of the wallpaper display device changes. The first driving frame is determined based on any one of the parameters of the change in viewpoint, the change in distance, and the change in attitude angle.

8. The apparatus according to claim 7, characterized in that, The acquisition module is specifically used for: The first driving frame is segmented to obtain a first video frame and a first foreground contour image; the first video frame is the video frame in the video that corresponds to the first driving frame. Based on the first video frame and the first foreground contour image, obtain the first foreground wallpaper image; The first video frame is identified as the first background wallpaper image.

9. The apparatus according to claim 6, characterized in that, The display module is specifically used to display the foreground wallpaper image on the layer above the layer where the interface element of the first interface is located, and to display the background wallpaper image on the layer where the interface element is located or the layer below the layer where the interface element is located.

10. The apparatus according to claim 6, characterized in that, The interface elements of the first interface are displayed in the third layer and the fourth layer, wherein the third layer is the upper layer of the fourth layer; The display module is specifically used to display the foreground wallpaper image in a layer between the third and fourth layers of the first interface, and to display the background wallpaper image in a layer below the fourth layer of the first interface.