A method and apparatus for displaying wallpaper, an electronic device, and a storage medium

By generating wallpapers based on the same preset image, the consistency of foreground objects in terms of feature dimensions is ensured, which solves the problem of interface inconsistency caused by low correlation of wallpaper images, improves the interface consistency and fun of electronic devices, and enhances the user experience.

CN119987914BActive Publication Date: 2026-03-17HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In existing wallpaper management technologies, the correlation between wallpaper images is low, resulting in inconsistent interface display and affecting user experience.

Method used

By generating wallpapers based on the same preset image, it ensures that the foreground objects have the same features in the feature dimension when different wallpapers display events, such as facial features or subject shape, thus maintaining the consistency of the interface. Furthermore, by generating wallpapers based on image style type and scene information, the relevance and interest of the wallpapers are improved.

Benefits of technology

This ensures that wallpapers displayed at different times have similar compositions and styles, maintaining interface consistency, enhancing user experience and engagement, and avoiding inconsistencies in interface display effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987914B_ABST
    Figure CN119987914B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of display, and provides a wallpaper display method and device, electronic equipment and storage medium. The method comprises the following steps: displaying a first wallpaper when a first wallpaper display event is detected, the first wallpaper comprising a first foreground object and a first background picture; displaying a second wallpaper when a second wallpaper display event is detected, the second wallpaper comprising a second foreground object and a second background picture, wherein the first foreground object and the second foreground object have the same feature in a first feature dimension, and the first background picture and the second background picture are different. In the technical solution provided by the application, the foreground object has the same feature when the wallpaper is displayed each time, and the background picture is different, so that the difference between the wallpapers after each transformation is avoided, the consistency between the interfaces is improved, the interestingness of the interface wallpaper is improved, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application, with application number 202480002639.5 and original application date of September 27, 2024, incorporates the entire contents of the original application entitled "A Method, Apparatus, Electronic Device and Storage Medium for Displaying Wallpaper" in this application by reference. Technical Field

[0002] This application belongs to the field of display technology, and in particular relates to a method, apparatus, electronic device and storage medium for displaying wallpaper. Background Technology

[0003] With the continuous development of electronic device technology, electronic devices have been widely used in various scenarios of users' daily work and life. Users need to use electronic devices for extended periods every day. Therefore, improving the fun and aesthetics of electronic devices has become one of the key factors affecting user experience. Users can set wallpapers for parts of their electronic device interface according to their preferences, such as setting a favorite wallpaper for the lock screen, so that when the lock screen is turned on, they can see a wallpaper that matches their personalized aesthetic.

[0004] Existing wallpaper management technologies, in an effort to enhance wallpaper appeal, can randomly switch between preset wallpapers based on multiple images stored in a gallery. This eliminates the need for users to manually change wallpapers and adds a degree of enjoyment. However, the wallpaper images stored in this gallery have low correlation, reducing the consistency of the interface display across different times. Furthermore, the wallpaper images stored in the gallery may not necessarily match the user's aesthetic preferences, resulting in low recommendation accuracy and negatively impacting the user experience. Summary of the Invention

[0005] This application provides a method, apparatus, electronic device, and computer-readable storage medium for displaying wallpapers. It can solve the problem that existing wallpaper management technologies have low correlation between wallpaper images when switching wallpapers on the interface based on wallpaper images in the gallery, resulting in inconsistent interface display at different times.

[0006] In a first aspect, embodiments of this application provide a method for displaying wallpaper, the method comprising:

[0007] When a first wallpaper display event is detected, the first wallpaper is displayed, the first wallpaper including a first foreground object and a first background image;

[0008] When a second wallpaper display event is detected, a second wallpaper is displayed. The second wallpaper includes a second foreground object and a second background image. The first feature of the first foreground object is the same as the second feature of the second foreground object. The first and second features are features in a first feature dimension. The first and second background images are different. The first and second wallpapers are generated based on the same preset image, ensuring that the wallpapers displayed during different wallpaper display events have similar compositions, thereby improving interface consistency.

[0009] Implementing the embodiments of this application has the following beneficial effects: Electronic devices can display different wallpapers when responding to wallpaper display events at different times, and the foreground objects of different wallpapers have the same characteristics in the first feature dimension. This achieves dynamic adjustment of the electronic device's interface wallpaper while maintaining consistency between the interface at different times. Compared with existing wallpaper management methods, in the embodiments of this application, the wallpapers displayed on the same interface at different times do not affect the consistency of the interface. Instead, they maintain the same characteristics in the first feature dimension for the foreground objects in the wallpapers displayed at different times. This ensures that each wallpaper switch has similar foreground objects, avoiding significant differences in the display effect of the interface after each change. It also enhances the visual appeal of the interface wallpapers, thereby improving the user experience.

[0010] In one possible implementation of the first aspect, the first feature dimension includes a facial feature dimension and / or a subject shape dimension, which can ensure that the wallpaper displayed each time is consistent.

[0011] In one possible implementation of the first aspect, the first foreground object and the second foreground object are generated based on a third foreground object of the same preset image.

[0012] In one possible implementation of the first aspect, the third foreground object is a person or animal in the preset image; the face images of the first foreground object and the second foreground object are generated based on the face image of the third foreground object.

[0013] In one possible implementation of the first aspect, the main forms of the first foreground object and the second foreground object are determined based on the main form of the third foreground object.

[0014] The third feature of the first foreground object is different from the fourth feature of the second foreground object; the third feature and the fourth feature are features in the second feature dimension; the second feature dimension is a feature dimension different from the first feature dimension.

[0015] In one possible implementation of the first aspect, the second feature dimension includes at least one of the following: clothing dimension, hairstyle dimension, and facial expression dimension.

[0016] In one possible implementation of the first aspect, the image style type of the first wallpaper is the same as that of the second wallpaper, which enables the wallpaper to have the same style each time it is displayed, thereby improving the uniformity of the display.

[0017] In one possible implementation of the first aspect, the first wallpaper and the second wallpaper are wallpapers with the same image style type generated according to the first image style type.

[0018] In one possible implementation of the first aspect, prior to displaying the first wallpaper upon detecting the first wallpaper display event, the method further includes:

[0019] The first wallpaper is generated based on the preset image and the style type of the first image;

[0020] Before displaying the second wallpaper upon detecting a second wallpaper display event, the method further includes:

[0021] The second wallpaper is generated based on the preset image and the style type of the first image, so that the generated wallpaper can be associated with the wallpaper set by the user, thereby improving the consistency of the display interface.

[0022] In one possible implementation of the first aspect, generating the first wallpaper based on a preset image and the image style type, and generating the second wallpaper based on the preset image and the first image style type, includes:

[0023] In response to the operation of setting the preset image as wallpaper, the first wallpaper and the second wallpaper are generated based on the preset image and the first image style type. Pre-generating wallpapers when setting them improves the smoothness of subsequent display.

[0024] In one possible implementation of the first aspect, after generating the first wallpaper and the second wallpaper based on the preset image and the first image style type in response to the operation of setting the preset image as wallpaper, the method further includes:

[0025] If a scene change event is detected, a third wallpaper is generated based on the scene information corresponding to the scene change event, the preset image, and the style type of the first image.

[0026] When a third wallpaper display event is detected, the third wallpaper is displayed. When a scene change is detected, scene-related wallpapers can be generated in advance, improving the relevance of subsequent wallpaper displays to the scene.

[0027] In one possible implementation of the first aspect, generating the first wallpaper and the second wallpaper based on a preset image and the first image style type includes:

[0028] In response to the first wallpaper display event, the first wallpaper is generated based on the preset image and the first image style type;

[0029] In response to the second wallpaper display event, the second wallpaper is generated based on the preset image and the first image style type.

[0030] In one possible implementation of the first aspect, generating the first wallpaper based on the preset image and the first image style type in response to the first wallpaper display event includes:

[0031] In response to the first wallpaper display event, the first wallpaper is generated based on the preset image, the first image style type, and the scene information corresponding to the first wallpaper display event. The scene information corresponding to the first wallpaper display event is the scene information at the time the first wallpaper display event occurs. Obtaining the scene information only when the wallpaper display event is detected improves the timeliness of the scene information, thereby enhancing the correlation between the displayed wallpaper and the scene.

[0032] In one possible implementation of the first aspect, generating the second wallpaper based on the preset image and the first image style type in response to the second wallpaper display event includes:

[0033] In response to the second wallpaper display event, the second wallpaper is generated based on the preset image, the first image style type, and the scene information corresponding to the second wallpaper display event. The scene information corresponding to the second wallpaper display event refers to the scene information at the time the second wallpaper display event occurs.

[0034] In one possible implementation of the first aspect, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0035] In one possible implementation of the first aspect, generating the first wallpaper based on a preset image and the image style type includes:

[0036] Based on the preset image, determine the first feature;

[0037] The first wallpaper is generated based on the image style type and the first feature, wherein the first object of the generated first wallpaper has the first feature.

[0038] In one possible implementation of the first aspect, the preset image includes a third foreground object, which is a person or an animal, and determining the first feature based on the preset image includes:

[0039] Extract the first facial feature of the third foreground object in the preset image, and use it as the first feature; or,

[0040] The second facial feature corresponding to the third foreground object contained in the preset image is obtained from the pre-trained face database, and the first feature is obtained based on the second facial feature and the first facial feature in the preset image.

[0041] In one possible implementation of the first aspect, the preset image includes a third foreground object, which is a person or an animal, and determining the first feature based on the preset image includes:

[0042] The first feature is determined based on the skeletal pose information of the third foreground object in the preset image.

[0043] In one possible implementation of the first aspect, determining the first feature based on the skeletal pose information of the third foreground object in the preset image includes:

[0044] The first feature is determined based on at least one of the contour information and depth information of the third foreground object in the preset image, and the skeletal pose information. The contour information is obtained by processing the third foreground object in the preset image using an edge recognition algorithm. The depth information is obtained by processing the third foreground object in the preset image using a depth recognition algorithm.

[0045] In one possible implementation of the first aspect, before displaying the first wallpaper and the second wallpaper, the method further includes:

[0046] In response to a first user operation, an image generation instruction is sent to the server, the image generation instruction including the preset image;

[0047] The system receives multiple images generated based on the preset image from the server and adds at least two of the multiple images to the wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

[0048] In one possible implementation of the first aspect, the preset image includes a third foreground object, and the image generation instruction further includes description information of the third foreground object, the description information of the third foreground object being used by the server to determine the image style type corresponding to the multiple images to be generated.

[0049] In one possible implementation of the first aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.

[0050] In one possible implementation of the first aspect, the image style type includes at least one of the following: dopamine style, ancient style, retro style, cartoon style, light and shadow photography style, and underwater style.

[0051] In one possible implementation of the first aspect, the first wallpaper is generated based on scene information when the first wallpaper is generated, and / or the second wallpaper is generated based on scene information when the second wallpaper is generated.

[0052] In one possible implementation of the first aspect, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0053] In one possible implementation of the first aspect, the first wallpaper display event and the second wallpaper display event are specifically one of a screen-on event or an incoming call event.

[0054] In one possible implementation of the first aspect, if both the first wallpaper display event and the second wallpaper display event are screen-on events, then the preset image is a preset wallpaper set for the display screen. The screen-on event includes one of a first screen-on event triggered by a click operation and a second screen-on event triggered by a screen folding change.

[0055] In one possible implementation of the first aspect, if the first wallpaper display event and the second wallpaper display event are incoming call events, then the preset image is the contact image corresponding to the contact of the incoming call event.

[0056] In one possible implementation of the first aspect, the first wallpaper display event is a first screen-on event triggered by a click operation, and before displaying the first wallpaper upon detecting the first wallpaper display event, the method further includes:

[0057] Display a preset image in always-on display mode;

[0058] The step of displaying the first wallpaper when a first wallpaper display event is detected includes:

[0059] A wallpaper switching animation is displayed when a first wallpaper display event is detected, and the first wallpaper is displayed when the wallpaper switching animation ends; the wallpaper switching animation is generated based on the preset image and the first wallpaper, thereby improving the smoothness of wallpaper display.

[0060] In one possible implementation of the first aspect, before displaying the wallpaper switching animation upon detecting the first wallpaper display event and displaying the first wallpaper upon the end of the wallpaper switching animation, the method further includes:

[0061] If the pose of the third foreground object in the preset image is different from the pose of the first foreground object, then the pose animation parameters are determined based on the pose of the third foreground object and the pose of the first foreground object.

[0062] Wallpaper switching animations are generated based on the posture animation parameters, thereby improving the smoothness of wallpaper display.

[0063] Secondly, embodiments of this application provide a wallpaper display device, comprising:

[0064] The first display unit is configured to display a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first foreground object and a first background image;

[0065] The second display unit is used to display the second wallpaper when a second wallpaper display event is detected. The second wallpaper includes a second foreground object and a second background image, wherein the first feature of the first foreground object is the same as the second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, and the first background image and the second background image are different.

[0066] In one possible implementation of the second aspect, the first feature dimension includes a facial feature dimension and / or a subject shape dimension.

