Wallpaper display method and device, electronic equipment and storage medium

By detecting wallpaper display events and generating a large number of wallpapers with the same foreground object characteristics but different backgrounds, the problem of low image correlation in the existing technology caused by inconsistency in interfaces is solved, and the interface consistency and user experience are improved.

CN119987914AActive Publication Date: 2025-05-13HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411818525.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-09-28
Filing Date
2024-09-27
Publication Date
2025-05-13
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

In the existing wallpaper management technology, the correlation between wallpaper images is low, resulting in inconsistent display of the interface at different moments, and may not necessarily conform to the user's aesthetic preferences, affecting the user's user experience.

Method used

By detecting wallpaper display events, generating and displaying a large number of wallpapers with the same foreground object characteristics but different backgrounds, ensuring the consistency of the interface display at different moments and improving the user experience.

Benefits of technology

It realizes that the wallpaper displayed on the interface at different moments has similar composition, which improves the consistency and user experience of the interface, and increases the fun of the wallpaper.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987914A_ABST
    Figure CN119987914A_ABST
Patent Text Reader

Abstract

The invention is applicable to the technical field of display, and provides a wallpaper display method and device, electronic equipment and a storage medium, the method comprises the following steps: displaying first wallpaper when a first wallpaper display event is detected, the first wallpaper comprising a first foreground object and a first background picture; second wallpaper is displayed when a second wallpaper display event is detected, the second wallpaper comprises a second foreground object and a second background picture, the features of the first foreground object and the second foreground object in the first feature dimension are the same, and the first background picture and the second background picture are different. According to the technical scheme provided by the invention, the foreground objects are kept to have the same features and different background pictures when the wallpaper is displayed each time, and the situation that the wallpaper difference is large after each time of conversion is avoided, so that the interface wallpaper interestingness can be improved while the consistency between the interfaces is improved, and the user experience is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202480002639.5, and the original application date is September 27, 2024. The entire contents of the original application entitled "A method, device, electronic device and storage medium for wallpaper display" are incorporated into this application by reference. Technical Field

[0002] The present application belongs to the field of display technology, and in particular, relates to a wallpaper display method, device, electronic device and storage medium. Background Art

[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 a long time every day. Therefore, how to improve the fun and aesthetics of electronic devices has become one of the key factors affecting the user experience. Users can set wallpapers for some interfaces on electronic devices according to their preferences, such as setting favorite wallpapers for the lock screen wallpaper interface, so that when the lock screen interface is turned on, they can view wallpapers that meet their personalized aesthetics.

[0004] In order to improve the fun of wallpapers, existing wallpaper management technologies can randomly switch the wallpapers set in the preset interface according to multiple wallpaper images stored in the gallery, thereby eliminating the need for users to manually switch the wallpapers in the interface and increasing the fun to a certain extent. However, the wallpaper images stored in the gallery have low correlation, which reduces the consistency of the interface display at different times; on the other hand, the wallpaper images stored in the gallery do not necessarily meet the user's aesthetic preferences, and the recommendation accuracy is low, which affects the user's experience. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for wallpaper display, which can solve the problem of existing wallpaper management technology that when the wallpaper of the interface is switched based on the wallpaper images in the gallery, the correlation between the wallpaper images is low, resulting in inconsistent interface display at different times.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying wallpaper, the method comprising:

[0007] Displaying a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first foreground object and a first background picture;

[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 screen, 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 screen is different from the second background screen. The first wallpaper and the second wallpaper are wallpapers generated based on the same preset image, so that the wallpapers displayed during different wallpaper display events have similar compositions, thereby improving the consistency of the interface.

[0009] The implementation of the embodiment of the present application has the following beneficial effects: the electronic device can display different wallpapers when responding to the wallpaper display event at different times, and the foreground objects of different wallpapers have the same characteristics in the first feature dimension, and while dynamically adjusting the wallpaper of the electronic device interface, the consistency between the interfaces at different times can be maintained. Compared with the existing wallpaper management methods, the wallpapers displayed at different times on the same interface in the embodiment of the present application do not affect the consistency of the interface, but can maintain the foreground objects in the wallpapers displayed at different times have the same characteristics in the first feature dimension, thereby ensuring that the wallpaper obtained each time is switched has similar foreground objects, avoiding large differences in the display effect of the interface after each change, and can also improve the fun of the interface wallpaper, thereby improving the user experience.

[0010] In a possible implementation manner 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 a possible implementation manner 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 a possible implementation manner of the first aspect, the third foreground object is a person or an animal in the preset image; and the facial image of the first foreground object and the facial image of the second foreground object are generated based on the facial image of the third foreground object.

[0013] In a possible implementation manner of the first aspect, the main form of the first foreground object and the main form of 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 a second feature dimension; and the second feature dimension is a feature dimension different from the first feature dimension.

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

[0016] In a possible implementation manner of the first aspect, the image style type of the first wallpaper is the same as the image style type of the second wallpaper, so that the wallpaper displayed each time has the same style, thereby improving the uniformity of display.

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

[0018] In a possible implementation manner of the first aspect, before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes:

[0019] Generate the first wallpaper according to the preset image and the first image style type;

[0020] Before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes:

[0021] The second wallpaper is generated according to the preset image and the first image style type, 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 a possible implementation manner of the first aspect, 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 include:

[0023] 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. Pre-generating wallpaper when setting wallpaper can improve the fluency of subsequent display.

[0024] In a possible implementation manner of the first aspect, after, in response to the 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, the method further includes:

[0025] If a scene change event is detected, generating a third wallpaper according to the scene information corresponding to the scene change event, the preset image and the first image style type;

[0026] When a third wallpaper display event is detected, the third wallpaper is displayed. When a scene change is detected, a wallpaper related to the scene can be generated in advance, thereby improving the relevance of the wallpaper to the scene when it is subsequently displayed.

[0027] In a possible implementation manner of the first aspect, generating the first wallpaper and the second wallpaper according to a preset image and the first image style type includes:

[0028] In response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type;

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

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

[0031] In response to the first wallpaper display event, the first wallpaper is generated according to 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 when the first wallpaper display event occurs. Acquiring the scene information only when the wallpaper display event is detected can improve the timeliness of the scene information, thereby improving the correlation between the displayed wallpaper and the scene.

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

[0033] In response to the second wallpaper display event, the second wallpaper is generated according to the preset image, the first image style type and the scene information corresponding to the second wallpaper display event, wherein the scene information corresponding to the second wallpaper display event is the scene information when the second wallpaper display event occurs.

[0034] In a possible implementation manner 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 a possible implementation manner of the first aspect, generating the first wallpaper according to the preset image and the image style type includes:

[0036] Determining a first feature according to the preset image;

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

[0038] In a possible implementation manner of the first aspect, the preset image includes 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 includes:

[0039] extracting a first facial feature of a third foreground object in the preset image as the first feature; or,

[0040] A second facial feature corresponding to the third foreground object contained in the preset image is obtained from a pre-trained face library, and the first feature is obtained according to the second facial feature and the first facial feature in the preset image.

[0041] In a possible implementation manner of the first aspect, the preset image includes 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 includes:

[0042] The first feature is determined according to skeletal posture information of a third foreground object in the preset image.

[0043] In a possible implementation manner of the first aspect, determining the first feature according to the skeletal posture 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 the depth information of the third foreground object in the preset image and the skeletal posture information. The contour information is obtained by processing the third foreground object in the preset image through an edge recognition algorithm. The depth information is obtained by processing the third foreground object in the preset image through a depth recognition algorithm.

[0045] In a possible implementation manner 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, sending an image generation instruction to a server, wherein the image generation instruction includes the preset image;

[0047] A plurality of images generated according to the preset image and sent by a server are received, and at least two images of the plurality of images are added to a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

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

[0049] In a possible implementation manner 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 a possible implementation manner of the first aspect, the image style type includes: at least one of a dopamine style, an ancient style, a retro style, a cartoon style, a light and shadow photography style, and an underwater style.

[0051] In a possible implementation manner of the first aspect, 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.

[0052] In a possible implementation manner 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 a possible implementation manner of the first aspect, the first wallpaper display event and the second wallpaper display event are specifically: a screen-on event or an incoming call event.

[0054] In a possible implementation of the first aspect, if the first wallpaper display event and the second wallpaper display event are screen-on events, 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 a possible implementation manner of the first aspect, if the first wallpaper display event and the second wallpaper display event are incoming call events, the preset image is a contact image corresponding to a contact of the incoming call event.

[0056] In a possible implementation manner of the first aspect, the first wallpaper display event is a first screen-on event triggered based on a click operation, and before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes:

[0057] Displaying a preset image in the screen-off display state;

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

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

[0060] In a possible implementation manner of the first aspect, before displaying a wallpaper switching animation when a first wallpaper display event is detected and displaying the first wallpaper when the wallpaper switching animation ends, the method further includes:

[0061] If the posture of the third foreground object in the preset image is different from the posture of the first foreground object, determining a posture animation parameter according to the posture of the third foreground object and the posture of the first foreground object;

[0062] A wallpaper switching animation is generated according to the posture animation parameters, thereby improving the smoothness of wallpaper display.

[0063] In a second aspect, an embodiment of the present application provides a wallpaper display device, including:

[0064] A first display unit, 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 picture;

[0065] A second display unit is used to display a second wallpaper when a second wallpaper display event is detected, wherein the second wallpaper includes 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, and the first background picture and the second background picture are different.

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

[0067] In a possible implementation manner 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 a possible implementation manner of the second aspect, the third foreground object is a person or an animal in the preset image; and the facial image of the first foreground object and the facial image of the second foreground object are generated based on the facial image of the third foreground object.

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

[0070] In a 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 a second feature dimension; and the second feature dimension is a feature dimension different from the first feature dimension.

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

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

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

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

[0075] A first wallpaper generating unit, configured to generate the first wallpaper according to a preset image and the first image style type;

[0076] The second wallpaper generating unit is used to generate the second wallpaper according to a preset image and the first image style type.

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

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

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

[0080] A scene triggering unit, configured to generate a third wallpaper according to scene information corresponding to the scene change event, the preset image and the first image style type 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 a possible implementation manner of the second aspect, the wallpaper generating unit includes:

[0083] A first display generating unit, 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 generating unit is configured to generate the second wallpaper according to the preset image and the first image style type in response to the second wallpaper display event.

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

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

[0087] In a possible implementation manner 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 a possible implementation manner of the second aspect, the wallpaper generating unit includes:

[0089] A first feature determining unit, configured to determine a first feature according to the preset image;

[0090] The first feature fusion unit is used to generate the first wallpaper according to the image style type and the first feature, wherein the first object of the generated first wallpaper has the first feature.

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

[0092] a face replacement unit, configured to extract a first facial feature of a third foreground object in the preset image as the first feature; or

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

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

[0095] The skeleton posture determination unit is used to determine the first feature according to the skeleton posture information of the third foreground object in the preset image.

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

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

[0098] An image generation instruction sending unit, 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] The image receiving unit is used to receive multiple images generated according to the preset image and sent by the server, and add at least two images of the multiple images to the wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

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

[0101] In a possible implementation manner 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 a possible implementation manner of the second aspect, the image style type includes: at least one of: dopamine style, ancient style, retro style, cartoon style, light and shadow photography style and underwater style.

[0103] In a possible implementation manner of the second aspect, 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.

[0104] In a possible implementation manner 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 a possible implementation manner of the second aspect, the first wallpaper display event and the second wallpaper display event are specifically: one of a screen-on event and an incoming call event.

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

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

[0108] In a possible implementation manner 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] A screen-off display unit, used for displaying a preset image in the screen-off display state;

