CN-121996342-A - Wallpaper display method and device
Abstract
The application discloses a wallpaper display method and a wallpaper display device, belonging to the technical field of electronics, wherein the method comprises the steps of acquiring a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video under the condition that wallpaper display conditions are met; 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.
Inventors
- LI JINGYU
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260123
Claims (10)
- 1. A wallpaper display method, characterized by being applied to an electronic device, comprising: Acquiring a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video under the condition that wallpaper display conditions are met; and 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.
- 2. The method of claim 1, wherein the acquiring the foreground wallpaper image and the background wallpaper image based on the drive frame in the first video if the wallpaper display condition is met comprises: acquiring a first foreground wallpaper image and a first background wallpaper image based on a first driving frame in the first video under the condition that wallpaper display conditions are met; The wallpaper display condition comprises any one of a change in a visual angle of the electronic equipment observed by a user, a change in a distance between the electronic equipment and other electronic equipment connected with the electronic equipment and a change in an attitude angle of the electronic equipment; the first driving frame is determined based on any one of a change parameter of the viewing angle, a change parameter of the distance, and a change parameter of the attitude angle.
- 3. The method of claim 2, wherein the acquiring a first foreground wallpaper image and a first background wallpaper image based on a first drive frame in the first video comprises: Dividing the first driving frame to obtain a first video frame and a first foreground contour image, wherein the first video frame is a video frame corresponding to the first driving frame; Acquiring a first foreground wallpaper image based on the first video frame and the first foreground contour image; the first video frame is determined to be the first background wallpaper image.
- 4. The method of claim 1, wherein displaying the foreground wallpaper image at a first layer of a first interface and displaying the background wallpaper image at a second layer of the first interface comprises: and displaying the foreground wallpaper image on an upper layer of a layer where the interface element of the first interface is located, and displaying the background wallpaper image on the layer where the interface element is located or a lower layer of the layer.
- 5. The method of claim 1, wherein the interface elements of the first interface are displayed in a third layer and a fourth layer, the third layer being an upper layer of the fourth layer; the displaying 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 comprises the following steps: And displaying the foreground wallpaper image on a layer between a third layer and a fourth layer of the first interface, and displaying the background wallpaper image on a lower layer of the fourth layer of the first interface.
- 6. The wallpaper display device is characterized by comprising an acquisition module and a display module; The acquisition module is used for acquiring a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video under the condition that wallpaper display conditions are met; the display module is used for 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, and the first layer is an upper layer of the second layer.
- 7. The apparatus according to claim 6, wherein the obtaining module is specifically configured to obtain a first foreground wallpaper image and a first background wallpaper image based on a first driving frame in the first video if wallpaper display conditions are met; The wallpaper display condition comprises any one of the following conditions that a user observes that the visual angle of the wallpaper display device changes, the distance between the wallpaper display device and other wallpaper display devices connected with the wallpaper display device changes, and the attitude angle of the wallpaper display device changes; the first driving frame is determined based on any one of a change parameter of the viewing angle, a change parameter of the distance, and a change parameter of the attitude angle.
- 8. The apparatus of claim 7, wherein the obtaining module is specifically configured to: dividing the first driving frame to obtain a first video frame and a first foreground contour image, wherein the first video frame is a video frame corresponding to the first driving frame in the video; Acquiring a first foreground wallpaper image based on the first video frame and the first foreground contour image; the first video frame is determined to be the first background wallpaper image.
- 9. The apparatus according to claim 6, wherein the display module is specifically configured to display the foreground wallpaper image on an upper layer of a layer where an interface element of the first interface is located, and display the background wallpaper image on the layer where the interface element is located or a lower layer of the layer.
- 10. The apparatus of claim 6, wherein the interface elements of the first interface are displayed in a third layer and a fourth layer, the third layer being an upper layer of the fourth layer; The display module is specifically configured to display the foreground wallpaper image on a layer between the third layer and the fourth layer of the first interface, and display the background wallpaper image on a lower layer of the fourth layer of the first interface.
Description
Wallpaper display method and device Technical Field The application belongs to the technical field of electronics, and particularly relates to a wallpaper display method and a wallpaper display device. Background The grating wallpaper is used as intelligent dynamic wallpaper, and displayed picture content can be changed in real time according to the motion sensor data of the equipment, so that novel use experience is brought to users. In the related art, after the user triggers the electronic device to set the raster wallpaper based on the video selected by the user, when the user rotates the electronic device, the electronic device may detect that the motion sensor data changes, so as to display a corresponding video frame based on the motion sensor data, so as to change the picture content in the raster wallpaper displayed by the electronic device. However, in the above process, since the electronic device directly displays the video frame corresponding to the sensor data, the manner of displaying the raster wallpaper by the electronic device is relatively fixed, so that the display effect of the raster wallpaper is single. Disclosure of Invention The embodiment of the application aims to provide a wallpaper display method and a wallpaper display device, which can improve the diversity of display effects of grating wallpaper. In a first aspect, an embodiment of the present application provides a wallpaper display method, where in a case where a wallpaper display condition is satisfied, a foreground wallpaper image and a background wallpaper image are obtained based on a driving frame in a first video, the first video is obtained based on user selection, the foreground wallpaper image is displayed on a first layer of a 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. The embodiment of the application provides a wallpaper display device, which comprises an acquisition module and a display module, wherein the acquisition module is used for acquiring a foreground wallpaper image and a background wallpaper image based on a driving frame in a first video under the condition that wallpaper display conditions are met, the first video is obtained based on user selection, and the display module is used for 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, and the first layer is an upper layer of the second layer. In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a program or instructions executable on the processor, the program or instructions implementing the steps of the wallpaper display method according to the first aspect when executed by the processor. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the wallpaper display method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the wallpaper display method according to the first aspect. In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the wallpaper display method according to the first aspect. In the embodiment of the application, under the condition that the wallpaper display condition is met, a foreground wallpaper image and a background wallpaper image are acquired based on a driving frame in a first video, wherein the first video is obtained based on user selection, the foreground wallpaper image is displayed on a first layer of a 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. In the scheme, the first video is obtained based on the selection of a user, namely, the first video contains a driving frame which corresponds to a video frame in the video selected by the user and is used for wallpaper display, namely, the driving frame can obtain a wallpaper image used for wallpaper display, so that when the wallpaper display condition is met, the corresponding driving frame can be directly selected from the first video, then, the driving frame is used for obtaining and displaying a foreground wallpaper image and a background wallpaper image, so that the wallpaper image displayed by the electronic equipment can be updated along with the wallpaper display condition met