Lock screen wallpaper editing method and electronic device

By expanding the original image and using deep learning and neural networks to predict new images, the problems of limited selection range of lock screen wallpapers and difficulty in achieving depth-of-field effects are solved, resulting in a rich visual experience and visibility of time indicators.

WO2026065520A1PCT designated stage Publication Date: 2026-04-02HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

In existing technologies, the size of lock screen wallpapers limits the range of choices for users, resulting in insufficient wallpaper effects and difficulty in ensuring the visibility of time indicators while creating a depth-of-field effect.

Method used

By expanding the original image, a larger lock screen wallpaper is generated. Deep learning and neural networks are used to predict the new image. Combined with engineering and AI image expansion technology, a new image that is realistic and fits the original image is generated, creating a depth effect and ensuring the visibility of the time indicator.

Benefits of technology

It offers a wider selection of wallpapers, delivers a natural and realistic visual experience, and creates a depth-of-field effect in the lock screen without affecting the visibility of the time indicator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024123057_02042026_PF_FP_ABST
    Figure CN2024123057_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a lock screen wallpaper editing method and an electronic device. In the process of editing a lock screen interface, an electronic device can expand a lock screen wallpaper original picture to obtain a picture of a larger size. In this way, when a user sets part or all of the expanded picture as a lock screen wallpaper, compared with the original picture, there is a larger selection range, and a final wallpaper effect can also be better.
Need to check novelty before this filing date? Find Prior Art

Description

Editing method of lock screen wallpaper and electronic device TECHNICAL FIELD

[0001] The present application relates to the technical field of terminals, and in particular to an editing method of a lock screen wallpaper and an electronic device. BACKGROUND

[0002] A user can set a wallpaper for a lock screen interface of an electronic device such as a mobile phone or a tablet computer to improve the aesthetic appearance. The user can set part or all of an original picture as a wallpaper in the lock screen interface. The larger the size of the original picture, the larger the selection range of the user when setting the wallpaper, and the better the effect of the wallpaper.

[0003] SUMMARY

[0004] The present application provides an editing method of a lock screen wallpaper and an electronic device, which can expand an original picture of the lock screen wallpaper to obtain a picture of a larger size, so as to provide a user with a larger selection range of the wallpaper.

[0005] In a first aspect, an editing method of a lock screen wallpaper is provided, which is applied to an electronic device. The method can include: displaying a lock screen editing interface, the lock screen editing interface including a preview page of a lock screen interface, the preview page displaying a first lock screen wallpaper, the first lock screen wallpaper being part or all of a first original picture; receiving a first operation acting on the lock screen editing interface; in response to the first operation, predicting a first new picture outside the first original picture according to the first original picture to obtain a second original picture including the first original picture and the first new picture; displaying a second lock screen wallpaper in the preview page, the second lock screen wallpaper being part of the second original picture and including part or all of the first new picture, or the second lock screen wallpaper being all of the second original picture.

[0006] Through the method of the first aspect, the electronic device can expand the first original picture into the second original picture. The content of the second original picture is more abundant than that of the first original picture, and the expanded first new picture is real and consistent with the original picture. Thus, using part or all of the content of the second original picture as a lock screen wallpaper can provide a user with a natural and real visual experience.

[0007] In combination with the first aspect, in some embodiments, the electronic device specifically predicts the first new picture according to one or more of the following features of the first original picture: an edge, a background, a texture, and a color.

[0008] In combination with the first aspect, in some embodiments, the electronic device can predict the first new picture according to the first original picture by using deep learning, a neural network, or the like. The content of the first new picture and the first original picture has similarity and continuity, and the new picture can be regarded as a picture extended from the original picture.

[0009] In some embodiments of the first aspect, before receiving the first operation on the lock screen editing interface, the electronic device can further generate a second new picture containing a gradient color outside the first original picture according to the color of the first original picture, to obtain a third original picture containing the first original picture and the second new picture; display the third lock screen wallpaper in the preview page, the third lock screen wallpaper being a part of the third original picture and containing part or all of the second new picture; or the third lock screen wallpaper being the whole third original picture. In this way, the electronic device can first display the second new picture containing a gradient color in the lock screen editing interface, and then display the first new picture predicted in the lock screen editing interface.

[0010] In some embodiments of the last embodiment, before generating the second new picture containing a gradient color outside the first original picture according to the color of the first original picture, the electronic device can further receive a second operation on the first lock screen wallpaper, the second operation being a double-finger pinch operation, or the first operation being a downward swipe or a leftward swipe or a rightward swipe operation. The electronic device can specifically generate the second new picture containing a gradient color outside the first original picture according to the color of the first original picture in response to the second operation.

[0011] In some embodiments, the electronic device can further reduce the first lock screen wallpaper and / or move the position of the first lock screen wallpaper in the preview page in response to the second operation, and fill the area outside the first original picture in the preview page with black during the process of reducing the first lock screen wallpaper and / or moving the position of the first lock screen wallpaper in the preview page.

[0012] In some embodiments, after receiving the second operation on the first lock screen wallpaper, the electronic device can further display a first control in the lock screen editing interface. Wherein, the first operation includes an operation on the first control.

[0013] In some embodiments of the last embodiment, the electronic device can display the first control in the lock screen editing interface when detecting the initial touch point of the second operation; or display the first control in the lock screen editing interface after detecting the initial touch point and during receiving the second operation; or display the first control in the lock screen editing interface after detecting the end of the second operation.

[0014] In some embodiments, displaying the first control in the lock screen editing interface specifically includes: first displaying the first control in an unfolded state, the first control in the unfolded state including the first text and the first icon; after displaying the first control in the unfolded state for a first time length, switching the first control from the unfolded state to a folded state, the first control in the folded state including the first icon but not including the first text. That is, the first control can change the display form.

[0015] In some embodiments, before the second operation acting on the first lock screen wallpaper is received, the lock screen editing interface further displays a second control, the second control being used to replace the original picture corresponding to the lock screen wallpaper displayed in the preview page, and the second control is displayed centrally in the lock screen editing interface. The first control is displayed in the lock screen editing interface, specifically including: the first control is displayed in the lock screen editing interface, and the first control and the second control are centrally displayed in the lock screen editing interface as a whole. In this way, the controls displayed in the entire lock screen editing interface can present a central and symmetrical aesthetic feeling.

[0016] In combination with the first aspect, in some embodiments, the first operation is a double-finger pinch operation, or the first operation is a downward sliding operation or a leftward sliding operation or a rightward sliding operation.

[0017] In combination with the first aspect, in some embodiments, the lock screen editing interface further includes a first control, and the first operation includes an operation acting on the first control.

[0018] In combination with the first aspect, in some embodiments, the first new picture includes one or more of the following: a picture above the first original picture, a picture below the first original picture, a picture to the left of the first original picture, and a picture to the right of the first original picture.

[0019] In combination with the first aspect, in some embodiments, when the first ratio is less than or equal to a second value, the first new picture includes the pictures above, to the left and to the right of the first original picture; when the first ratio is greater than the second value, the first new picture includes the picture above the first original picture; wherein the first ratio is a ratio of an aspect ratio of the first original picture to an aspect ratio of the first display screen, when the electronic device includes only one display screen, the first display screen is the one display screen, or the first display screen is a virtual display screen with a long side of the one display screen as a side length; when the electronic device is a folding screen device including an inner screen and an outer screen, the first display screen is the inner screen.

[0020] In combination with the first aspect, in some embodiments, the preview page further displays a time indicator, the first lock screen wallpaper includes a first subject and a first background, a height of an overlapping part of the first subject in the first lock screen wallpaper and the time indicator exceeds a first value of a height of the time indicator, and the first subject in the first lock screen wallpaper and the first background are both displayed below the time indicator; a height of an overlapping part of the first subject in the second lock screen wallpaper and the time indicator does not exceed the first value of the height of the time indicator, the first subject in the second lock screen wallpaper is displayed above the time indicator, and the first background in the second lock screen wallpaper is located below the time indicator.

[0021] Through the above embodiment, the electronic device can predict the first new picture, so that the lock screen wallpaper displayed in the preview page of the lock screen editing interface presents a depth-of-field effect and does not affect the visibility of the time indicator, and can provide a better visual experience for the user.

[0022] With reference to the first aspect, in some embodiments, the first new picture comprises a picture above the first original picture, a height of the picture above the first original picture is greater than or equal to a second ratio of a first height to a height of the display screen, the first height is a height of a position of an upper edge of the display screen of the electronic device to the first value of the height of the time indicator.

[0023] With reference to the first aspect, in some embodiments, the first new picture further comprises a picture left of the first original picture and a picture right of the first original picture, a width of the picture left of the first original picture is a third ratio of a width of the first original picture, and a width of the picture right of the first original picture is the third ratio of the width of the first original picture, the third ratio is half of the second ratio. In this way, the size of the expanded picture is set, which can save power consumption and shorten the time required for expansion.

[0024] With reference to the first aspect, in some embodiments, the first new picture comprises a picture above the first original picture with a height of 50% of a height of the first original picture, a picture left of the first original picture with a width of 25% of a width of the first original picture, and a picture right of the first original picture with a width of 25% of the width of the first original picture; or the first new picture comprises a picture above the first original picture with a height of 35% of the height of the first original picture, a picture left of the first original picture with a width of 17.5% of the width of the first original picture, and a picture right of the first original picture with a width of 17.5% of the width of the first original picture.

[0025] With reference to the first aspect, in some embodiments, a third operation acting on the second lock screen wallpaper is received; during the process of receiving the third operation, the second lock screen wallpaper is reduced and / or the position of the second lock screen wallpaper in the preview page is moved. That is, after predicting the first new picture, the user can reduce or move the position of the second lock screen wallpaper in the preview page as needed.

[0026] With reference to the first aspect, in some embodiments, during the process of predicting the first new picture outside the first original picture according to the first original picture, a first window is displayed in the lock screen editing interface, and the first window displays a progress of generating the first new picture.

[0027] With reference to the first aspect, in some embodiments, the progress displayed in the first window is initially a percentage of a time length used for generating the first new picture to a preset time length, when the electronic device completes the generation of the first new picture within the preset time length, the progress is displayed as 100%; when the electronic device does not complete the generation of the first new picture within the preset time length, the progress is displayed as 99% when the preset time length is reached and remains unchanged, and the progress is displayed as 100% when the generation of the first new picture is completed.

[0028] In some embodiments of the first aspect, the lock screen editing interface further includes a third control. The method further includes: in response to a user operation on the third control, displaying a second window in the lock screen editing interface, the second window displaying a plurality of style options, the plurality of style options including a first style option, the first style option corresponding to the first style; and in response to a user operation on the first style option, adjusting the style of the content of the lock screen wallpaper displayed in the preview page to the first style. In this way, the user can adjust the style of the content displayed in the preview page according to personal preferences.

[0029] In some embodiments of the first aspect, the electronic device can perform portrait enhancement on the lock screen wallpaper displayed in the preview page, and display the lock screen wallpaper after the portrait enhancement in the preview page. In this way, the quality of the lock screen wallpaper displayed in the preview page can be improved.

[0030] In some embodiments, the electronic device can perform portrait enhancement on the lock screen wallpaper displayed in the preview page when it is identified that there is a blurred portrait in the preview page.

[0031] In some embodiments of the first aspect, the lock screen editing interface further includes a fourth control. The electronic device can display a lock screen interface in response to a fourth operation on the fourth control, the lock screen interface displaying the lock screen wallpaper received when the fourth operation is performed on the preview page. That is, the electronic device can apply the editing result in the lock screen editing interface to the lock screen interface.

[0032] The second aspect provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the method provided in the first aspect or any of the embodiments of the first aspect.

[0033] The third aspect provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method provided in the first aspect or any of the embodiments of the first aspect.

[0034] The fourth aspect provides a computer program product, which includes a computer program. The computer program is executed by a processor to implement the method provided in the first aspect or any of the embodiments of the first aspect.

[0035] The fifth aspect provides a chip system, which includes a processor and a memory. The memory stores a computer program. The computer program is executed by the processor to implement the method provided in the first aspect or any of the embodiments of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0036] FIG. 1 illustrates a lock screen interface 10 with a depth-of-field effect and without affecting the visibility of a time indicator;

[0037] FIG. 2 illustrates a picture 20 and a lock screen interface 30 without a depth-of-field effect;

[0038] FIGS. 3A and 3B respectively illustrate a set of user interfaces in the process of editing a lock screen interface by an electronic device, which fails to build a depth-of-field effect;

[0039] FIG. 4 illustrates a ratio relationship between a picture and a display screen in building a depth-of-field effect;

[0040] FIG. 5A illustrates a set of user interfaces in the process of editing a lock screen interface by an electronic device according to an embodiment of the present disclosure;

[0041] FIG. 5B illustrates another set of user interfaces in the process of editing a lock screen interface by an electronic device according to an embodiment of the present disclosure;

[0042] FIG. 5C illustrates another set of user interfaces in the process of editing a lock screen interface by an electronic device according to an embodiment of the present disclosure;