[0110] The first display unit comprises:

[0111] The 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 according to the preset image and the first wallpaper.

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

[0113] a gesture animation parameter determining unit, configured to determine a gesture animation parameter according to the gesture of the third foreground object and the gesture of the first foreground object if the gesture of the third foreground object in the preset image is different from the gesture of the first foreground object;

[0114] The gesture animation generating unit is used to generate a wallpaper switching animation according to the gesture animation parameters.

[0115] In a third aspect, an embodiment of the present application provides a method for displaying wallpaper, the method comprising:

[0116] Displaying a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first object;

[0117] displaying a second wallpaper when a second wallpaper display event is detected, wherein the second wallpaper includes a second object;

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

[0119] In a first possible implementation manner 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 manner of the third aspect, in combination with the first possible implementation manner of the third aspect, the third object is a person or animal in the preset image, and the facial image of the first object and the facial image of the second object are generated based on the facial image of the third object.

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

[0122] In a fourth possible implementation manner of the third aspect, in combination with the second or third possible implementation manner 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 a first feature dimension.

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

[0124] In a sixth possible implementation manner of the third aspect, in combination with the fourth possible implementation manner 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 a second feature dimension; and the second feature dimension is a feature dimension different from the first feature dimension.

[0125] In a seventh possible implementation manner of the third aspect, in combination with the sixth possible implementation manner of the third aspect, the second feature dimension includes: at least one of a clothing dimension, a hairstyle dimension, and an expression dimension.

[0126] In an eighth possible implementation manner of the third aspect, the first object is a foreground object of the first wallpaper; the second object is a foreground object of the second wallpaper; and the background picture of the first wallpaper is different from the background picture of the second wallpaper.

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

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

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

[0130] In a twelfth possible implementation manner of the third aspect, in combination with the tenth possible implementation manner of the third aspect, before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes:

[0131] Generate the first wallpaper according to the preset image and the first image style type;

[0132] Before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes:

[0133] The second wallpaper is generated according to the preset image and the first image style type.

[0134] In a thirteenth possible implementation manner of the third aspect, in combination with the twelfth possible implementation manner of the third aspect, the generating the first wallpaper according to the preset image and the first image style type and the generating the second wallpaper according to the preset image and the first image style type include:

[0135] In response to an operation of setting the preset image as a 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 manner of the third aspect, in combination with the thirteenth possible implementation manner of the third aspect, after, in response to the 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, the method further includes:

[0137] If a scene change event is detected, generating a third wallpaper according to the scene information corresponding to the scene change event, the preset image and the first image style type;

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

[0139] In a fifteenth possible implementation manner of the third aspect, in combination with the twelfth possible implementation manner of the third aspect, generating the first wallpaper and the second wallpaper according to the preset image and the first image style type includes:

[0140] In response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type;

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

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

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

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

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

[0146] In an eighteenth possible implementation manner of the third aspect, in combination with any one of the twelfth to seventeenth possible implementation manners of the third aspect, generating the first wallpaper according to the preset image and the first image style type includes:

[0147] Determining a first feature according to the preset image;

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

[0149] In a nineteenth possible implementation manner of the third aspect, in combination with the eighteenth possible implementation manner of the third aspect, the third object is a person or an animal in the preset image, and determining the first feature according to the preset image includes:

[0150] extracting a first facial feature of a third object in the preset image as the first feature; or,

[0151] A second facial feature corresponding to the third object contained in the preset image is obtained from a pre-trained face library, and the first feature is obtained according to the second facial feature and the first facial feature in the preset image.

[0152] In a twentieth possible implementation manner of the third aspect, in combination with the eighteenth possible implementation manner of the third aspect, the third object is a person or an animal in the preset image, and determining the first feature according to the preset image includes:

[0153] The first feature is determined according to the skeletal posture information of the third object in the preset image.

[0154] In a twenty-first possible implementation manner of the third aspect, in combination with the twentieth possible implementation manner of the third aspect, determining the first feature according to the skeletal posture information of the third object in the preset image includes:

[0155] The first feature is determined according to at least one of the contour information and the depth information of the third object in the preset image and the skeleton posture information.

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

[0157] In response to a first user operation, sending an image generation instruction to a server, wherein the image generation instruction includes the preset image;

[0158] A plurality of images sent by a server are received, and at least two images of the plurality of images are added to a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

[0159] In the twenty-third possible implementation manner of the third aspect, in combination with the twenty-second possible implementation manner of the third aspect, the image generation indication also includes description information of the third object, and the description information of the third object is used by the server to determine the image style type corresponding to the multiple images to be generated.

[0160] In a twenty-fourth possible implementation manner of the third aspect, in combination with the twenty-second possible implementation manner of the third aspect, the image generation indication further includes scene information, and the scene information is used for the multiple images generated by the server.

[0161] In the twenty-fifth possible implementation manner of the third aspect, in combination with any possible implementation manner of the third 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.

[0162] In the twenty-sixth possible implementation manner of the third aspect, in combination with the twenty-fifth possible implementation manner 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 a twenty-seventh possible implementation manner of the third aspect, in combination with any possible implementation manner of the third aspect, the first wallpaper display event and the second wallpaper display event are specifically: one of a screen-on event and an incoming call event.

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

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

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

[0167] Displaying the preset image in the screen-off display state;

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

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

[0170] In a thirty-first possible implementation manner of the third aspect, in combination with the thirtieth possible implementation manner of the third aspect, before displaying a wallpaper switching animation when a first wallpaper display event is detected and displaying the first wallpaper when the wallpaper switching animation ends, the method further includes:

[0171] If the posture of the third object in the preset image is different from the posture of the first object, determining a posture animation parameter according to the posture of the third object and the posture of the first object;

[0172] A wallpaper switching animation is generated according to the posture animation parameters.

[0173] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a program stored in the memory, wherein when the processor executes the program, the method for displaying wallpaper described in any one of the first aspects above is implemented.

[0174] In a fifth aspect, an embodiment of the present application provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed by a processor, the method for displaying wallpaper described in any one of the first aspects above is implemented.

[0175] In a sixth aspect, an embodiment of the present application provides a program product, which, when executed on a device, enables the device to execute the wallpaper display method described in any one of the first aspects above.

[0176] In a seventh aspect, an embodiment of the present application provides a chip system, including a processor, wherein the processor is coupled to a memory, and the processor executes a program stored in the memory to implement a wallpaper display method as described in any one of the first aspects.

[0177] In an eighth aspect, an embodiment of the present application provides an image processing system, the system comprising an electronic device and a server;

[0178] The electronic device is used 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;

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

[0180] The electronic device is further used to receive multiple images sent by a server, and add at least two images of the multiple images to a wallpaper library, wherein 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 picture, and the second wallpaper includes 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, and the first background picture and the second background picture are different;

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

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

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

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

[0185] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0186] Figure 1 It is a structural schematic diagram of an electronic device provided by the present application;

[0187] Figure 2 is a software structure block diagram of the electronic device according to the embodiment of the present application;

[0188] Figure 3 This is a schematic diagram of the existing wallpaper switching;

[0189] Figure 4 This is a flowchart for implementing the setting phase in the wallpaper display method provided in one embodiment of the present application;

[0190] Figure 5 is a schematic diagram of setting image style types provided by an embodiment of the present application;

[0191] Figure 6 is a schematic diagram of an interface provided by an embodiment of the present application;

[0192] Figure 7 This is a schematic diagram of generating a new wallpaper when the foreground object is a portrait provided by an embodiment of the present application;

[0193] Figure 8 This is a schematic diagram of generating a new wallpaper when the foreground object is an animal provided by an embodiment of the present application;

[0194] Fig. 9 This is a schematic diagram of generating a new wallpaper when the foreground object is a plant provided by an embodiment of the present application;

[0195] Fig.10 is a schematic diagram of multiple different wallpapers generated according to an embodiment of the present application;

[0196] Fig.11 is a schematic diagram of generating a new wallpaper based on face replacement according to an embodiment of the present application;

[0197] Fig.12 This is a schematic diagram of generating a new wallpaper based on a face library provided by an embodiment of the present application;

[0198] Fig.13 is a schematic diagram of extracting the main morphological features of a foreground object provided by an embodiment of the present application;

[0199] Fig.14 This is a specific implementation flow chart of generating a wallpaper with a specified image style type provided by an embodiment of the present application;

[0200] Fig.15 This is a flowchart for implementing the display phase in the wallpaper display method provided in one embodiment of the present application;

[0201] Fig.16 is a schematic diagram of a screen lighting process triggered by a click operation provided by an embodiment of the present application;

[0202] Fig.17 is a schematic diagram of a folding state change of a foldable device provided by an embodiment of the present application;

[0203] Fig.18 is a schematic diagram of an incoming call interface provided by an embodiment of the present application;

[0204] Fig.19 is a schematic diagram of wallpaper switching based on background editing provided by an embodiment of the present application;

[0205] Fig. 20 is a display schematic diagram of a switching animation provided by an embodiment of the present application;

[0206] Fig.21 is a schematic diagram of a wallpaper switching animation according to an embodiment of the present application;