[0067] In one possible implementation of the second aspect, the first foreground object and the second foreground object are generated based on a third foreground object of the same preset image.

[0068] In one possible implementation of the second aspect, the third foreground object is a person or animal in the preset image; the face images of the first foreground object and the second foreground object are generated based on the face image of the third foreground object.

[0069] In one possible implementation of the second aspect, the main forms of the first foreground object and the second foreground object are determined based on the main form of the third foreground object.

[0070] In one possible implementation of the second aspect, the third feature of the first foreground object is different from the fourth feature of the second foreground object; the third feature and the fourth feature are features in the second feature dimension; the second feature dimension is a feature dimension different from the first feature dimension.

[0071] In one possible implementation of the second aspect, the second feature dimension includes at least one of the following: clothing dimension, hairstyle dimension, and facial expression dimension.

[0072] In one possible implementation of the second aspect, the image style type of the first wallpaper is the same as that of the second wallpaper.

[0073] In one possible implementation of the second aspect, the first wallpaper and the second wallpaper are wallpapers with the same image style type generated according to the first image style type.

[0074] In one possible implementation of the second aspect, the apparatus further includes:

[0075] The first wallpaper generation unit is used to generate the first wallpaper based on a preset image and the style type of the first image;

[0076] The second wallpaper generation unit is used to generate the second wallpaper based on a preset image and the style type of the first image.

[0077] In one possible implementation of the second aspect, the apparatus further includes:

[0078] The wallpaper setting unit, in response to the operation of setting the preset image as wallpaper, generates the first wallpaper and the second wallpaper according to the preset image and the first image style type.

[0079] In one possible implementation of the second aspect, the apparatus further includes:

[0080] A scene triggering unit is used to generate a third wallpaper based on the scene information corresponding to the scene change event, the preset image, and the style type of the first image if a scene change event is detected.

[0081] The third display unit is used to display the third wallpaper when a third wallpaper display event is detected.

[0082] In one possible implementation of the second aspect, the wallpaper generation unit includes:

[0083] The first display generation unit is configured to generate the first wallpaper according to the preset image and the first image style type in response to the first wallpaper display event;

[0084] The second display generation unit is configured to generate the second wallpaper in response to the second wallpaper display event, based on the preset image and the first image style type.

[0085] In one possible implementation of the second aspect, the first display generation unit is specifically configured to: generate the first wallpaper in response to the first wallpaper display event, based on the preset image, the first image style type, and the scene information corresponding to the first wallpaper display event.

[0086] In one possible implementation of the second aspect, the second display generation unit is specifically used to: generate the second wallpaper in response to the second wallpaper display event, based on the preset image, the first image style type, and the scene information corresponding to the second wallpaper display event.

[0087] In one possible implementation of the second aspect, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0088] In one possible implementation of the second aspect, the wallpaper generation unit includes:

[0089] The first feature determination unit is used to determine a first feature based on the preset image;

[0090] A first feature fusion unit is configured to generate the first wallpaper based on the image style type and the first feature, wherein the first object of the generated first wallpaper has the first feature.

[0091] In one possible implementation of the second aspect, the preset image includes a third foreground object, which is a person or an animal, and the first feature determination unit includes:

[0092] A face replacement unit is used to extract a first facial feature of a third foreground object in the preset image, and use it as the first feature; or...

[0093] The face database extraction unit is used to obtain the second facial features corresponding to the third foreground object contained in the preset image from the pre-trained face database, and to obtain the first feature based on the second facial features and the first facial features in the preset image.

[0094] In one possible implementation of the second aspect, the preset image includes a third foreground object, which is a person or an animal, and the first feature determination unit includes:

[0095] A skeletal pose determination unit is used to determine the first feature based on the skeletal pose information of a third foreground object in the preset image.

[0096] In one possible implementation of the second aspect, the skeletal pose determination unit is specifically used to: determine the first feature based on at least one of the contour information and depth information of the third foreground object in the preset image and the skeletal pose information.

[0097] In one possible implementation of the second aspect, the apparatus further includes:

[0098] An image generation instruction sending unit is configured to send an image generation instruction to a server in response to a first user operation, wherein the image generation instruction includes the preset image;

[0099] An image receiving unit is configured to receive multiple images generated based on the preset image from a server, and add at least two of the multiple images to a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

[0100] In one possible implementation of the second aspect, the preset image includes a third foreground object, and the image generation instruction further includes description information of the third foreground object, the description information of the third foreground object being used by the server to determine the image style type corresponding to the multiple images to be generated.

[0101] In one possible implementation of the second aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.

[0102] In one possible implementation of the second aspect, the image style type includes at least one of the following: dopamine style, ancient style, retro style, cartoon style, light and shadow photography style, and underwater style.

[0103] In one possible implementation of the second aspect, the first wallpaper is generated based on scene information when the first wallpaper is generated, and / or the second wallpaper is generated based on scene information when the second wallpaper is generated.

[0104] In one possible implementation of the second aspect, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0105] In one possible implementation of the second aspect, the first wallpaper display event and the second wallpaper display event are specifically one of a screen-on event or an incoming call event.

[0106] In one possible implementation of the second aspect, if the first wallpaper display event and the second wallpaper display event are screen-on events, then the preset image is a preset wallpaper set by the display screen.

[0107] In one possible implementation of the second aspect, if the first wallpaper display event and the second wallpaper display event are incoming call events, then the preset image is the contact image corresponding to the contact of the incoming call event.

[0108] In one possible implementation of the second aspect, the first wallpaper display event is a first screen-on event triggered by a click operation, and the device further includes:

[0109] The always-on display unit is used to display a preset image in the always-on display state;

[0110] The first display unit includes:

[0111] An animation display unit is used to display a wallpaper switching animation when a first wallpaper display event is detected, and to display the first wallpaper when the wallpaper switching animation ends; the wallpaper switching animation is generated based on the preset image and the first wallpaper.

[0112] In one possible implementation of the second aspect, the apparatus further includes:

[0113] The pose animation parameter determination unit is used to determine pose animation parameters based on the pose of the third foreground object and the pose of the first foreground object if the pose of the third foreground object in the preset image is different from the pose of the first foreground object.

[0114] The posture animation generation unit is used to generate wallpaper switching animations based on the posture animation parameters.

[0115] Thirdly, embodiments of this application provide a method for displaying wallpaper, the method comprising:

[0116] The first wallpaper is displayed when a first wallpaper display event is detected, the first wallpaper comprising a first object;

[0117] A second wallpaper is displayed when a second wallpaper display event is detected, the second wallpaper comprising a second object;

[0118] The first object and the second object are generated from a third object based on the same preset image.

[0119] In the first possible implementation of the third aspect, the third object is at least one of a person, an animal, a plant, a mountain, and a stream.

[0120] In a second possible implementation of the third aspect, combined with the first possible implementation of the third aspect, the third object is a person or animal in the preset image, and the facial images of the first object and the second object are generated based on the facial image of the third object.

[0121] In a third possible implementation of the third aspect, in conjunction with the first possible implementation of the third aspect, the main form of the first object and the main form of the second object are determined based on the main form of the third object.

[0122] In the fourth possible implementation of the third aspect, in combination with the second or third possible implementation of the third aspect, the first feature of the first object is the same as the second feature of the second object, and the first feature and the second feature are features in the first feature dimension.

[0123] In the fifth possible implementation of the third aspect, combined with the fourth possible implementation of the third aspect, the first feature dimension includes a facial feature dimension and / or a subject shape dimension.

[0124] In the sixth possible implementation of the third aspect, combined with the fourth possible implementation of the third aspect, the third feature of the first object is different from the fourth feature of the second object; the third feature and the fourth feature are features in the second feature dimension; the second feature dimension is a feature dimension different from the first feature dimension.

[0125] In the seventh possible implementation of the third aspect, combined with the sixth possible implementation of the third aspect, the second feature dimension includes at least one of the following: clothing dimension, hairstyle dimension, and facial expression dimension.

[0126] In the eighth possible implementation of the third aspect, the first object is the foreground object of the first wallpaper; the second object is the foreground object of the second wallpaper; and the background images of the first wallpaper and the second wallpaper are different.

[0127] In the ninth possible implementation of the third aspect, in combination with any possible implementation of the third aspect, the image style type of the first wallpaper is the same as the image style type of the second wallpaper.

[0128] In the tenth possible implementation of the third aspect, combined with the ninth possible implementation of the third aspect, the first wallpaper and the second wallpaper are wallpapers with the same image style type generated according to the first image style type.

[0129] In the eleventh possible implementation of the third aspect, combined with the ninth possible implementation of the third aspect, the image style type includes at least one of the following: dopamine style, ancient style, retro style, cartoon style, light and shadow photography style, and underwater style.

[0130] In the twelfth possible implementation of the third aspect, in conjunction with the tenth possible implementation of the third aspect, before displaying the first wallpaper upon detecting the first wallpaper display event, it further includes:

[0131] The first wallpaper is generated based on the preset image and the first image style type;

[0132] Before displaying the second wallpaper upon detecting a second wallpaper display event, the method further includes:

[0133] The second wallpaper is generated based on the preset image and the style type of the first image.

[0134] In the thirteenth possible implementation of the third aspect, combined with the twelfth possible implementation of the third aspect, the step of generating the first wallpaper based on the preset image and the first image style type, and the step of generating the second wallpaper based on the preset image and the first image style type, includes:

[0135] In response to the operation of setting the preset image as wallpaper, the first wallpaper and the second wallpaper are generated according to the preset image and the first image style type.

[0136] In a fourteenth possible implementation of the third aspect, in conjunction with a thirteenth possible implementation of the third aspect, after generating the first wallpaper and the second wallpaper based on the preset image and the first image style type in response to the operation of setting the preset image as wallpaper, the method further includes:

[0137] If a scene change event is detected, a third wallpaper is generated based on the scene information corresponding to the scene change event, the preset image, and the style type of the first image.

[0138] When a third wallpaper display event is detected, the third wallpaper is displayed.

[0139] In the fifteenth possible implementation of the third aspect, combined with the twelfth possible implementation of the third aspect, the step of generating the first wallpaper and the second wallpaper based on the preset image and the first image style type includes:

[0140] In response to the first wallpaper display event, the first wallpaper is generated based on the preset image and the first image style type;

[0141] In response to the second wallpaper display event, the second wallpaper is generated based on the preset image and the first image style type.

[0142] In the sixteenth possible implementation of the third aspect, in conjunction with the fifteenth possible implementation of the third aspect, the step of generating the first wallpaper according to the preset image and the first image style type in response to the first wallpaper display event includes:

[0143] In response to the first wallpaper display event, the first wallpaper is generated based on the preset image, the first image style type, and the scene information corresponding to the first wallpaper display event.

[0144] In the seventeenth possible implementation of the third aspect, combined with the fifteenth or sixteenth possible implementation of the third aspect, the step of generating the second wallpaper according to the preset image and the first image style type in response to the second wallpaper display event includes:

[0145] In response to the second wallpaper display event, the second wallpaper is generated based on the preset image, the first image style type, and the scene information corresponding to the second wallpaper display event.

[0146] In the eighteenth possible implementation of the third aspect, combined with any one of the twelfth to seventeenth possible implementations of the third aspect, generating the first wallpaper based on the preset image and the first image style type includes:

[0147] Based on the preset image, determine the first feature;

[0148] The first wallpaper is generated based on the first image style type and the first feature, wherein the first object of the generated first wallpaper has the first feature.

[0149] In the nineteenth possible implementation of the third aspect, combined with the eighteenth possible implementation of the third aspect, the third object is a person or animal in the preset image, and the step of determining the first feature based on the preset image includes:

[0150] Extract the first facial feature of the third object from the preset image, and use it as the first feature; or,

[0151] The second facial feature corresponding to the third object contained in the preset image is obtained from the pre-trained face database, and the first feature is obtained based on the second facial feature and the first facial feature in the preset image.

[0152] In the twentieth possible implementation of the third aspect, combined with the eighteenth possible implementation of the third aspect, the third object is a person or animal in the preset image, and determining the first feature based on the preset image includes:

[0153] The first feature is determined based on the skeletal pose information of the third object in the preset image.

[0154] In the twenty-first possible implementation of the third aspect, in conjunction with the twenty-twentieth possible implementation of the third aspect, determining the first feature based on the skeletal pose information of the third object in the preset image includes:

[0155] The first feature is determined based on at least one of the contour information and depth information of the third object in the preset image and the skeletal pose information.

[0156] In the twenty-second possible implementation of the third aspect, in conjunction with the ninth possible implementation of the third aspect, the method further includes, before displaying the first wallpaper and the second wallpaper:

[0157] In response to a first user operation, an image generation instruction is sent to the server, the image generation instruction including the preset image;

[0158] The system receives multiple images sent by the server and adds at least two of them to the wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

[0159] In the twenty-third possible implementation of the third aspect, in conjunction with the twenty-second possible implementation of the third aspect, the image generation instruction further includes description information of the third object, which is used by the server to determine the image style type corresponding to the plurality of images to be generated.

[0160] In the twenty-fourth possible implementation of the third aspect, in conjunction with the twenty-second possible implementation of the third aspect, the image generation instruction further includes scene information, which is used for the plurality of images generated by the server.