[0043] FIGS. 6A-6C respectively illustrate a display mode of an AI picture expansion control 502;

[0044] FIG. 7A illustrates various expansion directions;

[0045] FIGS. 7B and 7C respectively illustrate a picture 20, a display screen, and a picture after AI picture expansion;

[0046] FIG. 8A illustrates a picture size, a display screen size, and a picture size after expansion;

[0047] FIGS. 8B and 8C respectively illustrate a picture size before and after AI picture expansion;

[0048] FIG. 9 illustrates a set of user interfaces in the process of editing a lock screen interface by an electronic device, which applies an AI style to the lock screen interface;

[0049] FIG. 10 illustrates a set of user interfaces in the process of editing a lock screen interface by an electronic device, which provides a portrait enhancement function;

[0050] FIG. 11 is a flowchart of a method for editing a lock screen wallpaper according to an embodiment of the present disclosure;

[0051] FIG. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;

[0052] FIG. 13 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings.

[0054] The following embodiments of the present application provide an editing method of lock screen wallpaper. The method obtains a picture larger than the size of an original picture by expanding the original picture. Thus, when a user sets part or all of the expanded picture as the lock screen wallpaper, the user has a larger selection range compared to the original picture, and the final wallpaper effect is better.

[0055] Further, in some embodiments, by expanding the original picture to a suitable size, a picture that can construct a depth-of-field effect and does not affect the visibility of the time indicator can also be obtained. Thus, when part or all of the expanded picture is set as the lock screen wallpaper, the depth-of-field effect can be constructed and the visibility of the time indicator is not affected, providing a good visual experience for the user.

[0056] Expanding a picture (referred to as expansion) refers to generating more pictures without losing the original image quality, thereby increasing the size of the image and expanding the field of view. Expansion can expand the picture around without losing the original picture quality, making the picture content more abundant.

[0057] The expansion method provided by the embodiments of the present application includes the following two methods:

[0058] 1. Engineering expansion

[0059] Engineering expansion refers to extracting colors in the original picture and then filling the colors around the original picture, thereby expanding the original picture. During engineering expansion, colors (such as solid colors or gradient colors) can be filled around the original picture based on the extracted colors. The gradient colors can present an effect that the original picture gradually fades to white. After filling the colors around the original picture, the area filled with the colors can also be blurred during engineering expansion. During engineering expansion, the directions to which the original picture is expanded and the size of the expansion can be referred to the introduction of subsequent embodiments. The time required for engineering expansion is relatively short.

[0060] 2. AI expansion

[0061] AI expansion refers to recognizing features (such as one or more of edges, colors, textures, characters, backgrounds, etc.) in the original picture, and predicting or completing more pictures around the original picture based on these features, thereby expanding the original picture to have a larger picture size and a wider viewing angle. The new pictures outside the original picture are predicted based on the features of the original picture, and thus the new pictures are consistent with the original picture. The content of the new pictures and the original picture has similarity and continuity, and the new pictures can be regarded as pictures extended from the original picture. AI expansion makes the picture content more abundant, and the expanded new pictures are more realistic. AI expansion can avoid the blur and distortion problems in traditional expansion schemes.

[0062] For example, the content of a picture includes a table, but the table is missing a corner, and through AI image expansion, the missing corner of the table can be predicted and the original image can be expanded. For another example, the content of a picture includes a person and a background, and through AI image expansion, a more abundant and broad background can be predicted and the original image can be expanded.

[0063] In the AI image expansion process, AI technologies such as deep learning and neural networks can be used to analyze and process the original image. When AI image expansion is performed, the directions in which to expand and the size of the expansion can be referred to in subsequent embodiments. The time required for AI image expansion is shorter than the time required for engineering expansion, for example, about 15 seconds.

[0064] A depth-of-field effect can be constructed in the lock screen interface to provide a better visual experience for the user. The depth-of-field effect refers to the effect of displaying the main part of the wallpaper above the time indicator and displaying the background of the wallpaper below the time indicator in the lock screen interface, so that the main part of the wallpaper and the time indicator are presented at different depths. After the depth-of-field effect is constructed, the main part of the wallpaper will block the time indicator, so in order to ensure the visibility of the time indicator, the depth-of-field effect is usually constructed on the premise that the main part of the wallpaper does not affect the visibility of the time indicator, and the depth-of-field effect is not constructed in the case that the main part of the wallpaper affects the visibility of the time indicator.

[0065] FIG. 1 exemplarily shows a lock screen interface 10 with a depth-of-field effect and without affecting the visibility of the time indicator.

[0066] The lock screen interface 10 displays: a status bar 101, a lock screen identifier 102, an unlock prompt 103, a date component 104, a time indicator 105, a lock screen wallpaper 106, and a camera icon 107.

[0067] The lock screen wallpaper 106 can be a picture obtained from a picture in the gallery or a preset wallpaper of the electronic device. The display area of the lock screen wallpaper 106 is the entire display screen, and the main part of the lock screen wallpaper 106 is a puppy 106a. The time indicator 105 is located in the upper middle of the display screen. The puppy 106a and the time indicator 105 overlap in the lower part of the time indicator 105, the puppy 106a is displayed above the time indicator 105 and does not affect the visibility of the time indicator 105, the puppy 106a is not blocked by the time indicator 105, and the background of the lock screen wallpaper 106 is still displayed below the time indicator 105. In this way, the main part of the lock screen wallpaper 106, the time indicator 105, and the background of the lock screen wallpaper 106 are located in different layers, which can make the lock screen interface 10 have a hierarchical effect of different distances, i.e., a depth-of-field effect.

[0068] The time indicator 105 is usually located at a fixed position in the display screen, for example, a position slightly above the middle of the display screen. Of course, in some embodiments, the time indicator 105 can also be located at other positions in the display screen, and the position thereof can also be adjusted by the user as needed. The height of the time indicator 105 can be set as needed, and the embodiments of the present application do not limit this.

[0069] When the electronic device contains one display screen, the position and height of the time indicator 105 in the display screen are different when the display screen is in landscape display and portrait display. The height of the display screen refers to the height in the display direction.

[0070] When the electronic device contains multiple display screens, the position and height of the time indicator 105 displayed on different display screens can also be different, and the position and height of the time indicator 105 on the same display screen can also be different when the display screen is in landscape display and portrait display.

[0071] In some embodiments, some decorative pictures (such as a photo frame) or texts, color backgrounds, etc. can also be displayed in the lock screen interface 10, which can be set by the user. In order to simplify the description, the lock screen interface introduced in the subsequent embodiments does not mention these contents, but the specific implementation of the lock screen interface can contain the above-mentioned contents.

[0072] The lock screen interface involves two pictures, one is the original picture, and the other is the lock screen wallpaper actually displayed in the lock screen interface 10. The original picture is a picture in the gallery or a preset picture of the electronic device. The lock screen wallpaper is obtained according to the corresponding original picture, specifically: 1. When the size of the original picture and the size of the display screen are consistent, the lock screen wallpaper is the original picture. 2. When the size of the original picture and the size of the display screen are inconsistent, but the proportion of the original picture and the proportion of the display screen are consistent, the lock screen wallpaper can be a picture obtained by reducing or enlarging the original picture. 3. The lock screen wallpaper is a picture obtained by cropping the original picture, that is, the lock screen wallpaper is part of the original picture. 4. The lock screen wallpaper is a picture obtained by reducing or enlarging the original picture and then cropping, and in this case, the lock screen wallpaper is also part of the original picture.

[0073] The electronic device can use an image segmentation method to segment the lock screen wallpaper into foreground and background, and then assign a hierarchical relationship to it. The foreground is the main body in the lock screen wallpaper. The main body can include, for example, people, animals, vases, etc., and the background can include landscapes, buildings, etc. The image segmentation method can include, but is not limited to, threshold segmentation, edge detection, region growing, graph cut algorithm, segmentation method based on deep learning, etc.

[0074] When the height of the main body of the lock screen wallpaper that blocks the time indicator is less than a first value (e.g., 50%) of the height of the time indicator, the visibility of the time indicator is not affected, and thus the depth-of-field effect can be constructed, as shown in FIG. 1. When the height of the main body of the lock screen wallpaper that blocks the time indicator is greater than the first value, the time indicator is mostly blocked and invisible. In order to ensure the visibility of the time indicator, the depth-of-field effect is not constructed. The first value can be set as needed, and is not limited herein.

[0075] The lock screen interface 10 shown in FIG. 1 has the depth-of-field effect and does not affect the visibility of the time indicator. However, not all original pictures can be applied to the lock screen wallpaper to construct the depth-of-field effect in the lock screen interface 10 and not affect the visibility of the time indicator.

[0076] FIG. 2 exemplarily shows an original picture 20 and a lock screen interface 30 without the depth-of-field effect.

[0077] FIG. 2(a) shows the original picture 20.

[0078] FIG. 2(b) shows the lock screen interface 30 displayed after the original picture 20 is applied to the lock screen wallpaper. The lock screen interface 30 is different from the lock screen interface 10 shown in FIG. 1 in that the lock screen wallpaper is different. The lock screen interface 30 displays a lock screen wallpaper 201, and the main body of the lock screen wallpaper 201 is a person 201a. The lock screen wallpaper 201 is obtained based on the original picture 20. For example, the size of the original picture 20 is slightly greater than the size of the display screen (e.g., the height of the original picture 20 is higher than the height of the display screen), and the lock screen wallpaper 201 is obtained by cropping a part at the top of the original picture 20. The lock screen wallpaper 201 is a part of the original picture 20. As shown in FIG. 2(b), the height of the overlapping part of the person 201a and the time indicator 105 is greater than the height of the time indicator 105. In order to ensure the visibility of the time indicator 105, the depth-of-field effect is not constructed, and thus the person 201a is displayed below the time indicator 105, and the person 201a is blocked by the time indicator 105.

[0079] As shown in FIG. 2(b), when the electronic device displays the lock screen interface 30, a user operation (e.g., a double-finger pinch operation) can be received. In response to the user operation, the electronic device displays the lock screen editing interface 40 shown in FIG. 2(c). Not limited to this, the lock screen editing interface 40 can also be entered in other manners. For example, when the electronic device displays the original picture 20 in the gallery, an operation on a control for applying the original picture 20 to the wallpaper can be received, and the lock screen editing interface 40 is displayed in response to the operation.

[0080] The lock screen editing interface 40 displays a preview page 401 of the lock screen interface, a frame 402 of the preview page of the desktop, and a related function control for editing the lock screen wallpaper.

[0081] The preview page 401 is used to show the effect of the lock screen wallpaper in the lock screen interface. The preview page 401 can be located in the middle of the display screen width, that is, the distance between the left edge of the preview page 401 and the left edge of the display screen is the same as the distance between the right edge of the preview page 401 and the right edge of the display screen. The scale of the preview page 401 is the same as the scale of the display screen where the lock screen editing interface 40 is located, and the size of the preview page 401 can be regarded as the size of the display screen after being reduced. Compared with the lock screen interface in the normal use process, the preview page 401 does not display the status bar 101, the lock screen identifier 102, the unlocking prompt 103, and the camera icon 107, but displays the reduced lock screen wallpaper 201, the date component 104, and the time indicator 105. In the preview page 401, the lock screen wallpaper 201 can be edited, such as being scaled, being moved (such as being moved up, being moved down, being moved left, being moved right, etc.), and the like. The date component 104 and the time indicator 105 are surrounded by a frame, which is used to prompt the user to edit the date component 104 and the time indicator 105, such as changing the display form, font, color, and the like.

[0082] The frame 402 of the preview page of the desktop is used to prompt the user that the current preview page 401 can also be switched to the preview page of the desktop. For example, the electronic device can receive an operation of swiping left on the lock screen editing interface 40, and in response to the operation, switch the preview page 401 to the preview page of the desktop.

[0083] The related function control for editing the lock screen wallpaper can include a back key 403, an application key 404, a picture replacement control 405, a lock screen style control 406, an artificial intelligence (AI) style control 407, and a depth of field control 408.

[0084] When receiving an operation acting on the back key 403, the electronic device will not save the editing result of the lock screen interface by the user in the lock screen editing interface 40, and return to display (b) of FIG. 2.

[0085] When receiving an operation acting on the application key 404, the electronic device will save the editing result of the lock screen interface by the user in the lock screen editing interface 40, and display the lock screen interface applying the editing result.

[0086] When receiving an operation acting on the picture replacement control 405, the electronic device can display a pop-up window at the bottom of the lock screen editing interface 40, and display a plurality of picture options in the gallery in the pop-up window. The user can select a picture option in the pop-up window, and in response to the selection operation, the electronic device can close the pop-up window and replace the lock screen wallpaper in the preview page 401 with the lock screen wallpaper corresponding to the selected picture option.