[0207] Fig. 22 This is a flowchart for implementing stylized editing of a foreground object and a background image at the same time, provided by an embodiment of the present application;

[0208] Fig.23 is a schematic diagram of generating a switching animation provided by an embodiment of the present application;

[0209] Fig.24 is a structural block diagram of a wallpaper display device provided in an embodiment of the present application;

[0210] Fig.25 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0211] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

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

[0213] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0214] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0215] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0216] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0217] The wallpaper display method provided in the embodiment of the present application can be applied to electronic devices such as mobile phones, tablet computers, augmented reality (AR) / virtual reality (VR) display devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. In particular, the wallpaper display method can be applied to electronic devices equipped with a display screen, or electronic devices with an external display screen, the display screen is provided with wallpaper, and the wallpaper of the display screen can be switched by the wallpaper display method to achieve the purpose of automatically updating the interface wallpaper. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.

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

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

[0220] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0221] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the electronic device can process the preset wallpaper of the interface through the GPU in the processor 110 to generate a new wallpaper.

[0222] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or is cyclically using. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. The memory may be used to store image data in a gallery, and the facial features of different objects are determined based on the image data in the gallery.

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

[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 a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0225] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0226] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0227] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. 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 the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0228] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0229] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a graphics processor that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. It should be noted that the GPU can control the interface displayed on the display screen 194 through the wallpaper display method provided in this embodiment, such as 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] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The 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, which are used to cache image data displayed on the display screen 194.

[0231] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. NPU can realize applications such as intelligent cognition of electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc. In this embodiment, a new wallpaper with a preset image style type can be generated by NPU.

[0232] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Similarly, the cross-device control method in the embodiment of the present application can manage the storage space in the external memory card.

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

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

[0235] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. For example, the electronic device can obtain the user's weight through the pressure sensor 180A. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction of creating a new short 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 lit.

[0236] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes. In this embodiment, the electronic device can collect the user's motion posture during the movement through the gyro sensor 180B, thereby generating corresponding motion data, which can be used to generate image style information.

[0237] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist 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 leather case. 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

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

[0240] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0241] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a 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 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0242] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived 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 cooperate with the proximity light 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 use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0244] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0245] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0246] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0247] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0248] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0249] Figure 2 It is a software structure block diagram of the electronic device of the embodiment of the present application.

[0250] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system layer of the Android runtime (Android runtime), 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 camera, calendar, map, WLAN, Bluetooth, music, video, short message, mailbox, WeChat, WPS and other applications. In this embodiment, the application package may also include the wallpaper management application provided in the embodiment of the present application, and the wallpaper in the interface is switched through the wallpaper management application.

[0253] The application framework layer provides an application programming interface (API) and a programming framework for the 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, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0255] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0256] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

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

[0258] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0259] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0260] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0261] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

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

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

[0264] The system layer may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0265] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0266] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

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

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

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

[0270] The following is an example of the workflow of the software and hardware of the electronic device 100 in conjunction with the scene of switching the wallpaper of the lock screen interface when the screen is turned on.

[0271] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. The touch operation is a touch single-click operation, which is used to light up the display screen 194. The display screen 194 is started by the display driver, and when the screen light event is detected, the corresponding event trigger instruction is sent to the wallpaper management program through the interface of the application framework layer, so that a new wallpaper is set for the screen light interface through the wallpaper management program, and the lock screen interface replaced with the new wallpaper is displayed through the display screen 194.

[0272] With the continuous development of electronic device technology, the application of electronic devices has spread to all aspects of users' daily life and work. Users need to use electronic devices for a long time. Therefore, the aesthetics and fun of the electronic device interface have become the focus of users. Users can set wallpapers for some interfaces of electronic devices according to their preferences, such as wallpapers for the lock screen interface, wallpapers for the main interface, and wallpapers for the interaction interface between different contacts in the chat application. By setting corresponding wallpapers for different interfaces, the aesthetics of the interface can be improved, thereby improving the user experience.

[0273] Existing wallpaper management technology can update the interface by randomly switching wallpapers to increase the fun of wallpapers while maintaining the aesthetics of the interface, thereby avoiding the wallpaper of the same interface remaining unchanged for a long time and causing aesthetic fatigue to users. Randomly switched wallpapers are generally stored in the gallery of electronic devices. For example, Figure 3 A schematic diagram showing the existing wallpaper switching is shown. Figure 3 As shown in (a), the interface is a lock screen interface, and the wallpaper in the lock screen interface is a landscape image; when a specific switching condition is met, for example, the maintenance time of the wallpaper is greater than a preset time threshold, the wallpaper can be switched to another image, such as a character image, such as Figure 3 As shown in (b) in the figure, the purpose of automatically switching the interface wallpaper is achieved. However, although the above method can achieve the purpose of automatically switching the interface wallpaper, the structural difference of the foreground object between the wallpapers randomly switched each time is large, such as Figure 3 (a) and Figure 3 As shown in (b) in the figure, the overall look and feel of the entire interface varies greatly, reducing the consistency of the interface at different times, affecting the user's ability to quickly locate the required operation controls, and thus affecting the user's operation efficiency. In addition, since the wallpapers switched by the interface are randomly selected from the gallery, their beauty may not meet the user's aesthetic standards, thereby reducing the accuracy of wallpaper recommendations and affecting the user's experience.

[0274] Embodiment 1:

[0275] In order to solve the above-mentioned problems existing in the existing wallpaper management technology, an embodiment of the present application provides a wallpaper display method. Through the wallpaper display method provided by this embodiment, it can be ensured that the foreground object of the wallpaper displayed each time has the same characteristics in the first characteristic dimension, and the background picture is different each time. It can realize the dynamic change of the wallpaper displayed in the interface while taking into account the consistency of the foreground object in the interface, thereby improving the user experience when using the electronic device.

[0276] The wallpaper display method provided in the embodiment of the present application is applied to an electronic device, which is configured with at least one display screen, and can display an interface through the display screen, and the interface can be configured with wallpapers. Through the wallpaper display method provided in the embodiment of the present application, the interface can display different wallpapers at different times. The wallpaper display method provided in the embodiment of the present application can specifically include two stages, namely: a setting stage and a display stage.

[0277] Setup phase:

[0278] For example, Figure 4 FIG. 1 is a flowchart of the implementation of the setting phase in the wallpaper display method provided by an embodiment of the present application. Figure 4 As shown, the specific implementation process of the setting phase of the above wallpaper display method is described as follows:

[0279] In S401, the image style type of the new wallpaper for each change is set.

[0280] In this embodiment, in order to improve the consistency between the new wallpapers displayed in each interface, that is, the new wallpapers displayed at different times have the same theme, a corresponding image style type can be set. The image style type can be set by the user or by the system default, wherein the user can set the wallpaper in the theme application and / or wallpaper application installed on the electronic device.

[0281] In a possible implementation, the image style type may be set by a user. For example, Figure 5 FIG. 1 shows a schematic diagram of setting image style types provided by an embodiment of the present application. Figure 5 As shown in (a) of FIG. 1 , the main interface of the electronic device displays icons of multiple installed applications, including an icon 51 of a wallpaper management application. The user can click the icon 51 to enter the wallpaper management setting interface, such as Figure 5 As shown in (b) in the figure. The wallpaper management setting interface includes a setting item 52 for applying an interface for automatically switching wallpapers. For example, the lock screen interface, caller ID interface, etc. can be added as interfaces for applying automatic switching wallpapers. Of course, if more interfaces need to be added, click Add More Controls 53 to add more interfaces for automatically switching wallpapers. The wallpaper management setting interface also includes a setting item 54 for image style types. Multiple candidate image style types are displayed in the setting item, such as dopamine style, ancient style, retro style, underwater style, sports style, cartoon style, light and shadow photo style, etc. Users can select an image style type from multiple image style types. In some implementation scenarios, two or more image style types can also be selected.

[0282] If it is necessary to expand the image style types displayed in the setting item 54 of the above-mentioned image style type, the image style types supported for editing by the electronic device can be expanded by clicking on the more controls 55 and 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, and 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, and the electronic device can generate an image with a corresponding image style based on the received style editing algorithm.

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

[0284] In this embodiment, the preset image may be an image selected by a user, or an image that is recomposed based on the selected image.

[0285] In some implementations, the electronic device may perform a secondary composition on the image selected by the user according to a preset second constraint. When the target image selected by the user does not satisfy the aforementioned second constraint, the image selected by the user may be secondary composed to obtain the aforementioned preset image; when the target image selected by the user satisfies the aforementioned second constraint, secondary composition may not be performed, that is, the preset image is the image selected by the user.

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

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

[0288] The area ratio of the key part of the foreground object in the image is within a preset ratio range, wherein the key part may be the face of the foreground object;

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

[0290] The key part of the foreground object in the image is on the axis of the image;

[0291] A designated portion of the foreground object is not visible in the image, wherein the designated portion may be a hand of the foreground object.

[0292] In this embodiment, different interfaces of the electronic device may be configured with corresponding wallpapers, i.e., preset images. The preset images generally include a foreground object (i.e., the subject in the wallpaper) and a background image. For example, Figure 6 FIG. 1 is a schematic diagram of an interface provided by an embodiment of the present application. Figure 6As shown, the interface is a lock screen interface, which includes a time control 61, a customized quick control, and a preset image 62 set as the interface wallpaper. A portrait 621 is displayed in the preset image 62, which is the foreground object of the wallpaper image, and a corresponding background image 622, such as a basketball stand. The electronic device can set different preset images in the gallery as wallpapers for different interfaces. The preset image can be selected and determined by the user, or determined by the electronic device according to the default setting method.

[0293] It should be noted that some interfaces may not be preset with a fixed wallpaper image, but when the corresponding event is triggered, the corresponding wallpaper image is set for the interface in real time based on the event content of the triggering event. For example, in the interface of the incoming call reminder and the interface of the video call, when responding to a call request, the contact image associated with the requesting party of the call request can be used as the wallpaper image of the incoming call reminder interface and the video call interface. The above setting operation is specifically to set a contact image for the contact, and the above preset image is the contact image. In the prior art, when the same contact initiates a call request at different times, the same contact image is displayed in the incoming call reminder interface and the video call interface displayed by the electronic device, which is less interesting. Therefore, in this embodiment, the wallpaper of the interface set based on the contact image can also be switched to maintain the consistency of the interface while improving the interest of the interface.