[0161] In the twenty-fifth possible implementation of the third aspect, in conjunction with any possible implementation of the third aspect, the first wallpaper is generated based on the scene information when the first wallpaper is generated, and / or the second wallpaper is generated based on the scene information when the second wallpaper is generated.

[0162] In the twenty-sixth possible implementation of the third aspect, combined with the twenty-fifth possible implementation of the third aspect, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0163] In the twenty-seventh possible implementation of the third aspect, in combination with any possible implementation of the third aspect, the first wallpaper display event and the second wallpaper display event are specifically one of the following: screen-on event or incoming call event.

[0164] In the twenty-eighth possible implementation of the third aspect, combined with the twenty-seventh possible implementation of the third aspect, if the first wallpaper display event and the second wallpaper display event are the screen-on events, then the preset image is the preset wallpaper set by the display screen.

[0165] In the twenty-ninth possible implementation of the third aspect, combined with the twenty-seventh possible implementation of the third aspect, if the first wallpaper display event and the second wallpaper display event are the incoming call event, then the preset image is the contact image corresponding to the contact of the incoming call event.

[0166] In the thirtieth possible implementation of the third aspect, in conjunction with any possible implementation of the third aspect, the first wallpaper display event is a screen-on event, and before displaying the first wallpaper upon detecting the first wallpaper display event, the method further includes:

[0167] The preset image is displayed in the always-on display state;

[0168] The step of displaying the first wallpaper when a first wallpaper display event is detected includes:

[0169] When the first wallpaper display event is detected, a wallpaper switching animation is displayed, and the first wallpaper is displayed when the wallpaper switching animation ends; the wallpaper switching animation is generated based on the preset image and the first wallpaper.

[0170] In the thirty-first possible implementation of the third aspect, in conjunction with the thirty-twentieth possible implementation of the third aspect, before displaying the wallpaper switching animation upon detecting the first wallpaper display event and displaying the first wallpaper upon the end of the wallpaper switching animation, the method further includes:

[0171] If the pose of the third object in the preset image is different from the pose of the first object, then the pose animation parameters are determined based on the pose of the third object and the pose of the first object.

[0172] A wallpaper switching animation is generated based on the posture animation parameters.

[0173] Fourthly, embodiments of this application provide an electronic device, including: a memory, a processor, and a program stored in the memory, wherein the processor executes the program to implement the wallpaper display method described in any of the first aspects above.

[0174] Fifthly, embodiments of this application provide a readable storage medium storing a program that, when executed by a processor, implements the wallpaper display method described in any of the first aspects above.

[0175] Sixthly, embodiments of this application provide a program product that, when run on a device, causes the device to perform the wallpaper display method described in any of the first aspects above.

[0176] In a seventh aspect, embodiments of this application provide a chip system including a processor coupled to a memory, the processor executing a program stored in the memory to implement the wallpaper display method as described in any of the first aspects.

[0177] Eighthly, embodiments of this application provide an image processing system, the system including an electronic device and a server;

[0178] The electronic device is used to send an image generation instruction to the server in response to a first user operation, the image generation instruction including the preset image;

[0179] The server is used to generate multiple images based on the preset image and send the multiple images to the electronic device;

[0180] The electronic device is also used to receive multiple images sent by the server and add at least two of the multiple images to the wallpaper library. The at least two images include the first wallpaper and the second wallpaper. The first wallpaper includes a first foreground object and a first background image. The second wallpaper includes a second foreground object and a second background image. The first feature of the first foreground object is the same as the second feature of the second foreground object. The first feature and the second feature are features in a first feature dimension. The first background image and the second background image are different.

[0181] The electronic device is also configured to display the first wallpaper when a first wallpaper display event is detected;

[0182] The electronic device is also used to display the second wallpaper when a second wallpaper display event is detected.

[0183] In one possible implementation of the eighth aspect, the preset image includes a third foreground object, and the image generation instruction further includes description information of the third foreground object, the description information of the third foreground object being used by the server to determine the image style type corresponding to the multiple images to be generated.

[0184] In one possible implementation of the eighth aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.

[0185] It is understood that the beneficial effects of aspects two through eight above can be found in the relevant descriptions in aspect one above, and will not be repeated here. Attached Figure Description

[0186] Figure 1 This is a schematic diagram of the structure of an electronic device provided in this application;

[0187] Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application;

[0188] Figure 3 This is a diagram illustrating the switching of existing wallpapers;

[0189] Figure 4 This is a flowchart illustrating the implementation of the setting stage in a wallpaper display method provided in an embodiment of this application;

[0190] Figure 5 This is a schematic diagram illustrating the setting of image style types according to an embodiment of this application;

[0191] Figure 6 This is a schematic diagram of an interface provided in one embodiment of this application;

[0192] Figure 7 This is a schematic diagram illustrating the generation of a new wallpaper when the foreground object is a human portrait, provided in one embodiment of this application.

[0193] Figure 8 This is a schematic diagram illustrating the generation of a new wallpaper when the foreground object is an animal, as provided in one embodiment of this application;

[0194] Figure 9 This is a schematic diagram illustrating the generation of a new wallpaper when the foreground object is a plant, as provided in one embodiment of this application;

[0195] Figure 10 This is a schematic diagram of multiple different wallpapers generated according to an embodiment of this application;

[0196] Figure 11 This is a schematic diagram illustrating an embodiment of the present application that provides a method for generating new wallpapers based on face replacement;

[0197] Figure 12 This is a schematic diagram illustrating the generation of new wallpapers based on a face database according to an embodiment of this application;

[0198] Figure 13 This is a schematic diagram illustrating the extraction of the main morphological features of a foreground object according to an embodiment of this application;

[0199] Figure 14 This is a flowchart illustrating the specific implementation of generating wallpapers with a specified image style type according to an embodiment of this application;

[0200] Figure 15 This is a flowchart illustrating the implementation of the display stage in a wallpaper display method according to an embodiment of this application;

[0201] Figure 16 This is a schematic diagram of a screen-on process triggered by a click operation according to an embodiment of this application;

[0202] Figure 17 This is a schematic diagram illustrating the folding state change of a foldable device according to an embodiment of this application;

[0203] Figure 18 This is a schematic diagram of an incoming call interface provided in an embodiment of this application;

[0204] Figure 19 This is a schematic diagram of wallpaper switching based on background editing provided in an embodiment of this application;

[0205] Figure 20 This is a schematic diagram of the switching animation provided in one embodiment of this application;

[0206] Figure 21 This is a schematic diagram of a wallpaper switching animation according to an embodiment of this application;

[0207] Figure 22 This is a flowchart illustrating the implementation of stylized editing of both the foreground object and the background image simultaneously, provided in one embodiment of this application.

[0208] Figure 23 This is a schematic diagram illustrating the generation of a switching animation provided in one embodiment of this application;

[0209] Figure 24 This is a structural block diagram of the wallpaper display device provided in the embodiments of this application;

[0210] Figure 25 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0211] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0212] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0213] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0214] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0215] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0216] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0217] The wallpaper display method provided in this application can be applied to electronic devices such as mobile phones, tablets, augmented reality (AR) / virtual reality (VR) display devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). Specifically, this wallpaper display method can be applied to electronic devices equipped with a display screen, or electronic devices with an external display screen that has a wallpaper set. The wallpaper display method allows for switching of the display screen's wallpaper, achieving the purpose of automatically updating the interface wallpaper. This application does not impose any limitations on the specific type of electronic device.

[0218] Figure 1 A schematic diagram of an electronic device 100 is shown.

[0219] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, sensor module 180, buttons 190, display screen 194, etc. Sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, barometric pressure sensor 180C, magnetic sensor 180D, accelerometer sensor 180E, distance sensor 180F, proximity sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light sensor 180L, bone conduction sensor 180M, etc.

[0220] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0221] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors. The electronic device can use the GPU in processor 110 to process preset wallpapers on the interface and generate new wallpapers.

[0222] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. The memory can also be used to store image data from a gallery, and to determine the facial features of different objects based on the image data in the gallery.

[0223] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0224] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0225] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0226] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0227] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0228] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0229] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a graphics processing unit that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. It should be noted that the GPU can control the interface displayed on the display screen 194 using the wallpaper display method provided in this embodiment, for example, changing the wallpaper displayed in the interface. In some implementation scenarios, the animation display of the interface on the display screen 194 can also be output through the GPU.

[0230] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1. Display screen 194 may include a touch panel and other input devices. The display screen 194 may be associated with one or more storage units for caching image data displayed on the display screen 194.

[0231] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs can enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding. In this embodiment, the NPU can generate new wallpapers with preset image style types.

[0232] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be stored on the external storage card. Similarly, the cross-device control method in this embodiment can manage the storage space within the external storage card.

[0233] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor. Similarly, the cross-device control method in this embodiment can manage the storage space within internal memory.

[0234] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0235] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194, for example, electronic devices can obtain the user's weight through pressure sensor 180A. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is applied to the SMS application icon, a command to view SMS messages is executed. When a touch operation with an intensity greater than or equal to a first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed. The pressure sensor 180A can be used to receive a click operation initiated by the user on the display screen 194 to determine whether the display screen 194 needs to be illuminated.

[0236] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios. In this embodiment, the electronic device can use the gyroscope sensor 180B to collect the user's motion posture during movement, thereby generating corresponding motion data, which can be used to generate image style information.

[0237] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0238] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0239] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device, and applied to applications such as screen orientation switching and pedometers. In this embodiment, electronic device can collect the user's motion speed during movement through gyroscope sensor 180B, thereby generating corresponding motion data, which can be used to generate image style information.

[0240] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0241] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0242] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0243] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0244] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.

[0245] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0246] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.

[0247] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0248] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0249] Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application.

[0250] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime system layer, and the kernel layer.

[0251] The application layer can include a series of application packages.

[0252] like Figure 2 As shown, the application package may include applications such as camera, calendar, map, WLAN, Bluetooth, music, video, SMS, email, WeChat, and WPS. In this embodiment, the application package may also include the wallpaper management application provided in this application embodiment, through which wallpaper switching in the interface is achieved.

[0253] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0254] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0255] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0256] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0257] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0258] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0259] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0260] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0261] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0262] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0263] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0264] The system layer can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0265] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0266] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0267] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0268] A 2D graphics engine is a graphics engine for 2D drawing.

[0269] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0270] The following example illustrates the workflow of the software and hardware of electronic device 100 by using the scenario of switching the wallpaper of the lock screen when the screen is on.

[0271] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. If the touch operation is a single click, this click is used to turn on display screen 194. Display screen 194 is started via the display driver, and upon detecting a screen-on event, the corresponding event trigger command is sent to the wallpaper management program through the application framework layer's interface. The wallpaper management program then sets a new wallpaper for the screen-on interface and displays the lock screen with the new wallpaper on display screen 194.

[0272] With the continuous development of electronic device technology, electronic devices have become ubiquitous in users' daily lives and work. Users spend long periods of time using these devices, making the aesthetics and usability of their interfaces a key concern. Users can customize wallpapers for different screens, such as the lock screen, the home screen, and the interaction interfaces with different contacts in chat applications. By setting corresponding wallpapers for different screens, the aesthetics of the interface can be improved, thereby enhancing the user experience.

[0273] Existing wallpaper management technologies, while maintaining the aesthetics of the interface, can increase the interest of wallpapers by randomly switching them, thus preventing user fatigue caused by the same wallpaper remaining unchanged for a long time. Randomly switched wallpapers are typically stored in the electronic device's gallery; for example... Figure 3 This shows a diagram illustrating the existing wallpaper switching. See also: Figure 3 As shown in (a), this interface is a lock screen, and the wallpaper on the lock screen is a landscape image. When specific switching conditions are met, such as the duration of the wallpaper exceeding a preset duration threshold, the wallpaper can be switched to another image, such as a portrait image. Figure 3 As shown in (b), the goal of automatically switching interface wallpapers is achieved. However, although the above method can achieve the goal of automatically switching interface wallpapers, the structure of the foreground object differs greatly between each randomly switched wallpaper, such as... Figure 3 (a) and Figure 3 As shown in (b), this results in significant differences in the overall appearance of the interface, reducing consistency across different times and hindering users from quickly locating the desired controls, thus impacting user efficiency. Furthermore, since the wallpapers used for interface switching are randomly selected from the gallery, their aesthetic appeal may not align with users' preferences, reducing the accuracy of wallpaper recommendations and negatively impacting the user experience.

[0274] Example 1:

[0275] To address the aforementioned problems in existing wallpaper management technologies, this application provides a method for displaying wallpapers. This method ensures that the foreground object of each displayed wallpaper has the same characteristics in the first feature dimension, while the background image is different each time. This allows for dynamic changes in the wallpaper displayed on the interface while maintaining consistency of the foreground object within the interface, thus improving the user experience when using electronic devices.

[0276] The wallpaper display method provided in this application is applied to an electronic device equipped with at least one display screen. The display screen can show an interface, which can be configured with wallpapers. Using the wallpaper display method provided in this embodiment, the interface can display different wallpapers at different times. Specifically, the wallpaper display method provided in this application can include two stages: a setting stage and a display stage.