[0087] When receiving an operation acting on the lock screen style control 406, the electronic device can display a pop-up window at the bottom of the lock screen editing interface 40, and display a plurality of wallpaper template options in the pop-up window, and further display a picture in the gallery option and some wallpaper picture options preset by the electronic device. The user can select the desired wallpaper template and the original picture of the wallpaper in the pop-up window. The wallpaper template can contain some decorative pictures (such as a picture frame) or text, color background, etc.

[0088] When receiving an operation acting on the AI style control 407, the electronic device can display a pop-up window at the bottom of the lock screen editing interface 40, and display a plurality of AI style options in the pop-up window. The user can select the desired AI style option in the pop-up window, and the electronic device can apply the AI style corresponding to the AI style option selected by the user to the lock screen wallpaper. The AI style can include 3D cartoon style, fresh style, retro style, nostalgic style, etc.

[0089] When receiving an operation acting on the depth of field control 408, the electronic device can display a pop-up window at the bottom of the lock screen editing interface 40, and display a switch of the depth of field function and a switch of the background blur function in the pop-up window. The user can select whether to turn on the depth of field function or the background blur function.

[0090] As shown in (c) of FIG. 2, the bottom color of the depth of field control 408 is dark, which indicates that the depth of field function in the lock screen interface has been turned on. However, since the height of the overlapping part of the character 201a and the time indicator 105 in the lock screen wallpaper 201 is too large (i.e., exceeds the first value of the height of the time indicator 105) at this time, in order to ensure the visibility of the time indicator 105, the depth of field effect is not constructed at this time, and the character 201a is still displayed below the time indicator 105.

[0091] FIGS. 3A and 3B respectively show a set of user interfaces in the process of the electronic device editing the lock screen interface, which fails to construct the depth of field effect.

[0092] FIG. 3A shows the process of the user editing the lock screen interface by reducing the lock screen wallpaper.

[0093] (a) of FIG. 3A shows the lock screen editing interface 40, and the specific content of the interface can be referred to the related introduction of FIG. 2.

[0094] As shown in (a) of FIG. 3A, the electronic device can receive a user operation, such as a double-finger pinch operation, acting on the lock screen wallpaper 201. As shown in (b) of FIG. 3A, during the double-finger pinch operation, as the double-finger sliding distance increases, the electronic device starts to reduce the lock screen wallpaper 201 with the center of the double-finger pinch as the reference point, and fills the content of the original picture 20 in the periphery of the lock screen wallpaper 201 to fill the preview page 401. In this way, the lock screen wallpaper in the preview page 401 can be adjusted. During the reduction of the lock screen wallpaper 201, if the height of the overlapping part of the person 201a and the time indicator 105 in the lock screen wallpaper 201 does not exceed a certain value (such as 50%) of the height of the time indicator 105, the person 201a can be displayed above the time indicator 105, while the rest of the lock screen wallpaper 201 is still displayed below the time indicator 105, thereby presenting a depth-of-field effect.

[0095] As shown in (b) of FIG. 3A, according to the size of the original picture 20, during the reduction of the lock screen wallpaper 201, the edge part of the original picture 20 is filled into the preview page 401, but the preview page 401 is still not filled, so the part not filled by the original picture 20 is filled with black. In this way, the user can be prompted that the original picture 20 is not sufficient to support the original picture 20 to be reduced to the current scale as the lock screen wallpaper.

[0096] As shown in (c) of FIG. 3A, when the user's double-finger pinch operation ends and the fingers are released from the display screen, the electronic device will bounce back and display, that is, instead of displaying the preview page 401 filled with black displayed by the electronic device at the end point of the pinch operation, the electronic device displays the preview page 401 not filled with black, such as the preview page 401 shown in (a) of FIG. 3A, or the preview page 401 at the maximum reduction scale when the black filled part does not appear during the reduction of the lock screen wallpaper 201. After the electronic device bounces back and displays, since the height of the overlapping part of the person 201a and the time indicator 105 exceeds a certain value (such as 50%) of the height of the time indicator 105, in order to ensure the visibility of the time indicator 105, no depth-of-field effect is constructed at this time.

[0097] As can be seen, when the person 201a occupies a large proportion in the lock screen interface, the lock screen wallpaper can be reconstructed by reducing the lock screen wallpaper, but it is still subject to the position of the main body in the original picture 20 and no depth-of-field effect is constructed.

[0098] FIG. 3B shows the process of the user editing the lock screen interface by moving the position of the lock screen wallpaper.

[0099] (a) of FIG. 3B shows the lock screen editing interface 40, and the specific content of the interface can be referred to the related introduction of FIG. 2.

[0100] As shown in (a) of FIG. 3B, the electronic device can receive a user operation, such as a double-finger downward swipe operation, acting on the lock screen wallpaper 201. As shown in (b) of FIG. 3B, during the double-finger downward swipe operation, as the swipe distance increases, the electronic device starts to move the lock screen wallpaper 201 downward and fills the content of the original image 20 in the periphery (e.g., the top) of the lock screen wallpaper 201 to fill the preview page 401. In this way, the lock screen wallpaper in the preview page 401 can be adjusted. During the movement of the lock screen wallpaper 201, if the height of the overlapping part of the figure 201a and the time indicator 105 in the lock screen wallpaper 201 does not exceed a certain value (e.g., 50%) of the height of the time indicator 105, the figure 201a can be displayed above the time indicator 105, while the rest of the lock screen wallpaper 201 is still displayed below the time indicator 105, thereby presenting a depth-of-field effect.

[0101] As shown in (b) of FIG. 3B, according to the size of the original image 20, during the movement of the lock screen wallpaper 201 downward, the edge part of the original image 20 is filled into the preview page 401, but the preview page 401 is still not filled, so the part not filled by the original image 20 is filled with black. In this way, the user can be prompted that the original image 20 is not sufficient to support the original image 20 to move to the current position as the lock screen wallpaper.

[0102] As shown in (c) of FIG. 3B, when the user's double-finger downward swipe operation ends and the fingers are released from the display screen, the electronic device will bounce back and display, that is, instead of displaying the preview page 401 filled with black displayed by the electronic device at the end point of the double-finger downward swipe operation, the electronic device displays the preview page 401 not filled with black, such as the preview page 401 shown in (a) of FIG. 3B or the preview page 401 at the maximum movement distance during the movement of the lock screen wallpaper 201 without the black filled part. After the electronic device bounces back and displays, since the height of the overlapping part of the figure 201a and the time indicator 105 exceeds a certain value (e.g., 50%) of the height of the time indicator 105, in order to ensure the visibility of the time indicator 105, no depth-of-field effect is constructed at this time.

[0103] As can be seen, when the figure 201a occupies a large proportion in the lock screen interface, the lock screen wallpaper can be reconstructed by moving the lock screen wallpaper, but it is still subject to the position of the main body in the original image 20 and no depth-of-field effect is constructed.

[0104] As can be seen from FIG. 3A and FIG. 3B, not all original images can construct a depth-of-field effect in the lock screen interface and affect the visibility of the time indicator after being applied to the lock screen wallpaper.

[0105] The original picture that can build the depth-of-field effect in the lock screen interface and does not affect the visibility of the time indicator has the following characteristics: when the original picture, or the picture after the original picture is zoomed out, or the picture after the original picture is zoomed in, is placed in the display screen so that the part of the picture subject and the time indicator overlaps does not exceed a certain value (such as 50%) of the height of the time indicator 105 (that is, the depth-of-field effect is presented), the picture can fill the entire display screen without being unable to fill the entire display screen.

[0106] FIG. 4 exemplarily shows the proportional relationship between the picture and the display screen when the depth-of-field effect is built without affecting the visibility of the time indicator. As shown in FIG. 4, the subject in the picture is placed in a position that blocks a part of the time indicator 105 but does not affect the visibility of the time indicator 105, and the picture can fill the entire display screen without gaps. The picture can be the original picture, or the picture after the original picture is zoomed in, or the picture after the original picture is zoomed out.

[0107] As long as the original picture meets the above characteristics, the user can place the original picture, or the picture after the original picture is zoomed out, or the picture after the original picture is zoomed in, in a suitable position in the display screen so that the subject in the picture blocks a part of the time indicator 105 but does not affect the visibility of the time indicator 105, that is, the depth-of-field effect can be built in the lock screen interface without affecting the visibility of the time indicator.

[0108] If the original picture does not meet the above characteristics, no matter how the user edits (such as zooming in, zooming out, or moving the position) the original picture, the subject in the picture cannot block a part of the time indicator 105 but does not affect the visibility of the time indicator 105, that is, the depth-of-field effect cannot be built in the lock screen interface without affecting the visibility of the time indicator.

[0109] FIG. 5A is a set of user interfaces provided by the electronic device according to an embodiment of the present application to edit the lock screen interface.

[0110] FIG. 5A shows the process in which the user edits the lock screen interface by zooming out the lock screen wallpaper.

[0111] FIG. 5A (a) shows the lock screen editing interface 40, and the specific content of the interface can be referred to the related description of FIG. 2.

[0112] As shown in FIG. 5A (a), the electronic device can receive a user operation (such as a double-finger pinch operation) acting on the lock screen wallpaper 201. This process can be referred to FIG. 3A (a) and (b), which will not be described herein.

[0113] As shown in (b) of FIG. 5A, during the process of receiving the double-finger pinch operation, according to the size of the original image 20, the electronic device fills the edge part of the original image 20 into the preview page 401 during the process of zooming out the lock screen wallpaper 201, and the preview page 401 is still not filled. In response to the double-finger pinch operation, the electronic device performs the engineering zooming of the original image 20. At this time, the electronic device fills the picture expanded by the engineering zooming in the area outside the original image in the preview page 401 (such as the area above the original image, the left area and the right area shown in (b) of FIG. 5A). As shown in (c) of FIG. 5A, with the increase of the double-finger sliding distance, the area outside the original image in the preview page 401 gradually increases, and the picture filled in the preview page 401 by the engineering zooming also gradually increases.

[0114] As shown in (b) and (c) of FIG. 5A, the area outside the original image in the preview page 401 is filled with a gradient color, and since the color in the original image 20 cannot be truly displayed, the gradient color filled in (b) of FIG. 5A is only a schematic and cannot represent the true color.

[0115] As shown in (b) of FIG. 5A, after the electronic device displays the picture obtained by the engineering zooming, the electronic device can display a prompt information 501. The prompt information 501 is used to prompt the user that the picture displayed in the preview page 401 is the picture obtained by the expansion. The prompt information 501 can be continuously displayed, or can disappear after being displayed for a period of time.

[0116] As shown in (b) of FIG. 5A, the electronic device can also display an AI zooming control 502 in the lock screen editing interface 40. The AI zooming control 502 is used to trigger the AI zooming. The AI zooming control 502 can be displayed when the electronic device receives the double-finger pinch operation, can be displayed during the double-finger pinch operation, or can be displayed after the user releases the finger, which is not limited here.

[0117] As shown in (c) and (d) of FIG. 5A, after the user ends the double-finger pinch operation, the electronic device can receive a user operation acting on the AI zooming control 502, and the electronic device starts the AI zooming of the original image 20 in response to the operation. In some embodiments, after the user ends the double-finger pinch operation, before the user operation is input on the AI zooming control 502, the double-finger pinch operation or the double-finger sliding operation can be input again to adjust the composition of the picture obtained by the engineering zooming in the preview page 401.

[0118] As shown in (e) of FIG. 5A, during the AI zoom-in process, the electronic device can display a pop-up window 503 containing the zoom-in progress in the lock screen editing interface 40. The zoom-in progress can be in the form of a percentage. The display rule of the zoom-in progress in the pop-up window 503 can be: a preset time length (such as 15 seconds) is set, the percentage of the time length used for AI zoom-in in the preset time length is calculated in real time, and the percentage is displayed in the pop-up window in real time; if the AI zoom-in is completed within the preset time length, the percentage displayed in the pop-up window directly jumps to 100% when the AI zoom-in is completed; if the AI zoom-in is not completed within the preset time length, 99% is displayed in the pop-up window when the preset time length is reached and remains until the AI zoom-in is completed after the preset time length and then jumps to 100%. If the electronic device fails to complete the AI zoom-in within a longer time length (such as 20 seconds), a prompt information for prompting zoom-in failure, such as the text “generation failed, please click retry”, is displayed in the pop-up window.

[0119] As shown in (e) of FIG. 5A, the pop-up window 503 can also include a cancel control 503a. When the electronic device receives a user operation acting on the cancel control 503a, in response to the operation, the electronic device will stop the AI zoom-in and return to display (d) of FIG. 5A. In other embodiments, when the electronic device displays (e) of FIG. 5A, it can also receive a user operation acting on the back key in the navigation bar (not shown in the figure) or a gesture operation of swiping from the left edge of the display screen to the right, and can respond to the above operations to stop the AI zoom-in and return to display (d) of FIG. 5A.