[0294] In some implementations, the image style type can be determined by S401 or by a preset image. After the user sets the preset image, the image style type corresponding to the subsequent wallpaper generation can be determined according to the foreground object in the preset image.

[0295] In some implementations, the image style type may be determined based on description information of a foreground object in a preset image. The description 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 description information may include two characteristic parameters, "young" and "female", and then the image style type that matches the foreground object may be determined based on the description information, such as dopamine style or ancient style.

[0296] In some implementations, the description information may be determined by an electronic device performing object recognition on a preset image, or may be obtained by adjusting a recognition result obtained by a user after recognizing a preset image, or may be manually set by a user. The specific method of obtaining the information may be determined based on actual conditions and is not limited here.

[0297] In some implementations, the image style type applied when stylizing the 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 there are multiple image style types determined in S401, including dopamine style and mechanical style, and the foreground object of the preset image is a woman, and the woman does not match the mechanical style, then when stylizing the preset image, the dopamine style can be selected as the image style type applied this time.

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

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

[0300] In a possible implementation, when the first wallpaper and the second wallpaper are generated on an electronic device, after S402, the method further includes:

[0301] In S403, in response to the operation of setting the preset image as the wallpaper, a first wallpaper and a second wallpaper are generated according to 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. The first feature and the second feature 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, the wallpaper generated based on the preset image includes a first wallpaper, a second wallpaper, a third wallpaper and a fourth wallpaper, wherein the first wallpaper and the second wallpaper are generated based on the same image style type, such as the first image style type, and the third wallpaper and the fourth wallpaper are generated based on another image style type, such as the second image style type.

[0302] In this embodiment, after completing the setting operation of the interface wallpaper, the electronic device can generate multiple wallpapers for subsequent use based on the preset image set as the interface wallpaper, so that when a wallpaper display event is detected later, one of the pre-generated wallpapers is selected for display, without waiting for the electronic device to generate the wallpaper before displaying it, thereby improving display fluency. The generated multiple wallpapers include the first wallpaper and the second wallpaper.

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

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

[0305] In this embodiment, when the user initiates a wallpaper setting operation on the electronic device, an image generation instruction can be sent to the server, so that the server can generate multiple images based on the preset image, reducing the computing pressure of the electronic device.

[0306] In some implementations, the server may be a server corresponding to an application that implements a wallpaper generation function, such as a 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 description information of the third foreground object, and the description information of the third foreground object is used by the server to determine the image style type corresponding to the generated multiple images. The electronic device can determine the description information of the third foreground object in the preset image, add it to the above-mentioned image generation instruction, and send the image generation instruction carrying the preset image and the description information to the server.

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

[0309] Step 2: The server generates multiple images based on a preset image and an image style type, where the multiple images include a first wallpaper and a second wallpaper.

[0310] In this embodiment, the image style type may be determined by the server. For example, the server determines the image style type matching the third foreground object based on the third foreground object of the preset object. Alternatively, the image generation instruction may further include the image style type, and the server may determine the image style type based on the image style type in the image generation instruction.

[0311] In some implementations, if the image generation instruction also includes description information, the above-mentioned image style type can be determined according to the description 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. The specific implementation process can be found in the relevant description in part 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 images of the multiple images to a wallpaper library, where the at least two images include a first wallpaper and a second wallpaper.

[0314] In a specific implementation, the multiple images may all be added to the wallpaper library, or the images selected by the user may be added to the wallpaper library.

[0315] In an embodiment of the present application, generating multiple images corresponding to a preset image through a server can reduce the computing pressure on the electronic device, and the server has higher computing power, which can also increase the speed of image generation, thereby reducing the user's waiting time and improving the user's experience.

[0316] In a possible implementation, the number of the multiple wallpapers generated may be 10, or other values, which may be determined according to settings.

[0317] In a possible implementation, the electronic device may determine the number of the multiple wallpapers according to the frequency of the wallpaper display event initiated by the user. For example, if the user turns on the screen more frequently, the number of the multiple wallpapers is greater; conversely, if the user turns on the screen less frequently, the number of the multiple wallpapers is smaller.

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

[0319] In some implementations, the third object may be at least one of a person, an animal, a plant, a mountain, and a stream.

[0320] For example, the preset image is an image taken by user A on Mount Huashan. After the preset image is processed based on the preset image style type (such as the image style type of the four seasons rotation type), 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 Huashan, where flowers are blooming on Mount Huashan, matching the above-mentioned spring theme; the second wallpaper also has the same composition as the preset image and also includes user A and Mount Huashan, where Mount Huashan is covered with snow, matching the winter theme.

[0321] In some implementations, the first wallpaper includes a first foreground object, and the second wallpaper includes a second foreground object, and the first foreground object and the second foreground object 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 in a preset image, and generate a background picture and features of the foreground object in other feature dimensions except the first feature dimension according to the image style type, and then fuse the generated background picture, the features of the generated foreground object in other feature dimensions, and the extracted features of the first feature dimension to generate a new wallpaper.

[0323] In this embodiment, in order to generate consistency between multiple new wallpapers, there will be a strongly associated 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 feature in the first feature dimension, that is, the first feature of the first foreground object is the same as the second feature of the second foreground object.

[0324] In a possible implementation, the foreground object may be any one of a person, an animal, and a plant. Figures 7 to 10 A schematic diagram showing the editing of different foreground objects in the present application is shown.

[0325] Figure 7 A schematic diagram of generating a new wallpaper when the foreground object is a portrait provided by an embodiment of the present application is shown. Figure 7 As shown, the foreground object in the preset image (i.e., image 71) is a portrait. The new wallpapers generated according to the preset image and image style type, i.e., image 72 and image 73, can change the hairstyle and clothing of the portrait, and the foreground objects in all the new wallpapers obtained belong to the same entity person, for example, they are all images containing Zhang San, that is, the person in image 72 and image 73 is Zhang San, with the same characteristics. In addition, when generating image 72 and image 73, the facial makeup of the portrait can also be changed, such as adding or changing the lipstick color, eye shadow, blush, etc. of the portrait.

[0326] Figure 8 A schematic diagram of generating a new wallpaper when the foreground object is an animal provided by an embodiment of the present application is shown. Figure 8 As shown, the foreground object in the preset image (i.e., image 81) is a rabbit. The new wallpapers generated according to the preset image and the image style type, i.e., image 82 and image 83, can add clothes for the rabbit, and the colors of the rabbit's clothes can be different between the generated wallpapers, for example, the clothes in image 82 are black, and the clothes in image 83 are gray. Optionally, the animals between the generated wallpapers belong to the same animal, that is, if the rabbit in image 81 is Zhang San's rabbit, then the rabbits in image 82 and image 83 generated based on image 81 are all Zhang San's rabbits and have the same characteristics.

[0327] Fig. 9 A schematic diagram of generating a new wallpaper when the foreground object is a plant provided by an embodiment of the present application is shown. Fig. 9As shown, the foreground object in the preset image (i.e., image 91) is a chrysanthemum. The new wallpapers generated according to the preset image and image style type, i.e., image 92 and image 93, can change the material of the chrysanthemum into a crystal-style material, but the colors may be different, that is, the varieties and forms of the plants in the different generated wallpapers are the same, and have the same main morphological characteristics.

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

