Wallpaper display method and apparatus, electronic device, and storage medium
By detecting wallpaper display events and generating wallpapers with the same foreground object characteristics but different background images, the problem of low image correlation in the existing technology resulting in inconsistent interfaces is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/122045
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-28
- Filing Date
- 2024-09-27
- Publication Date
- 2025-04-03
AI Technical Summary
In the existing wallpaper management technology, the correlation between wallpaper images is low, resulting in inconsistency in the interface display at different moments, and may not necessarily conform to the user's aesthetic preferences, affecting the user's user experience.
By detecting wallpaper display events, generate and display wallpapers with the same foreground object characteristics but different background images, ensuring the consistency of the interface display at different moments and improving the user experience.
It realizes consistency of interface display at different moments, improves the aesthetics and fun of the interface, and enhances the user experience.
Smart Images

Figure CN2024122045_03042025_PF_FP_ABST
Abstract
Description
Wallpaper display method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on September 28, 2023, with application number 202311294883.7 and application name “A method, device, electronic device and storage medium for wallpaper display”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application belongs to the field of display technology, and in particular relates to a method, device, electronic device and storage medium for wallpaper display. Background Art
[0003] With the continuous development of electronic device technology, electronic devices have become widely used in various scenarios in 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 certain interfaces on their electronic devices according to their preferences. For example, set a favorite wallpaper for the lock screen interface, so that when the lock screen is turned on, they can view the wallpaper that suits their personalized aesthetic.
[0004] To enhance the fun of wallpapers, existing wallpaper management technologies can randomly switch wallpapers in a preset interface based on multiple wallpaper images stored in a gallery. This eliminates the need for users to manually switch wallpapers in the interface and also increases the fun of the interface. However, the wallpaper images stored in this gallery have low correlation, which reduces the consistency of the interface display at different times. Furthermore, the wallpaper images stored in the gallery do not necessarily match the user's aesthetic preferences, resulting in low recommendation accuracy and a poor user experience.
[0005] Summary of the Invention
[0006] 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. When switching wallpapers on an interface based on wallpaper images in a gallery, the correlation between wallpaper images is low, resulting in inconsistent interface display at different times.
[0007] In a first aspect, an embodiment of the present application provides a method for displaying wallpaper, the method comprising:
[0008] 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;
[0009] When a second wallpaper display event is detected, a second wallpaper is displayed. The second wallpaper includes a second foreground object and a second background image. The first feature of the first foreground object is the same as the second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, and the first background image and the second background image are different. The first and second wallpapers are generated based on the same preset image, so that the wallpapers displayed for different wallpaper display events have similar compositions, thereby improving interface consistency.
[0010] The implementation of the embodiment of the present application has the following beneficial effects: the 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, which can maintain consistency between interfaces at different times while dynamically adjusting the wallpaper of the electronic device interface. Compared with 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 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 effects of the interface after each change, and can also improve the fun of the interface wallpaper, thereby improving the user experience.
[0011] 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 consistency of the wallpaper displayed each time.
[0012] 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.
[0013] In a possible implementation of the first aspect, the third foreground object is a person or 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.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] In a possible implementation 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 wallpapers displayed each time have the same style, thereby improving the uniformity of display.
[0018] 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.
[0019] In a possible implementation of the first aspect, before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes:
[0020] generating the first wallpaper according to a preset image and the first image style type;
[0021] Before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes:
[0022] 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.
[0023] In a possible implementation of the first aspect, generating the first wallpaper according to the preset image and the image style type and generating the second wallpaper according to the preset image and the first image style type include:
[0024] 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 smoothness of subsequent display.
[0025] In a possible implementation of the first aspect, after generating the first wallpaper and the second wallpaper according to the preset image and the first image style type in response to the operation of setting the preset image as the wallpaper, the method further includes:
[0026] 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;
[0027] 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 subsequent wallpaper display to the scene.
[0028] In a possible implementation of the first aspect, generating the first wallpaper and the second wallpaper according to a preset image and the first image style type includes:
[0029] In response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type;
[0030] In response to the second wallpaper display event, the second wallpaper is generated according to the preset image and the first image style type.
[0031] In a possible implementation 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:
[0032] In response to the first wallpaper display event, the first wallpaper is generated based on the preset image, the first image style type, and the scene information corresponding to the first wallpaper display event. The scene information corresponding to the first wallpaper display event is the scene information at the time the first wallpaper display event occurred. Acquiring scene information only when a wallpaper display event is detected can improve the timeliness of scene information and thereby enhance the relevance between the displayed wallpaper and the scene.
[0033] In a possible implementation 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:
[0034] 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, wherein the scene information corresponding to the second wallpaper display event is the scene information when the second wallpaper display event occurs.
[0035] 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.
[0036] In a possible implementation of the first aspect, generating the first wallpaper according to the preset image and the image style type includes:
[0037] Determining a first feature according to the preset image;
[0038] 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.
[0039] In a possible implementation of the first aspect, the preset image includes a third foreground object, where the third foreground object is a person or an animal. Determining the first feature based on the preset image includes:
[0040] extracting a first facial feature of a third foreground object in the preset image as the first feature; or,
[0041] 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.
[0042] In a possible implementation of the first aspect, the preset image includes a third foreground object, where the third foreground object is a person or an animal. Determining the first feature based on the preset image includes:
[0043] The first feature is determined according to skeletal posture information of a third foreground object in the preset image.
[0044] In a possible implementation of the first aspect, determining the first feature according to skeletal posture information of a third foreground object in the preset image includes:
[0045] The first feature is determined based on at least one of contour information and depth information of a 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 using an edge recognition algorithm. The depth information is obtained by processing the third foreground object in the preset image using a depth recognition algorithm.
[0046] In a possible implementation of the first aspect, before displaying the first wallpaper and the second wallpaper, the method further includes:
[0047] In response to a first user operation, sending an image generation instruction to a server, wherein the image generation instruction includes the preset image;
[0048] 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, where the at least two images include the first wallpaper and the second wallpaper.
[0049] 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.
[0050] In a possible implementation of the first aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.
[0051] In a possible implementation manner of the first 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] In a possible implementation of the first aspect, the first wallpaper display event is a first screen-on event triggered by a click operation, and before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes:
[0058] Display a preset image in the screen-off display state;
[0059] The displaying of the first wallpaper when the first wallpaper display event is detected includes:
[0060] 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 based on the preset image and the first wallpaper, thereby improving the smoothness of wallpaper display.
[0061] In a possible implementation of the first aspect, before displaying the wallpaper switching animation when the first wallpaper display event is detected and displaying the first wallpaper when the wallpaper switching animation ends, the method further includes:
[0062] 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;
[0063] A wallpaper switching animation is generated according to the posture animation parameters, thereby improving the smoothness of wallpaper display.
[0064] In a second aspect, an embodiment of the present application provides a device for displaying wallpaper, comprising:
[0065] 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;
[0066] 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.
[0067] In a possible implementation manner of the second aspect, the first feature dimension includes a facial feature dimension and / or a subject morphology dimension.
[0068] 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.
[0069] In a possible implementation of the second aspect, the third foreground object is a person or 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] In a possible implementation manner of the second aspect, the image style type of the first wallpaper is the same as the image style type of the second wallpaper.
[0074] 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.
[0075] In a possible implementation of the second aspect, the apparatus further includes:
[0076] A first wallpaper generating unit, configured to generate the first wallpaper according to a preset image and the first image style type;
[0077] The second wallpaper generating unit is configured to generate the second wallpaper according to a preset image and the first image style type.
[0078] In a possible implementation of the second aspect, the apparatus further includes:
[0079] 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.
[0080] In a possible implementation of the second aspect, the apparatus further includes:
[0081] a scene triggering unit, configured to generate a third wallpaper based on scene information corresponding to the scene change event, the preset image, and the first image style type if a scene change event is detected;
[0082] The third display unit is configured to display the third wallpaper when a third wallpaper display event is detected.
[0083] In a possible implementation of the second aspect, the wallpaper generating unit includes:
[0084] 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;
[0085] 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.
[0086] In a possible implementation 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.
[0087] In a possible implementation 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 the scene information corresponding to the second wallpaper display event.
[0088] 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.
[0089] In a possible implementation of the second aspect, the wallpaper generating unit includes:
[0090] A first feature determining unit, configured to determine a first feature based on the preset image;
[0091] The first feature fusion unit is configured 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.
[0092] In a possible implementation of the second aspect, the preset image includes a third foreground object, where the third foreground object is a person or an animal, and the first feature determining unit includes:
[0093] 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
[0094] The face library extraction unit is used to obtain the second facial features corresponding to the third foreground object contained in the preset image from the pre-trained face library, and obtain the first features based on the second facial features and the first facial features in the preset image.
[0095] In a possible implementation of the second aspect, the preset image includes a third foreground object, where the third foreground object is a person or an animal, and the first feature determining unit includes:
[0096] 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.
[0097] In a possible implementation manner of the second aspect, the skeleton posture determination unit is specifically configured to determine the first feature based on the skeleton posture information and at least one of contour information and depth information of a third foreground object in the preset image.
[0098] In a possible implementation of the second aspect, the apparatus further includes:
[0099] 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;
[0100] The image receiving unit is configured 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 a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper.
[0101] 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.
[0102] In a possible implementation of the second aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] In a possible implementation manner of the second aspect, the first wallpaper display event and the second wallpaper display event are specifically: a screen-on event or an incoming call event.
[0107] In a possible implementation 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.
[0108] 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.
[0109] In a possible implementation of the second aspect, the first wallpaper display event is a first screen-on event triggered by a click operation, and the device further includes:
[0110] A screen-off display unit, configured to display a preset image in the screen-off display state;
[0111] The first display unit includes:
[0112] 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.
[0113] In a possible implementation of the second aspect, the apparatus further includes:
[0114] a gesture animation parameter determining unit, configured to determine gesture animation parameters according to the gestures of the third foreground object and 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;
[0115] The gesture animation generating unit is used to generate a wallpaper switching animation according to the gesture animation parameters.
[0116] In a third aspect, an embodiment of the present application provides a method for displaying wallpaper, the method comprising:
[0117] displaying a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first object;
[0118] displaying a second wallpaper when a second wallpaper display event is detected, wherein the second wallpaper includes a second object;
[0119] The first object and the second object are generated based on a third object of the same preset image.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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 of the same image style type generated according to a first image style type.
[0130] In the 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: dopamine style, ancient style, retro style, cartoon style, light and shadow photography style, and underwater style.
[0131] 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:
[0132] generating the first wallpaper according to the preset image and the first image style type;
[0133] Before displaying the second wallpaper when the second wallpaper display event is detected, the method further includes:
[0134] The second wallpaper is generated according to the preset image and the first image style type.
[0135] In a thirteenth possible implementation manner of the third aspect, in combination with the twelfth possible implementation manner of the third aspect, generating the first wallpaper according to the preset image and the first image style type and generating the second wallpaper according to the preset image and the first image style type include:
[0136] 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.
[0137] 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 wallpaper, generating the first wallpaper and the second wallpaper according to the preset image and the first image style type, the method further includes:
[0138] 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;
[0139] When a third wallpaper display event is detected, the third wallpaper is displayed.
[0140] 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:
[0141] In response to the first wallpaper display event, generating the first wallpaper according to the preset image and the first image style type;
[0142] In response to the second wallpaper display event, the second wallpaper is generated according to the preset image and the first image style type.
[0143] 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:
[0144] 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.
[0145] 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:
[0146] 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.
[0147] 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:
[0148] Determining a first feature according to the preset image;
[0149] 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.
[0150] 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 animal in the preset image, and determining the first feature according to the preset image includes:
[0151] extracting a first facial feature of a third object in the preset image as the first feature; or,
[0152] 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.
[0153] 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 animal in the preset image, and determining the first feature according to the preset image includes:
[0154] The first feature is determined according to skeletal posture information of a third object in the preset image.
[0155] 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:
[0156] The first feature is determined based on at least one of the contour information and the depth information of the third object in the preset image and the skeleton posture information.
[0157] 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:
[0158] In response to a first user operation, sending an image generation instruction to a server, wherein the image generation instruction includes the preset image;
[0159] Receive multiple images sent by a server, and add at least two images of the multiple images to a wallpaper library, where the at least two images include the first wallpaper and the second wallpaper.
[0160] 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.
[0161] 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.
[0162] 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.
[0163] 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.
[0164] In the 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.
[0165] 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.
[0166] 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.
[0167] 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:
[0168] Displaying the preset image in the screen-off display state;
[0169] The displaying of the first wallpaper when the first wallpaper display event is detected includes:
[0170] 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.
[0171] 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 the wallpaper switching animation when the first wallpaper display event is detected and displaying the first wallpaper at the end of the wallpaper switching animation, the method further includes:
[0172] 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;
[0173] A wallpaper switching animation is generated according to the posture animation parameters.
[0174] 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.
[0175] 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 above-mentioned first aspects is implemented.
[0176] 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.
[0177] 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 the wallpaper display method as described in any one of the first aspects.
[0178] In an eighth aspect, an embodiment of the present application provides an image processing system, the system comprising an electronic device and a server;
[0179] The electronic device is configured to send an image generation instruction to a server in response to a first user operation, wherein the image generation instruction includes the preset image;
[0180] The server is configured to generate a plurality of images according to the preset image and send the plurality of images to the electronic device;
[0181] The electronic device is further configured to receive a plurality of images sent by a server, and add at least two of the plurality of images to a wallpaper library, wherein the at least two images include the first wallpaper and the second wallpaper, the first wallpaper including a first foreground object and a first background picture, and the second wallpaper including 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;
[0182] The electronic device is further configured to display the first wallpaper when a first wallpaper display event is detected;
[0183] The electronic device is further configured to display the second wallpaper when a second wallpaper display event is detected.
[0184] 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.
[0185] In a possible implementation of the eighth aspect, the image generation instruction further includes scene information corresponding to the user when the image generation instruction is triggered, and the scene information is used by the server to generate the multiple images.
[0186] 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
[0187] FIG1 is a schematic structural diagram of an electronic device provided by the present application;
[0188] FIG2 is a software structure block diagram of an electronic device according to an embodiment of the present application;
[0189] FIG3 is a schematic diagram of existing wallpaper switching;
[0190] FIG4 is a flowchart illustrating an implementation of a setting phase in a wallpaper display method according to an embodiment of the present application;
[0191] FIG5 is a schematic diagram of setting image style types provided by an embodiment of the present application;
[0192] FIG6 is a schematic diagram of an interface provided in an embodiment of the present application;
[0193] FIG7 is a schematic diagram of generating a new wallpaper when the foreground object is a portrait, provided by an embodiment of the present application;
[0194] FIG8 is a schematic diagram of generating a new wallpaper when the foreground object is an animal according to an embodiment of the present application;
[0195] FIG9 is a schematic diagram of generating a new wallpaper when the foreground object is a plant according to an embodiment of the present application;
[0196] FIG10 is a schematic diagram of multiple different wallpapers generated according to an embodiment of the present application;
[0197] FIG11 is a schematic diagram of generating a new wallpaper based on face replacement according to an embodiment of the present application;
[0198] FIG12 is a schematic diagram of generating a new wallpaper based on a face library according to an embodiment of the present application;
[0199] FIG13 is a schematic diagram of extracting main morphological features of a foreground object according to an embodiment of the present application;
[0200] FIG14 is a flowchart of a specific implementation of generating a wallpaper having a specified image style type provided by an embodiment of the present application;
[0201] FIG15 is a flowchart illustrating an implementation of the display phase in the wallpaper display method provided in one embodiment of the present application;
[0202] FIG16 is a schematic diagram of a screen-lighting process triggered by a click operation according to an embodiment of the present application;
[0203] FIG17 is a schematic diagram showing a folding state change of a foldable device provided in one embodiment of the present application;
[0204] FIG18 is a schematic diagram of an incoming call interface provided by an embodiment of the present application;
[0205] FIG19 is a schematic diagram of wallpaper switching based on background editing provided by an embodiment of the present application;
[0206] FIG20 is a schematic diagram showing a switching animation according to an embodiment of the present application;
[0207] FIG21 is a schematic diagram of a wallpaper switching animation according to an embodiment of the present application;
[0208] FIG22 is a flowchart illustrating a method for simultaneously stylizing a foreground object and a background image according to an embodiment of the present application;
[0209] FIG23 is a schematic diagram of generating a switching animation according to an embodiment of the present application;
[0210] FIG24 is a structural block diagram of a device for displaying wallpaper provided in an embodiment of the present application;
[0211] FIG25 is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0212] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may 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 avoid obscuring the description of the present application with unnecessary detail.
[0213] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0214] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0215] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" 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 "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0216] 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.
[0217] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0218] The wallpaper display method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, augmented reality (AR) / virtual reality (VR) display devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). 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, where the display screen is provided with wallpaper. The wallpaper display method can be used to switch the wallpaper of the display screen to achieve the purpose of automatically updating the interface wallpaper. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.
[0219] FIG1 shows a schematic structural diagram of an electronic device 100 .
[0220] 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, buttons, 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.
[0221] It should be understood that the structure illustrated in the embodiments 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0222] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into 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.
[0223] Processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency. Specifically, this memory can be used to store image data from a gallery, and facial features of different subjects can be determined based on the image data in the gallery.
[0224] 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.
[0225] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0226] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.
[0227] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the 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.
[0228] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0229] 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 a network and other devices through wireless communication technologies. The wireless communication technologies 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).
[0230] 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 animated display of the interface on the display screen 194 can also be output through the GPU.
[0231] 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), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one 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.
[0232] The NPU is a neural-network (NN) computing processor that rapidly processes input information by drawing on biological neural network structures, such as the transmission patterns between neurons in the human brain, and can also continuously self-learn. The NPU can implement intelligent cognitive applications such as image recognition, facial recognition, voice recognition, and text comprehension in the electronic device 100. In this embodiment, the NPU can generate new wallpapers with preset image styles.
[0233] 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 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored on the external memory card. Similarly, the cross-device control method in the embodiments of the present application can manage the storage space within the external memory card.
[0234] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can 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 can 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.
[0235] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0236] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. For example, an electronic device can use pressure sensor 180A to determine the user's weight. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the location of the touch based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a 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 is applied to the short message application icon, the instruction to create 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 illuminated.
[0237] The gyroscope 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 gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope 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 gyroscope sensor 180B, thereby generating corresponding motion data, which can be used to generate image style information.
[0238] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0239] 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 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 based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0240] Accelerometer 180E can detect the magnitude of the acceleration of electronic device 100 in all directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, for applications such as landscape and portrait screen switching and pedometers. In this embodiment, the electronic device can use gyroscope sensor 180B to collect the user's movement speed during exercise, thereby generating corresponding motion data, which can be used to generate image style information.
[0241] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0242] 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 is holding 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.
[0243] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0244] 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.
[0245] 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 the 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 prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0246] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0247] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0248] The buttons include a power button, a volume button, etc. The buttons can be mechanical buttons or touch buttons. The electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0249] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0250] FIG2 is a software structure block diagram of the electronic device according to an embodiment of the present application.
[0251] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime system layer, and the kernel layer.
[0252] The application layer can include a series of application packages.
[0253] As shown in Figure 2, the application package may include applications such as camera, calendar, map, WLAN, Bluetooth, music, video, short message, mailbox, WeChat, WPS, etc. 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 can be switched through the wallpaper management application.
[0254] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0255] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0256] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0257] 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.
[0258] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0259] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0260] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0261] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0262] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0263] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0264] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0265] The system layer can include multiple functional modules, such as the surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), and 2D graphics engine (such as SGL).
[0266] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0267] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0268] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing.
[0269] A 2D graphics engine is a drawing engine for 2D drawings.
[0270] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0271] The following is an example of the workflow of the software and hardware of the electronic device 100, with reference to the scene of switching the wallpaper of the lock screen interface when the screen is turned on.
[0272] 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.
[0273] With the continuous development of electronic device technology, electronic devices have become ubiquitous in all aspects of users' daily lives and work. Users need to use electronic devices for extended periods of time, so the aesthetics and fun of electronic device interfaces have become a key focus for users. Users can set wallpapers for various interfaces of their electronic devices according to their preferences, such as the lock screen wallpaper, the home screen wallpaper, and the interface for interacting with different contacts in chat apps. By setting corresponding wallpapers for different interfaces, the aesthetics of the interface can be improved, thereby enhancing the user experience.
[0274] Existing wallpaper management technology, while maintaining the aesthetics of the interface, in order to increase the fun of the wallpaper, can update the interface by randomly switching wallpapers, thereby avoiding the wallpaper of the same interface remaining unchanged for a long time, causing aesthetic fatigue to the user. Randomly switched wallpapers are generally stored in the gallery of the electronic device. For example, Figure 3 shows a schematic diagram of existing wallpaper switching. Referring to (a) in Figure 3, 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 person image, as shown in (b) in Figure 3, achieving the purpose of automatically switching the interface wallpaper. However, although the above method can achieve the purpose of automatically switching the interface wallpaper, due to the large structural differences in the foreground objects between the randomly switched wallpapers each time, as shown in (a) and (b) in Figure 3, the overall look and feel of the entire interface is greatly different, reducing the consistency of the interface at different times, affecting the user's ability to quickly locate the position of the required operation controls, and then affecting the user's operating efficiency. Moreover, since the wallpapers switched by the interface are randomly selected from the gallery, their beauty may not necessarily meet the user's aesthetic standards, thereby reducing the accuracy of wallpaper recommendations and affecting the user's experience.
[0275] Example 1:
[0276] 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. The wallpaper display method provided by this embodiment can ensure 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 objects in the interface, thereby improving the user experience when using the electronic device.
[0277] The wallpaper display method provided in the embodiments of the present application is applied to an electronic device, which is configured with at least one display screen and can display an interface on the display screen. The interface can be configured with wallpaper. Using the wallpaper display method provided in the embodiments of the present application, the interface can display different wallpapers at different times. The wallpaper display method provided in the embodiments of the present application can specifically include two stages: a setting stage and a display stage.
[0278] Setup phase:
[0279] For example, FIG4 shows a flowchart of the implementation of the setting phase in the wallpaper display method provided in an embodiment of the present application. As shown in FIG4, the specific implementation process of the setting phase of the wallpaper display method is described as follows:
[0280] In S401 , the image style type of the new wallpaper for each change is set.
[0281] In this embodiment, to improve the consistency between new wallpapers displayed in each interface, that is, to ensure that 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. The user can set the wallpaper in the theme application and / or wallpaper application installed on the electronic device.
[0282] In one possible implementation, the image style type can be set by the user. For example, FIG5 shows a schematic diagram of setting the image style type provided by an embodiment of the present application. Referring to FIG5 (a), 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 on icon 51 to enter the wallpaper management setting interface, as shown in FIG5 (b). In the wallpaper management setting interface, there is a setting item 52 for the interface for automatically switching wallpapers. For example, the lock screen interface, caller ID interface, etc. can be added as the interface for automatically switching wallpapers. Of course, if more interfaces need to be added, more controls can be added by clicking on the add more controls 53 to add more interfaces for automatically switching wallpapers. The wallpaper management setting interface also includes an image style type setting item 54, which displays multiple candidate image style types, such as dopamine style, ancient style, retro style, underwater style, sports style, cartoon style, light and shadow photo style, etc. The user 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.
[0283] If you need to expand the image style types displayed in the image style type setting item 54, you can click the more control 55 to expand the image style types supported by the electronic device by connecting to the server. In this case, the server can receive sample images uploaded by relevant designers. Each sample image can be associated with a corresponding image style type. The server can generate a corresponding style editing algorithm based on multiple sample images of the same image style type and send it to the electronic device. The electronic device can then generate an image with the corresponding image style based on the received style editing algorithm.
[0284] In S402, a preset image is set as a wallpaper of the interface.
[0285] 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.
[0286] In some implementations, the electronic device may perform a secondary composition on the user-selected image based on a preset second constraint. If the target image selected by the user does not satisfy the second constraint, the electronic device may perform a secondary composition on the user-selected image to obtain the preset image. If the target image selected by the user satisfies the second constraint, the secondary composition may not be performed, i.e., the preset image is the image selected by the user.
[0287] In some implementations, the second constraint may include at least one of the following:
[0288] The area ratio of the foreground object in the image is within the preset ratio range;
[0289] 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;
[0290] a foreground object in the image is on an axis of the first image;
[0291] The key part of the foreground object in the image is on the axis of the image;
[0292] 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.
[0293] In this embodiment, corresponding wallpapers, i.e., preset images, may be configured in different interfaces of the electronic device. The preset image may generally include a foreground object (i.e., the subject in the wallpaper) and a background picture. Exemplarily, Figure 6 shows a schematic diagram of an interface provided by an embodiment of the present application. Referring to Figure 6, the interface is a lock screen interface, which includes a time control 61, a customized quick control, and can also be set as a preset image 62 of the interface wallpaper. A portrait 621 is displayed in the preset image 62, which is the foreground object of the wallpaper image, and may also include a corresponding background picture 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 it can be determined by the electronic device according to the default setting method.
[0294] It should be noted that some interfaces may not be preset with a fixed wallpaper screen, but when the corresponding event is triggered, the corresponding wallpaper screen is set for the interface in real time based on the event content of the triggering event. For example, in the interface for incoming call prompts and the interface for video calls, 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 for the incoming call prompt interface and the video call interface. The above-mentioned setting operation specifically sets a contact image for the contact, and the above-mentioned 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 prompt 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.
[0295] In some implementations, the image style type can be determined not only in S401 but also based on a preset image. After the user sets the preset image, the image style type corresponding to the subsequent wallpaper generation can be determined based on the foreground object in the preset image.
[0296] In some implementations, the image style type may be determined based on descriptive information of a foreground object in a preset image. The descriptive information may include the age and gender of the foreground object in the preset image. For example, if the foreground object in the preset image is a young female, the descriptive information may include two characteristic parameters, "young" and "female." Subsequently, based on this descriptive information, a matching image style type, such as a dopamine style or an ancient style, may be determined.
[0297] In some implementations, the description information can be determined by an electronic device after performing object recognition on a preset image, or it can be obtained by adjusting the recognition result obtained by the user after recognizing the preset image, or it can be manually set by the user. The specific acquisition method can be determined according to actual conditions and is not limited here.
[0298] In some implementations, the image style type applied when stylizing a preset image may also be determined based on the image style type determined in S401 and the foreground object in the preset image. For example, if multiple image style types are determined in S401, including a dopamine style and a mechanical style, and the foreground object in the preset image is a woman, which does not match the mechanical style, the dopamine style may be selected as the image style type applied when stylizing the preset image.
[0299] In a possible implementation, each new wallpaper displayed in the interface (such as the first wallpaper and the second wallpaper) is generated based on the preset image corresponding to the interface and the above-mentioned image style type.
[0300] In this embodiment, the first wallpaper and the second wallpaper may be generated on the electronic device or through a server.
[0301] In a possible implementation, when the first wallpaper and the second wallpaper are generated on an electronic device, after S402, the method further includes:
[0302] 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 wallpapers generated based on the preset image include 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.
[0303] In this embodiment, after completing the interface wallpaper setting operation, 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 subsequently detected, one of the pre-generated wallpapers is selected for display, without having to wait for the electronic device to generate the wallpaper before displaying it, thereby improving display smoothness. The generated multiple wallpapers include the first wallpaper and the second wallpaper.
[0304] In some implementations, when the first wallpaper and the second wallpaper are generated on a server, after S402, the following steps are further included:
[0305] 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.
[0306] In this embodiment, when a user initiates a wallpaper setting operation on an electronic device, an image generation instruction can be sent to the server, so that the server can generate multiple images based on a preset image, reducing the computing pressure of the electronic device.
[0307] 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.
[0308] 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. 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. The electronic device may determine the description information of the third foreground object in the preset image, add the description information to the image generation instruction, and send the image generation instruction carrying the preset image and the description information to the server.
[0309] In some implementations, the description information may include the age and / or gender of the foreground object.
[0310] Step 2: The server generates multiple images based on the preset image and image style type, where the multiple images include a first wallpaper and a second wallpaper.
[0311] In this embodiment, the image style type may be determined by the server. For example, the server may determine the image style type that matches 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.
[0312] In some implementations, if the image generation instruction further includes description information, the above-mentioned image style type can be determined based on the description information.
[0313] 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 and will not be repeated here.
[0314] 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.
[0315] 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.
[0316] 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.
[0317] In a possible implementation, the number of the multiple wallpapers generated may be 10, or other values, which may be determined according to the settings.
[0318] In one possible implementation, the electronic device may determine the number of wallpapers based on the frequency with which the user initiates wallpaper display events. For example, if the user frequently turns on the screen, the number of wallpapers will be greater; conversely, if the user frequently turns on the screen, the number of wallpapers will be smaller.
[0319] 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.
[0320] In some implementations, the third object may be at least one of a person, an animal, a plant, a mountain, and a stream.
[0321] For example, the preset image is an image taken by user A on Mount Huashan. After processing the preset image based on a preset image style type (e.g., the image style type is a four-season rotation type), a first spring-themed wallpaper and a second winter-themed wallpaper are generated. The first wallpaper has the same composition as the preset image and also includes user A and Mount Huashan, with flowers blooming on Mount Huashan, matching the aforementioned spring theme. The second wallpaper also has the same composition as the preset image and also includes user A and Mount Huashan, with snow covering Mount Huashan, matching the winter theme.
[0322] In some implementations, the first wallpaper includes a first foreground object, and the second wallpaper includes a second foreground object, where the first foreground object and the second foreground object are generated based on a third foreground object in the same preset image.
[0323] In this embodiment, the electronic device can extract the features of the foreground object in the first feature dimension in the preset image, and generate the background picture and the 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.
[0324] In this embodiment, in order to ensure consistency between the multiple new wallpapers generated, 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 features 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.
[0325] In a possible implementation, the foreground object may be any one of a person, an animal, and a plant. Exemplarily, Figures 7 to 10 illustrate schematic diagrams of editing different foreground objects in the present application.
[0326] FIG7 shows a schematic diagram of generating a new wallpaper when the foreground object is a portrait, as provided by an embodiment of the present application. Referring to FIG7 , the foreground object in the preset image (i.e., image 71) is a portrait. The new wallpapers generated based on the preset image and image style type, i.e., images 72 and 73, can change the hairstyle and clothing of the portrait. The foreground objects in all the new wallpapers obtained belong to the same person, for example, they all contain images of Zhang San, i.e., the person in image 72 and image 73 is Zhang San, with the same features. In addition, when generating images 72 and 73, the facial makeup of the portrait can also be changed, such as adding or changing the portrait's lipstick color, eye shadow, blush, etc.
[0327] FIG8 shows a schematic diagram of generating a new wallpaper when the foreground object is an animal, according to an embodiment of the present application. Referring to FIG8 , the foreground object in the preset image (i.e., image 81) is a rabbit. The new wallpapers generated based on the preset image and image style, i.e., images 82 and 83, can add clothes to the rabbit. 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 in the generated wallpapers are the same animal. For example, if image 81 is Zhang San's rabbit, then the rabbits in images 82 and 83 generated based on image 81 are both Zhang San's rabbits and have the same characteristics.
[0328] Figure 9 shows a schematic diagram of generating a new wallpaper when the foreground object provided by an embodiment of the present application is a plant. Referring to Figure 9, the foreground object in the preset image (i.e., image 91) is a chrysanthemum. The new wallpaper 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 color may be different, that is, the species and form of the plants between the different generated wallpapers are the same, and have the same main morphological characteristics.
[0329] There is no restriction on the type of the foreground object.
[0330] To better illustrate the relationship between each generated wallpaper and the image style type, FIG10 shows a schematic diagram of multiple different wallpapers generated according to an embodiment of the present application. Referring to FIG10 , the interface is a lock screen interface, which includes a preset image set by the user. The image style type pre-set by the user is a sports style type. Based on the preset image and the image style type, the new wallpapers generated are all sports-related images. For example, as shown in FIG10 (a), the user is wearing a basketball jersey and holding a basketball; while as shown in FIG10 (b), the user is wearing a badminton jersey and holding a badminton racket; and as shown in FIG10 (c), the user is wearing swimming trunks. The multiple wallpapers generated all correspond to a sports theme, but the corresponding sports types are different. If scene information (such as the user's location information) can be obtained when generating the wallpaper, a wallpaper related to the scene can be generated based on the location information. For example, if the user is in a swimming pool, the wallpaper of FIG10 (c) can be generated; if the user is in a basketball court, the wallpaper of FIG10 (a) can be generated.
[0331] 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.
[0332] In this embodiment, the features of each newly generated wallpaper in the first feature dimension are determined based on a preset image. That is, the electronic device uses the features of the foreground object in the first feature dimension 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 is possible to ensure that the features of the first feature dimension of the different generated wallpapers are the same.
[0333] In a possible implementation, the first feature dimension may be a facial feature dimension (eg, a human face feature dimension). Features of the facial feature dimension may include features for characterizing face shape, eye distance, mouth size, and / or facial features proportions.
[0334] The same features can be specifically reflected by the similarity of the feature vectors describing the features meeting 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), then 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.
[0335] 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.
[0336] Taking a portrait as an example, the facial features of the foreground object in the generated multiple different wallpapers are the same, and the facial features of the foreground object in the generated wallpapers and the facial features of the foreground object in the preset image need to correspond to the same physical person. In some implementations, to ensure that the first wallpaper and the second wallpaper have the same facial features, when generating the first and second wallpapers, a facial image of a third foreground object in the preset image can be extracted and used as the facial image for the first and second wallpapers, 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, to ensure that the first wallpaper and the second wallpaper have the same facial features, when generating the first and second wallpapers, facial features of the third foreground object in the preset image can also be extracted. Based on the feature vector of the facial features of the third foreground object, a facial image of the first foreground object in the first wallpaper and a 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.
[0337] 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:
[0338] Method 1: Face Replacement. In Method 1, the first facial features of a foreground object (i.e., the third foreground object) can be extracted from a preset image, and the first facial features of the third foreground object can be used as the facial features 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).
[0339] For example, FIG11 shows a schematic diagram of generating a new wallpaper based on face replacement according to an embodiment of the present application. Referring to FIG11 (a), it is a preset image before style editing, and the preset image includes facial features 111. The electronic device can transform the clothing of the foreground object in the preset image, for example, from a basketball jersey to a badminton jersey, without transforming the main body of the foreground object. Therefore, the facial features 111 in the preset image can be directly used as the facial features of the foreground object in the new wallpaper, as shown in FIG11 (b), that is, facial features 112 are obtained, thereby ensuring the consistency of the facial features between the two images.
[0340] 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 with a similarity 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 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 form of its 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 generating a foreground object in a new wallpaper (such as the first foreground object or the second foreground object), 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 only the facial features are 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.
[0341] For example, FIG12 shows a schematic diagram of generating a new wallpaper based on a face library provided by an embodiment of the present application. Referring to FIG12 (a), a plurality of local images of user A are stored in the album of the electronic device, such as images 1 to 3, and images 1 to 3 all contain the facial features of user A. The electronic device can obtain the second facial features of user A through big data pre-training and store them in the face library. The image 121 of user A is set as wallpaper in the lock screen interface of the electronic device, as shown in FIG12 (b). 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 it is necessary to edit user A's hairstyle when generating a new wallpaper, it may be necessary to supplement the binaural area and the missing facial contour. At this time, the electronic device obtains the second facial features of user A from the face library, obtains the features of the binaural area and the missing facial contour, and based on the supplemented facial contour, the features of the binaural area and the facial features of user A in image 121, the facial features in the generated new wallpaper can be supplemented to the facial features shown in image 122 in (c) of Figure 12.
[0342] 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 facial feature determination in wallpaper generation.
[0343] In a specific implementation, feature vectors can be extracted based on image data of the facial area of a preset image, and then a wallpaper can be generated based on the extracted feature vectors. Specifically, an image encoder based on the CLIP model (Contrastive Language-Image Pre-Training) can be used to extract feature vectors, which can then be input into a Stable Diffusion model to generate a new image as wallpaper.
[0344] In one 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 of the foreground objects in 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. For example, if the foreground object is a portrait, and the portrait is in a standing state in the preset image, then 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, then the portrait is also in a sitting position in all the generated new wallpapers.
[0345] 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., a bud state) in all the new wallpapers generated.
[0346] 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.
[0347] In a possible implementation, determining the main morphological features of the foreground object in the preset image may specifically include the following four steps:
[0348] Step 1: Extract the skeleton posture information of the third foreground object in the preset image through the skeleton recognition algorithm.
[0349] Step 2: Extract the contour information of the third foreground object in the preset image through an edge recognition algorithm.
[0350] Step 3: Obtain depth information of the third foreground object in the preset image using a depth algorithm.
[0351] Step 4: Obtain the main morphological features of the foreground object in the preset image based on the skeletal posture information, contour information, and depth information. It should be noted that when generating the main morphological features, it can be generated based on 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 based on actual conditions.
[0352] 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, through the action posture, object size, object position and the orientation posture of each part, the main morphological characteristics of the foreground object in the preset image can be determined.
[0353] Exemplarily, FIG13 shows a schematic diagram of extracting the main morphological features of the foreground object provided by an embodiment of the present application. Referring to FIG13 , the electronic device can import the preset image into the above-mentioned three algorithms respectively, and obtain the skeletal posture information, contour information and depth information of the preset image respectively, wherein the skeletal posture information can be represented by a key node graph, i.e., as shown in (a) in FIG13 ; the contour information can be represented by a contour map, i.e., as shown in (b) in FIG13 ; and the depth information can be represented by a depth map, as shown in (c) in FIG13 . The electronic device can configure corresponding weight values for different information according to the contribution of different information to the main morphology, thereby performing feature fusion of the above-mentioned three types of information to obtain the main morphological features. Exemplarily, the weight value of the above-mentioned key node graph is 1, the weight value of the contour map is 0.2, and the weight value of the depth map is 0.5. The weight values of the specific different information can be set according to the actual situation and are not limited here.
[0354] In this embodiment, when the electronic device generates a new wallpaper based on a preset image and an image style type, it retains the features of the preset image in the first feature dimension, and generates features of other changeable feature dimensions other than the first feature dimension, that is, it generates 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 fusing 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 based on the features of the preset image in the first feature dimension, there is a strong correlation between the preset image and the new wallpaper in the first feature dimension, and the features of the changeable feature dimension are generated based on 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.
[0355] 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, which can increase the diversity of the generated wallpapers.
[0356] In one possible implementation, when generating new wallpapers (i.e., the first wallpaper and the second wallpaper) based on preset images and image style types, scene information can also be considered, i.e., generating new wallpapers based on preset images, image style types and scene information.
[0357] 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.
[0358] 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 aforementioned scene information. This scene information can be used by the server to generate multiple images corresponding to the preset image. For example, the server can determine the background image of at least one of the multiple images based on the scene information. Optionally, if the image generation instruction includes description information and scene information of a foreground object of the preset image, the server can also determine the image style type based on the description information and scene information, and generate some or all of the multiple images based on the image style type.
[0359] In one 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 be a wallpaper with bright colors 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 user's needs or according to the default setting of the electronic device.
[0360] For example, if the scene information records the user's state as happy, the user's expressions in the generated wallpaper can all be happy expressions; if the scene information records the user's state as 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 the wallpaper is generated, it can also be scene information obtained previously, or it can also be future scene information predicted based on the user's behavior.
[0361] In one possible implementation, the electronic device can set corresponding weighted weights for information of different dimensions in the scene information, thereby being able 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. For example, Table 1 shows a corresponding table of the weight contribution of scene information of different dimensions to the generated wallpaper provided in 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 the 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 the system default, and the setting of weight values is not limited here.
[0362] Table 1
[0363] In one possible implementation, if a scene change event is detected, a new wallpaper is generated based on the scene information, 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 that a new wallpaper associated with the new scene can be displayed 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, i.e., wallpapers that conform to the city scene, the wallpapers pre-set in the interface, and the image style type, will be generated again based on the city scene, and will be displayed in subsequent responses to wallpaper display events, which can improve the accuracy of subsequent wallpaper display.
[0364] For example, Figure 14 shows a specific implementation flow chart for generating a wallpaper with a specified image style type provided by an embodiment of the present application. Referring to Figure 14 , 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 based on 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 morphological features of the preset image (ie, image 141) in the subject morphological dimension using an object subject recognition algorithm. Specific methods for obtaining the subject morphological features can be found in the above description and 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 based on scene information, preset images, and image style types. The image style range can include multiple dimensions: foreground object description dimension, variable parameter dimension, and image style type.
[0370] The foreground object description dimension can 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] Modifiable feature dimensions include, but are not limited to, clothing, color, and expression. Scene information can contribute to these dimensions. For example, location information within scene information can determine clothing, a key feature dimension within the modifiable feature dimension. For example, certain regions have corresponding ethnic costumes. Weather and environmental information can also influence color and expression dimensions. For example, colors appear brighter and expressions appear happier on sunny days. Time information can also influence color, such as brighter tones during the day and darker tones at night.
[0372] In this embodiment, while ensuring that the morphological features of the subject 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, thereby obtaining a new wallpaper, namely, image 143. The method of obtaining the facial features can be referred to the above description and will not be repeated here.
[0375] In this embodiment, the background image of the new wallpaper can be determined based on the image style. For example, if the image style is ancient style, the background image of the new wallpaper can include buildings with ancient Chinese architectural style. For example, the first wallpaper can include buildings from the Tang Dynasty, while the second wallpaper can include buildings from the Song Dynasty.
[0376] In one possible implementation, the background image of the new wallpaper can be determined based on the scene information and the image style type. For example, the background image of the displayed wallpaper can be determined based on the location information in the scene information. For example, if the user is in a snowy mountain, the background image can include the snowy mountain; if the user is on the beach, the background image can include the beach.
[0377] In this embodiment, a new wallpaper can be generated by fusing the generated foreground object with the generated background image, wherein the features of the generated foreground object in the first feature dimension are determined based on the features of the foreground object in the first feature dimension of the preset image.
[0378] In this embodiment, after completing the image style type and interface wallpaper settings, the electronic device can generate multiple new wallpapers. When a wallpaper display event is subsequently detected, the electronic device can select one of the multiple pre-generated new wallpapers for display. This can realize the display of different wallpapers in response to wallpaper display events at different times, while improving the display process. Of course, in addition to being pre-generated, the new wallpapers can also be generated in real time, which will be described in detail later.
[0379] Display phase:
[0380] For example, FIG15 shows a flowchart of the implementation of the display phase in the wallpaper display method provided by an embodiment of the present application. As shown in FIG15 , the specific implementation process of the display phase of the 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, the electronic device can display an interface including the generated wallpaper on the corresponding display screen when a wallpaper display event is detected. 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 screen, and the second wallpaper includes a second foreground object and a second background screen. 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 the 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 screen and the second background screen are different, thereby achieving the purpose of dynamically adjusting the interface wallpaper.
[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 display interface. The specific generation process can be referred to the above content and will not be repeated here.
[0385] During display, 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] For example, the wallpaper display event can be specifically divided into at least the following three display scenarios:
[0387] Scenario 1: Screen-lighting event triggered by a click
[0388] In this embodiment, a corresponding wallpaper image, i.e., a preset image, is provided 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 on the electronic device (or other physical button that will light up the display screen), the display screen can be lit and the lock screen interface can be displayed. For example, Figure 16 shows a schematic diagram of a screen-lighting process triggered by a click operation provided by an embodiment of the present application. Referring to (a) in Figure 16, the display screen of the electronic device is in the screen-off state, i.e., 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, as shown in (b) in Figure 16. The wallpaper (preset image) set by the user, i.e., image 161, can be displayed in the lock screen interface. If an electronic device supports an off-screen display, then when the electronic device is in the off-screen state, the corresponding off-screen display interface will be displayed on the display, as shown in (c) of Figure 16. This off-screen display interface may display a clock control 162 and a user-set wallpaper (i.e., a preset image), i.e., image 163. Similarly, if the user initiates a screen-on operation, the electronic device will light up the display in the off-screen state and display the corresponding lock screen interface, as shown in (d) of Figure 16. 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 same image 161 is displayed each time the screen is turned on, or pre-stored images in the gallery are randomly switched, resulting in inconsistent interfaces. For interfaces with an off-screen display, the image 164 displayed each time the screen is turned on is the same as image 163, which also suffers from the same problem as described above.
[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 one possible implementation, a new wallpaper may be generated when the user turns on the screen, that is, when the electronic device detects a screen-on trigger event, the new wallpaper may be generated based on 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 trigger event and generate a new wallpaper based on the preset image style type, scene information, and 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, which includes at least two display screens, namely a foldable screen (hereinafter referred to as the inner screen) and a non-foldable screen (hereinafter referred to as the outer screen). For example, Figure 17 shows a schematic diagram of the folding state change of the foldable device provided by an embodiment of the present application. Referring to (a) in Figure 17, the foldable device is in a folded state. At this time, the inner screen does not display any content because it is folded; the outer screen is in a visible state and can be in one of the screen-off display state, the screen-off state, or the screen-on state. Its display state can be determined specifically 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, as shown in (b) in Figure 17. When 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 also be in a state where the screen is off and the screen is on, 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 illuminated. For example, when changing from the folded state to the unfolded state, the inner screen can be illuminated, or the outer screen can be illuminated at the same time; and when changing from the unfolded state to the folded state, the outer screen can be illuminated. When the folding state of the foldable device changes, a corresponding interface can be displayed on the illuminated 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 illuminated, the wallpaper of the interface displayed is the same, which reduces the interest and diversity of the display interface.
[0394] In order to solve the problem that the wallpaper of the interface does not change automatically when the folding state changes, the embodiment of the present application can change the wallpaper of the interface of the lit display screen 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 lit display screen when the folding state changes, such as image 171 shown in (a) of Figure 17.
[0395] In a possible implementation, if the folding change state is 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 one possible implementation, a new wallpaper may be generated when the folding state changes. That is, when the electronic device detects a screen-on event based on a folding state change, a new wallpaper may be generated based on a pre-set image style type and a pre-set wallpaper on the display. Optionally, the electronic device may also obtain scene information corresponding to the folding state change, and generate new wallpapers (i.e., a first wallpaper and a second wallpaper) based on the pre-set image style type, scene information, and pre-set wallpaper on the display.
[0397] Scenario 3: Incoming call trigger event
[0398] In this embodiment, when an electronic device receives an incoming call request during use, a corresponding incoming call event is 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, etc. For example, Figure 18 shows a schematic diagram of the incoming call interface provided by an embodiment of the present application. Referring to (a) in Figure 18, the user can configure corresponding contact portraits for different contacts. For example, for friend A, an image containing a portrait of friend A can be selected from the gallery as the contact portrait associated with user A, that is, image 181. The contact interface can also record the contact number corresponding to the contact. If an incoming call event initiated by the contact is received, the incoming call interface for the contact can be displayed on the display screen, as shown in (b) in Figure 18. Since friend A has an associated contact portrait, in order to improve the visualization of the incoming call interface and quickly determine 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, then every time friend A calls, the wallpaper in the incoming call interface of the electronic device is image 182, thereby reducing the interest 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 one possible implementation, a new wallpaper may be generated when a contact calls. That is, when the electronic device detects an incoming call, it may generate a new wallpaper based on a preset image style type and a user-set contact portrait of the contact. Optionally, the electronic device may also obtain scene information corresponding to the incoming call event and generate a new wallpaper based on the preset image style type, scene information, and contact portrait.
[0401] In one 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 uses a static display, then in response to a wallpaper display event, the wallpaper (such as the first wallpaper and the second wallpaper) is directly displayed. This method is suitable for scenarios where the display is in the off state before responding to the wallpaper display event, such as the aforementioned screen-on event triggered by a folding state change and an incoming call event. If the display is in the off state, the aforementioned screen-on event triggered by a click operation can also use the aforementioned static display method.
[0404] If the electronic device adopts a dynamic display mode, it can first display the corresponding wallpaper switching animation when responding to the wallpaper display event, and after the wallpaper switching animation is completed, display the corresponding new wallpaper (such as the first wallpaper and the second wallpaper). The end frame of the wallpaper switching animation is the new wallpaper. For the first wallpaper display event, it is the first wallpaper, and for the second wallpaper display event, it is the second wallpaper. This method is applicable to the case where 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, FIG19 shows a schematic diagram of wallpaper switching based on background editing provided by an embodiment of the present application. Referring to FIG19 (a), the electronic device is in the screen-off display state, and the lock screen interface uses image 191 as the wallpaper. Image 191 will be displayed on the display screen in a low-brightness and low-contrast form. When the user clicks on the display screen, it will light up the display screen, and the electronic device will stylize the background image in image 191. For example, if the user is currently located in 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 wallpaper and the user after switching. The lock screen interface shown in FIG19 (b) is obtained, 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 consistency between the lock screen interfaces. The background images between image 191 and image 192 have certain differences, and can be style-edited and transformed according to the image style information, thereby improving the diversity of the interface. If the user clicks on the interface next time, the background image can be set to the beach.
[0406] Since there are differences in the background images between the preset image and the new wallpaper, in order to improve the smoothness of the image transition, the electronic device can generate a corresponding switching animation. When responding to a wallpaper display event, the above-mentioned switching animation can be displayed in the interface corresponding to the display screen, thereby realizing a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, thereby improving the smoothness of the image switching and thereby improving the user experience.
[0407] Among them, the above-mentioned switching animation can be a gradual switching animation, that is, the background picture in the preset image fades out gradually to exit the interface, and the background picture of the new wallpaper appears on the interface in a gradual manner. For example, Figure 20 shows a display diagram of the switching animation provided by an embodiment of the present application. As shown in Figure 20, image 191 gradually fades over time, while image 192 gradually becomes clearer over time, thereby achieving the purpose of gradually changing the background picture.
[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 can 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 the wallpaper display event, the above-mentioned switching animation can be displayed in the interface corresponding to the display screen, thereby realizing a smooth transition of the wallpaper in the interface from the preset image to the new wallpaper, improving the smoothness of the image switching, and then improving the user experience.
[0409] In one possible implementation, the switching animation can be a gradual transition animation, whereby the foreground object in the preset image fades out of the interface, while the foreground object in the new wallpaper fades in. The specific implementation process for the gradual transition of the foreground object can be found in the implementation process for the gradual transition of the background image, and is not 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 based on the posture of the foreground object in the preset image and the posture of the foreground object in the new wallpaper, generate the corresponding wallpaper switching animation based on the posture animation parameters, and play the 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, FIG21 shows a schematic diagram of a wallpaper switching animation according to an embodiment of the present application. Referring to FIG21 (a), the interface is a screen-off display interface. 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, and the postures of other parts remain unchanged. In this case, the electronic device obtains the posture animation parameters of the foreground object's hand 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 a vertically raised state to a state of being raised at an angle toward the upper left. As shown in FIG21 (b), the wallpaper switching animation is performed by swinging the arm, thereby improving the aesthetics and smoothness of the wallpaper switching.
[0412] In an embodiment of the present application, by stylizing some feature dimensions of the foreground object in the 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 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, FIG22 shows a flowchart of an embodiment of the present application for stylizing a foreground object and a background image simultaneously. Specifically, the flowchart 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, features 222 .
[0415] Phase 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 of 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: During different wallpaper display events, multiple different types of new wallpapers can be generated based on the same preset image. Because the input to the generated image style editing model includes scene information and descriptions of foreground objects in the preset image, it is possible to achieve data fusion of the two dimensions of foreground objects and scene information. This allows the constructed image style editing model to more accurately generate features with multiple variable feature dimensions while retaining a certain degree of randomness. This allows the new wallpapers output at different times to have a certain degree of randomness, thereby improving the diversity of the output images.
[0419] For example, Figure 23 shows a schematic diagram of generating a switching animation according to an embodiment of the present application. As shown in Figure 23, the electronic device can input a preset image and a newly generated wallpaper into a preset animation parameter recognition model to perform foreground subject detection, posture detection, and background shape detection, respectively. Based on the deviations between the two images in the aforementioned three dimensions, the electronic device can obtain first animation parameters for the foreground object and second animation parameters for the background image.
[0420] For the first animation parameter of the foreground object, a posture transition animation can be determined based on the animation mode corresponding to the image style type and the first animation parameter, thereby generating a foreground transition animation of the foreground object. If the posture difference between the two images of the foreground object is small, a gradual transition can be used to generate the switching animation. Otherwise, a posture transition animation of a portion with a larger posture change can be generated.
[0421] For the second animation parameter of the background picture, a background gradient animation may be determined according to the animation mode corresponding to the image style type and the second animation parameter, thereby generating a 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, which can maintain consistency between interfaces at different times while dynamically adjusting the wallpaper of the electronic device interface. Compared with existing wallpaper management methods, in the 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, FIG24 shows a structural block diagram of the wallpaper display device provided in the embodiment of the present application. For the sake of convenience, only the part related to the embodiment of the present application is shown.
[0425] 24 , the wallpaper display device includes:
[0426] A first display unit 241 is configured to display a first wallpaper when a first wallpaper display event is detected, wherein the first wallpaper includes a first foreground object and a first background image;
[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 the first feature of the first foreground object is the same as the second feature of the second foreground object, the first feature and the second feature are features in a first feature dimension, and the first background 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 one of a screen-on event and 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 a dopamine style, an ancient style, a retro style, and an 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 configured 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 configured to generate the first wallpaper and the second wallpaper according to the preset image and the image style type in response to an 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 based on 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 configured 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 generating 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 generating 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 configured to generate the first wallpaper according to the image style type and the first feature.
[0451] Optionally, if the first feature dimension includes a facial feature dimension, the first feature determining unit includes:
[0452] The face replacement unit is used to extract a first facial feature from the preset image as the first feature.
[0453] Optionally, if the first feature dimension is a facial feature dimension, the first feature determining unit includes:
[0454] A face library extraction unit, configured to obtain, from a pre-trained face library, a second facial feature corresponding to a third foreground object contained in the preset image;
[0455] The facial feature generating unit is configured 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] A screen-off display unit, which displays a preset image in the screen-off display state;
[0462] The first display unit includes:
[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 gesture animation parameters according to the gestures of the third foreground object and 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] Figure 25 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 25, the electronic device 25 of this embodiment includes: at least one processor 250 (only one processor is shown in Figure 25), a memory 251, and a program 252 stored in the memory 251 and executable on the at least one processor 250. When the processor 250 executes the program 252, it implements the steps of any of the above-mentioned wallpaper display method embodiments.
[0470] The electronic device 25 may be a desktop computer, a notebook computer, 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 FIG25 is merely an example of the electronic device 25 and does not limit the electronic device 25. The electronic device 25 may include more or fewer components than shown, or may combine 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, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0472] In some embodiments, the memory 251 may be an internal storage unit of the electronic device 25, such as a hard disk or memory of the electronic device 25. In other embodiments, the memory 251 may also be an external storage electronic device of the electronic device 25, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 25. Furthermore, 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 about 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 this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0474] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and 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 into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into 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, and 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 various 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 various 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 process in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can 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), random access memory (RAM), 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 focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0480] The above-described embodiments 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection 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 1 or 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 2, 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 2, 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 feature dimension includes at least one of a clothing dimension, a hairstyle dimension and an expression dimension.
8. The method according to any one of claims 1 to 6, 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: Generate 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: The second wallpaper is generated according to a 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 generating the first wallpaper and the second wallpaper according to the preset image and the first image style type in response to the operation of setting the preset image as the wallpaper, 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. wallpaper.
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 12, 14 or 15, characterized in that: The scene information includes at least one of time information, location information, weather information, motion status, and user status information.
17. 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.
18. The method according to claim 17, 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.
19. The method according to claim 17, 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.
20. 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.
21. The method according to any one of claims 1 to 9, 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.
22. The method according to claim 21, 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.
23. The method according to claim 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 8 to 23, 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.
25. The method according to any one of claims 1 to 24, 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.
26. The method according to claim 25, characterized in that The scene information includes at least one of time information, location information, weather information, motion status, and user status information.
27. The method according to any one of claims 1 to 26, 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.
28. The method according to claim 27, characterized in that 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.
29. The method according to claim 27, characterized in that 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 the contact of the incoming call event.
30. The method according to claim 27, characterized in that The first wallpaper display event is a first screen-on event triggered by a click operation. Before displaying the first wallpaper when the first wallpaper display event is detected, the method further includes: Displaying a preset image in the screen-off display state; The step of displaying the first wallpaper when the first wallpaper display event is detected includes: 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.
31. The method according to claim 30, characterized in that Before displaying the wallpaper switching animation when the first wallpaper display event is detected and displaying the first wallpaper when the wallpaper switching animation ends, 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; A wallpaper switching animation is generated according to the posture animation parameters.
32. An electronic device, characterized in that: The electronic device includes 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 31 when executing the program.
33. 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 31 are implemented.
34. 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.
35. The system according to claim 34, 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.
36. The method according to claim 34, 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
Wallpaper display method and device, electronic equipment and storage medium
CN119718497A
Wallpaper display control method and device and electronic equipment
CN111857511A
Interface display method and electronic equipment
CN114244953A
Wallpaper display method, electronic equipment and storage medium
CN115695634A
Wallpaper display method
JP2004362222A
Cited By
Wallpaper generation method and system, electronic equipment and vehicle
CN121166266A