[0120] As shown in (f) of FIG. 5A, after the AI zoom-in is completed, the electronic device fills the expanded picture obtained by the AI zoom-in in the area outside the original picture in the preview page 401, i.e., the electronic device fills the picture predicted according to the characteristics of the original picture 20. Since it is impossible to truly show the characteristics such as texture and color in the original picture 20, the expanded picture filled in (f) of FIG. 5A is only a schematic and cannot represent the real expanded picture. The position of the original picture 20 in the preview page 401 in (f) of FIG. 5A can refer to the position of the original picture 20 in the preview page 401 when the double-finger pinch operation is released, i.e., (c) of FIG. 5A. In other embodiments, after the AI zoom-in is completed, the electronic device can also display all or part of the picture obtained after the AI zoom-in in the preview page 401, and the part or all of the picture contains the expanded picture obtained by the AI zoom-in. That is, after the AI zoom-in is completed, the electronic device can re-compose the picture after the AI zoom-in and display it in the preview page 401, and the part of the picture after the AI zoom-in displayed in the preview page 401 can be determined by the electronic device, as long as the content displayed in the preview page 401 contains the expanded picture obtained by the AI zoom-in. In this way, the user can know the result of the AI zoom-in through the preview page 401.

[0121] As shown in (f) of FIG. 5A, after the AI zooming is completed, the electronic device displays the part of the original picture 20 in the preview page 401 such that the person 201a is above the time indicator 105 and the background is below the time indicator 105, which presents a depth-of-field effect, and the person 201a does not affect the visibility of the time indicator 105.

[0122] After the AI zooming is completed, the user can edit the picture obtained after the AI zooming in the preview page 401, such as zooming in, zooming out, moving the position, and the like. When the user moves the edge of the picture to the preview page 401 and the preview page 401 displays a black filling area, if the user releases the finger, the electronic device will bounce back and display.

[0123] As shown in (f) of FIG. 5A, after the AI zooming is completed, the electronic device can change the display form of the AI zooming control 502, such as changing the bottom color, adding a border, displaying in bold, and the like, to prompt the user that the picture displayed in the preview page 401 is the picture obtained by AI zooming.

[0124] When (f) of FIG. 5A is displayed, the electronic device can also receive a user operation acting on the AI zooming control 502, and in response to the operation, the electronic device can return to display (d) of FIG. 5A, that is, the picture obtained by AI zooming is switched to the picture obtained by engineering zooming. After returning to display (d) of FIG. 5A, the electronic device can also receive a user operation acting on the AI zooming control 502 again, and in response to the user operation, the electronic device does not need to perform the AI zooming operation again, but only needs to load the result of the last AI zooming and directly display (f) of FIG. 5A.

[0125] FIG. 5B is another set of user interfaces provided by the electronic device according to an embodiment of the present application to edit the lock screen interface.

[0126] The difference between the set of user interfaces shown in FIG. 5B and the user interfaces shown in FIG. 5A is that the electronic device performs engineering zooming on the original picture 20 in response to the double-finger downward sliding operation received in the preview page 401. In the set of user interfaces shown in FIG. 5B, during the process of zooming out the lock screen wallpaper 201, the edge part of the original picture 20 is filled into the preview page 401, but the preview page 401 is not yet filled, at this time, the electronic device fills the picture expanded by engineering zooming in the area outside the original picture in the preview page 401 (such as the area above the original picture shown in (b) of FIG. 5B).

[0127] For the description of FIG. 5B, refer to the related description of FIG. 5A.

[0128] The electronic device can display the picture expanded by the engineering zoom-in in the preview page 401 when the user inputs a double-finger pinch operation in the preview page 401, as shown in FIG. 5A. The electronic device can display the picture expanded by the engineering zoom-in in the preview page 401 when the user inputs a double-finger slide operation in the preview page 401, as shown in FIG. 5B. The electronic device can display the picture expanded by the engineering zoom-in in the preview page 401 when the user inputs other operations in the preview page 401.

[0129] When the user inputs a double-finger zoom-in operation in the preview page 401, the electronic device displays a part of the zoomed-in lock screen wallpaper 201 in the preview page 401. In this case, the electronic device does not fill the picture expanded by the engineering zoom-in in the preview page 401.

[0130] FIG. 5C illustrates a set of user interfaces displayed by the electronic device when the electronic device edits the lock screen interface.

[0131] The difference between FIG. 5C and FIG. 5A is that the electronic device does not enable the depth-of-field function.

[0132] As shown in FIG. 5C, the difference between the set of user interfaces shown in FIG. 5C and the set of user interfaces shown in FIG. 5A is that the person 201a is always displayed below the time indicator 105, and the rest of the lock screen wallpaper 201 is also displayed below the time indicator 105, without the depth-of-field effect. Through the user interfaces shown in FIG. 5C, the electronic device can expand the original picture 20, so that the user can select part or all of the expanded original picture 20 as the lock screen wallpaper, with a larger selection range than the original picture 20.

[0133] The electronic device can also display a picture similar to that shown in FIG. 5C when the depth-of-field function is enabled, provided that the height of the person 201a blocking the time indicator 105 is always higher than the first value (e.g., 50%) of the height of the time indicator 105 during the user's movement of the lock screen wallpaper in the preview page 401, i.e., the depth-of-field effect cannot be built.

[0134] The double-finger pinch operation shown in FIG. 5C is only an example, and the same effect can also be triggered by a double-finger slide operation or other operations.

[0135] Other embodiments

[0136] In some embodiments, after the electronic device receives the double-finger pinch operation or the double-finger swipe-down operation on the preview page 401, the electronic device can fill the area outside the original image 20 in the preview page 401 with black during the process of zooming out or moving the lock screen wallpaper, and then fill the area outside the original image in the preview page 401 with the picture obtained by the engineered zoom-out after the user operation is released. In this way, the electronic device has sufficient time to perform the engineered zoom-out, and the requirement for computing power during the zoom-out is not high. In this way, the black is filled first, and then the picture of the engineered zoom-out is filled after the gesture is released, which meets the user's expectation of the user operation.

[0137] In some embodiments, after the electronic device receives the user operation in the preview page 401, the electronic device can further determine whether the original image corresponding to the lock screen wallpaper displayed in the preview page 401 meets the characteristics of the picture that builds the depth-of-field effect and does not affect the visibility of the time indicator, and if not, the engineered zoom-out is started.

[0138] In some embodiments, during the process of editing the lock screen interface, the electronic device can also not perform the engineered zoom-out, but only perform the AI zoom-out. Based on the editing method of the lock screen interface introduced in FIGS. 5A, 5B, and 5C, the present application further provides the following several parallel editing methods of the lock screen interface:

[0139] Method 1. After the electronic device receives the user operation (such as the double-finger pinch operation or the operation of moving the lock screen wallpaper 201) in the preview page 401, the electronic device zooms out the lock screen wallpaper 201 in response to the operation, fills the area outside the original image 20 in the preview page 401 with black after the edge part of the original image 20 is filled into the preview page 401. After receiving the user operation, the electronic device can display the AI zoom-out control 502 in the lock screen editing interface 40, and when the user releases the finger, the electronic device can bounce back and display and start the AI zoom-out after receiving the user operation acting on the AI zoom-out control 502.

[0140] In combination with method 1, in some embodiments, after the electronic device receives the user operation in the preview page 401, the electronic device can further determine whether the original image corresponding to the lock screen wallpaper displayed in the preview page 401 meets the characteristics of the picture that builds the depth-of-field effect and does not affect the visibility of the time indicator, and if not, the AI zoom-out control 502 is displayed or the displayed AI zoom-out control 502 is valid.

[0141] Manner 2. After the electronic device receives the user operation (such as a double-finger pinch operation or an operation of moving the lock screen wallpaper 201) in the preview page 401, the electronic device responds to the operation and, in the process of receiving the user operation, reduces the lock screen wallpaper 201, and after the edge part of the original picture 20 is filled into the preview page 401, fills the area outside the original picture 20 in the preview page 401 with a picture expanded by AI expansion. In this manner, the user does not need to trigger AI expansion through the AI expansion control 502, and the electronic device can directly start AI expansion in response to the above-mentioned user operation.

[0142] In combination with manner 2, in some embodiments, after the electronic device receives a double-finger pinch operation or a double-finger swipe-down operation on the preview page 401, the electronic device can fill the area outside the original picture 20 in the preview page 401 with black in the process of reducing or moving the lock screen wallpaper, and then fill the area outside the original picture in the preview page 401 with a picture expanded by AI expansion after the user operation is released. In this way, the electronic device has enough time to perform AI expansion, and the required computing power for expansion is not high. In this way, black is filled first, and then the picture of AI expansion is filled after the gesture is released, which meets the user's expectation of the user operation.

[0143] In combination with manner 2, in some embodiments, after the electronic device receives the above-mentioned user operation in the preview page 401, the electronic device can also determine whether the original picture corresponding to the lock screen wallpaper displayed in the current preview page 401 meets the characteristics of the picture that builds a depth-of-field effect and does not affect the visibility of the time indicator, and if not, AI expansion is started.

[0144] In the embodiments of the present application, the AI expansion control 502 is used to trigger the electronic device to perform AI expansion. Triggering AI expansion through AI control is an efficient and simple way for users to trigger AI expansion. The display manner of the AI expansion control 502 shown in FIGS. 5A and 5B is not limited, and some other display manners are provided in the embodiments of the present application, which are described below.

[0145] FIGS. 6A-6C respectively exemplarily show a display manner of the AI expansion control 502.

[0146] FIG. 6A shows a lightweight AI expansion control 502.

[0147] As shown in (a) and (b) of FIG. 6A, when the electronic device receives the double-finger pinch operation, the electronic device can display the AI zoom-in control 502 in the lock screen editing interface 40. At this time, the AI zoom-in control 502 is in an expanded state, and includes the text "zoom-in" and an icon. As shown in (c) of FIG. 6A, after a period of time (e.g., 2 seconds or 5 seconds, etc.) elapses, the AI zoom-in control 502 can change to a folded state, i.e., the text "zoom-in" is retracted, and the AI zoom-in control in the folded state includes only the icon without the text "zoom-in".

[0148] FIG. 6B illustrates an explicit AI zoom-in control 502.

[0149] As shown in (a) of FIG. 6B, the lock screen editing interface 40 displays the replace picture control 405. In (a) of FIG. 6B, the replace picture control 405 is displayed in the lower middle position of the preview page 401. As shown in (b) of FIG. 6B, when the electronic device receives the double-finger pinch operation, the electronic device moves the replace picture control 405 to the left and displays the AI zoom-in control 502 in the lock screen editing interface 40, so that the replace picture control 405 and the AI zoom-in control 502 are displayed generally centrally in the preview page 401.

[0150] The display mode of the AI zoom-in control 502 illustrated in FIG. 6A and FIG. 6B can also be implemented in combination.

[0151] FIG. 6C illustrates a permanently displayed AI zoom-in control 502.

[0152] As shown in (a) and (b) of FIG. 6C, the electronic device enters the lock screen editing interface 40 after receiving the double-finger pinch operation in the lock screen interface 30. The AI zoom-in control 502 is permanently displayed in the lock screen editing interface 40. In this way, the user does not need to trigger the electronic device to display the AI zoom-in control 502 through user operation, and can directly trigger the AI zoom-in through the permanently displayed AI zoom-in control 502. In this case, if the initial lock screen editing interface 40 does not build the depth-of-field effect, after receiving the user operation on the AI zoom-in control 502, the electronic device performs the AI zoom-in and can display the zoomed-in picture in the preview page 401 to build the depth-of-field effect.

[0153] In some embodiments, the electronic device can also perform AI zooming first and then perform engineering zooming. For example, referring to FIGS. 5A-5C, after the electronic device receives a user operation (such as a double-finger pinch operation or a double-finger swipe-down operation) in the preview page 401, the electronic device can perform AI zooming in response to the user operation. After the user releases the finger, the electronic device displays the engineering zooming control in the lock screen editing interface 40, and then performs engineering zooming in response to a user operation on the engineering zooming control. This scheme of AI zooming first and then engineering zooming can also refer to the various embodiments described above, such as the timing of AI zooming, the timing of engineering zooming, the display manner of the engineering zooming control, and the like.

[0154] In some embodiments, the AI zooming control and the engineering zooming control can be displayed simultaneously. For example, after receiving a user operation (such as a double-finger pinch operation or a double-finger swipe-down operation) in the preview page 401, the area outside the original image 20 is filled with black during the process of zooming out or moving the lock screen wallpaper, and after the user operation is released, the AI zooming control and the engineering zooming control are displayed simultaneously in the lock screen editing interface 40. Then, the user can select AI zooming or engineering zooming of the original image according to needs.

[0155] In some embodiments, AI zooming and engineering zooming can also be implemented in combination. For example, referring to FIGS. 5A, 5B, or 5C, after the electronic device performs engineering zooming on the original image 20, if a user operation acting on the AI zooming control 502 is received, the electronic device can perform AI zooming on the result of engineering zooming. For another example, the electronic device can also perform AI zooming on the original image 20 first, and then perform engineering zooming on the result of AI zooming.

[0156] The specific implementation of engineering zooming and AI zooming is described below.

[0157] Implementation of AI zooming