[0329] In order to better illustrate the relationship between each generated wallpaper and image style type, Fig.10 FIG. 1 shows a schematic diagram of multiple different wallpapers generated according to an embodiment of the present application. Fig.10 As shown, the interface is a lock screen interface, which includes a preset image set by the user. The image style type preset by the user is a sports style type. Then, according to the preset image and the image style type, the new wallpapers generated are all sports-related images, such as Fig.10 As shown in (a) of FIG. 1 , the user wears a basketball jersey and holds a basketball; and Fig.10 As shown in (b) in FIG. 1 , the user wears a badminton shirt and holds a badminton racket; and Fig.10 As shown in (c) in the figure, the user is wearing swimming trunks, and the multiple wallpapers generated all correspond to a sports theme, but the corresponding sports types are different. If the scene information (such as the user's location information) 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 in a swimming pool, then wallpapers related to the scene can be generated. Fig.10 If the user is on the basketball court, then Fig.10 Wallpaper in (a).

[0330] In this embodiment, generating the first wallpaper and the second wallpaper according to the preset image and the image style type specifically includes: determining the first feature according to the preset image; and generating the first wallpaper according to 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 according to a preset image, that is, the electronic device uses the features of the foreground object in the first feature dimension in the preset image as the features of the foreground object in the first feature dimension of the subsequently generated new wallpaper, such as the first feature of the first wallpaper and the second feature of the second wallpaper. Since the features of the first feature dimension of the different generated wallpapers are all derived from the same image (i.e., the preset image), it can be ensured that the features of the first feature dimension of the different generated wallpapers are the same.

[0332] In a possible implementation, the first feature dimension may be a facial feature dimension (such as a human face feature dimension). The features of the facial feature dimension may include features for characterizing face shape, distance between eyes, mouth size, and / or facial features proportions.

[0333] The same features can be specifically reflected by the similarity of the feature vectors describing the features satisfying the similarity condition. Taking the same 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 meet the similarity condition (such as the Euclidean distance between the two is less than a threshold), facial feature a and facial feature b are considered to be the same. Among them, since the first foreground object and the second foreground object are both generated based on the third foreground object of the preset image, the feature vector of facial feature a and the feature vector of facial feature c in the preset image also meet the above similarity condition. Similarly, the feature vector of facial feature b and the feature vector of facial feature c in the preset image also meet the above similarity condition.

[0334] In an embodiment of the present application, in the process of generating wallpapers (such as the first wallpaper and the second wallpaper) based on a preset image, the similarity between the feature vector of the feature (such as a facial feature) 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 then the feature of different wallpapers generated based on the same preset image is the same.

[0335] Take the foreground object as a portrait as an example, that is, the facial features of the foreground objects in the generated multiple different wallpapers are the same, and the facial features of the foreground objects in the generated wallpapers and the facial features of the foreground objects in the preset image need to correspond to the same entity person. In some implementations, in order to make the first wallpaper and the second wallpaper have the same facial features, when generating the first wallpaper and the second wallpaper, the facial image of the third foreground object in the preset image can be extracted, and the facial image is used as the facial image of the first wallpaper and the second wallpaper, so that the facial features of the first foreground object in the first wallpaper are the same as the facial features of the third foreground object in the preset image, and the facial features of the second foreground object in the second wallpaper are the same as the facial features of the third foreground object in the preset image. In some implementations, in order to make the first wallpaper and the second wallpaper have the same facial features, when generating the first wallpaper and the second wallpaper, the facial features of the third foreground object in the preset image can also be extracted, and based on the feature vector of the facial features of the third foreground object, the facial image of the first foreground object in the first wallpaper and the facial image of the second foreground object in the second wallpaper are generated, so that the first wallpaper and the second wallpaper have the same facial features.

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

[0337] Method 1: Face replacement. In the case of 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 in the generated wallpaper (i.e., the first foreground object of the first foreground object or the second foreground object of the second foreground object).

[0338] For example, Fig.11 FIG. 1 is a schematic diagram showing a method of generating a new wallpaper based on face replacement according to an embodiment of the present application. Fig.11 As shown in (a) in FIG. 1 , it is a preset image before style editing, and the preset image includes a facial feature 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 body of the foreground object. Therefore, the facial feature 111 in the preset image can be directly used as the facial feature of the foreground object in the new wallpaper, such as Fig.11 In (b), the facial feature 112 is obtained, thereby ensuring the consistency of the facial features between the two images.

[0339] Method 2: Obtain facial features based on a pre-trained face library. When using method 2, the electronic device can generate a face library based on stored local images. The electronic device will calculate the similarity between facial features in different local images, identify facial features corresponding to multiple local images whose similarity is greater than a preset similarity threshold as belonging to the same object, and generate second facial features corresponding to the object based on the facial features of multiple local images belonging to the same object. When the electronic device generates a new wallpaper based on a preset image and an image style type, it can determine whether the second facial features of the foreground object in the preset image are stored in the face library. If the second facial features of the foreground object are stored, the facial features that match the main morphology of the foreground object in the new wallpaper can be determined based on the second facial features and the first facial features of the foreground object in the preset image (used to determine the facial posture and angle). When a foreground object in a new wallpaper (such as the first foreground object or the second foreground object) is generated, the main form of the foreground object in the new wallpaper may be different from the main form of the foreground object in the preset image. For example, when the hairstyle is changed, the visible area of ​​the face will change. At this time, if the facial features are simply replaced, it will not be possible to match the hairstyle of the foreground object in the new wallpaper. At this time, the facial features in the new wallpaper can be adaptively determined based on the second facial features of the foreground object in the face library.

[0340] For example, Fig.12FIG. 1 is a schematic diagram showing a method of generating a new wallpaper based on a face database according to an embodiment of the present application. Fig.12 As shown in (a) in FIG. 1 , the electronic device stores multiple local images of user A in the photo album, such as images 1 to 3, and images 1 to 3 all contain the facial features of user A. Then, the electronic device can obtain the second facial features of user A through big data pre-training and store them in the face database. In the lock screen interface of the electronic device, image 121 of user A is set as wallpaper, such as Fig.12 As shown in (b) in the figure. Since user A in image 121 has long hair, the area of ​​user A's ears and part of the facial contour are blocked. If user A's hairstyle needs to be edited when generating a new wallpaper, it may be necessary to supplement the area of ​​the ears and the missing facial contour. At this time, the electronic device obtains the second facial feature of user A from the face library, obtains the features of the area of ​​the ears and the missing facial contour, and based on the supplemented facial contour, the features of the area of ​​the ears and the facial features of user A in image 121, the facial features in the generated new wallpaper can be supplemented as follows: Fig.12 The facial features shown in image 122 in (c).

[0341] In an embodiment of the present application, when the electronic device generates a facial area in a new wallpaper, it adopts direct replacement of facial features or generation of facial features based on a face library, which can be determined according to actual conditions, thereby improving the flexibility of determining facial features in wallpaper generation.

[0342] In a specific implementation, feature vectors can be extracted based on image data of the face area of ​​a preset image, and then wallpaper can be generated based on the extracted feature vectors. Specifically, an image encoder based on a CLIP model (Contrastive Language-Image Pre-Training) can be used to extract feature vectors, and then the extracted feature vectors can be input into a Stable Diffusion model to generate a new image as wallpaper.

[0343] In a possible implementation, the first feature dimension may include a subject morphology dimension, and the corresponding first feature and second feature are subject morphology features, that is, the subject morphology corresponding to the foreground objects between the generated new wallpapers is the same. The subject morphology features of the foreground objects in the new wallpapers are determined based on the subject morphology features of the foreground objects in the preset image. Exemplarily, if the foreground object is a portrait, the portrait is in a standing state in the preset image, and the portrait is also in a standing state in all the generated new wallpapers; if the portrait is in a sitting position in the preset image, the portrait is also in a sitting position 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 new wallpapers generated; if the flower is in a state to be opened (i.e., a bud state) in the preset image, then the flower will also be in a state to be opened (i.e., the same is in a bud state) in all the new wallpapers generated.

[0345] In this embodiment, in order to identify the main form of the foreground image in the preset image, the electronic device can process the preset image through a preset object subject recognition algorithm, so as to obtain the main form features of the third foreground in the preset image in the main form dimension, and use the main form features 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 above-mentioned main form features are specifically: the posture corresponding to each key node of the foreground object (i.e., including two dimensions of position and posture), for example, the 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, the position and posture of the torso, etc. The object subject recognition algorithm can constitute the above-mentioned main form features by marking the positions corresponding to each key point of the foreground object in the preset image and the corresponding posture angles in the preset image.

[0346] In a possible implementation, the above-mentioned determination of the main morphological features of the foreground object in the preset image may specifically include the following four steps:

[0347] Step 1: Extract the skeleton posture information of the third foreground object in the preset image through the skeleton recognition algorithm.

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

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

[0350] Step 4: Obtain the main morphological features of the foreground object in the preset image according to the skeletal posture information, the contour information and the depth information. It should be noted that when generating the main morphological features, it can be generated according to at least one of the contour information and the depth information and the skeletal posture information, that is, the skeletal posture information is necessary information, and the other two information can be selected according to the actual situation.

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

[0352] For example, Fig.13 FIG. 1 is a schematic diagram showing a method for extracting the main morphological features of a foreground object provided by an embodiment of the present application. Fig.13 As shown, the electronic device can import the preset image into the above three algorithms respectively to obtain the skeleton posture information, contour information and depth information of the preset image respectively, wherein the skeleton posture information can be represented by a key node graph, that is, Fig.13 As shown in (a) in ; the contour information can be represented by the contour map, that is, Fig.13 As shown in (b) in ; the depth information can be represented by a depth map, such as Fig.13 As shown in (c) in the figure. The electronic device can configure corresponding weight values ​​for different information according to the contribution of different information to the main morphology, so as to fuse the features of the above three types of information to obtain the main morphology features. Exemplarily, the weight value of the above key node graph is 1, the weight value of the contour graph is 0.2, and the weight value of the depth graph is 0.5. The weight values ​​of different specific information can be set according to actual conditions and are not limited here.

[0353] In this embodiment, when the electronic device generates a new wallpaper according to a preset image and an image style type, it will retain the features of the preset image in the first feature dimension, and generate features of other changeable feature dimensions except the first feature dimension, that is, generate features of the second feature dimension (for ease of understanding later, the second feature dimension will be referred to as the changeable feature dimension) according to the image style type (such as the third feature in the first wallpaper and the fourth feature in the second wallpaper), thereby merging the features of the first feature dimension in the preset image with the features of the changeable feature dimension to generate a foreground object in the new wallpaper. Since the features of the first feature dimension in all new wallpapers are generated according to 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, and the features of the changeable feature dimension are generated according to the image style type, so that there is a certain degree of difference between each new wallpaper in the changeable feature dimension, which enables the image style of the new wallpaper to change with the change of the image style type, thereby achieving the purpose of dynamically adjusting the interface wallpaper.

[0354] It should be noted that the image style type is specifically used to limit an image style range. The same style range can include a variety of different colors, clothing, hairstyles, and optional expressions. When the electronic device generates a new wallpaper image, it can randomly select a combination from the above image style range to determine the characteristics of the foreground object in the new wallpaper in the changeable feature dimension. Therefore, although any two generated wallpapers have the same image style type, there are certain differences between them, which can increase the diversity of the generated wallpapers.

[0355] In a possible implementation, when generating new wallpapers (ie, first wallpapers and second wallpapers) according to preset images and image style types, scene information may also be considered, that is, generating new wallpapers according to preset images, image style types and scene information.

[0356] In this embodiment, the electronic device may also obtain scene information through the device's sensor to improve the relevance between the generated wallpaper and the scene where the user is located, thereby improving the accuracy of the recommended wallpaper.

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

[0358] In a possible implementation, the scene information includes at least one of: 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 may also be a wallpaper with bright tones or a daytime background. If the time information recorded in the scene information is the user's birthday, the generated wallpaper may 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 may be a wallpaper related to the beach or with a beach background. The degree of association between the specific scene information and the generated wallpaper may be set according to the needs of the user or according to the default setting of the electronic device.

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

[0360] In a possible implementation, the electronic device can set corresponding weighted weights for information of different dimensions in the scene information, so as to affect the degree of correlation between the scene information of different dimensions and the generated wallpaper. For example, if the generated wallpaper needs to have a high degree of correlation with the location, but a low degree of correlation with the weather, the numerical value of the weight value of the location information can be set to a larger value; and the numerical value of the weight value of the weather information can be set to a smaller value. Exemplarily, Table 1 shows a corresponding table of the weight contribution of scene information of different dimensions to the generated wallpaper provided by an embodiment of the present application. As shown in Table 1, the weight values ​​of time information and location information are both 0.4, that is, the above two scene dimensions have a greater impact on the content of the generated wallpaper; the weight value of weather information is 0.2, which means that the weather dimension has a smaller impact on the content of the generated wallpaper; and the weight value of motion state is 0, which means that the impact of motion state on the content of the generated wallpaper is not considered. The distribution of specific weight values ​​can be set according to user needs, or it can be automatically set according to system defaults, and the setting of weight values ​​is not limited here.

[0361] Scene Dimension Time Information Location Information Weather Information Movement status Weight value 0.4 0.4 0.2 0

[0362] Table 1

[0363] In a possible implementation, if a scene change event is detected, a new wallpaper is generated based on the scene information, preset image, and image style type corresponding to the scene change event. Since the scene in which the user is located has changed, the wallpaper pre-generated based on the original scene may have a low correlation with the scene in which the user is currently located. At this time, a new wallpaper needs to be regenerated. Therefore, a third wallpaper can be generated based on the scene information, preset image, and image style type after the scene change, so as to display a new wallpaper associated with the new scene in the new scene. For example, the user moves from a beach scene to a city scene. Since the wallpapers stored in the gallery are all based on the wallpapers generated by the user in the beach scene, they do not conform to the city scene in which the user is located. Therefore, the wallpapers in the gallery need to be updated. Therefore, multiple new wallpapers, that is, wallpapers that conform to the city scene, will be generated based on the city scene, the wallpapers pre-set in the interface, and the image style type, and will be displayed in the subsequent response to the wallpaper display event, which can improve the accuracy of the subsequent display of the wallpaper.

[0364] For example, Fig.14 The specific implementation flow chart of generating a wallpaper with a specified image style type provided by an embodiment of the present application is shown. Fig.14 As shown, when the first feature dimension includes a facial feature dimension and a subject shape dimension, the image stylization editing process may specifically include the following steps:

[0365] S1401: Determine a baseline editing model according to the image style type.

[0366] In this embodiment, the electronic device may store reference editing models corresponding to different image style types, and the reference editing models are used to determine the image style of the generated wallpaper, such as the above-mentioned dopamine style, sports style, and ancient style.

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

[0368] S1403: Generate features that can change feature dimensions based on the scene information and the above-mentioned baseline editing model.

[0369] In this embodiment, the electronic device can determine the image style range of the generated wallpaper according to the scene information, the preset image and the image style type. The image style range may include multiple dimensions, namely: foreground object description dimension, variable parameter dimension and image style type.

[0370] The foreground object description dimension may be obtained by performing image semantic analysis on the foreground object in a preset image, for example, determining the posture type, facial orientation, emotional state, etc. of the foreground object.

[0371] The changeable feature dimensions include, but are not limited to: clothing dimension, color dimension, expression dimension, etc., among which the scene information can make a certain contribution to the changeable feature dimensions. For example, the location information in the scene information can determine the clothing dimension in the changeable feature dimension, for example, some regions have corresponding ethnic costumes; weather environment information can also affect the color dimension and expression dimension, for example, the colors are brighter and the expressions are happier when the weather is clear; time information can affect the color dimension, for example, bright tones during the day and dark tones at night, etc.

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

[0373] S1404: Based on the facial feature dimension of the foreground object in image 141, the facial features are fused into image 142 to generate image 143.

[0374] In this embodiment, the electronic device can add the facial features associated with the foreground object to the generated image 142, so as to obtain a new wallpaper, that is, image 143. The method of obtaining the facial features can refer to the above description, which will not be repeated here.

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

[0376] In a possible implementation, the background image in the new wallpaper can be determined according to the scene information and the image style type. For example, the background image in the displayed wallpaper is determined according to the location information in the scene information. For example, if the user is in a snowy mountain, the background image may include a snowy mountain; if the user is on a beach, the background image may include a beach.

[0377] In this embodiment, a new wallpaper can be generated by fusing the generated foreground object with the generated background image, wherein the feature of the generated foreground object in the first feature dimension is determined according to the feature of the foreground object of the preset image in the first feature dimension.

[0378] In this embodiment, after completing the wallpaper settings of the image style type and interface, the electronic device can generate multiple new wallpapers, and can select one from the multiple pre-generated new wallpapers for display when a wallpaper display event is subsequently detected, so that different wallpapers can be displayed in response to wallpaper display events at different times, and the display process can be improved. Of course, in addition to being pre-generated, the above-mentioned new wallpaper can also be generated in real time, which will be described in detail in the subsequent content.

[0379] Display phase:

[0380] For example, Fig.15 FIG. 1 shows a flowchart of the implementation of the display phase in the wallpaper display method provided by an embodiment of the present application. Fig.15 As shown, the specific implementation process of the display phase of the above wallpaper display method is described as follows:

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

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

[0383] In this embodiment, when a wallpaper display event is detected, the electronic device may display an interface including the generated wallpaper on the corresponding display screen. For example, when the first wallpaper displays an event, the first wallpaper is displayed, and when the second wallpaper displays an event, the second wallpaper is displayed. The first wallpaper includes a first foreground object and a first background picture, the second wallpaper includes a second foreground object and a second background picture, 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 (such as the facial features in the facial feature dimension and the subject morphology features in the subject morphology dimension mentioned above), the first background picture and the second background picture are different, and the purpose of dynamically adjusting the interface wallpaper is achieved.

[0384] In a possible implementation, the first wallpaper and the second wallpaper may be generated based on a preset image and image style type when setting the wallpaper of the interface of the display screen. The specific generation process may refer to the above content and will not be described in detail 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 may be the same or different.

[0386] Exemplarily, the wallpaper display event can be specifically divided into at least the following three display scenarios:

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

[0388] In this embodiment, a corresponding wallpaper image, i.e., a preset image, is set in the lock screen interface of the electronic device. When the electronic device is in the screen-off state or the screen-off display state, if it is detected 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 and the lock screen interface can be displayed. For example, Fig.16 FIG. 1 is a schematic diagram showing a screen lighting process based on a click operation trigger provided by an embodiment of the present application. Fig.16 As shown in (a) of FIG. 1 , the display screen of the electronic device is in the off state, that is, no content is displayed and the interface is invisible. At this time, the user clicks on the display screen (for example, clicks on an area other than the fingerprint recognition area under the screen), and the electronic device detects the click operation initiated by the user, wakes up the display screen, and displays the lock screen interface on the display screen, such as Fig.16 As shown in (b) of FIG. 1 , the lock screen interface may display a wallpaper (preset image) set by the user, that is, image 161. If the electronic device supports screen-off display, when the electronic device is in the screen-off state, the corresponding screen-off display interface will be displayed on the display screen, such as Fig.16As shown in (c) in FIG. 1 , the screen-off display interface may display a clock widget 162 and may also display a wallpaper set by the user (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 screen that is in the screen-off display and display the corresponding lock screen interface, such as Fig.16 As shown in (d) in the figure, the wallpaper in the off-screen state (i.e., image 163) is the same as the wallpaper in the lock screen interface after the screen is turned on (i.e., image 164). In the prior art, the wallpaper image in the lock screen interface displayed each time the user turns on the screen is the same. For interfaces that do not support off-screen display, the image 161 displayed each time the screen is turned on is the same, or the pre-stored images in the gallery are randomly switched in sequence, resulting in inconsistent interfaces; for interfaces with off-screen display, the image 164 and image 163 displayed each time the screen is turned on are the same, and the same problem as above exists.

[0389] In order to solve the problem that the wallpaper switching of the lock screen interface cannot take into account both the consistency of the interface and the accuracy of the wallpaper recommendation when changing from the screen off to the screen on state, the electronic device can change the style of the wallpaper of the lock screen interface corresponding to the screen on trigger event, that is, the above-mentioned preset images can be image 161 and image 163.

[0390] In a possible implementation, the timing for generating a new wallpaper may be when the user turns on the screen, that is, when the electronic device detects a screen-on triggering event, the new wallpaper may be generated according to a preset image style type and a preset image set on the lock screen interface. Optionally, the electronic device may also obtain scene information corresponding to the screen-on triggering event, and generate a new wallpaper according to the preset image style type, scene information, and a preset image set on the lock screen interface.

[0391] Scenario 2: Screen light event triggered by folding state change

[0392] In this embodiment, the electronic device is a foldable device, and the electronic device includes at least two display screens, namely a foldable screen (hereinafter referred to as an inner screen) and a non-foldable screen (hereinafter referred to as an outer screen). Fig.17 FIG. 2 shows a schematic diagram of a folding state change of a foldable device provided by an embodiment of the present application. Fig.17 As shown in (a) of FIG. 1 , the foldable device is in a folded state. At this time, the inner screen is folded, so the inner screen does not display any content; the outer screen is in a visible state, which can be in one of the following states: the screen-off display state, the screen-off state, or the screen-on state. The specific display state can be determined according to the user's usage state. At this time, if the user opens the foldable device, the foldable device will switch from the folded state to the unfolded state, such as Fig.17When the foldable device is in the unfolded state, the inner screen can be in a state where the screen is off and the screen is on; correspondingly, the outer screen can be in a state where the screen is off, the screen is off, or the screen is on.

[0393] In this embodiment, when the folding state of the foldable device changes, at least one of the outer screen or the inner screen will be lit. For example, when changing from the folded state to the unfolded state, the inner screen can be lit, or the outer screen can be lit at the same time; and when changing from the unfolded state to the folded state, the outer screen can be lit. When the folding state of the foldable device changes, a corresponding interface can be displayed on the lit display screen, and a corresponding wallpaper image (i.e., a preset image) can be set in the interface. In the prior art, each time the interface of the display screen is lit, the wallpaper of the interface displayed is the same, thereby reducing the fun and diversity of the display interface.

[0394] In order to solve the problem that the wallpaper of the interface does not automatically change when the folding state changes, the embodiment of the present application can change the wallpaper of the interface of the display screen that is lit when the folding state change event is detected, that is, the above-mentioned preset image can be the wallpaper image in the interface of the display screen that is lit when the folding state changes, such as Fig.17 Image 171 shown in (a) in FIG.

[0395] In a possible implementation, if the folding state is changed from the inner screen folding state to the inner screen unfolding state, the preset image may be a wallpaper image in the lock screen interface of the inner screen.

[0396] In a possible implementation, the timing for generating a new wallpaper may be when the folding state changes, that is, when the electronic device detects a screen-on event based on the folding state change, it may generate a new wallpaper according to a preset image style type and a wallpaper preset on the display screen. Optionally, the electronic device may also obtain scene information corresponding to the folding state change, and generate a new wallpaper (i.e., a first wallpaper and a second wallpaper) according to the preset image style type, scene information, and a wallpaper preset 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, a corresponding incoming call event will be generated. When the electronic device detects an incoming call event, it can generate a corresponding incoming call interface through the display screen so that the user can choose to answer the call or reject the call. For example, Fig.18 FIG. 1 is a schematic diagram of an incoming call interface provided by an embodiment of the present application. Fig.18As shown in (a) of FIG. 1 , the user can configure corresponding contact portraits for different contacts. For example, for friend A, an image containing the portrait of friend A can be selected from the gallery as the contact portrait associated with user A, i.e., image 181. The contact interface can also record the corresponding contact number of the contact. If an incoming call event initiated by the contact is received, the incoming call interface of the contact can be displayed on the display screen, such as Fig.18 As shown in (b) in FIG. 1 . Since friend A has set an associated contact portrait, in order to improve the visualization of the incoming call interface and quickly identify the caller, in addition to displaying the contact's name, the contact portrait corresponding to the contact can also be set as the wallpaper of the incoming call interface, that is, image 182. If the user does not actively change the contact portrait associated with the contact, each time friend A calls, the wallpaper in the incoming call interface of the electronic device is image 182, thereby reducing the fun and diversity of the display interface.

[0399] In order to solve the problem that the contact portrait does not change automatically in the incoming call interface, the embodiment of the present application can change the style of the contact portrait set in the incoming call interface, that is, the above-mentioned preset image can be the contact portrait corresponding to the contact in the incoming call prompt interface, that is, image 182.

[0400] In a possible implementation, the timing for generating a new wallpaper may be when a contact calls, that is, when the electronic device detects an incoming call event, it may generate a new wallpaper according to a preset image style type and a contact portrait of the contact set by the user. Optionally, the electronic device may also obtain scene information corresponding to the incoming call event, and generate a new wallpaper according to the preset image style type, scene information, and contact portrait.

[0401] In a possible implementation, the scene information may be scene information of the scene where the incoming caller is located, so that the generated wallpaper can reflect the scene where the contact is located, thereby improving the consistency between the foreground object of the generated wallpaper and the actual user.

[0402] The display stage can adopt one of two display modes: static display and dynamic display.

[0403] If the electronic device adopts static display, then when responding to the wallpaper display event, the wallpaper (such as the first wallpaper and the second wallpaper) is directly displayed. This method is applicable to the scenario where the display screen is in the screen-off state before responding to the wallpaper display event, such as the above-mentioned screen-on event triggered by the folding state change and the incoming call event; if the display screen is in the screen-off state, the above-mentioned screen-on event triggered by the click operation can also adopt the above-mentioned static display method.

[0404] If the electronic device adopts a dynamic display method, it can first display the corresponding wallpaper switching animation when responding to the wallpaper display event, and after the wallpaper switching animation is played, display the corresponding new wallpaper (such as the first wallpaper and the second wallpaper). Among them, the end frame of the wallpaper switching animation is the new wallpaper, which is the first wallpaper for the first wallpaper display event and the second wallpaper for the second wallpaper display event. This method is applicable to the case where the display screen of the electronic device is in the screen-off display 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, Fig.19 FIG. 1 is a schematic diagram showing wallpaper switching based on background editing provided by an embodiment of the present application. Fig.19 As shown in (a) in the figure, the electronic device is in the screen-off display state, and the lock screen interface uses image 191 as the wallpaper, and image 191 will be displayed on the display screen in the form of low brightness and low contrast. When the user clicks on the display screen, the display screen will be lit, and the electronic device will perform a stylized transformation on the background image in image 191. For example, if the user is currently located at a snowy mountain, the background can be switched to a snowy mountain, so that the switched image matches the user's location, thereby improving the relevance between the switched wallpaper and the user, and obtaining the following Fig.19 The lock screen interface shown in (b) in the figure, wherein the wallpaper in the lock screen interface is image 192, and the foreground object in image 192 is the same as the foreground object in image 191, thereby ensuring the consistency between the lock screen interfaces, and the background images between image 191 and image 192 have certain differences, and the style can be edited and changed according to the image style information, thereby improving the diversity of the interface. If the user is at the beach when clicking on the interface next time, the background image can be set to the beach.

[0406] Since there are differences in the background pictures between the preset image and the new wallpaper, in order to improve the smoothness of image transition, the electronic device can generate a corresponding switching animation. When responding to a wallpaper display event, the above-mentioned switching animation can be displayed in the interface corresponding to the display screen, thereby achieving a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, thereby improving the smoothness of image switching and further improving the user experience.

[0407] The switching animation may be a gradual switching animation, that is, the background image in the preset image exits the interface in a fade-out manner, and the background image of the new wallpaper appears on the interface in a fade-in manner. Fig. 20 FIG. 1 shows a schematic diagram of a display of a switching animation provided by an embodiment of the present application. Fig. 20As shown, image 191 gradually fades over time, while image 192 gradually becomes more obvious over time, thereby achieving the purpose of gradually changing the background image.

[0408] In one possible implementation, since there is a difference between the posture 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 may generate a corresponding switching animation based on the posture of the foreground object in the preset image and the posture of the foreground object in the new wallpaper (such as the first foreground object in the first wallpaper). When responding to a wallpaper display event, the above-mentioned switching animation may be displayed in an interface corresponding to the display screen, thereby achieving a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, thereby improving the smoothness of the image switching and thereby improving the user experience.

[0409] In a possible implementation, the switching animation may be a gradual switching animation, that is, the foreground object in the preset image exits the interface in a fade-out manner, and the foreground object in the new wallpaper appears on the interface in a fade-in manner. The implementation process of the gradual switching of the specific foreground object can refer to the implementation process of the gradual switching of the background image, which is limited here.

[0410] In one possible implementation, if the posture of the foreground object in the preset image is different from the posture of the foreground object of the new wallpaper (such as the first foreground object in the first wallpaper), such as the posture of the left hand changes, or the orientation of the torso changes, etc., in order to improve the smoothness of wallpaper switching, the electronic device can determine the posture animation parameters according to 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 according to the posture animation parameters, and play the above-mentioned wallpaper switching animation on the interface in response to the wallpaper display event, thereby achieving the purpose of switching from the preset image to the second image.

[0411] For example, Fig.21 FIG. 1 is a schematic diagram showing a wallpaper switching animation according to an embodiment of the present application. Fig.21 As shown in (a) in the figure, the interface is a screen-off display interface, and in the wallpaper image (i.e., the preset image) set in the screen-off display interface, the hand of the foreground object is in a vertically raised state. When the foreground object is stylized and the second image is obtained, the hand of the foreground object in the second image is in a state of being raised at an angle toward the upper left direction, and the postures of other parts remain unchanged. In this case, the electronic device obtains the posture animation parameters of the hand of the foreground object between the two images, such as the image coordinates corresponding to each key node of the hand in the two images. The corresponding wallpaper switching animation is generated according to the posture animation parameters to achieve a smooth transition from the vertically raised state to the raised state at an angle toward the upper left direction, as shown in FIG. Fig.21As shown in (b), the arm is swung as the wallpaper switching animation, thereby improving the aesthetics and smoothness of the wallpaper switching.

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

[0413] For example, Fig. 22 The following is a flowchart of implementing the stylized transformation of the foreground object and the background image at the same time provided by an embodiment of the present application. Specifically, it can be divided into the following stages:

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

[0415] Stage 1.2: Input the preset image into the preset image semantic recognition algorithm, 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] Stage 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] Stage 2: Importing feature 222 (i.e., the feature used to determine the first feature dimension that remains unchanged) into the image style editing model to generate a feature that can change the feature dimension.