[0277] Setup phase:

[0278] For example, Figure 4 This document illustrates a flowchart of the setting phase in a wallpaper display method according to an embodiment of this application. Figure 4 As shown, the specific implementation process of the wallpaper display method in the setting phase is described below:

[0279] In S401, set the image style type for the new wallpaper each time it changes.

[0280] In this embodiment, to improve the consistency of new wallpapers displayed on the interface each time, i.e., new wallpapers displayed at different times have the same theme, a corresponding image style type can be set. This image style type can be user-defined or a system default setting. Users can set wallpapers using theme applications and / or wallpaper applications installed on their electronic devices.

[0281] In one possible implementation, the image style type can be user-defined. For example, Figure 5 A schematic diagram illustrating the setting of image style types according to an embodiment of this application is shown. See also Figure 5 As shown in (a), the main interface of the electronic device displays icons for several installed applications, including icon 51 for a wallpaper management application. Users can click icon 51 to enter the wallpaper management settings interface, as shown below. Figure 5 As shown in (b) above. The wallpaper management settings interface includes a setting item 52 for automatically switching wallpapers, such as adding the lock screen or incoming call display as an interface for automatic wallpaper switching. Of course, if more interfaces need to be added, you can click to add more controls 53 to add more interfaces for automatic wallpaper switching. The wallpaper management settings interface also includes an image style type setting item 54, which displays multiple candidate image style types, such as dopamine style, ancient style, retro style, underwater style, sports style, cartoon style, light and shadow photography style, etc. Users can select one image style type from multiple image style types. In some implementation scenarios, two or more image style types can also be selected.

[0282] If you need to expand the image style types displayed in the image style type settings 54 mentioned above, you can click on "More Controls" 55 to expand the image style types that the electronic device can edit by connecting to the server. In this case, the server can receive sample images uploaded by relevant designers. Each sample image can be associated with a corresponding image style type. The server can generate a corresponding style editing algorithm based on multiple sample images belonging to the same image style type and send it to the electronic device. The electronic device can then generate an image with the corresponding image style based on the received style editing algorithm.

[0283] In S402, a preset image is set as the wallpaper for the interface.

[0284] In this embodiment, the preset image can be an image selected by the user, or an image after secondary composition based on the selected image.

[0285] In some implementations, the electronic device can perform secondary composition on the user-selected image based on a preset second constraint. When the target image selected by the user does not meet the above-mentioned second constraint, the user-selected image can be secondary composed to obtain the preset image; when the target image selected by the user meets the above-mentioned second constraint, secondary composition is not required, that is, the preset image is the image selected by the user.

[0286] In some implementations, the second constraint may include at least one of the following:

[0287] The proportion of the foreground object in the image is within a preset range;

[0288] The proportion of the key parts of the foreground object in the image is within a preset ratio range, where the key parts can be the face of the foreground object;

[0289] The foreground object in the image is on the axis of the first image;

[0290] The key parts of the foreground object in the image are on the image's axis;

[0291] A specified part of the foreground object is not visible in the image, where the specified part can be the hand of the foreground object.

[0292] In this embodiment, different interfaces of the electronic device can be configured with corresponding wallpapers, i.e., preset images. These preset images generally include a foreground object (i.e., the main subject in the wallpaper) and a background image. For example, Figure 6 A schematic diagram of an interface provided in one embodiment of this application is shown. See also Figure 6As shown, this interface is a lock screen, which includes a time control 61, custom quick controls, and a preset image 62 that can be set as the interface wallpaper. The preset image 62 displays a portrait 621, which serves as the foreground object of the wallpaper image, and may also include a corresponding background image 622, such as a basketball hoop. The electronic device can set different preset images from its gallery as wallpapers for different interfaces. These preset images can be selected by the user or determined by the electronic device based on default settings.

[0293] It should be noted that some interfaces may not have a fixed wallpaper preset. Instead, the wallpaper is set in real-time based on the event content when a corresponding event is triggered. For example, in response to a call request, the wallpaper image of the contact associated with the caller can be used as the wallpaper image for the call notification interface and the video call interface. Specifically, the above setting operation involves setting a contact image for the contact, where the preset image is the contact image. In existing technology, when the same contact initiates a call request at different times, the same contact image is displayed on both the call notification interface and the video call interface, resulting in low engagement. Therefore, in this embodiment, the wallpaper can also be switched based on the contact image to maintain interface consistency while increasing its engagement.

[0294] In some implementations, the image style type can be determined not only by S401 but also by a preset image. After the user sets a preset image, the image style type for subsequent wallpaper generation can be determined based on the foreground objects in the preset image.

[0295] In some implementations, the aforementioned image style type can be determined based on descriptive information of the foreground object in a preset image. This descriptive information may include the age and gender of the foreground object in the preset image. For example, if the foreground object in the preset image is a young woman, the descriptive information may include two feature parameters: "young" and "female." Subsequently, an image style type matching this descriptive information can be determined, such as a dopamine style or an ancient style.

[0296] In some implementations, the description information can be determined by an electronic device after recognizing a preset image, or it can be obtained by adjusting the recognition result obtained by the user after recognizing the preset image, or it can be set manually by the user. The specific method of acquisition can be determined according to the actual situation and is not limited here.

[0297] In some implementations, the image style type applied when stylizing a preset image can also be determined based on the image style type determined in S401 and the foreground object in the preset image. For example, if multiple image style types are determined in S401, including dopamine style and mechanical style, and the foreground object of the preset image is a woman, which does not match the mechanical style, then the dopamine style can be selected as the image style type applied in this stylization process.

[0298] In one possible implementation, each new wallpaper displayed on the interface (such as the first wallpaper and the second wallpaper) is generated based on the preset image corresponding to the interface and the aforementioned image style type.

[0299] In this embodiment, the first and second wallpapers can be generated on an electronic device or generated through a server.

[0300] In one possible implementation, when the first and second wallpapers are generated on an electronic device, after S402, the following is also included:

[0301] In step S403, in response to the operation of setting a preset image as wallpaper, a first wallpaper and a second wallpaper are generated based on the preset image and the image style type. The first feature of the first foreground object in the first wallpaper is the same as the second feature of the second foreground object in the second wallpaper. Here, the first and second features are features in the first feature dimension. When there are multiple image style types, one or more wallpapers can be generated based on different image style types. For example, wallpapers generated based on the preset image include a first wallpaper, a second wallpaper, a third wallpaper, and a fourth wallpaper, wherein the first and second wallpapers are generated based on the same image style type (e.g., the first image style type), and the third and fourth wallpapers are generated based on another image style type (e.g., the second image style type).

[0302] In this embodiment, after setting the interface wallpaper, the electronic device can generate multiple wallpapers based on the preset image set as the interface wallpaper. This allows for the selection of one of these pre-generated wallpapers for display when a wallpaper display event is detected, eliminating the need to wait for the electronic device to generate a new wallpaper before displaying it, thus improving display smoothness. The generated wallpapers include a first wallpaper and a second wallpaper.

[0303] In some implementations, when the first and second wallpapers are generated on the server, the following steps are included after S402:

[0304] Step 1: In response to the operation of setting a preset image as wallpaper, the electronic device sends an image generation instruction to the server, which includes the preset image.

[0305] In this embodiment, when a user initiates a wallpaper setting operation on an electronic device, they can send an image generation instruction to the server, thereby enabling the server to generate multiple images based on preset images, reducing the computational burden on the electronic device.

[0306] In some implementations, the aforementioned server can be the server corresponding to the application that implements the wallpaper generation function, such as the server corresponding to a wallpaper application or a theme application.

[0307] In some implementations, the preset image includes a third foreground object, and the image generation instruction also includes descriptive information of the third foreground object. This descriptive information is used by the server to determine the image style type corresponding to the generated multiple images. Specifically, the electronic device can determine the descriptive information of the third foreground object in the preset image and add it to the aforementioned image generation instruction, then send the image generation instruction carrying the preset image and descriptive information to the server.

[0308] In some implementations, the descriptive information may include the age and / or gender of the foreground object.

[0309] Step 2: The server generates multiple images based on preset images and image style types. These multiple images include a first wallpaper and a second wallpaper.

[0310] In this embodiment, the image style type can be determined by the server. For example, the server determines the image style type that matches the third foreground object based on the preset object. Alternatively, the image generation instruction can also include the image style type, which the server can determine through the image style type in the image generation instruction.

[0311] In some implementations, if the image generation instruction also includes descriptive information, the image style type mentioned above can be determined based on the descriptive information.

[0312] In this embodiment, the process of the server generating multiple images is the same as the process of the electronic device generating the first wallpaper and the second wallpaper locally. For the specific implementation process, please refer to the relevant description in section S403, which will not be repeated here.

[0313] Step 3: The electronic device receives multiple images sent by the server and adds at least two of the images to the wallpaper library. The at least two images include a first wallpaper and a second wallpaper.

[0314] In practice, multiple images can be added to the wallpaper library, or an image selected by the user can be added to the wallpaper library.

[0315] In this embodiment of the application, generating multiple images corresponding to a preset image through a server can reduce the computational burden on electronic devices. Furthermore, the server has higher computing power, which can also improve the speed of image generation, thereby reducing the user's waiting time and improving the user experience.

[0316] In one possible implementation, the number of wallpapers generated above can be 10, or it can be any other value, depending on the settings.

[0317] In one possible implementation, the electronic device can determine the number of wallpapers based on the frequency with which the user initiates wallpaper display events. For example, if the user lights up the screen more frequently, the number of wallpapers will be greater; conversely, if the user lights up the screen less frequently, the number of wallpapers will be smaller.

[0318] In this embodiment, the first wallpaper includes a first object, the second wallpaper includes a second object, and the first object and the second object are generated based on a third object in the same preset image.

[0319] In some implementations, the aforementioned third object can be at least one of the following: a person, an animal, a plant, a mountain, or a stream.

[0320] For example, the preset image is a picture taken by user A on Mount Hua. After processing the preset image based on a preset image style type (such as the image style type of seasonal cycle), a first wallpaper with a spring theme and a second wallpaper with a winter theme are obtained. The first wallpaper has the same composition as the preset image and also includes user A and Mount Hua. In this wallpaper, flowers are blooming on Mount Hua, which matches the spring theme. The second wallpaper also has the same composition as the preset image and also includes user A and Mount Hua. In this wallpaper, Mount Hua is covered with snow, which matches the winter theme.

[0321] In some implementations, the first wallpaper includes a first foreground object, the second wallpaper includes a second foreground object, and the first and second foreground objects are generated based on a third foreground object in the same preset image.

[0322] In this embodiment, the electronic device can extract the features of the foreground object in the first feature dimension from the preset image, and generate a background image and features of the foreground object in other feature dimensions besides the first feature dimension according to the image style type. Then, the generated background image, the features of the generated foreground object in other feature dimensions, and the extracted features in the first feature dimension are fused together to generate a new wallpaper.

[0323] In this embodiment, in order to ensure consistency among the multiple new wallpapers generated, there will be a strongly related foreground object between the first wallpaper and the second wallpaper. That is, the first foreground object in the first wallpaper and the second foreground object in the second wallpaper have the same features in the first feature dimension, that is, the first feature of the first foreground object and the second feature of the second foreground object are the same.

[0324] In one possible implementation, the foreground object can be any of a person, an animal, or a plant. For example, Figures 7 to 10 This illustration shows how the application edits different foreground objects.

[0325] Figure 7 This illustration shows a diagram illustrating the generation of a new wallpaper when the foreground object is a human figure, according to an embodiment of this application. See also: Figure 7 As shown, the foreground object in the preset image (i.e., image 71) is a portrait. New wallpapers generated based on the preset image and image style type, namely images 72 and 73, allow for changes to the portrait's hairstyle and clothing. All the foreground objects in the resulting new wallpapers belong to the same entity; for example, they are all images containing the character Zhang San. That is, the people in images 72 and 73 are all Zhang San, possessing the same characteristics. Furthermore, when generating images 72 and 73, the portrait's facial makeup can also be changed, such as adding or changing the portrait's lipstick color, eyeshadow, blush, etc.

[0326] Figure 8 This illustration shows a diagram illustrating the generation of a new wallpaper when the foreground object is an animal, according to an embodiment of this application. See also: Figure 8 As shown, the foreground object in the preset image (i.e., image 81) is a rabbit. New wallpapers generated based on the preset image and image style type, namely images 82 and 83, can add clothes to this rabbit. The color of the rabbit's clothes can differ between the generated wallpapers; for example, the clothes in image 82 are black, and the clothes in image 83 are gray. Optionally, if the animals in the generated wallpapers belong to the same animal—that is, if the rabbit in image 81 is Zhang San's—then the rabbits in images 82 and 83 generated based on image 81 are both Zhang San's rabbits and have the same characteristics.

[0327] Figure 9 This illustration shows a diagram illustrating the generation of a new wallpaper when the foreground object is a plant, according to an embodiment of this application. See also: Figure 9As shown, the foreground object in the preset image (i.e., image 91) is a chrysanthemum. The new wallpapers generated based on the preset image and image style type, i.e., images 92 and 93, can change the material of the chrysanthemum to a crystal style material, but the color may differ. That is, the plant varieties and shapes of the different wallpapers generated are the same, and they have the same main shape characteristics.