[0158] 1. Triggering of AI zooming

[0159] In some embodiments, the electronic device can start AI zooming after receiving a user operation acting on the AI zooming control 502, that is, start predicting the picture outside the original image 20 according to the features of the original image 20.

[0160] In some embodiments, the electronic device can start AI expanding the original picture 20, i.e., start predicting pictures other than the original picture 20 according to the features of the original picture 20, after detecting the initial touch point of the user operation (such as the double-finger pinch operation, the operation of moving the lock screen wallpaper 201) in the preview page 401. Alternatively, the electronic device can start AI expanding the original picture 20, i.e., start predicting pictures other than the original picture 20 according to the features of the original picture 20, after detecting the initial touch point and during receiving the user operation (such as the double-finger pinch operation, the operation of moving the lock screen wallpaper 201). Alternatively, the electronic device can start AI expanding the original picture 20, i.e., start predicting pictures other than the original picture 20 according to the features of the original picture 20, after detecting the end of the user operation (such as the double-finger pinch operation, the operation of moving the lock screen wallpaper 201), i.e., the user's finger is released from the display screen.

[0161] In some embodiments, the electronic device can also start AI expanding after determining that the original picture corresponding to the lock screen wallpaper displayed in the current preview page 401 does not meet the features of the picture that does not affect the visibility of the time indicator and does not affect the construction of the depth-of-field effect.

[0162] The AI expansion mentioned in the embodiments of the present application can refer to AI expansion performed on the original picture 20, or AI expansion performed on the result of the engineered expansion. For the sake of simplicity of description, the following embodiments will introduce the implementation of AI expansion by taking AI expansion on the original picture 20.

[0163] As long as AI expansion is performed on the original picture 20, the user has more choices in the larger size picture after expansion in the preview page 401, and the user can select part or all of the larger size picture after expansion as the lock screen wallpaper.

[0164] 2. Expansion direction of AI expansion (i.e., direction of predicted picture)

[0165] The expansion direction refers to the direction in which the electronic device generates a new picture. The expansion direction can include one or more of the following: above the original picture 20, below the original picture 20, left of the original picture 20, right of the original picture 20, top left of the original picture 20, bottom right of the original picture 20, or other directions, etc. The picture obtained after AI expansion can be a standard square or other non-standard shape, which is not limited here.

[0166] Figure 7A illustrates various expansion directions. Referring to (a) of Figure 7A, in one embodiment, the picture of the upper part of the expanded original picture 20 can include the picture of the area enclosed by the upper edge of the original picture 20, the extension of the left edge of the original picture 20 upwards, and the extension of the right edge of the original picture 20 upwards; the picture of the lower part of the expanded original picture 20, the picture of the left side of the expanded original picture 20, the picture of the right side of the expanded original picture 20, and so on. Referring to (b) of Figure 7A, in another embodiment, the picture of the upper part of the expanded original picture 20 can include the picture of the area upwards starting from the extensions of the upper edge of the original picture 20 to the left and to the right; the picture of the lower part of the expanded original picture 20, the picture of the left side of the expanded original picture 20, the picture of the right side of the expanded original picture 20, and so on. The two embodiments above can be combined, for example, the expansion of the upper part of the original picture 20 shown in (a) of Figure 7A and the expansion of the lower part of the original picture 20 shown in (b) of Figure 7A can be combined. Regardless of the direction of expansion of the original picture 20, the same area is usually expanded once and not repeatedly, which can avoid waste of power consumption. For example, the expansion of the upper part of the original picture 20 shown in (a) of Figure 7A and the expansion of the left side of the original picture 20 shown in (a) of Figure 7A are usually not combined, because if they are combined, the upper left corner of the original picture 20 is repeatedly expanded.

[0167] In some embodiments, the electronic device can determine the direction of AI expansion according to the ratio of the original picture 20, and the specific rules are as follows:

[0168] When the ratio of the aspect ratio of the original picture 20 (such as 10:20) and the aspect ratio of the display screen (such as 9:20) is less than or equal to the second value (such as 2), it means that the size of the original picture 20 is relatively narrow compared to the display screen, and in this case, AI expansion can be performed upwards, to the left, and to the right of the original picture 20. Referring to Figure 7B, Figure 7B illustrates the original picture 20, the display screen, and the picture after AI expansion in this case.

[0169] When the ratio of the aspect ratio of the original picture 20 (such as 20:20) and the aspect ratio of the display screen (such as 9:20) is greater than the second value (such as 2), it means that the size of the original picture 20 is relatively wide compared to the display screen, and in this case, AI expansion can be performed only upwards of the original picture 20. Referring to Figure 7C, Figure 7C illustrates the original picture 20, the display screen, and the picture after AI expansion in this case.

[0170] The ratio of the aspect ratio of the original picture 20 (such as 10:20) and the aspect ratio of the display screen (such as 9:20) can be referred to as the first ratio. The second value can be set as needed, which is not limited here.

[0171] The two cases above do not consider expansion downwards of the original picture 20, which is because the demand for using the picture below the original picture 20 as a lock screen wallpaper is relatively small, of course, in other embodiments, expansion downwards of the original picture 20 can also be performed, which is not limited here.

[0172] In the embodiments of the present application, the electronic device can contain one display screen or multiple display screens. For electronic devices of different forms, the display screen mentioned in the above rules for comparison with the size of the original picture 20 is different, which is described below:

[0173] (1) When the electronic device contains only one display screen, and the direction of the lock screen interface displayed by the electronic device is consistent in the horizontal screen scenario and the vertical screen scenario, for example, when the electronic device is a mobile phone containing one display screen, the display screen mentioned in the above rules for comparison with the size is the display screen.

[0174] (2) When the electronic device contains only one display screen, and the direction of the lock screen interface displayed by the electronic device is different in the horizontal screen scenario and the vertical screen scenario, for example, when the electronic device is a tablet computer containing one display screen, the display screen mentioned in the above rules for comparison with the size is a virtual display screen constructed with the long side of the display screen as the side length. In this way, the picture after AI expansion can be compatible with the horizontal screen scenario and the vertical screen scenario, and the depth of field effect can be constructed in the lock screen interface in the horizontal screen scenario and the vertical screen scenario.

[0175] (3) When the electronic device contains multiple display screens, such as a folding screen mobile phone containing an inner screen and an outer screen, considering that the size of the inner screen is usually larger than that of the outer screen, the display screen mentioned in the above rules for comparison with the size is the inner screen. In this way, the depth of field effect can be constructed in the lock screen interface in the inner screen use scenario and the outer screen use scenario.

[0176] 3. Expansion size of AI expansion (i.e. size of predicted picture)

[0177] When the original picture 20 is AI expanded, the size of expansion in each direction is not limited, and the size of expansion in each direction can be the same or different. The picture obtained after AI expansion can be a standard square or other non-standard shape, which is not limited here. As long as there is expansion on the basis of the original picture 20, the user can have a larger selection range of lock screen wallpapers.

[0178] In some embodiments, the expansion size when the electronic device performs AI expansion can refer to the following rules:

[0179] (1) The size of AI expansion is determined according to the position of the time indicator in the lock screen interface.

[0180] The electronic device can expand according to the position of the time indicator in the lock screen interface every time AI expansion is performed, and the picture obtained after expansion can construct the depth of field effect and does not affect the visibility of the time indicator.

[0181] Referring to FIG. 8A(a), it illustrates the size of a picture and the size of a display screen in an electronic device. As shown in FIG. 8A(a), the height of the picture is the same as the height of the display screen, and the subject in the picture is located close to the upper edge of the picture. When the picture is used as a lock screen wallpaper, the height of the subject that blocks the time indicator exceeds a first value (e.g., 50%), and the time indicator is blocked and invisible if a depth-of-field effect is to be constructed. The time indicator shown in FIG. 8A is completely blocked. The picture shown in FIG. 8A(a) can be an original picture or a picture obtained by enlarging or reducing the original picture.

[0182] Referring to FIG. 8A(b), it illustrates the size of a picture obtained by AI image enlargement of the picture in FIG. 8A(a) and the size of a display screen. As shown in FIG. 8A(b), the electronic device enlarges the picture upwards, and the height of the subject that blocks the time indicator in the enlarged picture is exactly the first value (e.g., 50%), and a depth-of-field effect can be constructed without affecting the visibility of the time indicator.

[0183] For other pictures with the same height as the display screen, if the subject in the picture is more downward relative to the subject shown in FIG. 8A(a), the picture is enlarged to the size shown in FIG. 8A(a), and obviously, the enlarged picture can construct a depth-of-field effect without affecting the visibility of the time indicator.

[0184] Based on FIG. 8A, to ensure that the enlarged picture can construct a depth-of-field effect without affecting the visibility of the time indicator, the size of the enlargement of the original picture upwards is at least a second ratio of the height of the original picture. The second ratio is the ratio of the height from the upper edge of the display screen to position L to the height of the display screen. Position L is the position at the highest height at which the time indicator can be blocked without affecting the visibility of the time indicator. Once the height of the time indicator that is blocked exceeds the height of position L, the visibility of the time indicator is affected. Position L is the position that reaches the first value (e.g., 50%) of the height of the time indicator, calculated from the bottom of the time indicator. The second ratio is determined according to the height of the display screen, the position and height of the time indicator in the lock screen interface.

[0185] The display screen here can refer to the display screen of the electronic device currently displaying the lock screen editing interface, and the height here refers to the height in the display direction of the current display screen. When the electronic device has multiple display screens, the display screen here can also be the display screen with the largest second ratio, so that the picture obtained by enlargement can adapt to all display screens, and ensure that the enlarged picture can construct a depth-of-field effect without affecting the visibility of the time indicator in all display screens.

[0186] Therefore, in the first mode, when the expansion direction includes expansion upward of the original picture 20, the electronic device can set the size of the expansion upward of the original picture 20 to a second ratio of the height of the original picture 20.

[0187] In some embodiments, the electronic device can expand the original picture 20 to the left by a third ratio of the width of the original picture 20, and expand the original picture 20 to the right by a third ratio of the width of the original picture 20. In this way, the symmetry and aesthetics of the expanded picture are ensured, and the power consumption and time length are taken into account.

[0188] When the expansion direction includes expansion upward, leftward, and rightward of the original picture 20, fixed specifications of the expansion in the above directions can be set. In some embodiments, the same size can be expanded to the left and right of the original picture to achieve symmetry of the left and right expansion. For example, in one specific embodiment, the electronic device can expand the original picture 20 upward by 50% of the height of the original picture 20, and expand the original picture 20 to the left and right by 25% of the width of the original picture 20, respectively. FIG. 8B shows the expansion size in this embodiment. The expansion size shown in FIG. 8B expands the original picture 20 upward by 50%, which can sufficiently ensure the construction of the depth-of-field effect, and expands the original picture 20 to the left and right by half of the upward expansion size, which can save power consumption and shorten the time length required for expansion.

[0189] In another specific embodiment, the electronic device can expand the original picture 20 upward by 35% of the height of the original picture 20, and expand the original picture 20 to the left and right by 17.5% of the width of the original picture 20, respectively. FIG. 8C shows the expansion size in this embodiment. The expansion size shown in FIG. 8C expands the original picture 20 upward by 35%, which can ensure the construction of the depth-of-field effect on the premise of taking into account the power consumption and time length, and expands the original picture 20 to the left and right by half of the upward expansion size, which can save power consumption and shorten the time length required for expansion.

[0190] The expansion size of the former embodiment is larger than that of the latter embodiment, the time length required for expansion is longer, and the size of the picture obtained after expansion is larger, which is more convenient for the user to adjust the position of the picture to select the lock screen wallpaper. The electronic device can select the fixed specifications of the expansion as needed.

[0191] When the expansion direction includes to the left and right of the original picture 20, the fixed specifications of expansion to the above directions can be set. For example, in one specific embodiment, the electronic device can expand to the left and right of the original picture 20 by 25% of the width of the original picture. In another specific embodiment, the electronic device can expand to the left and right of the original picture 20 by 17.5% of the width of the original picture. The expansion size of the former embodiment is larger than that of the latter embodiment, the time required for expansion is longer, and the picture size obtained after expansion is larger, which is more convenient for the user to adjust the picture position to select the lock screen wallpaper. The electronic device can select the fixed specification of expansion as needed.

[0192] (2) Real-time expansion according to the size of the area outside the original picture 20 in the preview page 401.

[0193] Specifically, during the process of reducing or moving the lock screen wallpaper, and after starting the AI expansion, the electronic device can first obtain the size and direction of the area outside the original picture 20 in the current preview page 401, and expand the corresponding size in the direction of the area, aiming to fill the preview page 401. In order to avoid excessive expansion and waste power consumption, the size of real-time expansion is stopped when it reaches the size of the above (1) rule.

[0194] Implementation of engineered expansion

[0195] 1. Triggering of engineered expansion

[0196] In some embodiments, the electronic device can start to perform engineered expansion after receiving a user operation acting on the engineered expansion control.