[0418] Phase 3: In different wallpaper display events, multiple different types of new wallpapers can be generated based on the same preset image. Since the input of the generated image style editing model contains scene information and description information related to the foreground object in the preset image, it can achieve data fusion of the two dimensions of foreground object and scene information, so that the constructed image style editing model can more accurately generate multiple features that can change the feature dimensions, and retain a certain degree of randomness, so that the new wallpapers output at different times have a certain degree of randomness, and improve the diversity of the output image.

[0419] For example, Fig.23 FIG. 1 shows a schematic diagram of generating a switching animation provided by an embodiment of the present application. Fig.23As shown, the electronic device can input the preset image and the newly generated wallpaper into a preset animation parameter recognition model, and perform foreground subject detection, posture detection, and background shape detection respectively, so as to obtain the first animation parameter of the foreground object and the second animation parameter of the background picture according to the deviation between the two images in the above three dimensions.

[0420] For the first animation parameter of the foreground object, the posture change animation can be determined according to the animation mode corresponding to the image style type and the first animation parameter, thereby generating the foreground change animation of the foreground object. If the posture difference between the foreground object and the two images is small, the switching animation can be generated in a gradual manner. Otherwise, the posture change animation of the part with a large posture change can be generated.

[0421] Among them, for the second animation parameter of the background picture, the background gradient animation can be determined according to the animation mode corresponding to the image style type and the second animation parameter, so as to generate the background change animation of the background picture.

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