[0328] The type of the foreground object is not specified here.

[0329] To better illustrate the relationship between each generated wallpaper and image style type Figure 10 This illustration shows several different wallpapers generated according to an embodiment of this application. See also Figure 10 As shown, this is the lock screen interface, which contains preset images set by the user. The user-set image style is a sports style. Therefore, based on the preset image and image style, the generated new wallpapers will all be sports-related images, for example... Figure 10 As shown in (a), the user is wearing a basketball jersey and holding a basketball; while Figure 10 As shown in (b), the user is wearing a badminton uniform and holding a badminton racket; and Figure 10 As shown in (c), the user is wearing swim trunks, and the generated wallpapers all correspond to the same sports theme, only differing in the type of sports. If scene information (such as the user's location) can be obtained when generating wallpapers, then wallpapers related to the scene can be generated based on the location information. For example, if the user is at a swimming pool, then wallpapers can be generated that are relevant to the scene. Figure 10 Wallpaper (c) in the image; if the user is on a basketball court, it can be generated. Figure 10 The wallpaper in (a) of the text.

[0330] In this embodiment, generating a first wallpaper and a second wallpaper based on a preset image and an image style type specifically includes: determining the first feature based on the preset image; and generating the first wallpaper based on the image style type and the first feature.

[0331] In this embodiment, the features of each newly generated wallpaper in the first feature dimension are determined based on a preset image. That is, the electronic device uses the features of the foreground object in the first feature dimension of the preset image as the features of the foreground object in the first feature dimension for the subsequently generated new wallpaper. For example, the first feature of the first wallpaper and the second feature of the second wallpaper. Since the features of different generated wallpapers in the first feature dimension all originate from the same image (i.e., the preset image), it can be ensured that the features of different generated wallpapers in the first feature dimension are identical.

[0332] In one possible implementation, the first feature dimension mentioned above can be a facial feature dimension (such as a human face feature dimension). The features of the facial feature dimension may include features used to characterize face shape, inter-eye distance, mouth size, and / or facial proportions.

[0333] The similarity of features can be specifically demonstrated by the similarity of the feature vectors describing those features, which satisfy a similarity condition. Taking identical facial features as an example, if the feature vector of facial feature 'a' in the first wallpaper and the feature vector of facial feature 'b' in the second wallpaper satisfy the similarity condition (e.g., the Euclidean distance between them is less than a threshold), then facial feature 'a' and facial feature 'b' are considered identical. Furthermore, since both the first and second foreground objects are generated based on a third foreground object in the preset image, the feature vector of facial feature 'a' and the feature vector of facial feature 'c' in the preset image also satisfy the aforementioned similarity condition. Similarly, the feature vector of facial feature 'b' and the feature vector of facial feature 'c' in the preset image also satisfy the aforementioned similarity condition.

[0334] In this embodiment of the application, during the process of generating wallpapers (such as first wallpapers and second wallpapers) based on preset images, the similarity between the feature vector of the feature (such as facial features) in the generated wallpaper and the feature vector of the feature in the preset image can be controlled to meet a preset similarity condition. Therefore, the feature of the generated wallpaper is the same as the feature of the preset image, and thus the feature of different wallpapers generated based on the same preset image is the same.

[0335] Taking a human portrait as an example, the facial features of the foreground objects in multiple generated wallpapers must be identical, and the facial features of the foreground objects in the generated wallpapers must correspond to the same person as the facial features of the foreground objects in the preset image. In some implementations, to ensure that the first and second wallpapers have the same facial features, when generating the first and second wallpapers, the facial image of a third foreground object in the preset image can be extracted. This facial image is then used as the facial image for both the first and second wallpapers, ensuring that the facial features of the first foreground object in the first wallpaper are identical to those of the third foreground object in the preset image, and vice versa. Alternatively, to ensure that the first and second wallpapers have the same facial features, the facial features of the third foreground object in the preset image can also be extracted during the generation of the first and second wallpapers. Based on the feature vector of the third foreground object's facial features, the facial images of the first foreground object in the first wallpaper and the second foreground object in the second wallpaper are generated, thus ensuring that the first and second wallpapers have the same facial features.

[0336] To ensure that the foreground object in the generated wallpaper and the foreground object in the preset image belong to the same entity, the following two methods can be used:

[0337] Method 1: Face Replacement. In Method 1, the first facial feature of the foreground object (i.e., the third foreground object) can be extracted from the preset image, and the first facial feature of the third foreground object can be used as the facial feature of the foreground object (i.e., the first foreground object of the first foreground object or the second foreground object of the second foreground object) in the generated wallpaper.

[0338] For example, Figure 11 This illustration shows a schematic diagram of an embodiment of the present application providing a method for generating new wallpapers based on face replacement. See also: Figure 11 As shown in (a), this is a preset image before style editing. This preset image contains facial features 111. The electronic device can change the clothing of the foreground object in the preset image, for example, from a basketball jersey to a badminton jersey, without changing the main form of the foreground object. Therefore, the facial features 111 in the preset image can be directly used as the facial features of the foreground object in the new wallpaper. Figure 11 In (b), we obtain facial feature 112, thus ensuring the consistency of facial features between the two images.

[0339] Method 2: Obtaining facial features based on a pre-trained face database. Using Method 2, the electronic device can generate a face database based on stored local images. The device calculates the similarity between facial features in different local images, identifies facial features corresponding to multiple local images with similarity greater than a preset similarity threshold as belonging to the same object, and generates a second facial feature corresponding to that object based on the facial features of multiple local images belonging to the same object. When generating a new wallpaper based on a preset image and image style type, the electronic device can determine whether the face database stores the second facial features of the foreground object in the preset image. If the second facial features of the foreground object are stored, the device can determine the facial features in the new wallpaper that match the main shape of the foreground object based on the second facial features and the first facial features of the foreground object in the preset image (used to determine the pose and angle of the face). When generating a new foreground object (such as a first foreground object or a second foreground object) in a new wallpaper, the main shape of the foreground object in the new wallpaper may differ from the main shape of the foreground object in the preset image. For example, when changing the hairstyle, the visible area of ​​the face will change. In this case, if only the facial features are replaced, it will not be able to match the hairstyle of the foreground object in the new wallpaper. In this case, the facial features in the new wallpaper can be adaptively determined based on the second facial features of the foreground object in the face database.

[0340] For example, Figure 12This illustration shows a schematic diagram of generating new wallpapers based on a face database according to an embodiment of this application. See also Figure 12 As shown in (a), the electronic device's photo album stores multiple local images of user A, such as images 1 to 3. Images 1 to 3 all contain user A's facial features. The electronic device can then obtain user A's second facial features through large-scale pre-training and store them in a face database. The electronic device's lock screen will then set user A's image 121 as the wallpaper. Figure 12 As shown in (b) of the image. Because user A in image 121 has long hair, it obscures the area around user A's ears and part of their facial contour. If user A's hairstyle needs to be edited when generating a new wallpaper, it may be necessary to supplement the area around the ears and the missing facial contour. In this case, the electronic device obtains the second facial features of user A from the face database, obtains the features of the ear area and the missing facial contour, and based on the supplemented facial contour, the features of the ear area, and the facial features of user A in image 121, the facial features in the generated new wallpaper can be supplemented as follows. Figure 12 The facial features shown in image 122 (c) are shown in the image.

[0341] In this embodiment, when generating the face area in a new wallpaper, the electronic device may directly replace the face features or generate the face features based on a face database, which can be determined according to the actual situation, thus improving the flexibility of face feature determination in wallpaper generation.

[0342] In practical implementation, feature vectors can be extracted from image data of the facial region of a preset image, and then wallpapers can be generated based on the extracted feature vectors. Specifically, an image encoder based on the CLIP model (Contrastive Language-Image Pre-Training) can be used to extract feature vectors, which can then be input into a Stable Diffusion model to generate new images as wallpapers.

[0343] In one possible implementation, the aforementioned first feature dimension may include a subject shape dimension. The corresponding first and second features are subject shape features, meaning that the foreground objects in the generated new wallpapers have the same subject shape. The subject shape features of the foreground objects in the new wallpapers are determined based on the subject shape features of the foreground objects in the preset image. For example, if the foreground object is a portrait, and the portrait is standing in the preset image, then the portrait will also be standing in all the generated new wallpapers; if the portrait is sitting in the preset image, then the portrait will also be sitting in all the generated new wallpapers.

[0344] For example, if the foreground object is a flower, and the flower is in full bloom in the preset image, then the flower will also be in full bloom in all the generated new wallpapers; if the flower is in a budding state in the preset image, then the flower will also be in a budding state in all the generated new wallpapers.

[0345] In this embodiment, to identify the main form of the foreground image in a preset image, the electronic device can process the preset image using a preset object subject recognition algorithm. This allows the electronic device to obtain the main form features of the third foreground object in the preset image in the main form dimension. These main form features are then used as the main form features of all foreground objects in the new wallpaper, such as the first feature of the first foreground object in the main form dimension and the second feature of the second foreground object in the main form dimension. Optionally, the main form features specifically include the pose (including both position and posture) of each key node of the foreground object. For example, main form features include the position and orientation of the head, the position and posture of the hands, the position and posture of the feet, and the position and posture of the torso. The object subject recognition algorithm can construct the aforementioned main form features by marking the positions of each key point of the foreground object in the preset image and the corresponding posture angles in the preset image.

[0346] In one possible implementation, determining the main morphological features of the foreground object in the preset image may specifically include the following four steps:

[0347] Step 1: Extract the skeletal pose information of the third foreground object in the preset image using a skeletal recognition algorithm.

[0348] Step 2: Extract the contour information of the third foreground object in the preset image using an edge recognition algorithm.

[0349] Step 3: Obtain the depth information of the third foreground object within the preset image using a depth algorithm.

[0350] Step 4: Based on the skeletal pose information, contour information, and depth information, obtain the main morphological features of the foreground object in the preset image. It should be noted that when generating the main morphological features, at least one of the contour information and depth information, along with the skeletal pose information, can be used. That is, the skeletal pose information is necessary, and the other two pieces of information can be selected according to the actual situation.

[0351] In this embodiment, skeletal pose information is used to determine the action posture of the foreground object, contour information is used to determine the size and position of the foreground object, and depth information is used to determine the orientation posture of each part of the foreground object. Therefore, by using the action posture, object size, object position, and orientation posture of each part, the main morphological features of the foreground object in the preset image can be determined.

[0352] For example, Figure 13 This diagram illustrates a method for extracting the main morphological features of a foreground object according to an embodiment of this application. See also... Figure 13 As shown, the electronic device can import a preset image into the three algorithms mentioned above to obtain the skeletal pose information, contour information, and depth information of the preset image, respectively. The skeletal pose information can be represented by a key node graph, i.e. Figure 13 As shown in (a) in the figure; contour information can be represented by a contour diagram, i.e., as shown in the figure. Figure 13 As shown in (b); depth information can be represented by a depth map, such as Figure 13 As shown in (c) above. Electronic devices can assign corresponding weight values ​​to different information based on their contribution to the main body's shape, thereby fusing the three types of information to obtain the main body's shape features. For example, the weight value of the key node map is 1, the weight value of the contour map is 0.2, and the weight value of the depth map is 0.5. The specific weight values ​​for different information can be set according to actual circumstances and are not limited here.

[0353] In this embodiment, when the electronic device generates a new wallpaper based on a preset image and image style type, it retains the features of the preset image in the first feature dimension, while generating features in other modifiable feature dimensions besides the first feature dimension. Specifically, it generates features in the second feature dimension (hereinafter referred to as the modifiable feature dimension for ease of understanding) based on the image style type (such as the third feature in the first wallpaper and the fourth feature in the second wallpaper). This merges the features of the first feature dimension in the preset image with the features of the modifiable feature dimensions to generate the foreground object in the new wallpaper. Since the features of the first feature dimension in all new wallpapers are generated based on the features of the preset image in the first feature dimension, there is a strong correlation between the preset image and the new wallpaper in the first feature dimension. The generation of features in the modifiable feature dimension based on the image style type ensures that each new wallpaper has a certain degree of difference in the modifiable feature dimension, allowing the image style of the new wallpaper to change with the image style type, thus achieving the goal of dynamically adjusting the interface wallpaper.

[0354] It should be noted that the image style type is used to define a range of image styles. Within the same style range, there can be a variety of different colors, clothing, hairstyles, and optional expressions. When generating a new wallpaper image, the electronic device can randomly select a combination from the above image style range to determine the features of the foreground object in the variable feature dimension of the new wallpaper. Therefore, although any two generated wallpapers have the same image style type, there are still certain differences, which can increase the diversity of generated wallpapers.

[0355] In one possible implementation, when generating new wallpapers (i.e., the first wallpaper and the second wallpaper) based on preset images and image style types, scene information can also be considered, that is, generating new wallpapers based on preset images, image style types, and scene information.

[0356] In this embodiment, the electronic device can also acquire scene information through the device's sensors to improve the correlation between the generated wallpaper and the user's current scene, thereby improving the accuracy of the recommended wallpaper.

[0357] In some implementations, in a scenario where an electronic device processes a preset image through a server to obtain multiple images for setting as wallpaper, the image generation instruction sent by the electronic device to the server may include the aforementioned scene information. This scene information can be used by the server to generate multiple images corresponding to the preset image. For example, the server can determine the background image of at least one of the multiple images based on the scene information. Optionally, if the image generation instruction includes description information of the foreground object of the preset image and scene information, the server can also determine the image style type based on the description information and scene information, and generate some or all of the multiple images based on the image style type.

[0358] In one possible implementation, the aforementioned scene information includes at least one of the following: time information, location information, weather information, motion status, and user status information. For example, if the time information recorded in the scene information is morning, the generated wallpaper can be a bright-colored wallpaper or a wallpaper with a daytime background; if the time information recorded in the scene information is the user's birthday, the generated wallpaper can be a wallpaper with birthday elements (such as a birthday cake); if the location information recorded in the scene information is a beach, the generated wallpaper can be a beach-related wallpaper or a wallpaper with a beach background. The degree of correlation between the specific scene information and the generated wallpaper can be set according to the user's needs or according to the default settings of the electronic device.

[0359] For example, if the user's state recorded in the scene information is "happy," then all the user's expressions in the generated wallpaper can be happy expressions; if the user's state recorded in the scene information is "sad," then all the user's expressions in the generated wallpaper can be unhappy expressions. It should be emphasized that the aforementioned scene information can be the scene information corresponding to the moment the wallpaper is generated, or it can be previously acquired scene information, or it can be future scene information predicted based on the user's behavior.

[0360] In one possible implementation, the electronic device can assign corresponding weights to different dimensions of scene information, thereby influencing the relevance between these different dimensions of scene information and the generated wallpaper. For example, if the generated wallpaper needs to have a high relevance to the location but a low relevance to the weather, the weight value of the location information can be set to be larger, while the weight value of the weather information can be set to be smaller. For example, Table 1 shows a correspondence table of the weight contributions of different dimensions of scene information to the generated wallpaper provided in an embodiment of this application. Referring to Table 1, the weight values ​​for time information and location information are both 0.4, meaning that these two scene dimensions have a significant impact on the content of the generated wallpaper; the weight value for weather information is 0.2, indicating that the weather dimension has a relatively small impact on the content of the generated wallpaper; and the weight value for motion state is 0, indicating that the impact of motion state on the content of the generated wallpaper is not considered. The specific distribution of weight values ​​can be set according to user needs or automatically set according to system defaults; the setting of weight values ​​is not limited here.

[0361] Scene Dimension Time information Location information Weather information motion state weight value 0.4 0.4 0.2 0

[0362] Table 1

[0363] In one possible implementation, if a scene change event is detected, a new wallpaper is generated based on the scene information corresponding to the scene change event, a preset image, and the image style type. Since the user's scene has changed, the wallpapers pre-generated based on the original scene may no longer be relevant to the user's current scene. Therefore, a new wallpaper needs to be generated. Thus, a third wallpaper can be generated based on the scene information after the scene change, the preset image, and the image style type, so that a new wallpaper relevant to the new scene can be displayed. For example, if a user moves from a beach scene to a city scene, since the wallpapers stored in the gallery are all based on wallpapers generated in the beach scene and do not match the user's current city scene, the wallpapers in the gallery need to be updated. Therefore, multiple new wallpapers that match the city scene will be generated based on the city scene, the wallpapers pre-set in the interface, and the image style type, and displayed in subsequent wallpaper display events, improving the accuracy of subsequent wallpaper display.

[0364] For example, Figure 14 This diagram illustrates a specific implementation flowchart of generating wallpapers with a specified image style type according to an embodiment of this application. See also... Figure 14 As shown, when the first feature dimension includes both facial feature dimension and subject shape dimension, the image stylization editing process can specifically include the following steps:

[0365] S1401: Determine the baseline editing model based on the image style type.

[0366] In this embodiment, the electronic device can store a benchmark editing model corresponding to different image style types. This benchmark editing model is used to determine the image style of the generated wallpaper, such as the dopamine style, sports style, and ancient style mentioned above.

[0367] S1402: Determine the subject morphology features of the preset image (i.e., image 141) in the subject morphology dimension using an object subject recognition algorithm. The specific method for obtaining the subject morphology features can be found in the description above and will not be repeated here.

[0368] S1403: Generate features with variable feature dimensions based on scene information and the baseline editing model described above.

[0369] In this embodiment, the electronic device can determine the range of image styles for the generated wallpaper based on scene information, preset images, and image style types. This range of image styles can include multiple dimensions: foreground object description dimension, variable parameter dimension, and image style type.

[0370] Among them, the foreground object description dimension can be obtained by performing image semantic analysis on the foreground objects in the preset image, such as determining the pose type, facial orientation, and emotional state of the foreground objects.

[0371] Modifiable feature dimensions include, but are not limited to, clothing, color, and facial expression dimensions. Scene information can contribute to these modifiable feature dimensions. For example, location information within the scene can determine the clothing dimension, such as the distinct ethnic costumes of certain regions; weather information can also influence the color and facial expression dimensions, for instance, brighter colors and happier expressions are observed in sunny weather; and time information can affect the color dimension, such as using brighter colors during the day and darker colors at night.

[0372] In this embodiment, while ensuring that the main body's morphological features remain unchanged, features of the foreground object in multiple variable feature dimensions are generated to obtain image 142.

[0373] S1404: Based on the facial features of the foreground object in image 141, fuse them into image 142 to generate image 143.

[0374] In this embodiment, the electronic device can add facial features associated with a foreground object to the generated image 142, thereby obtaining a new wallpaper, namely image 143. The method for obtaining the facial features is described above and will not be repeated here.

[0375] In this embodiment, the background image in the new wallpaper can be determined based on the image style type. For example, if the image style type is ancient Chinese, the background image of the new wallpaper can include buildings with ancient Chinese architectural style, such as Tang Dynasty buildings in the first wallpaper; while the second wallpaper can include Song Dynasty buildings.

[0376] In one possible implementation, the background image in the new wallpaper can be determined based on scene information and image style type. For example, the background image in the displayed wallpaper can be determined based on the location information in the scene information; for instance, if the user is in a snow-capped mountain, the background image could include a snow-capped mountain; if the user is on a beach, the background image could include a beach.

[0377] In this embodiment, a new wallpaper can be generated by fusing the generated foreground object with the generated background image. The features of the generated foreground object in the first feature dimension are determined based on the features of the foreground object in the first feature dimension of a preset image.

[0378] In this embodiment, after setting the image style type and wallpaper for the interface, the electronic device can generate multiple new wallpapers. When a wallpaper display event is subsequently detected, it can select one of these pre-generated new wallpapers for display. This allows for displaying different wallpapers in response to wallpaper display events at different times, while improving the flow of the display process. Of course, these new wallpapers can be generated in real-time in addition to being pre-generated, as will be described in detail later.

[0379] Display phase:

[0380] For example, Figure 15 A flowchart illustrating the implementation of the display phase in a wallpaper display method according to an embodiment of this application is shown. Figure 15 As shown, the specific implementation process of the display phase of the above wallpaper display method is described below:

[0381] In S1501, the first wallpaper is displayed when the first wallpaper display event is detected.

[0382] In S1502, the second wallpaper is displayed when a second wallpaper display event is detected.

[0383] In this embodiment, when a wallpaper display event is detected, the electronic device can display an interface containing the generated wallpaper on the corresponding display screen. For example, during a first wallpaper display event, a first wallpaper is displayed, and during a second wallpaper display event, a second wallpaper is displayed. The first wallpaper includes a first foreground object and a first background image, while the second wallpaper includes a second foreground object and a second background image. The first feature of the first foreground object is the same as the second feature of the second foreground object. The first and second features are features in a first feature dimension (such as facial features in the facial feature dimension and subject shape features in the subject shape dimension, as mentioned above). The first and second background images are different, thus achieving the purpose of dynamically adjusting the interface wallpaper.

[0384] In one possible implementation, the first and second wallpapers mentioned above can be generated based on preset images and image style types when setting the wallpaper of the display screen interface. The specific generation process can be found in the above content and will not be repeated here.

[0385] When displayed, the position of the first foreground object in the first wallpaper and the position of the second foreground object in the second wallpaper can be the same or different.

[0386] For example, the wallpaper display events described above can be specifically divided into at least three display scenarios:

[0387] Scenario 1: Screen-on event triggered by a click operation

[0388] In this embodiment, the lock screen of the electronic device is set with a corresponding wallpaper image, i.e., a preset image. When the electronic device is in a screen-off state or a screen-off display state, if it detects that the user clicks the display screen or clicks the power button (or other physical button that lights up the display screen) on the electronic device, the display screen can be lit up and the lock screen interface can be displayed. For example, Figure 16 This diagram illustrates a screen-on process triggered by a click operation, according to an embodiment of this application. See also... Figure 16 As shown in (a), the electronic device's display screen is in a screen-off state, meaning it is not displaying any content and the interface is invisible. At this time, if the user taps the display screen (e.g., taps an area other than the under-display fingerprint recognition area), the electronic device detects the tap, wakes up the display screen, and displays the lock screen interface, as shown in (a). Figure 16 As shown in (b), the lock screen can display a user-set wallpaper (preset image), i.e., image 161. If the electronic device supports always-on display, the corresponding always-on display interface will be displayed on the screen when the electronic device is in always-on state, such as... Figure 16As shown in (c), the always-on display interface can display a clock control 162 and a user-set wallpaper (i.e., a preset image), i.e., image 163. Similarly, if the user initiates a screen-on operation, the electronic device will light up the always-on display screen and display the corresponding lock screen interface, such as... Figure 16 As shown in (d) above, the wallpaper (i.e., image 163) in the screen-off state is the same as the wallpaper (i.e., image 164) in the lock screen interface after the screen is turned on. In the prior art, the wallpaper image displayed in the lock screen interface is the same every time the user turns on the screen. For interfaces that do not support screen-off display, the image 161 displayed is the same every time the screen is turned on, or the pre-stored images in the gallery are randomly switched sequentially, resulting in inconsistent interfaces. For interfaces with screen-off display, the image 164 and image 163 displayed are the same every time the screen is turned on, which also has the same problem as above.

[0389] To address the issue that existing methods cannot simultaneously maintain interface consistency and ensure accurate wallpaper recommendations when switching wallpapers on the lock screen during the transition from screen off to screen on, electronic devices can change the style of the lock screen wallpaper corresponding to the screen-on trigger event. Specifically, the preset images mentioned above can be image 161 and image 163.

[0390] In one possible implementation, a new wallpaper can be generated when the user turns on the screen, i.e., when the electronic device detects a screen-on trigger event. It can then generate a new wallpaper based on a pre-set image style type and a preset image set on the lock screen. Optionally, the electronic device can also obtain scene information corresponding to the screen-on trigger event and generate a new wallpaper based on the pre-set image style type, scene information, and the preset image set on the lock screen.

[0391] Scenario 2: Screen-on event triggered when the folded state changes

[0392] In this embodiment, the electronic device is a foldable device, comprising at least two displays: a foldable screen (hereinafter referred to as the inner screen) and a non-foldable screen (hereinafter referred to as the outer screen). For example, Figure 17 A schematic diagram illustrating the folding state changes of a foldable device according to an embodiment of this application is shown. See also... Figure 17 As shown in (a), the foldable device is in a folded state. In this state, the inner screen is folded and therefore displays no content; the outer screen is visible and can be in one of three states: always-on, always-off, or always-on, depending on the user's usage. If the user unfolds the foldable device, it will switch from a folded state to an unfolded state, as shown in (a). Figure 17As shown in (b) above. When the foldable device is in the unfolded state, the inner screen can change from a screen-off state to a screen-on state; correspondingly, the outer screen can also be in one of the following states: a screen-off state, a screen-off state, or a screen-on state.

[0393] In this embodiment, when the foldable device changes its folded state, at least one of the outer or inner screens will be illuminated. For example, when changing from a folded state to an unfolded state, the inner screen may be illuminated, or the outer screen may be illuminated simultaneously; while when changing from an unfolded state to a folded state, only the outer screen will be illuminated. When the foldable device changes its folded state, the illuminated display screen can show a corresponding interface, which may include a corresponding wallpaper image (i.e., a preset image). In the prior art, the wallpaper displayed is the same each time the display screen is illuminated, thus reducing the visual appeal and diversity of the display interface.

[0394] To address the issue that the wallpaper does not automatically change when the folded state changes, this application embodiment can change the wallpaper of the illuminated display screen when a folded state change event is detected. That is, the aforementioned preset image can be the wallpaper image of the illuminated display screen when the folded state changes, such as... Figure 17 Image 171 is shown in (a) of the image.

[0395] In one possible implementation, if the folding change state changes from an inner screen folded state to an inner screen unfolded state, the preset image can be the wallpaper image in the lock screen interface of the inner screen.

[0396] In one possible implementation, the new wallpaper can be generated when the folded state changes. That is, when the electronic device detects a screen-on event based on a change in folded state, it can generate a new wallpaper according to a pre-set image style type and a wallpaper pre-set on the display screen. Optionally, the electronic device can also obtain scene information corresponding to the change in folded state and generate new wallpapers (i.e., a first wallpaper and a second wallpaper) according to the pre-set image style type, scene information, and wallpaper pre-set on the display screen.

[0397] Scenario 3: Incoming call trigger event

[0398] In this embodiment, when the electronic device receives an incoming call request during use, it generates a corresponding incoming call event. Upon detecting the event, the device can generate a corresponding call interface on its display screen, allowing the user to choose to answer or reject the call. For example, Figure 18 A schematic diagram of an incoming call interface provided in one embodiment of this application is shown. See also Figure 18As shown in (a), users can configure corresponding contact images for different contacts. For example, for friend A, an image containing friend A can be selected from the gallery as the contact image associated with user A, i.e., image 181. This contact interface can also record the contact phone number corresponding to that contact. If an incoming call is received from that contact, the incoming call interface for that contact can be displayed on the screen, such as... Figure 18 As shown in (b) above. Since friend A has set associated contact images, in order to improve the visibility of the incoming call interface and quickly identify the caller, in addition to displaying the contact's name, the corresponding contact image can also be set as the wallpaper for this incoming call interface, i.e., image 182. If the user does not actively change the associated contact image, then every time friend A calls, the wallpaper on the electronic device's incoming call interface will be image 182, thus reducing the fun and diversity of the display interface.

[0399] To address the issue that the contact's image in the incoming call interface does not automatically change, this application embodiment can perform style transformation on the contact's image set in the incoming call interface. That is, the aforementioned preset image can be the contact's image corresponding to the contact in the incoming call notification interface, i.e., image 182.

[0400] In one possible implementation, a new wallpaper can be generated when a contact calls; that is, when the electronic device detects an incoming call, it can generate a new wallpaper based on a pre-set image style type and the contact's portrait set by the user. Optionally, the electronic device can also obtain scene information corresponding to the moment of the incoming call and generate a new wallpaper based on the pre-set image style type, scene information, and contact's portrait.

[0401] In one possible implementation, the aforementioned scene information can be the scene information of the incoming caller's location, enabling the generated wallpaper to reflect the scene in which the contact is located, thus improving the consistency between the foreground object of the generated wallpaper and the actual user.

[0402] The display stage can use either static display or dynamic display.

[0403] If the electronic device uses a static display, the wallpaper (such as the first wallpaper and the second wallpaper) is displayed directly when responding to the wallpaper display event. This method is suitable for scenarios where the display screen is in a sleep state before responding to the wallpaper display event, such as the screen-on event triggered by the change of folding state and the incoming call event mentioned above; if the display screen is in a sleep state, the screen-on event triggered by the click operation mentioned above can also use the static display method described above.

[0404] If the electronic device uses a dynamic display method, upon responding to a wallpaper display event, the corresponding wallpaper switching animation can be displayed first, and after the wallpaper switching animation finishes playing, the corresponding new wallpaper (such as the first wallpaper and the second wallpaper) can be displayed. The end frame of the wallpaper switching animation is the new wallpaper; for the first wallpaper display event, it is the first wallpaper, and for the second wallpaper display event, it is the second wallpaper. This method is suitable when the electronic device's display screen is in a screen-off state before responding to the wallpaper display event, and the wallpaper display event is a screen-on event triggered by a click operation.

[0405] For example, Figure 19 This illustration shows a schematic diagram of wallpaper switching based on background editing according to an embodiment of this application. See also: Figure 19 As shown in (a), the electronic device is in a screen-off state. The lock screen uses image 191 as wallpaper, displayed with low brightness and low contrast. When the user taps the screen, it lights up, and the electronic device stylizes the background image in image 191. For example, if the user's current location is a snow-capped mountain, the background can be changed to a snow-capped mountain, thus matching the changed image to the user's location and improving the relevance between the changed wallpaper and the user. Figure 19 The lock screen interface shown in (b) has image 192 as its wallpaper. The foreground object in image 192 is the same as that in image 191, ensuring consistency between lock screen interfaces. However, the background images of images 191 and 192 differ, allowing for style editing based on image style information, thus increasing interface diversity. If the user's next click on the interface occurs on a beach, the background image can be set to a beach.

[0406] Because there is a difference in background between the preset image and the new wallpaper, in order to improve the smoothness of the image transition, the electronic device can generate a corresponding switching animation. When responding to the wallpaper display event, the above-mentioned switching animation can be displayed on the corresponding interface of the screen, thereby realizing a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, improving the smoothness of image switching, and thus improving the user experience.

[0407] The aforementioned transition animation can be a gradient transition animation, where the background image of the preset image fades out of the interface, while the background image of the new wallpaper appears on the interface using a gradient in. For example, Figure 20 A schematic diagram of a switching animation provided in one embodiment of this application is shown. See also Figure 20As shown, image 191 gradually fades over time, while image 192 gradually becomes clearer over time, thus achieving the purpose of gradually changing the background image.

[0408] In one possible implementation, since there is a difference in the pose of the foreground object between the preset image and the new wallpaper, in order to improve the smoothness of the image transition, the electronic device can generate a corresponding switching animation based on the pose of the foreground object in the preset image and the pose of the foreground object in the new wallpaper (such as the first foreground object in the first wallpaper). When responding to the wallpaper display event, the above-mentioned switching animation can be displayed on the interface corresponding to the display screen, thereby realizing a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, improving the smoothness of the image switching, and thus improving the user experience.

[0409] In one possible implementation, the aforementioned transition animation can be a gradient transition animation, where the foreground object in the preset image fades out of the interface, while the foreground object in the new wallpaper appears on the interface using a fade-in transition. For the specific implementation process of the foreground object's gradient transition, please refer to the implementation process of the background image's gradient transition; this will be limited to that here.

[0410] In one possible implementation, if the posture of the foreground object in the preset image differs from that of the foreground object in the new wallpaper (such as the first foreground object in the first wallpaper), for example, the posture of the left hand changes, or the orientation of the torso changes, in order to improve the smoothness of wallpaper switching, the electronic device can determine the posture animation parameters based on the posture of the foreground object in the preset image and the posture of the foreground object in the new wallpaper, generate the corresponding wallpaper switching animation based on the posture animation parameters, and play the wallpaper switching animation on the interface when responding to the wallpaper display event, thereby achieving the purpose of switching from the preset image to the second image.

[0411] For example, Figure 21 A schematic diagram of a wallpaper switching animation according to an embodiment of this application is shown. See also Figure 21 As shown in (a), this interface is an always-on display interface. Within the wallpaper image (i.e., the preset image) set in the always-on display interface, the foreground object's hand is in a vertically raised state. When stylizing the foreground object, after obtaining the second image, the foreground object's hand in the second image is in a state of being raised at an angle towards the upper left, while the posture of other parts remains unchanged. In this case, the electronic device acquires the posture animation parameters of the foreground object's hand between the two images, such as the image coordinates of each key node of the hand in the two images. Based on the posture animation parameters, a corresponding wallpaper switching animation is generated to achieve a smooth transition from the vertically raised state to the state of being raised at an angle towards the upper left, such as... Figure 21As shown in (b), the wallpaper switching animation is improved by using an arm swing.

[0412] In this embodiment of the application, by stylizing the feature dimensions of the foreground object in the preset image, the foreground object and the image style information can be strongly correlated, so that the wallpaper obtained each time is switched has a clear style theme. When stylizing the foreground object, the similarity between the two images in the first feature dimension is preserved, which can maintain the consistency of the entire interface to a large extent.

[0413] For example, Figure 22 This illustration shows a flowchart of the implementation of simultaneous stylization transformation of a foreground object and a background image according to an embodiment of this application. Specifically, it can be divided into the following stages:

[0414] Stage 1.1. The electronic device can input a preset image (i.e., image 221) into a preset object subject recognition algorithm to obtain the subject morphology features of the subject morphology dimension of the preset image, i.e., feature 222.

[0415] Phase 1.2: Input the preset image into the preset image semantic recognition algorithm to understand the image semantics of the preset image, obtain a text description about the preset image, and add the text description as extended information to the image style information.

[0416] Phase 1.3: Import the image style information and the above text description into the preset baseline editing model to obtain the corresponding image style editing model.

[0417] Phase 2: Import feature 222 (i.e. the feature used to determine the first feature dimension to be retained) into the image style editing model to generate features with changeable feature dimensions.

[0418] Phase 3: The system can generate multiple new wallpapers of different types based on the same preset image during different wallpaper display events. Because the input to the image style editing model includes scene information and descriptive information related to foreground objects in the preset image, it can achieve data fusion across two dimensions: foreground objects and scene information. This allows the image style editing model to more accurately generate features with multiple modifiable dimensions while retaining a certain degree of randomness. This ensures that the new wallpapers output at different times have a degree of randomness, increasing the diversity of the output images.

[0419] For example, Figure 23 A schematic diagram illustrating the generation of a switching animation according to an embodiment of this application is shown. See also... Figure 23As shown, the electronic device can input a preset image and a newly generated wallpaper into a preset animation parameter recognition model to perform foreground subject detection, pose detection, and background shape detection, respectively. Based on the deviation between the two images in the above three dimensions, the first animation parameters of the foreground object and the second animation parameters of the background image are obtained.

[0420] Specifically, for the first animation parameter of the foreground object, the pose transformation animation can be determined based on the animation mode corresponding to the image style type and the first animation parameter, thereby generating the foreground transformation animation of the foreground object. If the pose difference of the foreground object between two images is small, a gradual transition animation can be used to generate the aforementioned switching animation; conversely, if the pose difference is large, a pose transformation animation for the parts with larger pose changes can be generated.

[0421] Specifically, for the second animation parameter of the background image, the background gradient animation can be determined according to the animation mode corresponding to the image style type and the second animation parameter, thereby generating the background transformation animation of the background image.

[0422] Finally, the two animations are merged to obtain a switching animation that transforms from the preset image to the second image.

[0423] As can be seen from the above, in the graph processing method provided in this application embodiment, the electronic device can display different wallpapers when responding to wallpaper display events at different times, and the foreground objects of different wallpapers have the same characteristics in the first feature dimension. This achieves dynamic adjustment of the electronic device's interface wallpaper while maintaining consistency between the interface at different times. Compared with existing wallpaper management methods, in this application embodiment, the wallpapers displayed on the same interface at different times do not affect the consistency of the interface. Instead, they maintain the same characteristics in the first feature dimension for the foreground objects in the wallpapers displayed at different times. This ensures that each wallpaper switch has similar foreground objects, avoiding significant differences in the display effect of the interface after each change, and also enhancing the visual appeal of the interface wallpaper, thereby improving the user experience.

[0424] Corresponding to the wallpaper display method described in the above embodiments, Figure 24 A structural block diagram of a wallpaper display device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0425] Reference Figure 24 The device displayed by the wallpaper includes:

[0426] The first display unit 241 is configured to display a first wallpaper when a first wallpaper display event is detected, the first wallpaper including a first foreground object and a first background image;

[0427] The second display unit 242 is used to display a second wallpaper when a second wallpaper display event is detected. The second wallpaper includes a second foreground object and a second background image, wherein a first feature of the first foreground object is the same as a second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, and the first background image and the second background image are different.

[0428] Optionally, in one possible implementation of the second aspect, the first feature dimension includes a facial feature dimension and / or a subject shape dimension.

[0429] Optionally, the first wallpaper display event and the second wallpaper display event are specifically one of the following: a screen-on event or an incoming call event.

[0430] Optionally, the image style type of the first wallpaper is the same as that of the second wallpaper.

[0431] Optionally, the image style type includes at least one of the following: dopamine style, ancient style, retro style, and underwater style.

[0432] Optionally, the device further includes:

[0433] The first wallpaper generation unit is used to generate the first wallpaper based on a preset image and the image style type;

[0434] The second wallpaper generation unit is used to generate the second wallpaper based on a preset image and the image style type.

[0435] Optionally, the device further includes:

[0436] A wallpaper setting unit is configured to generate a first wallpaper and a second wallpaper based on the preset image and the image style type in response to an operation of setting the preset image as wallpaper.