[0197] In some embodiments, the electronic device can start to perform engineered expansion on the original picture 20 after detecting the initial touch point of the user operation (such as a double-finger pinch operation, an operation of moving the lock screen wallpaper 201) in the preview page 401. Alternatively, the electronic device can start to perform engineered expansion on the original picture 20 after detecting the initial touch point and during the process of receiving the user operation (such as a double-finger pinch operation, an operation of moving the lock screen wallpaper 201). Alternatively, the electronic device can start to perform engineered expansion after detecting the end of the user operation (such as a double-finger pinch operation, an operation of moving the lock screen wallpaper 201) (i.e., the user's finger is released from the display screen).

[0198] In some embodiments, the electronic device can start to perform engineered expansion on the original picture 20 after receiving a user operation (such as a double-finger pinch operation, an operation of moving the lock screen wallpaper 201) in the preview page 401, and in the case that the original picture 20 is suitable for engineered expansion. Wherein, when the edge of the subject in the original picture 20 is located at the edge of the original picture 20, the visual effect of the picture obtained by engineered expansion is not good, and thus it can be considered that this type of picture is not suitable for engineered expansion.

[0199] The engineering expansion mentioned in the embodiments of the present application can refer to the engineering expansion performed on the original image 20, or the engineering expansion performed on the result of the AI expansion. For the sake of simplicity of description, the following embodiments introduce the implementation of the engineering expansion by taking the engineering expansion performed on the original image 20.

[0200] As long as the engineering expansion is performed on the original image 20, the user has more choices in the larger size picture after the expansion in the preview page 401, and the user can select part or all of the larger size picture after the expansion as the lock screen wallpaper.

[0201] 2. Expansion direction of the engineering expansion. The expansion direction of the engineering expansion can refer to the expansion direction of the AI expansion mentioned above.

[0202] 3. Expansion size of the engineering expansion. The expansion size of the engineering expansion can refer to the expansion size of the AI expansion mentioned above.

[0203] In the embodiments of the present application, the engineering expansion and the AI expansion can be combined. In some embodiments, the electronic device can switch between displaying the result of the engineering expansion and the result of the AI expansion.

[0204] FIG. 9 exemplarily shows a set of user interfaces in which the electronic device applies an AI style to the lock screen interface during the process of editing the lock screen interface.

[0205] The AI style refers to a certain style generated by AI technology. Applying the AI style to the picture means adjusting the light, color, composition, etc. of the picture by AI technology, thereby generating a new picture of a certain style. The new picture is the AI generated content (AIGC).

[0206] FIG. 9(a) shows the lock screen editing interface 40. The entering method of the lock screen editing interface 40 can refer to the previous description. As shown in FIG. 9(a), the lock screen editing interface 40 displays a preview page 401 and an AI style control 901. The preview page 401 displays a lock screen wallpaper 902. The lock screen wallpaper 902 can be an original image or a part of the original image, or a picture obtained after expansion, or a part of the picture obtained after expansion, or a picture enhanced by a portrait as described below. The expansion here can refer to the AI expansion, or the engineering expansion, or the combination of the two.

[0207] As shown in (a) and (b) of FIG. 9, the electronic device can receive a user operation acting on the AI style control 902, and in response to the user operation, the electronic device displays a pop-up window 903 in the lock screen editing interface 40. The pop-up window 903 displays: a cancel control 903a, an AI style clearing control 903b, an AI style category menu 903c, and an AI style option menu 903d.

[0208] When a user operation acting on the cancel control 903a is received, the electronic device closes the pop-up window 903.

[0209] When a user operation acting on the AI style clearing control 903b is received, the electronic device cancels the AI style acting on the lock screen wallpaper 902 in the preview page 401.

[0210] The AI style category menu 903c includes multiple AI style category options, such as the classic category, the girl category, the boy category, the pet category, the landscape category, and the like, as shown in (b) of FIG. 9.

[0211] The AI style option menu 903d includes multiple AI style options. When the AI style category option selected in the AI style category menu 903c is changed, the content displayed in the AI style option menu 903d is also changed to the multiple AI style options under the selected AI style category. As shown in (b) of FIG. 9, when the user selects the classic category option, the AI style option menu 903d includes the 3D cartoon option, the fresh option, the retro option, the nostalgic option, and the like. Each AI style option can include text or a schematic picture of the style.

[0212] As shown in (b) and (c) of FIG. 9, the electronic device can receive a user operation acting on the 3D cartoon option, in response to which the electronic device can highlight the 3D cartoon option (e.g., by thickening the border of the option) and start adjusting the content of the lock screen wallpaper 902 in the preview page 401 to a 3D cartoon style using AI technology. As shown in (c) of FIG. 9, the electronic device can display a pop-up window 904 containing the AI style generation progress in the lock screen editing interface 40. The AI style generation progress can be in the form of a percentage. The display rule of the progress in the pop-up window 904 can be: set a preset time length (e.g., 15 seconds), calculate in real time the percentage of the time length used to generate the AI style in the preset time length, and display the percentage in the pop-up window in real time; if the picture corresponding to the AI style is generated within the preset time length, the percentage displayed in the pop-up window directly jumps to 100% when the picture is generated, and if the picture corresponding to the AI style is not generated within the preset time length, the percentage displayed in the pop-up window remains at 99% until the picture corresponding to the AI style is generated and then jumps to 100%. If the electronic device fails to generate the picture corresponding to the AI style within a longer time length (e.g., 20 seconds), the electronic device displays prompt information in the pop-up window to prompt the failure of AI style generation, such as the text "Generation failed, please click Retry".

[0213] As shown in (c) of FIG. 9, the pop-up window 904 can also include a cancel control 904a. When the electronic device receives a user operation acting on the cancel control 904a, in response to the operation, the electronic device will stop generating the picture in the 3D cartoon style and return to the display of (b) of FIG. 9. In other embodiments, when the electronic device displays (c) of FIG. 9, the electronic device can also receive a user operation acting on the back key in the navigation bar (not shown) or a gesture operation of swiping from the left edge of the display screen to the right, and can respond to the above operations to stop generating the picture in the 3D cartoon style and return to the display of (b) of FIG. 9.

[0214] As shown in (d) of FIG. 9, after generating the picture in the 3D cartoon style according to the lock screen wallpaper 902, the electronic device displays the picture 905 in the 3D cartoon style in the preview page 401. Compared with the lock screen wallpaper 902, the main character in the picture 905 becomes cartoonized.

[0215] As shown in (d) of FIG. 9, the AI style and the depth-of-field effect can take effect at the same time and do not conflict with each other.

[0216] When (d) of FIG. 9 is displayed, the electronic device can further receive a user operation acting on the AI style clearing control 903b, and in response to the operation, the electronic device can return to display (b) of FIG. 9. After returning to display (b) of FIG. 9, the electronic device can further receive a user operation acting on the 3D cartoon option in the pop-up window 903 again, and in response to the user operation, the electronic device need not adjust the content of the lock screen wallpaper 901 to the 3D cartoon style again, but only need to load the result of the last adjustment and directly display (d) of FIG. 9.

[0217] In some embodiments, as shown in (d) of FIG. 9, after the electronic device generates a picture in the 3D cartoon style according to the lock screen wallpaper 902 and displays the picture 905 in the 3D cartoon style in the preview page 401, the electronic device can further perform the picture expansion method provided by the embodiments of the present application based on the picture 905. The specific picture expansion method can be referred to the foregoing FIGS. 5A-5B and the related text introduction.

[0218] FIG. 10 exemplarily shows a set of user interfaces provided by the electronic device to provide a portrait enhancement function during the process of editing the lock screen interface.

[0219] The portrait enhancement function refers to a function that the electronic device uses image processing algorithms and artificial intelligence technologies such as deep learning and computer vision to analyze information in an image, recognize and optimize details of a human face, and thus improve the overall quality of the image.

[0220] (a) of FIG. 10 shows a lock screen editing interface 40. The entering manner of the lock screen editing interface 40 can be referred to the foregoing. As shown in (a) of FIG. 9, the lock screen editing interface 40 displays a preview page 401. The preview page 401 displays a lock screen wallpaper 1001. The lock screen wallpaper 1001 can be an original picture or a part of the original picture, or a picture obtained after expansion, or a part of the picture obtained after expansion, or a picture in a certain AI style. The expansion here can refer to AI expansion, or engineering expansion, or a combination of the two.

[0221] The electronic device can provide the portrait enhancement function when one or more of the following conditions are identified: 1. A blurred portrait is identified in the preview page 401 in the lock screen editing interface 40. 2. It is determined by an algorithm that the portrait enhancement function has a large portrait optimization effect, i.e., a good enhancement effect, on the picture displayed in the current preview page 401. The blurred portrait in the preview page 401 can be caused by low original picture quality or enlargement of the original picture. In other embodiments, the electronic device can directly perform the portrait enhancement on the preview page 401 in the lock screen editing interface 40 without identifying the above conditions.

[0222] As shown in (b) of FIG. 10, during the process of providing the portrait enhancement function, the electronic device can display the portrait enhancement control 1002 in the lock screen interface 40. At this time, the portrait enhancement control 1002 is in an unfolded state, which contains text for prompting the user that the current electronic device is performing portrait enhancement, and also contains a portrait enhancement icon. At this time, the portrait enhancement function of the electronic device has been turned on, so the portrait enhancement control 1002 can be highlighted, for example, the background color thereof is displayed as dark.

[0223] As shown in (c) of FIG. 10, after the electronic device completes the portrait enhancement, the portrait-enhanced lock screen wallpaper 1001 is displayed in the preview page 401, and the text in the portrait enhancement control 1002 can be modified to text for prompting the user that the current electronic device has completed the portrait enhancement. After a period of time (such as 2 seconds or 5 seconds, etc.), as shown in (d) of FIG. 10, the electronic device changes the portrait enhancement control 1002 to a folded state, that is, the prompt text is hidden, and the portrait enhancement control 1002 in the folded state only contains the portrait enhancement icon and does not contain the text. As shown in (c) and (d) of FIG. 9, the portrait enhancement function and the depth-of-field effect can take effect at the same time, and the two do not conflict.

[0224] As shown in (d) of FIG. 10, the electronic device can receive a user operation acting on the portrait enhancement control 1002, and in response to the operation, as shown in (e) of FIG. 10, the electronic device can display the lock screen wallpaper 1001 without the portrait enhancement effect in the preview page 401, and can no longer highlight the portrait enhancement control 1002.

[0225] After displaying (e) of FIG. 10, the electronic device can also receive a user operation acting on the portrait enhancement control 1002 again, and in response to the user operation, the electronic device does not need to perform portrait enhancement on the lock screen wallpaper 1001 again, but only needs to load the last portrait enhancement result and directly display (d) of FIG. 10.

[0226] In some embodiments, as shown in (c) and (d) of FIG. 10, after the electronic device displays the lock screen wallpaper 1001 with the portrait enhancement effect in the preview page 401, the electronic device can also perform the image expansion method provided in the embodiments of the present application based on the lock screen wallpaper 1001. The specific image expansion method can refer to the foregoing FIGS. 5A-5B and the related text introduction.

[0227] Not limited to portrait enhancement, the overall image enhancement function can also be applied to the embodiments of the present application, and the specific application manner can be similar to the foregoing portrait enhancement function.

[0228] After the electronic device edits the lock screen interface through the various editing manners described above, the electronic device can receive a user operation on the application control key 404 in the lock screen interface 40, and can respond to the operation to keep the editing result of the lock screen interface by the user in the lock screen editing interface 40, that is, set the lock screen wallpaper displayed in the preview page 401 as the lock screen wallpaper of the electronic device. Then, the electronic device can also display the lock screen interface to which the editing result is applied.

[0229] FIG. 11 is a flowchart of a method for editing a lock screen wallpaper, according to an embodiment of the present application. The method is performed by an electronic device.

[0230] As shown in FIG. 11, the method can include the following steps.

[0231] S101, display a lock screen editing interface, the lock screen editing interface including a preview page of a lock screen interface, the preview page displaying a first lock screen wallpaper, the first lock screen wallpaper being part of a first original picture; or, the first lock screen wallpaper being the entire first original picture.

[0232] The lock screen editing interface can refer to the lock screen editing interface 40 shown in FIG. 5A, or FIG. 5B, or FIG. 5C.

[0233] The preview page can refer to the preview page 401 shown in FIG. 5A, or FIG. 5B, or FIG. 5C.

[0234] The lock screen wallpaper is other content in the preview page except for a time indicator, a date component, and a border displayed around the time indicator and the date component.

[0235] The first lock screen wallpaper can refer to the lock screen wallpaper 201 displayed in the preview page 401 shown in FIG. 5A(a), or the lock screen wallpaper 201 displayed in the preview page 401 shown in FIG. 5B(a), or the lock screen wallpaper 201 displayed in the preview page 401 shown in FIG. 5C(a).

[0236] The first original picture can refer to the original picture 20 shown in FIG. 2(a).

[0237] S102, receive a second operation acting on the first lock screen wallpaper.

[0238] The second operation can refer to the double-finger pinch operation shown in FIG. 5A(a)-FIG. 5A(c), the double-finger swipe-down operation shown in FIG. 5B(a)-FIG. 5B(c), the double-finger pinch operation shown in FIG. 5C(a)-FIG. 5C(c), or other gesture operations.

[0239] S103, in response to the second operation, generate a second new picture containing a gradient color other than the first original picture according to the color of the first original picture, to obtain a third original picture containing the first original picture and the second new picture.

[0240] Referring to the related descriptions of FIGS. 5A-5C, the third original picture can be a picture obtained by engineeringally expanding the first original picture, and the second new picture can be a picture other than the first original picture obtained by engineeringally expanding the first original picture. The definition of engineeringally expanding can be referred to the foregoing.

[0241] In S104, the third lock screen wallpaper is displayed in the preview page, the third lock screen wallpaper is part of the third original picture, and contains part or all of the second new picture; or the third lock screen wallpaper is all of the third original picture.

[0242] The third lock screen wallpaper can refer to the lock screen wallpaper displayed in the preview page 401 shown in (c) of FIG. 5A, or the lock screen wallpaper displayed in the preview page 401 shown in (c) of FIG. 5B, or the lock screen wallpaper displayed in the preview page 401 shown in (c) of FIG. 5C. The content displayed in the area other than the lock screen wallpaper 201 in the preview page 401 shown in the above several figures is part or all of the second new picture.

[0243] In some embodiments, in response to the second operation, the electronic device can reduce the first lock screen wallpaper and / or move the position of the first lock screen wallpaper in the preview page, and fill the area other than the first original picture in the preview page with black in the process of reducing the first lock screen wallpaper and / or moving the position of the first lock screen wallpaper in the preview page. In this way, the user can be prompted that the current lock screen wallpaper has been reduced or moved to the edge of the lock screen wallpaper.

[0244] In S105, the first control is displayed in the lock screen editing interface.

[0245] The first control can refer to the AI control 502 shown in (d) of FIG. 5A, or the AI control 502 shown in (d) of FIG. 5B, or the AI control 502 shown in (d) of FIG. 5C.

[0246] The first control can be displayed after the electronic device detects the initial touch point of the second operation, or can be displayed after the electronic device detects the initial touch point and in the process of receiving the second operation, or can be displayed after detecting the end of the second operation.

[0247] In some embodiments, as shown in FIG. 6A, the electronic device can first display the first control in the unfolded state, and then switch the first control from the unfolded state to the folded state after the first control in the unfolded state is displayed for a first time period. Here, the first time period is not limited, and for example, can be 3s, 5s, 10s, 15s, etc.

[0248] In some embodiments, as shown in FIG. 6B, the lock screen editing interface displayed by the electronic device can further display a second control, for example, the replace picture control shown in FIG. 5A, or FIG. 5B, or FIG. 5C, or FIG. 6B, which is displayed centrally. The electronic device can display the first control and the second control centrally as a whole when displaying the first control, as shown in FIG. 6B.

[0249] S103-S105 are optional operations, which can also not be performed in some embodiments.

[0250] S106, receiving a first operation acting on the lock screen editing interface, the first operation being a user operation acting on the first control.

[0251] When the above steps S103-S105 are performed, the first operation can be, for example, a user operation acting on the AI control 502 as shown in (d) of FIG. 5A, or a user operation acting on the AI control 502 as shown in (d) of FIG. 5B, or a user operation acting on the AI control 502 as shown in (d) of FIG. 5C, etc.

[0252] When the above steps S103-S105 are not performed, the first operation can be, for example, a double-finger pinch operation, or a double-finger downward swipe operation, or a double-finger leftward swipe operation, or a double-finger optimization operation, or other gesture operations, etc. acting on the preview page 401 in (a) of FIG. 5A.

[0253] In some embodiments, as shown in FIG. 6C, the lock screen editing interface can further display an AI control 502 in a persistent manner, and the first operation can further be a user operation acting on the AI control 502 displayed in a persistent manner.

[0254] S107, in response to the first operation, predicting a first new picture other than the first original picture according to the first original picture, to obtain a second original picture containing the first original picture and the first new picture.

[0255] In response to the first operation, the electronic device performs AI image expansion on the first original picture, that is, predicts a picture other than the original picture 20 according to the characteristics of the original picture 20. The second original picture can be a picture obtained by performing AI image expansion on the first original picture, and the first new picture can be a picture other than the first original picture obtained by performing AI image expansion on the first original picture, that is, a picture predicted according to the first original picture. The definition of AI image expansion can be referred to in the foregoing.

[0256] In some embodiments, the electronic device predicts the first new picture according to one or more of the following characteristics of the first original picture: edge, background, texture, color. In this way, the content of the second original picture is more abundant than the first original picture, and the expanded first new picture is real and consistent with the original picture, which can give the user a natural and real visual experience.

[0257] The first new picture comprises one or more of the following: a picture above the first original picture, a picture below the first original picture, a picture to the left of the first original picture, and a picture to the right of the first original picture.

[0258] In some embodiments, the electronic device can determine the direction of the first new picture according to the scale of the first original picture and the display screen, which can be referred to in the foregoing description of FIG. 7B, FIG. 7C, and the like.

[0259] In some embodiments, the second original picture meets the features of the picture introduced in the foregoing description for constructing the depth-of-field effect and not affecting the visibility of the time indicator, which can be referred to in the foregoing description of the first (1) expansion size and the like.

[0260] In a specific example, the direction and size of the first new picture can also be referred to in FIG. 8B or FIG. 8C.

[0261] In some embodiments, the electronic device can also display a first window in the lock screen editing interface in the process of predicting the first new picture outside the first original picture, and the first window displays the progress of generating the first new picture. The first window can be referred to in the foregoing description of the window 503 shown in (a) of FIG. 5A, or the window 503 shown in (a) of FIG. 5B, or the window 503 shown in (a) of FIG. 5C. The calculation method of the progress displayed in the first window can be referred to in the foregoing description.

[0262] S108, displaying a second lock screen wallpaper in the preview page, the second lock screen wallpaper being part or all of the second original picture and containing part or all of the first new picture.

[0263] The second lock screen wallpaper can be referred to in the content displayed in the preview page 401 in (f) of FIG. 5A, or the content displayed in the preview page 401 in (f) of FIG. 5B, or the content displayed in the preview page 401 in (f) of FIG. 5C.

[0264] In some embodiments, if S103-S105 are performed, the second lock screen wallpaper can be part or all of the first new picture replacing the part of the third lock screen wallpaper outside the first original picture. In other embodiments, the electronic device can also move the position of the second original picture in the preview page 401, and use part of the second original picture as the second lock screen wallpaper, that is, reconstruct the content displayed in the preview page 401.

[0265] In some embodiments, if the first lock screen wallpaper displayed by the electronic device fails to build the depth-of-field effect, and the second original picture meets the features of the picture that builds the depth-of-field effect and does not affect the visibility of the time indicator when the electronic device predicts the first new picture, the electronic device can build the depth-of-field effect when displaying the second lock screen wallpaper. That is, the preview page also displays the time indicator, the first lock screen wallpaper includes the first subject and the first background, the height of the overlapping part of the first subject in the first lock screen wallpaper and the time indicator exceeds the first value of the height of the time indicator, and the first subject and the first background in the first lock screen wallpaper are both displayed below the time indicator; the height of the overlapping part of the first subject in the second lock screen wallpaper and the time indicator does not exceed the first value of the height of the time indicator, the first subject in the second lock screen wallpaper is displayed above the time indicator, and the first background in the second lock screen wallpaper is located below the time indicator.

[0266] The time indicator can refer to the time indicator 105 shown in FIG. 5A or FIG. 5B, the first subject can refer to the person 201a shown in FIG. 5A or FIG. 5B, and the first background can include the content in the lock screen wallpaper 201 shown in FIG. 5A or FIG. 5B except the person 201a. As can be seen, after the AI image expansion process shown in FIG. 5A or FIG. 5B, the electronic device can expand the lock screen wallpaper that fails to build the depth-of-field effect into the lock screen wallpaper that can build the depth-of-field effect.

[0267] In some embodiments, after displaying the second lock screen wallpaper in the preview page, the electronic device can also receive a third operation acting on the second lock screen wallpaper; during the process of receiving the third operation, the second lock screen wallpaper is zoomed out and / or the position of the second lock screen wallpaper in the preview page is moved. The third operation can be, for example, a double-finger pinch operation, or a double-finger downward swipe operation, or a double-finger leftward swipe operation, or a double-finger optimization operation, or other gesture operations, etc.

[0268] In some embodiments, the lock screen editing interface further includes a third control. At any time point of the method shown in FIG. 11, the electronic device can also display a second window in the lock screen editing interface in response to a user operation acting on the third control, the second window displays a plurality of style options, and the plurality of style options includes a first style option, and the first style option corresponds to the first style. In response to a user operation acting on the first style option, the style of the content of the lock screen wallpaper displayed in the preview page is adjusted to the first style. The third control can refer to the AI style control 901 shown in FIG. 9, and the first style option can refer to the 3D cartoon option shown in FIG. 9. In this way, the user can adjust the style of the content displayed in the preview page according to his / her own needs.

[0269] In some embodiments, the electronic device can also perform portrait enhancement on the lock screen wallpaper displayed in the preview page, and display the lock screen wallpaper after the portrait enhancement in the preview page. In this way, the image quality of the lock screen wallpaper can be improved.

[0270] In S108, the electronic device displays a lock screen interface in response to the fourth operation on the fourth control. The lock screen wallpaper displayed in the lock screen interface is the lock screen wallpaper displayed in the preview page when the fourth operation is received.

[0271] The fourth control can refer to the application control shown in the upper right corner of FIG. 5A or FIG. 5B or FIG. 5C. Through S108, the electronic device can apply the editing result of the lock screen wallpaper in the lock screen editing interface to the lock screen interface. Step S108 can be executed at any time point of the foregoing steps, which is not limited here.

[0272] The electronic device provided by the embodiments of the present application is described below.

[0273] FIG. 12 shows a hardware structure schematic diagram of the electronic device 100 provided by the embodiments of the present application. The electronic device 100 is used to execute the editing method of the lock screen wallpaper provided by the foregoing method embodiments.

[0274] The electronic device 100 can include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a camera 108, a display screen 109, and the like. The wireless communication module 103 can include a WLAN communication module, a Bluetooth communication module, and the like. The above-mentioned multiple parts can transmit data through a bus.

[0275] The processor 101 can include one or more processing units, for example: the processor 101 can 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. Different processing units can be independent devices, or can be integrated in one or more processors.

[0276] The memory 102 can be used to store computer executable program code, which can include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the memory 102. The memory 102 can include a program storage area and a data storage area. In a specific implementation, the memory 102 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.

[0277] The wireless communication function of the electronic device 100 can be implemented by the antenna 103A, the antenna 104A, the mobile communication module 104, the wireless communication module 103, the modem processor, and the baseband processor, etc.

[0278] The antenna 103A and the antenna 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.

[0279] The mobile communication module 104 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 104 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 104 can receive electromagnetic waves by the antenna 104A, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 104 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated by the antenna 104A.

[0280] The modem processor can include a modulator and a demodulator. The modulator is used to modulate a low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or a video through the display screen 109.

[0281] The wireless communication module 103 can provide solutions for wireless communication including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied on the electronic device 100. The wireless communication module 103 can be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via the antenna 103A, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 101. The wireless communication module 103 can also receive signals to be transmitted from the processor 101, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 103A.

[0282] The electronic device 100 can implement a photographing function through an ISP, a camera 108, a video codec, a GPU, a display 109, and an application processor, etc.

[0283] The ISP is used to process data fed back by the camera 108. For example, when taking a photo, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and conversion into a visible image. The ISP can also algorithmically optimize the noise and brightness of the image. The ISP can also optimize the exposure, color temperature, etc. of the shooting scene. In some embodiments, the ISP can be disposed in the camera 108.

[0284] The camera 108 can be used to capture still images or videos. Objects generate optical images through lenses and project them onto image sensors. The image sensor can convert the light signal into an electrical signal, and then transmit the electrical signal to the ISP for conversion into a digital image signal. The ISP can output the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 can include one or N cameras 108, N being a positive integer greater than 1.

[0285] The video codec is used to compress or decompress digital images. The electronic device 100 can support one or more image codecs. In this way, the electronic device 100 can open or save pictures or videos in multiple encoding formats.

[0286] The electronic device 100 can implement the display function through the GPU, the display screen 109, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 109 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 101 can include one or more GPUs that execute program instructions to generate or change display information.

[0287] The display screen 109 is used to display images, videos, etc. The display screen 109 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 can include 1 or N display screens 109, and N is a positive integer greater than 1.

[0288] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0289] In the embodiments of the present application, the memory 102 stores a computer program for implementing the method of editing the lock screen wallpaper provided by the embodiments of the present application, and the processor 101 can be used to execute the computer program to implement the method provided by the embodiments of the present application. Wherein, the display screen 109 can be used to display the user interface introduced in the foregoing, and the memory 102 can also be used for the editing result of the lock screen interface by the electronic device in the embodiments of the present application, and the processor 101 can also be used to apply the editing result to the lock screen interface. The operations performed by each device in the electronic device 100 are specifically described with reference to the related description of the method embodiments in the foregoing, which will not be described in detail here.