[0423] From the above, it can be seen that in a method for image processing provided by an embodiment of the present application, an electronic device can display different wallpapers when responding to a wallpaper display event at different times, and the foreground objects of different wallpapers have the same characteristics in the first feature dimension, so that the consistency between interfaces at different times can be maintained while dynamically adjusting the wallpaper of the electronic device interface. Compared with existing wallpaper management methods, in an embodiment of the present application, wallpapers displayed at different times on the same interface do not affect the consistency of the interface, but can maintain the foreground objects in the wallpapers displayed at different times to have the same characteristics in the first feature dimension, thereby ensuring that the wallpaper obtained each time is switched has similar foreground objects, avoiding large differences in the display effect of the interface after each change, and can also improve the fun of the interface wallpaper, thereby improving the user experience.

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

[0425] Reference Fig.24 , the wallpaper display device includes:

[0426] A first display unit 241, 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 picture;

[0427] The second display unit 242 is used to display the second wallpaper when a second wallpaper display event is detected, wherein the second wallpaper includes 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, and the first background picture and the second background picture are different.

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

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

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

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

[0432] Optionally, the device further comprises:

[0433] A first wallpaper generating unit, configured to generate the first wallpaper according to a preset image and the image style type;

[0434] The second wallpaper generating unit is used to generate the second wallpaper according to a preset image and the image style type.

[0435] Optionally, the device further comprises:

[0436] The wallpaper setting unit is used to generate the first wallpaper and the second wallpaper according to the preset image and the image style type in response to the operation of setting the preset image as the wallpaper.

[0437] Optionally, the device further comprises:

[0438] A scene triggering unit, configured to generate a third wallpaper according to 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 generating unit includes:

[0441] A first display generating unit, 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 generating 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 according to the preset image, the image style type and 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 according to the preset image, the image style type and 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, the preset image is a preset wallpaper set for the display screen.

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