[0437] Optionally, the device further includes:

[0438] A scene triggering unit is used to generate a third wallpaper based on the scene information corresponding to the scene change event, the preset image, and the image style type if a scene change event is detected.

[0439] The third display unit is used to display the third wallpaper when a third wallpaper display event is detected.

[0440] Optionally, the wallpaper generation unit includes:

[0441] The first display generation unit is configured to generate the first wallpaper according to the preset image and the image style type in response to the first wallpaper display event;

[0442] The second display generation unit is configured to generate the second wallpaper according to the preset image and the image style type in response to the second wallpaper display event.

[0443] Optionally, the first display generation unit is specifically configured to: in response to the first wallpaper display event, generate the first wallpaper based on the preset image, the image style type, and the scene information corresponding to the first wallpaper display event.

[0444] Optionally, the second display generation unit is specifically configured to: in response to the second wallpaper display event, generate the second wallpaper based on the preset image, the image style type, and the scene information corresponding to the second wallpaper display event.

[0445] Optionally, the scene information includes at least one of time information, location information, weather information, motion status, and user status information.

[0446] Optionally, if the first wallpaper display event and the second wallpaper display event are screen-on events, then the preset image is the preset wallpaper set on the display screen.

[0447] Optionally, if the first wallpaper display event and the second wallpaper display event are the incoming call event, then the preset image is the contact image corresponding to the contact of the incoming call event.