[0290] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take a layered architecture of a mobile operating system as an example to exemplarily illustrate the software structure of the electronic device 100.

[0291] FIG. 13 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0292] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, a mobile operating system is divided into four layers, from top to bottom, an application layer, an application framework layer / core service layer, a system library and runtime, and a kernel layer.

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

[0294] As shown in FIG. 13, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0295] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0296] As shown in FIG. 13, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0297] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and take screenshots, etc.

[0298] The content provider is used to store and obtain data, and make the data accessible to the applications. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phone books, etc.

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

[0300] The phone manager is used to provide communication functions of the electronic device. For example, management of call states (including call connection, call hang-up, etc.).

[0301] The resource manager provides various resources for the applications, such as localized strings, icons, pictures, layout files, video files, etc.

[0302] The notification manager enables an application to display notification information in the status bar, which can be used to convey a message of the informing type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform the completion of a download, a message reminder, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the system top status bar, such as a notification of a background running application, and can also be a notification in the form of a dialogue window appearing on the screen. For example, the status bar prompts text information, emits a prompt sound, the electronic device vibrates, the indicator light flashes, etc.

[0303] The runtime can refer to all code libraries, frameworks, etc. required by the program runtime. For example, for C language, the runtime includes a series of function libraries required by C program running. For Java language, in addition to the core library, the runtime also includes a virtual machine required by Java program running, etc. The above core library can include a function function required to be called by Java language.