[0448] Optionally, the wallpaper generating unit includes:

[0449] A first feature determining unit, configured to determine the first feature according to the preset image;

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

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

[0452] The face replacement unit is used to extract the first facial feature in the preset image as the first feature.

[0453] Optionally, if the first feature dimension is a face feature dimension, the first feature determining unit includes:

[0454] A face library extraction unit, used for acquiring a second facial feature corresponding to a third foreground object contained in the preset image from a pre-trained face library;

[0455] A facial feature generating unit is used to obtain the first feature according to the second facial feature and the first facial feature in the preset image.

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

[0457] The skeleton posture fusion unit is used to determine the first feature according to the skeleton posture information of the third foreground object in the preset image.

[0458] Optionally, the skeleton posture determination unit includes:

[0459] The related 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 skeleton posture information.

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

[0461] An off-screen display unit, which displays a preset image in an off-screen display state;

[0462] The first display unit comprises:

[0463] The 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 according to the preset image and the first wallpaper.

[0464] Optionally, the device further comprises:

[0465] a gesture animation parameter determining unit, configured to determine a gesture animation parameter according to the gesture of the third foreground object and the gesture of the first foreground object if the gesture of the third foreground object in the preset image is different from the gesture of the first foreground object;

[0466] The gesture animation generating unit is used to generate a wallpaper switching animation according to the gesture 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 a second feature dimension; and 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 a clothing dimension, a hairstyle dimension and an expression dimension.

[0469] Fig.25 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.25 As shown, the electronic device 25 of this embodiment includes: at least one processor 250 ( Fig.25 Only one processor is shown in the figure), 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 implements the steps in any of the above-mentioned wallpaper display method embodiments when executing the program 252.

[0470] The electronic device 25 may be a desktop computer, a notebook, a PDA, a cloud server, etc. The electronic device may include, but is not limited to, a processor 250 and a memory 251. Those skilled in the art will appreciate that Fig.25 It is only an example of the electronic device 25 and does not constitute a limitation of the electronic device 25. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output electronic devices, network access electronic devices, etc.

[0471] The processor 250 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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, etc.

[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 also be an external storage electronic device of the electronic device 25, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 25. Further, the memory 251 may also include both an internal storage unit of the electronic device 25 and an external storage electronic device. The memory 251 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the program. The memory 251 may also be used to temporarily store data that has been output or is to be output.

[0473] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0474] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0475] An embodiment of the present 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 implements the steps of any of the above-mentioned method embodiments when executing the computer program.

[0476] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0477] An embodiment of the present application provides a program product. When the program product is run on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the program product.

[0478] If the integrated unit is implemented in the form of 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, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0479] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0480] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for wallpaper display, characterized in that: include: Displaying a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first foreground object and a first background picture; The second wallpaper is displayed when a second wallpaper display event is detected, wherein the second wallpaper includes 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, and the first background picture and the second background picture are different.

2. The method according to claim 1, characterized in that The first feature dimension includes a facial feature dimension and / or a subject morphology dimension.

3. The method according to claim 2, characterized in that The first foreground object and the second foreground object are generated based on a third foreground object of the same preset image.

4. The method according to claim 3, characterized in that The third foreground object is a person or an animal in the preset image; the facial image of the first foreground object and the facial image of the second foreground object are generated based on the facial image of the third foreground object.

5. The method according to claim 3 or 4, characterized in that: The main body shape of the first foreground object and the main body shape of the second foreground object are determined based on the main body shape of the third foreground object.

6. The method according to any one of claims 1 to 5, characterized in that: 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 a second feature dimension; and the second feature dimension is a feature dimension different from the first feature dimension.

7. The method according to claim 6, characterized in that The second characteristic dimension includes at least one of a clothing dimension and a hairstyle dimension.

8. The method according to any one of claims 3 to 5, characterized in that: The image style type of the first wallpaper is the same as the image style type of the second wallpaper.

9. The method according to claim 8, characterized in that The first wallpaper and the second wallpaper are wallpapers of the same image style type generated according to the first image style type.

10. The method according to claim 9, characterized in that Before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes: generating the first wallpaper according to the preset image and the first image style type; Before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes: generating the second wallpaper according to the preset image and the first image style type.

11. The method according to claim 10, characterized in that The step of generating the first wallpaper according to the preset image and the image style type and the step of generating the second wallpaper according to the preset image and the first image style type includes: In response to an operation of setting the preset image as a wallpaper, the first wallpaper and the second wallpaper are generated according to the preset image and the first image style type.

12. The method according to claim 11, characterized in that After the first wallpaper and the second wallpaper are generated according to the preset image and the first image style type in response to the operation of setting the preset image as the wallpaper, the method further includes: If a scene change event is detected, generating a third wallpaper according to the scene information corresponding to the scene change event, the preset image and the first image style type; When a third wallpaper display event is detected, the third wallpaper is displayed.

13. The method according to claim 10, characterized in that The step of generating the first wallpaper and the second wallpaper according to the preset image and the first image style type includes: In response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type; In response to the second wallpaper display event, the second wallpaper is generated according to the preset image and the first image style type.

14. The method according to claim 13, characterized in that 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: In response to the first wallpaper display event, the first wallpaper is generated according to the preset image, the first image style type, and scene information corresponding to the first wallpaper display event.

15. The method according to claim 13 or 14, characterized in that 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: In response to the second wallpaper display event, the second wallpaper is generated according to the preset image, the first image style type, and scene information corresponding to the second wallpaper display event.

16. The method according to claim 10, characterized in that The step of generating the first wallpaper according to the preset image and the image style type includes: Determining a first feature according to the preset image; The first wallpaper is generated according to the image style type and the first feature, wherein the first object of the generated first wallpaper has the first feature.

17. The method according to claim 16, characterized in that The preset image includes 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 includes: extracting a first facial feature of a third foreground object in the preset image as the first feature; or, A second facial feature corresponding to the third foreground object contained in the preset image is obtained from a pre-trained face library, and the first feature is obtained according to the second facial feature and the first facial feature in the preset image.

18. The method according to claim 16, characterized in that The preset image includes 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 includes: The first feature is determined according to skeletal posture information of a third foreground object in the preset image.

19. The method according to claim 18, characterized in that The determining the first feature according to the skeleton posture information of the third foreground object in the preset image includes: The first feature is determined according to at least one of the contour information and the depth information of the third foreground object in the preset image and the skeleton posture information.

20. The method according to any one of claims 3 to 5, characterized in that: Before displaying the first wallpaper and the second wallpaper, the method further includes: In response to a first user operation, sending an image generation instruction to a server, wherein the image generation instruction includes the preset image; A plurality of images generated according to the preset image and sent by a server are received, and at least two images of the plurality of images are added to a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.

21. The method according to claim 20, characterized in that The image generation instruction further includes description information of the third foreground object, and the description information of the third foreground object is used by the server to determine image style types corresponding to the multiple images to be generated.

22. The method according to any one of claims 8 to 19 and 21, characterized in that: The image style types include: at least one of dopamine style, ancient style, retro style, cartoon style, light and shadow photography style and underwater style.

23. The method according to any one of claims 20 to 22, characterized in that: The image generation instruction also 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.

24. The method according to any one of claims 1 to 23, characterized in that 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.

25. The method according to claims 12, 14-15, 23-24, characterized in that The scene information includes at least one of time information, location information, weather information, motion status, and user status information.

26. The method according to any one of claims 1 to 25, characterized in that The first wallpaper display event and the second wallpaper display event are specifically: a screen-on event or an incoming call event.

27. The method according to claim 26, characterized in that The first wallpaper display event and the second wallpaper display event are screen-on events, and the preset image is a preset wallpaper set for the display screen.

28. The method according to claim 26, characterized in that The first wallpaper display event and the second wallpaper display event are incoming call events, and the preset image is a contact image corresponding to the contact of the incoming call event.

29. The method according to any one of claims 3 to 5, characterized in that: The first wallpaper display event is a first screen-on event, and before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes: Displaying the preset image in the screen-off display state; The displaying the first wallpaper when the first wallpaper display event is detected includes: switching from displaying the preset image to displaying the first wallpaper when the first screen-lighting event is detected.

30. The method according to claim 29, characterized in that The second wallpaper display event is a second screen-on event, and before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes: Displaying the preset image in the screen-off display state; The displaying the second wallpaper when the second wallpaper display event is detected includes: switching from displaying the preset image to displaying the second wallpaper when the second screen-lighting event is detected.

31. The method according to claim 29 or 30, characterized in that In the process of switching from displaying the preset image to displaying the first wallpaper, a wallpaper switching animation is displayed.

32. The method according to claim 31, characterized in that The wallpaper switching animation is displayed when a 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.

33. The method according to claim 31 or 32, characterized in that Before displaying the wallpaper switching animation, the method further includes: If the posture of the third foreground object in the preset image is different from the posture of the first foreground object, determining a posture animation parameter according to the posture of the third foreground object and the posture of the first foreground object; The wallpaper switching animation is generated according to the posture animation parameters.

34. The method according to any one of claims 29 to 33, characterized in that: The first screen-lighting event is a screen-lighting event triggered by a click operation.

35. An electronic device, characterized in that: 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 steps of the method according to any one of claims 1 to 34 when executing the program.

36. A readable storage medium storing a program, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 34 are implemented.

37. An image processing system, characterized in that: The system includes an electronic device and a server; The electronic device is used 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; The server is used 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 used to receive the multiple images sent by the server, and add at least two images of the multiple images to a wallpaper library, the at least two images include a first wallpaper and a second wallpaper, the first wallpaper includes a first foreground object and a first background picture, the second wallpaper includes 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, and the first background picture and the second background picture are different; 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.

38. The system according to claim 37, characterized in that The preset image includes a third foreground object, and the image generation instruction also includes description information of the third foreground object. The description information of the third foreground object is used by the server to determine image style types corresponding to the multiple images to be generated.

39. The system according to claim 37 or 38, characterized in that The image generation instruction also 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.

Citation Information

Patent Citations

  • Method and device for information reminding and electronic equipment

    CN109961272A

  • Interface display method and electronic equipment

    CN114244953A

  • Display control method and device of terminal equipment, chip and equipment

    CN115357317A

  • Dynamic wallpaper display method, electronic equipment and storage medium

    CN115390951A

  • Wallpaper display method and device, equipment, storage medium and program product

    CN115543159A