[0448] Optionally, the wallpaper generation unit includes:

[0449] The first feature determination unit is used to determine the first feature based on the preset image;

[0450] The first feature fusion unit is used to generate the first wallpaper based on the image style type and the first feature.

[0451] Optionally, if the first feature dimension includes a facial feature dimension, then the first feature determination unit includes:

[0452] A face replacement unit is used to extract a first facial feature from the preset image and use it as the first feature.

[0453] Optionally, if the first feature dimension is a facial feature dimension, then the first feature determination unit includes:

[0454] A face database extraction unit is used to obtain the second facial features corresponding to the third foreground object contained in the preset image from a pre-trained face database.

[0455] A face feature generation unit is used to obtain the first feature based on the second face feature and the first face feature in the preset image.

[0456] Optionally, if the first feature dimension includes a subject morphology feature dimension, then the first feature determination unit includes:

[0457] A skeletal pose fusion unit is used to determine the first feature based on the skeletal pose information of a third foreground object in the preset image.

[0458] Optionally, the skeletal pose determination unit includes:

[0459] The relevant information fusion unit is used to determine the first feature based on at least one of the contour information and depth information of the third foreground object in the preset image and the skeletal pose information.

[0460] Optionally, the first wallpaper display event is a screen-on event, and the device further includes:

[0461] The always-on display unit displays a preset image in the always-on display state;

[0462] The first display unit includes:

[0463] An animation display unit is used to display a wallpaper switching animation when a first wallpaper display event is detected, and to display the first wallpaper when the wallpaper switching animation ends; the wallpaper switching animation is generated based on the preset image and the first wallpaper.

[0464] Optionally, the device further includes:

[0465] The pose animation parameter determination unit is used to determine pose animation parameters based on the pose of the third foreground object and the pose of the first foreground object if the pose of the third foreground object in the preset image is different from the pose of the first foreground object.

[0466] The posture animation generation unit is used to generate wallpaper switching animations based on the posture animation parameters.

[0467] Optionally, the third feature of the first foreground object is different from the fourth feature of the second foreground object; the third feature and the fourth feature are features in the second feature dimension; the second feature dimension is a feature dimension different from the first feature dimension.

[0468] Optionally, the second feature dimension includes at least one of the following: clothing dimension, hairstyle dimension, and facial expression dimension.

[0469] Figure 25 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 25 As shown, the electronic device 25 of this embodiment includes: at least one processor 250 ( Figure 25 The diagram shows only one processor, a memory 251, and a program 252 stored in the memory 251 and executable on the at least one processor 250, wherein the processor 250 executes the program 252 to implement the steps in any of the above-described methods for displaying wallpapers.

[0470] The electronic device 25 may be a desktop computer, laptop, handheld computer, or cloud server, etc. This electronic device may include, but is not limited to, a processor 250 and a memory 251. Those skilled in the art will understand that... Figure 25 This is merely an example of electronic device 25 and does not constitute a limitation on electronic device 25. It may include more or fewer components than shown, or combine certain components, or different components. For example, it may also include input / output electronic devices, network access electronic devices, etc.

[0471] The processor 250 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0472] In some embodiments, the memory 251 may be an internal storage unit of the electronic device 25, such as a hard disk or memory of the electronic device 25. In other embodiments, the memory 251 may be an external storage device of the electronic device 25, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 25. Furthermore, the memory 251 may include both internal storage units and external storage devices of the electronic device 25. The memory 251 is used to store the operating system, applications, bootloader, data, and other programs, such as program code. The memory 251 can also be used to temporarily store data that has been output or will be output.

[0473] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0474] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0475] This application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above method embodiments.

[0476] This application also provides a readable storage medium storing a program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0477] This application provides a program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0478] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0479] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0480] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method of wallpaper display, characterized by, Comprising: displaying a first wallpaper when a first wallpaper display event is detected, the first wallpaper comprising a first foreground object and a first background picture; displaying a second wallpaper when a second wallpaper display event is detected, the second wallpaper comprising a second foreground object and a second background picture, wherein a first feature of the first foreground object is the same as a second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, the first background picture and the second background picture are different, and the first feature dimension comprises a facial feature dimension and / or a body shape dimension.

2. The method of claim 1, wherein, The first foreground object and the second foreground object are generated based on a third foreground object of a same preset image.

3. The method of claim 2, wherein, The third foreground object is a person or an animal in the preset image; facial images of the first foreground object and the second foreground object are generated based on a facial image of the third foreground object.

4. The method of claim 2, wherein, Body shapes of the first foreground object and the second foreground object are determined based on a body shape of the third foreground object.

5. The method of claim 1, wherein, A third feature of the first foreground object is different from a fourth feature of the second foreground object; the third feature and the fourth feature are features in a second feature dimension; and the second feature dimension is different from the first feature dimension.

6. The method of claim 5, wherein, The second feature dimension comprises at least one of a clothing dimension and a hairstyle dimension.

7. The method of claim 2, wherein, An image style type of the first wallpaper is the same as an image style type of the second wallpaper.

8. The method of claim 7, wherein, The first wallpaper and the second wallpaper are wallpapers of a same image style type generated according to a first image style type.

9. The method of claim 8, further comprising: before the displaying the first wallpaper when the first wallpaper display event is detected, generating the first wallpaper according to the preset image and the first image style type; and before the displaying the second wallpaper when the second wallpaper display event is detected, generating the second wallpaper according to the preset image and the first image style type.

10. The method of claim 9, wherein, The generating the first wallpaper according to the preset image and the image style type and the generating the second wallpaper according to the preset image and the first image style type comprise: in response to an operation of setting the preset image as a wallpaper, generating the first wallpaper and the second wallpaper according to the preset image and the first image style type.

11. The method of claim 10, wherein, after the generating the first wallpaper and the second wallpaper according to the preset image and the first image style type in response to the operation of setting the preset image as the wallpaper, further comprising: if a scene change event is detected, generating a third wallpaper according to scene information corresponding to the scene change event, the preset image, and the first image style type; and displaying the third wallpaper when a third wallpaper display event is detected.

12. The method of claim 9, wherein, The generating the first wallpaper according to the preset image and the first image style type comprises: in response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type. The generating the second wallpaper according to the preset image and the first image style type comprises: in response to the second wallpaper display event, generating the second wallpaper according to the preset image and the first image style type.

13. The method of claim 12, wherein, The generating the first wallpaper according to the preset image and the first image style type in response to the first wallpaper display event comprises: In response to the first wallpaper display event, generating the first wallpaper according to the preset image, the first image style type and scene information corresponding to the first wallpaper display event.

14. The method of claim 12, wherein, The generating the second wallpaper according to the preset image and the first image style type in response to the second wallpaper display event comprises: In response to the second wallpaper display event, generating the second wallpaper according to the preset image, the first image style type and scene information corresponding to the second wallpaper display event.

15. The method of claim 9, wherein, The generating the first wallpaper according to the preset image and the image style type comprises: Determining a first feature according to the preset image; Generating the first wallpaper according to the image style type and the first feature, wherein the first foreground object of the generated first wallpaper has the first feature.

16. The method of claim 15, wherein, The preset image comprises a third foreground object, and the third foreground object is a person or an animal. The determining the first feature according to the preset image comprises: Extracting a first facial feature of the third foreground object in the preset image as the first feature; or 17. The method of claim 15, wherein, Obtaining a second facial feature corresponding to the third foreground object in the preset image from a pre-trained face library, and obtaining the first feature according to the second facial feature and a first facial feature in the preset image. The preset image comprises a third foreground object, and the third foreground object is a person or an animal.

18. The method of claim 17, wherein, Determining the first feature according to skeleton posture information of the third foreground object in the preset image. The determining the first feature according to the skeleton posture information of the third foreground object in the preset image comprises:

19. The method of claim 2, wherein, Determining the first feature according to at least one of contour information and depth information of the third foreground object in the preset image and the skeleton posture information. Before displaying the first wallpaper and the second wallpaper, the method further comprises: In response to a first user operation, sending an image generation instruction to a server, the image generation instruction comprising the preset image; Receiving a plurality of images generated by the server according to the preset image, and adding at least two images in the plurality of images to a wallpaper library, the at least two images comprising the first wallpaper and the second wallpaper.

20. The method of claim 19, wherein, The image generation instruction further comprises description information of the third foreground object, and the description information of the third foreground object is used by the server to determine an image style type corresponding to the multiple images to be generated.

21. The method of claim 7 or 20, wherein, The image style type comprises at least one of a dopamine style, an ancient style, a retro style, a cartoon style, a light and shadow style, and an underwater style.

22. The method of claim 19, wherein, The image generation instruction further comprises scene information corresponding to a user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.

23. The method of claim 1, wherein, The first wallpaper is generated according to scene information when the first wallpaper is generated, and / or the second wallpaper is generated according to scene information when the second wallpaper is generated.

24. The method of claims 11, 13, or 22, wherein, The scene information comprises at least one of time information, location information, weather information, motion state, and user state information.

25. The method of claim 1, wherein, The first wallpaper display event and the second wallpaper display event are specifically one of a screen-on event or a call event.

26. The method of claim 2, wherein, The first wallpaper display event and the second wallpaper display event are a screen-on event, and the preset image is a preset wallpaper set for a display screen.

27. The method of claim 2, wherein, The first wallpaper display event and the second wallpaper display event are a call event, and the preset image is a contact image corresponding to a contact of the call event.

28. The method of claim 2, wherein, The first wallpaper display event is a first screen-on event, and before displaying the first wallpaper when the first screen-on event is detected, the method further comprises: displaying the preset image in a screen-off display state; displaying the first wallpaper when the first screen-on event is detected comprises switching from displaying the preset image to displaying the first wallpaper.

29. The method of claim 28, wherein, The second wallpaper display event is a second screen-on event, and before displaying the second wallpaper when the second screen-on event is detected, the method further comprises: displaying the preset image in a screen-off display state; displaying the second wallpaper when the second screen-on event is detected comprises switching from displaying the preset image to displaying the second wallpaper.

30. The method of claim 28, wherein, A wallpaper switching animation is displayed in the process of switching from displaying the preset image to displaying the first wallpaper.

31. The method of claim 30, wherein, The wallpaper switching animation is displayed when the first screen-on event is detected, and the first wallpaper is displayed when the wallpaper switching animation ends; the wallpaper switching animation is generated according to the preset image and the first wallpaper.

32. The method of claim 30 or 31, wherein, Before displaying the wallpaper switching animation, the method further comprises: if a posture of a third foreground object in the preset image is different from a posture of the first foreground object, determining posture animation parameters according to the posture of the third foreground object and the posture of the first foreground object; generating the wallpaper switching animation according to the posture animation parameters.

33. The method of claim 28, wherein, The first screen-on event is a screen-on event triggered based on a click operation.

34. An electronic device, comprising: The electronic device comprises a memory, a processor, and a program stored in the memory and executable on the processor, and the processor executes the program to perform the steps of the method in any one of claims 1 to 33.

35. A readable storage medium, the readable storage medium storing a program, characterized in that, The program is executed by the processor to implement the steps of the method in any one of claims 1 to 33. The program is executed by the processor to implement the steps of the method in any one of claims 1 to 33.

36. A system for image processing, characterized by The system comprises an electronic device and a server; The electronic device is configured to send an image generation instruction to the server in response to a first user operation, the image generation instruction comprising a preset image; The server is configured to generate a plurality of images according to the preset image and send the plurality of images to the electronic device; The electronic device is further configured to receive the plurality of images sent by the server and add at least two images in the plurality of images to a wallpaper library, the at least two images comprising a first wallpaper and a second wallpaper, the first wallpaper comprising a first foreground object and a first background picture, and the second wallpaper comprising a second foreground object and a second background picture, wherein a first feature of the first foreground object is the same as a second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, the first background picture and the second background picture are different, and the first feature dimension comprises a face feature dimension and / or a subject shape dimension; The electronic device is further configured to display the first wallpaper when a first wallpaper display event is detected; The electronic device is further configured to display the second wallpaper when a second wallpaper display event is detected.

37. The system of claim 36, wherein, The preset image comprises a third foreground object, the image generation instruction further comprises description information of the third foreground object, and the description information of the third foreground object is used by the server to determine an image style type corresponding to the plurality of images to be generated.

38. The system of claim 36 or 37, wherein, The image generation instruction further comprises scene information corresponding to a user when the image generation instruction is triggered, and the scene information is used by the server to generate the plurality of images.

Citation Information

Patent Citations

  • Interface display method and electronic equipment

    CN114244953A