[0304] The system library can include a plurality of functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: OpenGL ES), a 2D graphics engine (for example: SGL), etc.

[0305] The surface manager is used to manage the display subsystem, and provides a plurality of applications with the fusion of 2D and 3D layers.

[0306] The media library supports a plurality of commonly used audio, video format playback and recording, and static image files, etc. The media library can support a plurality of audio and video coding formats, for example: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0307] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.

[0308] The 2D graphics engine is a drawing engine for 2D drawing.

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

[0310] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution completion, or executed by a combination of hardware and software modules in the processor.

[0311] The application further provides an electronic device, which can include a memory and a processor. The memory can be used to store a computer program, and the processor can be used to invoke the computer program in the memory to enable the electronic device to perform the method executed by the electronic device in any one of the above-mentioned embodiments.

[0312] The application further provides a chip system, which includes at least one processor for implementing the functions related to the electronic device in any one of the above-mentioned embodiments.

[0313] In a possible design, the chip system further includes a memory for storing program instructions and data, and the memory is located in or outside the processor.

[0314] The chip system can be composed of a chip, or can include a chip and other discrete devices.

[0315] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is enabled by reading software codes stored in the memory.

[0316] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be arranged separately from the processor, and the embodiments of the application do not make any limitation in this aspect. For example, the memory can be a non-transient processor, such as a read-only memory (ROM), which can be integrated with the processor on the same chip, or can be arranged on different chips respectively, and the embodiments of the application do not make any limitation on the type of the memory and the arrangement manner of the memory and the processor.

[0317] Exemplarily, the chip system can be a field programmable gate array (FPGA), can be an application specific integrated circuit (ASIC), can be a system on chip (SoC), can be a central processor unit (CPU), can be a network processor (NP), can be a digital signal processor (DSP), can be a micro controller unit (MCU), can be a programmable logic device (PLD), or other integrated chip.

[0318] The present application also provides a computer program product, which comprises a computer program (also referred to as code or instruction), which, when executed, causes a computer to perform the method executed by the electronic device side in any one of the above embodiments.

[0319] The present application also provides a computer readable storage medium, which stores a computer program (also referred to as code or instruction). When the computer program is executed, it causes a computer to perform the method executed by the electronic device side in any one of the above embodiments.

[0320] The embodiments of the present application can be combined in any manner to achieve different technical effects.

[0321] In the above embodiments, all or part of the methods can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the methods can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk (SSD)) and the like.

[0322] Those of ordinary skill in the art can understand that all or part of the processes in the above embodiments can be implemented by a computer program to instruct the relevant hardware, which can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The aforementioned storage medium includes ROM or random access memory (RAM), magnetic disk or optical disk, and various media that can store program codes.

[0323] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0324] The terms "first", "second" are only for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0325] In conclusion, the above-mentioned is only the embodiment of the technical scheme of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present application shall be included in the protection scope of the present application.

Claims

1. An editing method of a lock screen wallpaper, characterized by, The method is applied to an electronic device, and the method comprises: displaying a lock screen editing interface, the lock screen editing interface comprising a preview page of a lock screen interface, the preview page displaying a first lock screen wallpaper, the first lock screen wallpaper being part or all of a first original picture; receiving a first operation acting on the lock screen editing interface; in response to the first operation, predicting a first new picture other than the first original picture according to the first original picture to obtain a second original picture comprising the first original picture and the first new picture; displaying a second lock screen wallpaper in the preview page, the second lock screen wallpaper being part of the second original picture and comprising part or all of the first new picture; or the second lock screen wallpaper being all of the second original picture.

2. The method of claim 1, wherein, The prediction of the first new picture other than the first original picture according to the first original picture specifically comprises predicting the first new picture according to one or more of the following features of the first original picture: edge, background, texture, color.

3. The method according to claim 1 or 2, characterized in that, Before receiving the first operation acting on the lock screen editing interface, the method further comprises: generating a second new picture comprising a gradient color other than the first original picture according to the color of the first original picture to obtain a third original picture comprising the first original picture and the second new picture; displaying a third lock screen wallpaper in the preview page, the third lock screen wallpaper being part of the third original picture and comprising part or all of the second new picture; or the third lock screen wallpaper being all of the third original picture.

4. The method of claim 3, wherein, Before generating the second new picture other than the first original picture according to the color of the first original picture, the method further comprises: receiving a second operation acting on the first lock screen wallpaper, the second operation being a double-finger pinch operation, or the first operation being a downward swipe or a leftward swipe or a rightward swipe operation; generating the second new picture comprising a gradient color other than the first original picture according to the color of the first original picture specifically comprises: in response to the second operation, generating the second new picture comprising a gradient color other than the first original picture according to the color of the first original picture.

5. The method of claim 4, wherein, The method further comprises: in response to the second operation, reducing the first lock screen wallpaper and / or moving the position of the first lock screen wallpaper in the preview page, and filling a region other than the first original picture in the preview page with black during the reduction of the first lock screen wallpaper and / or the movement of the position of the first lock screen wallpaper in the preview page.

6. The method according to claim 4 or 5, characterized in that, After receiving the second operation acting on the first lock screen wallpaper, the method further comprises: displaying a first control in the lock screen editing interface; wherein the first operation comprises an operation acting on the first control.

7. The method of claim 6, wherein, Displaying the first control in the lock screen editing interface specifically comprises: displaying the first control in the lock screen editing interface when detecting an initial touch point of the second operation; or displaying the first control in the lock screen editing interface after detecting the initial touch point and during the reception of the second operation; or displaying the first control in the lock screen editing interface after detecting the end of the second operation.

8. The method according to claim 6 or 7, characterized in that, The first control is displayed in the lock screen editing interface, and specifically includes: The first control in an unfolded state is first displayed, and the first control in the unfolded state includes a first text and a first icon; After a first time length during which the first control in the unfolded state is displayed, the first control is switched from the unfolded state to a folded state, and the first control in the folded state includes the first icon but does not include the first text.

9. The method according to any one of claims 6-8, characterized in that, Before receiving a second operation on the first lock screen wallpaper, a second control is also displayed in the lock screen editing interface, the second control being used to replace an original image corresponding to the lock screen wallpaper displayed in the preview page, and the second control being displayed centrally in the lock screen editing interface; The first control is displayed in the lock screen editing interface, and specifically includes: The first control is displayed in the lock screen editing interface, and the first control and the second control are centrally displayed in the lock screen editing interface as a whole.

10. The method of claim 1 or 2, wherein, The first operation is a double-finger pinch operation, or the first operation is a downward swipe operation or a leftward swipe operation or a rightward swipe operation.

11. The method of claim 1 or 2, wherein, The lock screen editing interface further includes a first control, and the first operation includes an operation on the first control.

12. The method according to any one of claims 1 to 11, characterized in that, The first new image includes one or more of the following: an image above the first original image, an image below the first original image, an image to the left of the first original image, and an image to the right of the first original image.

13. The method of any one of claims 1-12, wherein, when the first ratio is less than or equal to a second value, the first new image includes images above, to the left, and to the right of the first original image; and when the first ratio is greater than the second value, the first new image includes an image above the first original image. The first ratio is a ratio of an aspect ratio of the first original image to an aspect ratio of a first display screen, the first display screen being a single display screen when the electronic device includes only the single display screen, or the first display screen being a virtual display screen having a long side of the single display screen as a side length when the electronic device is a foldable screen device including an inner screen and an outer screen.

14. The method of any one of claims 1-13, wherein: the preview page further displays a time indicator, the first lock screen wallpaper includes a first subject and a first background, a height of an overlapping portion of the first subject and the time indicator in the first lock screen wallpaper exceeds a first value of a height of the time indicator, and the first subject and the first background in the first lock screen wallpaper are both displayed below the time indicator; a height of an overlapping portion of the first subject and the time indicator in the second lock screen wallpaper does not exceed the first value of the height of the time indicator, the first subject in the second lock screen wallpaper is displayed above the time indicator, and the first background in the second lock screen wallpaper is located below the time indicator.

15. The method of any one of claims 1-14, wherein: ​ The first new picture includes a picture above the first original picture, a height of the picture above the first original picture is greater than or equal to a second ratio of the first original picture height, the second ratio is a ratio of a first height and a display screen height, the first height is a height from an upper edge of a display screen of the electronic device to a position of the first value of the time indicator height.

16. The method of claim 15, wherein, The first new picture further includes a picture left of the first original picture and a picture right of the first original picture, a width of the picture left of the first original picture is a third ratio of the first original picture width, and a width of the picture right of the first original picture is the third ratio of the first original picture width, the third ratio is half of the second ratio.

17. The method of any of claims 1-16, wherein, The first new picture includes a picture above the first original picture with a height of 50% of the first original picture height, a picture left of the first original picture with a width of 25% of the first original picture width, and a picture right of the first original picture with a width of 25% of the first original picture width. Alternatively, The first new picture includes a picture above the first original picture with a height of 35% of the first original picture height, a picture left of the first original picture with a width of 17.5% of the first original picture width, and a picture right of the first original picture with a width of 17.5% of the first original picture width.

18. The method of any one of claims 1-17, wherein, After displaying the second lock screen wallpaper in the preview page, the method further includes: receiving a third operation acting on the second lock screen wallpaper; during the receiving of the third operation, reducing the second lock screen wallpaper and / or moving a position of the second lock screen wallpaper in the preview page.

19. The method according to any one of claims 1 to 18, characterized in that, The method further includes: during the predicting of the first new picture outside the first original picture according to the first original picture, displaying a first window in the lock screen editing interface, the first window displays a progress of generating the first new picture.

20. The method of claim 19, wherein, the progress displayed in the first window initially is a percentage of a preset time length that has been used for generating the first new picture, when the electronic device completes the generation of the first new picture within the preset time length, the progress is displayed as 100%; when the electronic device does not complete the generation of the first new picture within the preset time length, the progress is displayed as 99% when the preset time length is reached and remains, and the progress is displayed as 100% when the generation of the first new picture is completed.

21. The method of any one of claims 1-20, wherein, The lock screen editing interface further includes a third control, and the method further includes: in response to a user operation acting on the third control, displaying a second window in the lock screen editing interface, the second window displays a plurality of style options, the plurality of style options includes a first style option, the first style option corresponds to a first style; in response to a user operation acting on the first style option, adjusting a style of content of a lock screen wallpaper displayed in the preview page to the first style.

22. The method of any one of claims 1-21, wherein, The method further includes: The lock screen wallpaper displayed in the preview page is portrait enhanced, and the portrait enhanced lock screen wallpaper is displayed in the preview page.

23. The method of any one of claims 1-22, wherein, The lock screen editing interface further includes a fourth control, and the method further includes: In response to a fourth operation on the fourth control, a lock screen interface is displayed, and the lock screen wallpaper displayed in the lock screen interface is the lock screen wallpaper displayed in the preview page when the fourth operation is received.

24. An electronic device, comprising: Comprise: a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the method of any one of claims 1-23.

25. A computer-readable storage medium, characterized in that, a computer program stored thereon, the computer program being executed by a processor to implement the method of any one of claims 1-23.

26. A computer program product, characterised in that, The computer program product comprises a computer program, which is executed by a processor to implement the method of any one of claims 1-23.