Wallpaper setting method, terminal equipment and storage medium

CN121646751APending Publication Date: 2026-03-10HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In the prior art, the wallpaper is set in a single way, and the human-computer interaction in the process of generating the wallpaper is not rich enough, resulting in poor user participation and unable to meet the user's personalized settings of the wallpaper.

Method used

By implementing a wallpaper setting method on the terminal device, it includes displaying a wallpaper preview interface on the display screen in response to a user's operation, allowing the user to select and edit the first image and the second image, and determining the overlay area in the second image based on the target subject image, generating the target image and setting it as a wallpaper.

Benefits of technology

It increases the number of interactions between users in the process of generating wallpaper, improves the user's sense of participation, and generates more beautiful wallpapers through perfect superposition effects, meeting users' personalized settings for wallpapers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121646751A_ABST
    Figure CN121646751A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wallpaper setting method, terminal equipment and a storage medium, and relates to the field of terminal equipment. The method comprises the following steps: displaying a wallpaper preview interface in response to a click operation on a synthetic wallpaper control; in response to a click operation on the wallpaper selection control, displaying a first option and a second option; determining a first image in response to a selection operation on the first option; performing main body extraction on the first image to obtain a target main body image, and displaying the target main body image on the wallpaper preview interface; determining a second image in response to a selection operation on the second option; determining a superposition area in the second image based on the target main body image; generating a target image according to the target main body image and the overlapping area, and displaying the target image; and in response to a click operation on the wallpaper application control, setting the target image as wallpaper. In the wallpaper generation process, the number of times of man-machine interaction is increased, and the sense of participation of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Wallpaper setting method, terminal device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the Patent Office of China on November 3, 2023, with application number 202311463356.4, and invention name “Method for generating wallpaper based on photo superposition”, and the Chinese patent application filed with the Patent Office of China on December 11, 2023, with application number 202311702858.8, and invention name “Wallpaper setting method, terminal device and storage medium”. All contents of the claimed priority are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of terminal devices, and in particular to a wallpaper setting method, a terminal device, and a storage medium. Background Art

[0003] With the advancement of electronic technology, the use of terminal devices such as smartphones and tablets has become increasingly widespread and has become an integral part of people's work and life. Users are also increasingly demanding the functionality and aesthetics of these devices. For example, mobile phones, in addition to functions such as making calls, watching videos, and shopping, also have many features that enhance aesthetics and improve human-computer interaction. Wallpaper is one such feature. Wallpaper is an important medium for presenting the overall visual style of a terminal product.

[0004] When users set wallpaper, they usually select a picture as the wallpaper for their phone. In the related art, the method of setting wallpaper is relatively simple, and the human-computer interaction during the wallpaper generation process is not rich, resulting in poor user participation and failure to meet users' personalized wallpaper settings.

[0005] Summary of the Invention

[0006] The embodiments of the present application disclose a wallpaper setting method, a terminal device, and a storage medium, which can solve the technical problems that the method of setting wallpaper is relatively simple, the human-computer interaction in the wallpaper generation process is not rich enough, and the user participation is poor.

[0007] In a first aspect, the present application discloses a wallpaper setting method, which is applied to a terminal device, and the method includes: in response to a click operation on a synthetic wallpaper control, displaying a wallpaper preview interface on the display screen, the wallpaper preview interface including a wallpaper selection control and a wallpaper application control; in response to a received click operation on the wallpaper selection control, displaying a first option and a second option; in response to a received selection operation on the first option, determining a first image; performing subject extraction on the first image to obtain a target subject image, and displaying the target subject image on the wallpaper preview interface; in response to a received selection operation on the second option, determining a second image; based on the target subject image, determining an overlay area in the second image, the size of the overlay area being the same as the size of the target subject image; generating a target image based on the target subject image and the overlay area, and displaying the target image; in response to a received click operation on the wallpaper application control, setting the target image as the wallpaper of the terminal device, and displaying the wallpaper. The above method can determine the first image and the second image based on the user's selection, thereby increasing the number of human-computer interactions and user participation in the process of generating wallpaper; at the same time, the superimposed area is determined in the second image based on the target main image of the first image, and the size of the superimposed area is the same as the size of the target main image, so that the target main image can be perfectly superimposed with the superimposed area, which can present a better superimposed effect, thereby obtaining a more aesthetically pleasing wallpaper.

[0008] In some optional embodiments, after determining the first image in response to the received selection of the first option, the method further includes: determining at least one recommended overlay image based on the first image, and updating the second option based on the at least one recommended overlay image. This method can ensure that the displayed second option is more closely aligned with the first option selected by the user, facilitating the user's selection of a target overlay image that best complements the target main image.

[0009] In some optional embodiments, determining at least one recommended overlay image based on the first image includes searching a first image library based on the primary color of the first image, and determining as the recommended overlay image an image in the first image library that matches the primary color. This method, by determining the recommended overlay image that matches the selected first option using the primary color matching rule, ensures that the determined recommended overlay image matches the selected first option in color, thereby allowing the user to more easily select a target overlay image that better matches the color of the selected recommended main image.

[0010] In some optional embodiments, determining at least one recommended overlay image based on the first image further includes: searching a second image library based on the shooting information of the first image, and determining as the recommended overlay image an image in the second image library that matches the shooting information. The above method, by using information matching rules to determine the recommended overlay image that matches the selected first option, can ensure that the determined recommended overlay image matches the selected first option in terms of shooting information, thereby allowing the user to more easily select a target overlay image whose shooting information matches the selected recommended subject image.

[0011] In some optional embodiments, generating the target image based on the target main image and the superimposed area includes: determining a third image; and generating the target image based on the target main image, the superimposed area, and the third image. In the above method, superimposing the third image can enrich the content of the target image, making the generated target image more aesthetically pleasing.

[0012] In some optional embodiments, determining the third image includes: determining at least one background color based on the primary color of the first image, and displaying background color options corresponding to each of the at least one background color; and in response to selecting any background color option, generating the third image based on the background color corresponding to the background color option. This method can ensure that the generated third image matches the primary color of the first image, thereby improving the aesthetics of the generated wallpaper.

[0013] In some optional embodiments, after generating the target image based on the target subject image, the superimposed area, and the third image, the method further includes: determining a first area corresponding to the target image based on a preset adjustment rule; if the terminal device receives a first operation on the first area, adjusting the target subject image to obtain an adjusted target subject image; adjusting the superimposed area based on the adjusted target subject image to obtain an adjusted superimposed area; and updating the target image based on the adjusted target subject image, the adjusted superimposed area, and the third image. The above method can adjust the display of the target subject image on the target image based on the user's first operation on the first area.

[0014] In some optional implementations, the first operation is a combination of one or more of the following operations: a zoom-in operation, a zoom-out operation, and a move operation. The above method can adjust the display position or display size of the target subject image on the target image.

[0015] In some optional embodiments, after generating the target image based on the target main image, the superimposed area, and the third image, the method further includes: determining a second area corresponding to the target image based on the adjustment rule; when the terminal device receives a second operation on the second area, adjusting the superimposed area to obtain an adjusted superimposed area, wherein the display content of the adjusted superimposed area is different from the display content of the superimposed area, and the size of the adjusted superimposed area is the same as the size of the superimposed area; updating the target image based on the target main image, the adjusted superimposed area, and the third image. The above method can adjust the display content of the superimposed area based on the user's second operation on the second area.

[0016] In some optional implementations, the second operation is a combination of one or more of the following operations: a zoom-in operation, a zoom-out operation, and a move operation. The above method can adjust the display content of the superimposed area.

[0017] In some optional embodiments, when there are multiple superimposed areas, generating the target image based on the target subject image, the superimposed areas, and the third image includes: determining a display order corresponding to the multiple superimposed areas; determining a first superimposed area among the multiple superimposed areas based on the display order; and generating the target image based on the target subject image, the first superimposed area, and the third image. The above method may, when multiple superimposed areas are determined, determine a superimposed area to be displayed first among the multiple superimposed areas.

[0018] In some optional embodiments, after displaying the wallpaper, the method further includes: determining, according to a preset time interval and the display order, a second superimposed area corresponding to the current time among the multiple superimposed areas; and updating the wallpaper based on the second superimposed area, obtaining and displaying the updated wallpaper. The above method can display multiple superimposed areas in turn based on the preset time interval and the determined display order of the multiple superimposed areas, thereby updating the currently displayed wallpaper, thereby providing a richer user experience for the user.

[0019] In some optional embodiments, after displaying the wallpaper, the method further includes: if it is detected that the terminal device has entered a lock screen state, based on the display order, determining a second superimposed area corresponding to the current time in the multiple superimposed areas; based on the second superimposed area, updating the wallpaper, obtaining and displaying the updated wallpaper. The above method can, after the user selects multiple second images and obtains multiple superimposed areas, display the multiple superimposed areas in turn based on the display order of the multiple superimposed areas each time the lock screen state is entered, thereby updating the currently displayed wallpaper each time the user enters the lock screen, thereby providing the user with a richer user experience.

[0020] The second aspect of the present application discloses a terminal device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the terminal device executes the wallpaper setting method as described in the first aspect.

[0021] The third aspect of the present application discloses a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the wallpaper setting method as described in the first aspect.

[0022] It should be understood that the terminal device described in the second aspect and the computer-readable storage medium described in the third aspect provided above both correspond to the method of the first aspect provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a flow chart of a wallpaper setting method provided in an embodiment of the present application.

[0024] FIG2 is a schematic diagram of a wallpaper preview interface displayed in response to a user clicking on a composite wallpaper control, provided in an embodiment of the present application.

[0025] FIG3 is a schematic diagram showing a wallpaper editing window according to an embodiment of the present application.

[0026] FIG4 is a schematic diagram of displaying a gallery image in response to a click on a control for changing a main image, provided in an embodiment of the present application.

[0027] FIG5 is a schematic diagram of updating a second option based on a selection operation of a first option provided in an embodiment of the present application.

[0028] FIG6 is a schematic diagram of subject extraction provided in an embodiment of the present application.

[0029] FIG7 is a schematic diagram of determining a superimposed area in a superimposed image based on a target subject image provided in an embodiment of the present application.

[0030] FIG8 is a schematic diagram of displaying a gallery image in response to a click on a change overlay image control according to an embodiment of the present application.

[0031] FIG9 is a schematic diagram of dividing the overlay area based on the overlay range provided in an embodiment of the present application.

[0032] FIG10 is a schematic diagram of an overlay range dragging control bar provided in an embodiment of the present application.

[0033] FIG11 is a schematic diagram of an image superposition sequence provided in an embodiment of the present application.

[0034] FIG12 is a schematic diagram of determining a first area provided in an embodiment of the present application.

[0035] FIG13 is a schematic diagram of adjusting the superimposed area based on the second operation provided in an embodiment of the present application.

[0036] FIG14 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary", "or", and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary", "or", and "for example" is intended to present related concepts in a concrete way.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c. It should be understood that the order of the steps shown in the flowcharts herein can be changed, and some can be omitted.

[0039] Wallpaper is an important carrier for presenting the overall visual style of the terminal product. When setting wallpaper, users usually select a picture directly as the wallpaper, and the way to set the wallpaper is relatively simple. The content of the lock screen wallpaper is the content of the picture and does not contain other elements outside the picture, so the lock screen wallpaper is relatively monotonous. In the process of setting the wallpaper, the user only needs to select a photo without any other interaction with the terminal device, so the interaction based on the wallpaper is not rich enough, the user's sense of participation in setting the wallpaper is poor, and it cannot meet the user's personalized settings for the wallpaper. In the related art, wallpaper can be generated based on two pictures, but in the process of generating the wallpaper, the two pictures are simply superimposed, and the visual effect of the superimposed wallpaper is also poor.

[0040] In order to solve the technical problems that the way of setting wallpaper is relatively simple, the human-computer interaction in the wallpaper generation process is not rich enough, the user participation is poor, and the user's personalized wallpaper settings cannot be satisfied, the embodiment of the present application provides a wallpaper setting method, which can determine the first image and the second image based on the user's selection. In the process of generating wallpaper, the number of human-computer interactions is increased, the user's participation is increased, and the user's personalized wallpaper settings are satisfied; at the same time, based on the target main image of the first image, the superposition area is determined in the second image, and the size of the target main image is the same as the size of the superposition area, so that the target main image can be perfectly superimposed on the superposition area, which can present a better superposition effect, thereby obtaining a more aesthetically pleasing wallpaper.

[0041] The wallpaper setting method provided in the embodiments of the present application is applied to a terminal device including a display screen. For example, the terminal device in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific form of the terminal device.

[0042] To better understand the embodiments of the present application, the wallpaper setting method provided by the embodiments of the present application will be described below with reference to the accompanying drawings. The following specific embodiments can be implemented independently or in combination with each other. For the same or similar concepts or processes, some embodiments may not be described in detail.

[0043] FIG1 is a flow chart of a wallpaper setting method provided in an embodiment of the present application. The wallpaper setting method is applied to a terminal device including a display screen. The order of the steps in the flow chart may be changed and some steps may be omitted according to different requirements. As shown in FIG1 , the method includes:

[0044] Step S101: In response to a click on a composite wallpaper control, a wallpaper preview interface is displayed on the display screen.

[0045] The wallpaper preview interface may include a wallpaper selection control and a wallpaper application control. The synthetic wallpaper control is used to superimpose the picture selected by the user to generate a wallpaper. The synthetic wallpaper control can be represented by different names, such as a double exposure control, etc., which are not limited here. For example, a wallpaper can be generated based on a determined main image and an overlay image. Among them, the main image is an image used to determine the target subject, and the target subject can be obtained by subject extraction of the main image. The overlay image is an image used to be superimposed on the target subject, and the overlay area to be superimposed with the target subject can be determined from the overlay image, and the overlay area is used to be superimposed with the target subject.

[0046] In one embodiment of the present application, the synthetic wallpaper control may include a thumbnail of a preset wallpaper. The preset wallpaper is a pre-set synthetic image that can be used as a wallpaper. The preset wallpaper includes a corresponding preset main image and a preset overlay image. The preset overlay image is used to be superimposed on the preset main image. After the terminal device receives the user's selection operation on the synthetic wallpaper control, it can display the wallpaper preview interface of the synthetic wallpaper control on the terminal device, that is, display the preset wallpaper. Figure 2 is a schematic diagram of displaying a wallpaper preview interface in response to a user clicking on the synthetic wallpaper control provided by an embodiment of the present application. As shown in (a) of Figure 2, the terminal device can display the synthetic wallpaper control on the wallpaper settings page, as well as other wallpaper options, such as off-screen display options, magazine lock screen options, etc. As shown in (b) of Figure 2, in response to the user's selection operation on the synthetic wallpaper control, the terminal device can display a wallpaper preview interface, which includes the preset wallpaper corresponding to the synthetic wallpaper control.

[0047] In one embodiment of the present application, a user can trigger a wallpaper setting instruction by performing a preset gesture on the display screen. After receiving the wallpaper setting instruction, the terminal device displays a wallpaper setting page, which includes a composite wallpaper control. The gesture can be configured based on actual circumstances, such as long-pressing a blank area on the home screen and selecting a preset option, such as selecting "Desktop and Wallpaper Options" in a pop-up window, to trigger the wallpaper setting instruction. For another example, a user can trigger a wallpaper setting instruction by performing a preset gesture on the display screen, such as pinching their hands together. Alternatively, the user can trigger the wallpaper setting instruction by accessing the phone's "Settings" menu and selecting "Desktop and Wallpaper Options" or "Display and Brightness." Alternatively, the user can trigger the wallpaper setting instruction through the notification bar, for example, by pulling down the notification bar, tapping the "Settings" icon at the top of the notification bar, and selecting "Desktop and Wallpaper Options" in the settings panel that opens. Alternatively, the user can trigger the wallpaper setting instruction by opening the terminal device's application list and selecting an application named "Desktop and Wallpaper Options" or a similar application to trigger the wallpaper setting instruction. Alternatively, the user can trigger the wallpaper setting instruction by opening the photo album or gallery application and selecting the set wallpaper control corresponding to the target image. The Set Wallpaper control is used to set the target image as wallpaper.

[0048] Step S102: When the terminal device receives a click operation on the wallpaper selection control, the first option and the second option are displayed.

[0049] In an embodiment of the present application, the wallpaper preview interface includes a wallpaper selection control. The wallpaper selection control is used to select an image to generate the wallpaper, such as selecting a main image and an overlay image. In one embodiment of the present application, the wallpaper selection control may include a selection control, such as the "Select Wallpaper" control shown in Figure 2(b). In another embodiment, the wallpaper selection control may also include a change control, such as the "Change Image" control shown in Figure 2(b).

[0050] When a user clicks on a wallpaper selection control, the terminal device displays at least one first option and at least one second option on the wallpaper preview interface. In embodiments of the present application, there is no limit on the number of first and second options displayed. A first option is a thumbnail image corresponding to a recommended main image. Each first option corresponds to a recommended main image. A second option is a thumbnail image corresponding to a recommended overlay image. Each second option corresponds to a recommended overlay image. In one embodiment of the present application, the terminal device may display the first and second options via a wallpaper editing window. For example, when a user clicks on the wallpaper selection control, the terminal device displays a wallpaper editing window on the wallpaper preview interface, including the first and second options. Figure 3 provides a schematic diagram of displaying a wallpaper editing window in an embodiment of the present application. As shown in Figure 3 (a), the wallpaper preview interface includes a wallpaper selection control. As shown in Figure 3 (b), in response to the user clicking the wallpaper selection control, a wallpaper editing window 30 is displayed on the wallpaper preview interface. The wallpaper editing window 30 includes three first options 301 and three second options 302. As shown in Figure 3 (b), each first option is a thumbnail image corresponding to a recommended main image. Different first options correspond to different recommended main images; each second option is a smaller version of a recommended overlay image. Different second options correspond to different recommended overlay images.

[0051] In one embodiment of the present application, the recommended subject image and the recommended overlay image can be determined according to preset recommendation rules. The recommendation rules can be set according to the needs of the user. For example, the recommendation rules may include determining the top three subject images in the official recommended image as recommended subject images, determining the top three overlay images in the official recommended image as recommended overlay images, or determining the most recent image containing the subject taken by the user as the recommended subject image, or determining the most recent image taken by the user as the recommended overlay image.

[0052] Selection operation In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control and displays the first option and the second option, it also displays the change main image control. The change main image control is used to select the main image for generating the wallpaper, as shown in (b) in Figure 3. When the user clicks on the change main image control, the gallery image is displayed on the wallpaper preview interface; if the user selects any of the displayed gallery images, the any gallery image is determined as the main image for generating the wallpaper. The gallery image is an image stored in the gallery of the terminal device. In one embodiment of the present application, when the user clicks on the change main image control, all gallery images can be displayed on the wallpaper preview interface in the order in which the images are stored in the gallery. For example, the later the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface. In order to reduce the time it takes for users to find images, gallery images can be displayed according to the labels of the gallery images. In another embodiment of the present application, when a user clicks on the control to change the main image, the gallery images that need to be displayed on the wallpaper preview interface can be determined based on the labels of the gallery images and preset display rules. The labels of the gallery images are used to classify images, for example, people, selected, landscapes, animals, buildings, etc. The display rules are used to determine the type of image displayed on the wallpaper preview interface after the user clicks on the option to change the main image. The display rules can be set according to user needs, such as displaying gallery images labeled as people when the user clicks on the option to change the main image, or displaying gallery images labeled as selected when the user clicks on the option to change the main image. The images labeled as selected can be officially recommended images, or can be images that are suitable for being the main image after intelligent recognition.

[0053] Figure 4 is a schematic diagram of displaying gallery images in response to a click on a control to change the main image, provided by an embodiment of the present application. As shown in Figure 4, as shown in Figure 4 (a) to (b), when the terminal device receives a user click on the "Change Main Image" option, gallery images labeled "People" are displayed on the wallpaper preview interface. Displaying images based on tags can avoid displaying images of multiple categories on the wallpaper preview interface, which makes it difficult for users to quickly locate the first image. By selecting tags, users can quickly identify the first image from a specified category. In one embodiment, the wallpaper preview interface also includes tags corresponding to other images in the gallery, such as at least one tag such as Featured, Landscape, and Architecture. When the terminal device receives a user selection of any tag, the image corresponding to the tag is displayed on the wallpaper settings page. For example, as shown in Figure 4 (b), images in the gallery labeled "People" are displayed on the wallpaper settings page. When the terminal device receives a user selection of a tag representing "Animal", the gallery images labeled "People" are stopped from being displayed on the wallpaper settings page, and images labeled "Animal" are displayed instead. In the above embodiment, the type of image displayed on the wallpaper preview interface can be modified by switching tags. In one embodiment, when the terminal device receives a user's cancel operation on the currently selected tag, all types of images can be displayed on the wallpaper settings page. For example, as shown in (b) in Figure 4, the currently selected tag is a person. When the user cancels the tag represented as a person, such as clicking on the tag image of the person, at this time, the user has not selected other tags, and all types of images can be displayed on the wallpaper settings page. All types of images can be displayed according to the time they were stored in the gallery. For example, the later the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface; the earlier the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface.

[0054] In one embodiment of the present application, after displaying a gallery image on the wallpaper preview interface, the user can change the image content displayed on the wallpaper preview interface by performing a preset action in the gallery image display area. For example, the user can perform a swipe down operation in the gallery image display area to display a gallery image that has not been displayed on the current display interface; or the user can perform an upward swipe operation in the gallery image display area to display a gallery image that has been displayed on the current display interface.

[0055] Step S103: When the terminal device receives a selection operation on the first option, the first image is determined.

[0056] In one embodiment of the present application, upon receiving a user selection operation on any first option, the recommended subject image corresponding to the any first option is determined as the target subject image for generating the wallpaper, that is, the recommended subject image corresponding to the any first option is determined as the first image. In one embodiment of the present application, after the terminal device receives a click operation on the wallpaper selection control to display the first option, as shown in Figure 3 (b), the first option corresponding to the thumbnail of the preset subject image corresponding to the preset wallpaper is selected by default in the at least one displayed first option.

[0057] In one embodiment of the present application, if a user selects any of the displayed gallery images, the any of the gallery images is determined as the main image for generating the wallpaper, and the first control is updated based on the any of the gallery images, so that the updated first control includes a thumbnail image corresponding to the any of the gallery images. After the first control is updated, the first control corresponding to the any of the gallery images is in a selected state. In this embodiment, the user's selection operation on any of the displayed gallery images is equivalent to the selection operation on the first option. If a user selects any of the displayed gallery images, the any of the gallery images is determined as the first image.

[0058] In one embodiment of the present application, when the terminal device receives a selection operation on the first option, the second option is updated based on the selected first option and the preset matching rules, so that the updated second option matches the selected first option. Figure 5 is a schematic diagram of an embodiment of the present application providing an update of the second option based on a selection operation on the first option. As shown in (a) in Figure 5, the pre-selected first option is the first option corresponding to the girl's thumbnail. As shown in (a) to (b) in Figure 5, when the terminal device receives a selection operation on the first option corresponding to the man's thumbnail by the user, the second option is updated, and the updated second option and the second option before the update include different recommended overlay images. The above embodiment updates the second option based on the selected first option so that the updated second option has a higher degree of matching with the selected first option, allowing the user to more conveniently select a recommended overlay image that better matches the selected recommended main image.

[0059] In one embodiment of the present application, matching rules may include dominant color matching rules. Each image has a corresponding dominant color. The dominant color of an image refers to the dominant or most frequently appearing color in the image. It is the most prominent and important color in the entire image and can be used to represent the overall tone and style of the image. The dominant color matching rules may include correspondences between different dominant colors. One dominant color may correspond to one or more other dominant colors. A first dominant color corresponding to a recommended overlay image corresponding to the currently selected first option may be determined. Based on the dominant color matching rules, a second dominant color corresponding to the first dominant color may be determined. A first dominant color may correspond to one or more second dominant colors. Based on the determined second dominant color, at least one recommended overlay image may be determined. The second option may be updated based on the recommended overlay image so that the dominant color of the updated second option matches the dominant color of the selected first option. The dominant color of the recommended overlay image is the second dominant color. In one embodiment of the present application, a search may be performed in a first image library based on the determined second dominant color. Images in the first image library with the second dominant color as the second image library may be identified as the second image library. The first image library may be a library storing officially recommended images or a library storing all images on the terminal device. If multiple second main colors are determined, an overlay recommendation image can be determined based on each second main color, thereby obtaining multiple overlay recommendation images. If a second main color is determined, multiple recommended overlay images whose main colors are the second main color can be determined based on the second main color, thereby obtaining multiple overlay recommendation images. In one embodiment of the present application, the main color of the image can be determined based on image editing software, an online color palette tool, or a color analysis tool, such as determining the first main color of the main image and the second main color of the overlay image. In the above embodiment, the overlay recommendation image that matches the selected first option is determined by the main color matching rule, so that the determined overlay recommendation image can match the selected first option in color, thereby allowing the user to more conveniently select a target overlay image that better matches the color of the selected recommended main image.

[0060] In one embodiment of the present application, the matching rules may include information matching rules. After the first option is selected, the shooting information of the recommended main image corresponding to the selected first option, such as shooting time, shooting location, etc., can be determined, and an overlay recommended image that matches the shooting information can be determined; the second option displayed on the wallpaper preview interface is updated based on the overlay recommended image, so that the shooting information of the recommended overlay image corresponding to the updated second option matches the shooting information of the recommended main image corresponding to the selected first option. In one embodiment of the present application, a search can be performed in the second gallery of the terminal device based on the determined shooting information, and images in the second gallery that match the shooting information can be determined as overlay recommended images. The second gallery can be a gallery that stores pictures taken by the user, or a gallery that stores all pictures of the terminal device. For example, when the shooting time of an image in the second gallery is the same as the shooting time of the picture corresponding to the selected first option, and / or the shooting location of the image is the same as the shooting location of the picture corresponding to the currently selected first option, the image is determined to be the overlay recommended image that matches the shooting information corresponding to the first option. In the above embodiment, the overlay recommendation image that matches the selected first option is determined through information matching rules, so that the determined overlay recommendation image can match the selected first option in the shooting information, thereby allowing the user to more conveniently select the target overlay image that matches the selected recommended main image in the shooting information.

[0061] In one embodiment of the present application, multiple overlay recommendation images can be determined based on both the main color matching rule and the information matching rule, and the second option can be updated based on the determined multiple overlay recommendation images, so that the updated second option includes a second option that matches the first main color of the selected first option, and a second option that matches the shooting information of the selected second option.

[0062] Step S104: extract the main body of the first image to obtain a target main body image, and display the target main body image on the wallpaper preview interface.

[0063] In one embodiment of the present application, the subject may refer to the most eye-catching and most focused part or object in the image, which may include people, objects, scenes, and details. For example, people may include a single person or multiple people. Objects may include cars, buildings, food, animals, etc. Scenes may include mountains, beaches, and forests. Details may refer to parts with specific meanings, such as flowers, eyes, palms, etc. The subject in the image may be extracted by subject extraction. The target subject image is the partial image corresponding to the subject in the first image. Figure 6 is a schematic diagram of subject extraction provided by an embodiment of the present application. (a) in Figure 6 is a first image, which includes a girl, white clouds, and trees. The subject in the first image is a girl. Subject extraction is performed on the first image shown in (a) of Figure 6 to obtain the target subject image shown in (b) of Figure 6, that is, the partial image corresponding to the girl in (a) of Figure 6.

[0064] In one embodiment of the present application, subject extraction can be performed on the first image based on a preset detection method. For example, subject extraction can be performed on the first image based on methods such as color segmentation, edge detection, semantic segmentation using deep learning, and segmentation methods using texture and shape features. For another example, subject extraction can be performed on the first image based on a pre-trained model, such as using the trained deep learning model Mask R-CNN to extract the subject of the first image. In the embodiments of the present application, there is no limitation on the implementation method of subject extraction.

[0065] In one embodiment of the present application, displaying the obtained target subject image on the wallpaper preview interface includes: determining an overlay area in a preset overlay image based on the target subject image, the overlay area being the same size as the target subject image; generating a target image based on the target subject image and the determined overlay area, and displaying the generated target image on the wallpaper preview interface. Figure 7 is a schematic diagram of determining an overlay area in an overlay image based on the target subject image, provided in one embodiment of the present application. Figure 7 (a) shows the preset overlay image, and as shown in Figures 7 (b) to (c), the overlay area is determined in the preset overlay image based on the image contour of the target subject image, the overlay area being the same size as the target subject image. In one embodiment of the present application, an area that is the same size as the target subject image can be determined in any area of ​​the preset overlay image and determined as the overlay area. In one embodiment of the present application, an area that is the same size as the target subject image can be determined in a color-rich area of ​​the preset overlay image and determined as the overlay area. For example, an area that is the same size as the target subject image can be determined in an image area in the preset overlay image where the color variance of the pixels in the area is greater than a preset variance threshold, and determined as the overlay area. This method can make the superimposed area have richer colors and improve the visual experience. In the embodiment of the present application, no limitation is imposed on the method of determining the superimposed area.

[0066] In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control, the first option displayed includes a thumbnail of the preset main image corresponding to the preset wallpaper, and the second option displayed includes a thumbnail of the preset overlay image corresponding to the preset wallpaper. After the second option is displayed, as shown in FIG3(b), the second option corresponding to the thumbnail of the preset main image will be selected by default. If the determined first image is inconsistent with the preset main image and the currently selected second option is a reduced image of the preset overlay image, the main body of the determined first image is extracted to obtain a target main image, and an overlay area is determined in the preset overlay image based on the target main image, and the size of the overlay area is the same as the size of the determined target main image; a target image is generated based on the target main image and the determined overlay area, and the generated target image is displayed on the wallpaper preview interface. If the determined first image is consistent with the preset main image and the image corresponding to the currently selected second option is not a reduced version of the preset overlay image, a main body extraction is performed on the determined first image to obtain a target main image. An overlay area is determined in the image corresponding to the currently selected second option based on the target main image, where the size of the determined overlay area is the same as the size of the target main image. A target image is generated based on the target main image and the determined overlay area, and the generated target image is displayed on the wallpaper preview interface. If the determined first image is consistent with the preset main image and the image corresponding to the currently selected second option is a reduced version of the preset overlay image, the wallpaper currently displayed on the wallpaper preview interface is not adjusted. For example, the preset wallpaper displayed on the wallpaper preview interface is not adjusted and the currently displayed wallpaper continues to be displayed. In the above embodiment, when the first image has not changed compared to the preset main image, it can be determined that the main body of the wallpaper generated based on the first image has not changed compared to the main body of the currently displayed wallpaper, such as if one or more of the main body's outline, size, content, etc. has not changed, and the currently displayed wallpaper is not adjusted, thereby avoiding waste of computing power.

[0067] Step S105: When the terminal device receives a selection operation for the second option, a second image is determined; and based on the target subject image, a superimposed area is determined in the second image.

[0068] In one embodiment of the present application, upon receiving a user selection operation on any second option, the recommended overlay image corresponding to the any second option is determined as the target overlay image for generating the wallpaper, that is, the recommended overlay image corresponding to the any second option is determined as the second image. In one embodiment of the present application, after the terminal device receives a click operation on the wallpaper selection control to display the second option, as shown in Figure 3 (b), the second option corresponding to the thumbnail of the preset overlay image corresponding to the preset wallpaper is selected by default in the at least one displayed second option.

[0069] In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control and displays the first option and the second option, it also displays a change overlay image control. The change overlay image control is used to select the overlay image for generating the wallpaper, as shown in (b) in Figure 3. When a user click operation on the change overlay image control is received, the gallery image is displayed on the wallpaper preview interface; if a user selection operation is received on any displayed gallery image, the any gallery image is determined as the overlay image for generating the wallpaper. The gallery image is an image stored in the gallery of the terminal device. In one embodiment of the present application, when a user click operation on the change overlay image control is received, all gallery images can be displayed on the wallpaper preview interface in the order in which the images are stored in the gallery. For example, the later the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface. In order to reduce the time it takes for users to find images, gallery images can be displayed according to the labels of the gallery images. In another embodiment of the present application, when a user clicks on the change overlay image control, the gallery images that need to be displayed on the wallpaper preview interface can be determined based on the labels of the gallery images and preset display rules. The labels of the gallery images are used to classify images, for example, people, selected, scenery, animals, buildings, etc. The display rules are used to determine the type of image displayed on the wallpaper preview interface after the user clicks on the change overlay image option. The display rules can be set according to user needs, such as displaying gallery images labeled scenery after the user clicks on the change overlay image option, or displaying gallery images labeled selected after the user clicks on the change overlay image option. The images labeled selected can be officially recommended images, or can be images that are suitable for overlay images after intelligent identification.

[0070] FIG8 is a schematic diagram of an embodiment of the present application providing a method for displaying gallery images in response to a click on a change overlay image control. As shown in FIG8 , as shown in (a) to (b) of FIG8 , when a terminal device receives a user click on the change overlay image option, gallery images labeled "scenery" are displayed on the wallpaper preview interface. Displaying images based on tags avoids displaying images of multiple categories on the wallpaper preview interface, which can make it difficult for users to quickly locate a first image. Selecting tags facilitates users to quickly locate a first image from a specified category. In one embodiment, the wallpaper preview interface also includes tags corresponding to other images in the gallery, such as at least one tag such as "Featured," "Scenery," and "Architecture." When the terminal device receives a user selection of any tag, the image corresponding to the tag is displayed on the wallpaper settings page. For example, as shown in FIG8 (b), images in the gallery labeled "scenery" are displayed on the wallpaper settings page. When the terminal device receives a user selection of a tag representing "architecture," the gallery images labeled "scenery" are stopped from being displayed on the wallpaper settings page, and images labeled "architecture" are displayed instead. In the above embodiment, the type of image displayed on the wallpaper preview interface can be modified by switching tags. In one embodiment, when the terminal device receives a user's cancel operation on the currently selected tag, all types of images can be displayed on the wallpaper settings page. For example, as shown in (b) in Figure 8, the currently selected tag is scenery. When the user cancels the tag represented as scenery, such as clicking on the tagged image of scenery, at this time, the user has not selected other tags, and all types of images can be displayed on the wallpaper settings page. All types of images can be displayed according to the time they were stored in the gallery. For example, the later the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface; the earlier the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface.

[0071] In one embodiment of the present application, after determining the second image, an overlay area is determined in the second image based on the target subject image, and the size of the overlay area determined in the second image is the same as the size of the target subject image. A target image is generated based on the target subject image and the determined overlay area, and the generated target image is displayed on the wallpaper preview interface. In one embodiment of the present application, if the determined second image is inconsistent with a preset overlay image, an overlay area is determined in the second image based on the target subject image. If the preset subject image is consistent with the target subject image, the currently displayed wallpaper is not adjusted. For example, if the preset wallpaper is not adjusted, the currently displayed wallpaper continues to be displayed. In the above embodiment, if the second image has not changed compared to the preset overlay image, it can be determined that the overlay portion of the wallpaper generated based on the second image has not changed compared to the overlay portion of the currently displayed wallpaper, such as if the content of the overlay portion has not changed, and the currently displayed wallpaper is not adjusted, thereby avoiding waste of computing power. For some specific embodiments of determining the overlay area in the second image based on the target subject image, please refer to the relevant description above, such as the relevant description above regarding determining the overlay area in the preset overlay image based on the target subject image.

[0072] In one embodiment of the present application, after determining the superimposed area in the second image based on the target subject image, other areas outside the superimposed area in the second image can be cropped so that the cropped second image only contains the superimposed area; the transparency of other areas outside the superimposed area in the second image can also be set to 0% so that other areas are invisible.

[0073] In some embodiments of the present application, multiple second images may be determined based on user selections to automatically update the displayed wallpaper. For example, a multiple overlay image option may be displayed on the wallpaper preview interface, and in response to a user clicking on the multiple overlay image option, multiple second images may be determined based on the user's selections. An overlay area may be determined within each second image selected by the user based on the target subject image.

[0074] Step S106 : generating a target image according to the target main image and the superimposed area, and displaying the target image.

[0075] In one embodiment of the present application, the target subject image and the overlay area can be overlaid based on an overlay range to generate a target image. The overlay range can be set based on actual circumstances. The larger the overlay range, the more visible portions of the overlay area; the smaller the overlay range, the less visible portions of the overlay area. The visible and invisible portions of the overlay area can be determined based on the overlay range. Based on the determined visible and invisible portions, the transparency of the overlay area can be set; the overlay area with the transparency set can be overlaid on the target subject image to generate the target image.

[0076] In some embodiments of the present application, the visible and invisible parts of the superimposed area can be determined according to the width and superimposed range of the superimposed area. For example, the superimposed area can be divided into an upper half and a lower half according to the width and superimposed range of the superimposed area, and the upper half can be set as the visible part and the lower half can be set as the invisible part, or the upper half can be set as the invisible part and the lower half can be set as the visible part. In some methods, the ratio of the invisible part to the visible part can be determined based on the superimposed range. For example, when the superimposed range is 60%, the ratio of the invisible part to the visible part is determined to be 4:6; when the superimposed range is 50%, the ratio of the invisible part to the visible part is determined to be 5:5; when the superimposed range is 40%, the ratio of the invisible part to the visible part is determined to be 6:4.

[0077] In other embodiments of the present application, the superposition area can be divided into a left half and a right half according to the length and the superposition range of the superposition area, wherein the left half can be set as a visible area and the right half can be set as an invisible area, or the left half can be set as an invisible area and the right half can be set as a visible area. In practical applications, it is not limited to the above examples. The following example is used to illustrate the division of the superposition area into an upper half and a lower half according to the width and the superposition range of the superposition area, wherein the upper half is an invisible part and the lower half is a visible part. Figure 9 is a schematic diagram of dividing the superposition area based on the superposition range provided in an embodiment of the present application. For example, the superposition range is 60%, as shown in Figure 9, the superposition area is divided into two parts with a width of 4:6 according to the width, the upper half is the invisible part in the superposition area, and the lower half is the visible part in the superposition area.

[0078] In one embodiment of the present application, the transparency of the invisible portion of the superimposed area is 0%. The visible portion of the superimposed area can achieve a gradual transparency change from 0-100%. For example, as shown in Figure 9, the transparency of the visible portion of the superimposed area at the initial position is 0%, and the transparency at the final position is 100%. The transparency corresponding to each width of the visible portion in the superimposed area can be determined based on the linear relationship between the width of the visible portion in the superimposed area and the transparency range. In one embodiment of the present application, the visible portion can be divided into multiple sub-regions of equal width according to a preset number of regions. Based on the number of regions, multiple sub-region numbers are determined, and the transparency corresponding to each sub-region number is set. Based on the transparency corresponding to each sub-region number, a different transparency gradient range is set for each sub-region. The number of regions can be set according to actual needs, such as 10. For example, a number of 10 regions indicates that the visible portion can be divided into 10 sub-regions. Based on the number of regions, the 10 sub-region numbers can be determined in order from top to bottom: first sub-region, second sub-region, third sub-region, ..., tenth sub-region. Since the 10 sub-areas need to complete the transparency gradient of 0-100%, the difference in transparency between two adjacent sub-areas can be set to 10%. For example, the transparency gradient interval of the first sub-area can be set to 0%-10%, the transparency gradient interval of the second sub-area can be set to 11%-20%, the transparency gradient interval of the third sub-area can be set to 21%-30%,..., and the transparency gradient interval of the tenth sub-area can be set to 91%-100%.

[0079] In one embodiment of the present application, a drag control bar corresponding to the overlay range can be displayed on the wallpaper preview interface. When a user drags the drag control bar, the overlay range can be adjusted. In another embodiment, the overlay range can also be adjusted using a scalable rectangular frame. In one embodiment of the present application, a drag control bar corresponding to the overlay range can be displayed on the wallpaper preview interface in response to a user clicking on the target subject image. The drag control bar can be displayed at a preset position of the target subject image, such as above, below, left, or right. In one embodiment of the present application, when a click operation is received on the wallpaper selection control, the drag control bar corresponding to the overlay range can be displayed, for example, it can be displayed below the second option. Figure 10 is a schematic diagram of an overlay range drag control bar provided in an embodiment of the present application. For example, as shown in Figure 10, a drag control bar corresponding to the overlay range is displayed on the wallpaper preview interface. When a user drags the drag control bar to the left, the overlay range is reduced; when a user drags the drag control bar to the right, the overlay range is increased.

[0080] In one embodiment of the present application, a superimposed area with transparency settings set is superimposed on a target main image to generate a target image, including: superimposing the superimposed area with transparency settings set on the target main image to obtain a first image; generating a second image according to a preset image size and the first image, wherein the second image has the same size as the first image and includes the first image; determining a background color corresponding to the second image, and coloring the area of ​​the second image excluding the first image based on the determined background color to obtain the target image. The position of the first image within the second image can be set according to user requirements. In one embodiment of the present application, the first image is displayed centered within the second image. In one embodiment of the present application, the background color corresponding to the second image can be determined based on the primary color of the target main image (or first image). For example, a target primary color corresponding to the primary color of the target main image (or first image) can be determined based on a preset primary color matching rule, and the determined target primary color can be used as the background color. In one embodiment of the present application, after determining at least one background color corresponding to the second image, a background color option corresponding to the at least one background color can be displayed on the wallpaper preview interface, the background color option indicating the displayed background color. For example, as shown in (a) to (b) in Figure 3, in response to the user clicking on the wallpaper selection control, the background color options corresponding to the background color are displayed on the wallpaper preview interface. When the terminal device receives the user's selection operation on any background color option, the area of ​​the second image other than the first image is colored based on the background color corresponding to any background color option to obtain the target image. When the background color options are displayed on the wallpaper preview interface, more color options can also be displayed. More color options are used to select the background color for generating wallpaper. If the terminal device receives the user's click operation on more color options, the target color is determined based on the user's operation, and the background color options are updated based on the determined target color, so that the updated background color options include the options corresponding to the target color, and the options corresponding to the target color are in a selected state. After determining the target color, the area of ​​the second image other than the first image is colored based on the determined target color to obtain the target image.

[0081] In some embodiments of the present application, generating a target image based on the target main image and the superimposed area includes: determining a third image; generating the target image based on the target main image, the superimposed area, and the third image. The third image can be a solid color picture. The target main image, the superimposed area, and the third image are superimposed to generate the target image. In some embodiments, after the superimposed area is superimposed on the target main image, the target main image is superimposed on the third image, that is, in order from top to bottom, the superimposed area is the first layer, the target main image is the second layer, and the third image is the third layer. The position of the target main image and the superimposed area in the third image can be set according to user needs. In one embodiment of the present application, the target main image and the superimposed area can be set to be displayed in the center of the third image. In the above embodiment, by superimposing the third image, the content in the target image can be enriched, making the generated target image more aesthetically pleasing.

[0082] In some embodiments, determining the third image includes: determining at least one background color based on the primary color of the target main image (or the image obtained by superimposing the target main image and the superimposed area), and displaying background color options corresponding to each background color; when the terminal device receives a selection operation for any background color option, generating the third image based on the background color corresponding to any background color option. Based on a preset primary color matching rule, at least one target primary color corresponding to the primary color of the target main image can be determined, and the determined target primary color can be used as the background color to generate and display at least one background color option. In one embodiment of the present application, after the terminal device displays at least one background color option, the background color option with the highest recommendation corresponding to the primary color of the target main image can be selected by default from the at least one background color option displayed. In the above embodiment, background color options corresponding to the background color can be generated based on the primary color of the target main image (or the image obtained by superimposing the target main image and the superimposed area), making it easier for the user to select a background color that matches the target main image (or the image obtained by superimposing the target main image and the superimposed area), making it easier to generate a more aesthetically pleasing wallpaper.

[0083] In one embodiment of the present application, when the background color option is displayed on the wallpaper preview interface, more color options can also be displayed. More color options are used to select the background color for generating the third image. If a user click operation on more color options is received, when the terminal device receives a user click operation on more color options, the target color is determined based on the user's operation, and the background color options are updated based on the determined target color, so that the updated background color options include options corresponding to the target color, and the options corresponding to the target color in the updated background color options are in a selected state. After determining the target color, a third image is generated based on the determined target color, and the color of the third image is the target color. The above method can provide users with more background color options, increase user interaction in the wallpaper generation process, and improve user experience; at the same time, it can make the generated wallpaper more in line with user needs.

[0084] In some embodiments of the present application, if the wallpaper is a lock screen wallpaper, generating a target image based on the target main image and the overlay area includes: determining a third image; generating a clock layer; and generating the target image based on the target main image, the overlay area, the third image, and the clock layer. The clock layer, also known as the lock screen clock, is used to display the current time and can be generated by the lock screen interface function in the terminal device operating system. The time format and style of the clock layer can be set according to user needs. Figure 11 is a schematic diagram of an image overlay sequence provided in an embodiment of the present application. As shown in Figure 11, from top to bottom, the overlay area is the first layer, the target main image is the second layer, the clock layer is the third layer, and the third image is the fourth layer, thereby obtaining the target image. In one embodiment of the present application, the text area of ​​the clock layer partially overlaps with the target main image, so that the target main image obscures part of the content in the text area of ​​the clock layer, reflecting a sense of layering and creating a depth of field effect. In one embodiment of the present application, the color of the text in the clock layer can be determined based on the primary color of the target main image or the primary color of the image obtained by overlaying the target main image and the overlay area. For example, the color of the text in the clock layer can be determined based on a preset primary color matching rule and the primary color of the target main image (or the image resulting from the superposition of the target main image and the superimposed area), so that the color of the text in the clock layer matches the primary color of the target main image (or the primary color of the image resulting from the superimposition of the target main image and the superimposed area). In the above method, since the clock layer is in the third layer, the superimposition of the superimposed area and the target main image allows the generation of a lock screen wallpaper with a transparent overlay effect.

[0085] In one embodiment of the present application, after the target image is generated based on the target subject image, the superimposed area and the third image, the method further includes: determining a first area corresponding to the target image based on a preset adjustment rule; when the terminal device receives a first operation on the first area, adjusting the target subject image to obtain an adjusted target subject image; adjusting the superimposed area based on the adjusted target subject image to obtain an adjusted superimposed area; and updating the target image based on the adjusted target subject image and the adjusted superimposed area.

[0086] The adjustment rules can be set according to user needs. For example, the adjustment rules may include determining the half-width line of the target subject image based on the width of the target subject image, and determining the area above the half-width line as the first area. Figure 12 is a schematic diagram of determining the first area provided by an embodiment of the present application. As shown in Figure 12, the half-width line of the target subject image is determined, and the area above the half-width line is determined as the first area. The first area is the area in the target image where the target subject image is adjusted. The user can perform a corresponding action in the first area to perform an adjustment operation (i.e., the first operation) on the target subject image. For example, the first operation may include: a combination of one or more operations such as a zoom-in operation, a zoom-out operation, and a move operation. The zoom-in operation is used to zoom in on the target subject image, the zoom-out operation is used to zoom in on the target subject image, and the move operation is used to move the target subject image. The gesture action corresponding to each first operation can be pre-set. For example, pinching with both hands corresponds to a zoom-out operation, moving two fingers apart corresponds to a zoom-in operation, and long pressing and dragging corresponds to a move operation. In the above embodiment, the display of the target subject image on the target image can be adjusted based on the user's first operation in the first area.

[0087] In one embodiment of the present application, adjusting the superimposed area according to the adjusted target subject image to obtain the adjusted superimposed area includes: when the target subject image is enlarged, enlarging the superimposed area to obtain an enlarged superimposed area; when the target subject image is reduced, reducing the superimposed area to obtain a reduced superimposed area; when the target subject image is moved, moving the superimposed area to obtain a moved superimposed area. When the size of the target subject image changes, the size of the superimposed area changes accordingly in a corresponding proportion so that the two sizes are consistent; when the position of the target subject image changes, the position of the superimposed area changes accordingly so that the two positions are consistent.

[0088] In one embodiment of the present application, after generating the target image based on the target main image, the superimposed area, and the third image, the method further includes: determining the second area corresponding to the target image based on the adjustment rule; when the terminal device receives a second operation on the second area, adjusting the superimposed area to obtain an adjusted superimposed area, the display content of the adjusted superimposed area is different from the display content of the superimposed area, and the size of the adjusted superimposed area is the same as the size of the superimposed area; updating the target image based on the target main image, the adjusted superimposed area, and the third image. In the above embodiment, the display content of the superimposed area can be adjusted based on the user's second operation on the second area.

[0089] The adjustment rules can be set according to user needs. For example, it can include determining the bisector of the target subject image in width based on the width of the target subject image, and determining the area below the bisector as the second area. For example, as shown in Figure 12, the bisector of the target subject image in width is determined, and the area below the bisector is determined as the second area. The second area is the area in the target image where the superimposed area is adjusted. The user can perform a corresponding action in the second area to implement an adjustment operation (i.e., the second operation) on the superimposed area. For example, the second operation may include: a combination of one or more operations such as a zoom-in operation, a zoom-out operation, and a move operation. The zoom-in operation is used to zoom in on the superimposed area, the zoom-out operation is used to zoom in on the superimposed area, and the move operation is used to move the superimposed area.

[0090] Because the overlay area is limited by the size and position of the target subject image, after the overlay area is adjusted, the adjusted overlay area must be re-determined based on the target subject image, and the target image must be updated based on the target subject image, the adjusted overlay area, and the third image. The adjusted overlay area remains within the outline corresponding to the target subject image and does not exceed the outline corresponding to the target subject image. The adjusted overlay area is the same size as the overlay area before adjustment. Figure 13 is a schematic diagram of adjusting the overlay area based on a second operation provided by an embodiment of the present application. Figure 13 (a) shows the second image, and Figure 13 (b) shows the initial overlay area initially determined based on the second image. If the second operation performed by the user in the second area is to move to the left, the current overlay area shown in Figure 13 (c) can be obtained. As shown in Figure 13 (c), the image to the right of the initial overlay area in the second image can be seen in the current overlay area. Because the overlay area is limited by the size and position of the target subject image, some content in the initial overlay area will not be visible in the current overlay area. If the second operation performed by the user in the second area is to zoom in and out, the current overlay area shown in Figure 13 (d) can be obtained. As shown in (d) in Figure 13, the content displayed in the current superimposed area is equivalent to enlarging the content in the initial superimposed area. Since the superimposed area is limited by the size and position of the target subject image, part of the content in the initial superimposed area will not be visible in the current superimposed area.

[0091] In one embodiment of the present application, a user has selected multiple second images, and multiple superimposed areas exist. If multiple superimposed areas exist, generating the target image based on the target subject image, the superimposed areas, and the third image includes: determining a display order for the multiple superimposed areas; determining a first superimposed area among the multiple superimposed areas based on the display order; and generating the target image based on the target subject image, the first superimposed area, and the third image. In one embodiment of the present application, the display order for each superimposed area can be determined based on the order in which the user selected the multiple second images. For example, if the user selected second image A first, the display order for the superimposed area corresponding to second image A is determined to be first; if the user selected second image B fourth, the display order for the superimposed area corresponding to second image B is determined to be fourth. In another embodiment of the present application, the display order for the multiple superimposed areas can be set based on the user's ranking. The first superimposed area is the superimposed area with the highest display order among the multiple superimposed areas. In the above embodiment, when multiple superimposed areas are determined, the superimposed area to be displayed first among the multiple superimposed areas can be determined.

[0092] Step S107: When the terminal device receives a click operation on the wallpaper application control, the target image is set as the wallpaper of the terminal device, and the wallpaper is displayed.

[0093] In an embodiment of the present application, the wallpaper preview interface includes a wallpaper application control. The wallpaper application control is used to set the wallpaper of the terminal device. In one embodiment of the present application, after the terminal device receives a user click operation on the synthetic wallpaper control, it displays the wallpaper preview interface, and the displayed wallpaper preview interface includes the wallpaper application control. For example, as shown in (b) of Figure 3, the wallpaper application control, i.e., the application control, is displayed on the wallpaper preview interface. In one embodiment of the present application, when the terminal device receives a user click operation on the wallpaper application control, the image currently displayed on the wallpaper preview interface is set as the wallpaper of the terminal device.

[0094] In one embodiment of the present application, after the generated target image is displayed on the wallpaper preview interface, when the terminal device receives a user click operation on the wallpaper application control, the terminal device sets the target image displayed on the wallpaper preview interface as the wallpaper of the terminal device.

[0095] In one embodiment of the present application, after displaying the wallpaper, the method further includes: determining, according to a preset time interval and the display order, a second superimposed area corresponding to the current time in the multiple superimposed areas; and updating the wallpaper based on the second superimposed area to obtain and display the updated wallpaper. The time interval can be set according to user needs, such as 30 minutes, 1 hour, etc. The time interval is used to update the wallpaper. For example, the time interval is 30 minutes, the time when the wallpaper is displayed is 13:30, and the superimposed area in the currently displayed wallpaper is the superimposed area with the first display order in the multiple superimposed areas; if the current time is 14:00, it is determined that the wallpaper update time has arrived, and the superimposed area with the second display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time; if the current time is 14:30, it is determined that the wallpaper update time has arrived, and the superimposed area with the third display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time; if the current time is 15:00, it is determined that the wallpaper update time has arrived, and the superimposed area with the fourth display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time. The above embodiment can display multiple superimposed areas in turn based on a preset time interval and the display order of the multiple superimposed areas when the user selects multiple second images and obtains multiple superimposed areas, thereby updating the currently displayed wallpaper and providing the user with a richer user experience.

[0096] In one embodiment of the present application, after displaying the wallpaper, the method further includes: upon detecting that the terminal device enters a lock screen state, determining a second superimposed area corresponding to the current time from among the multiple superimposed areas based on the display order; and updating the wallpaper based on the second superimposed area to obtain and display the updated wallpaper. The second superimposed area corresponding to the current time can be determined based on the number of times the terminal device enters a lock screen state and the display order of the multiple superimposed areas. For example, if the superimposed area in the currently displayed wallpaper is the superimposed area with the first display order among the multiple superimposed areas, after displaying the wallpaper, if the terminal device enters a lock screen state for the first time, the superimposed area with the second display order among the multiple superimposed areas is determined as the second superimposed area corresponding to the current time; if the terminal device enters a lock screen state for the second time, the superimposed area with the third display order among the multiple superimposed areas is determined as the second superimposed area corresponding to the current time; and if the terminal device enters a lock screen state for the third time, the superimposed area with the fourth display order among the multiple superimposed areas is determined as the second superimposed area corresponding to the current time. Multiple superimposed areas are displayed in turn based on a preset time interval and the display order of the multiple superimposed areas. In the above embodiment, when the user selects multiple second images and obtains multiple superimposed areas, the multiple superimposed areas can be displayed in turn based on the display order of the multiple superimposed areas after each entry into the lock screen state, thereby achieving an update of the currently displayed wallpaper each time the user enters the lock screen, thereby providing the user with a richer user experience.

[0097] In some embodiments of the present application, after the wallpaper is displayed, the method further includes: when it is detected that the device scene or geographical area where the terminal device is located has changed, based on the display order, determining a second superimposed area corresponding to the current time in the multiple superimposed areas; based on the second superimposed area, updating the wallpaper, obtaining and displaying the updated wallpaper. The device scene can be set according to actual conditions, including flight scenes, focus scenes, and ordinary scenes. The geographical area where the terminal device is located can be determined based on geographic fences. The geographical area can be set according to actual conditions, for example, it can include home, company, supermarket, shopping mall, subway station, railway station, etc. The second superimposed area corresponding to the current time can be determined based on the number of times the device scene or geographical area of ​​the terminal device has changed. For example, the superimposed area in the currently displayed wallpaper is the superimposed area with the first display order among the multiple superimposed areas. After the wallpaper is displayed, if the device scene or geographical area of ​​the terminal device changes for the first time, the superimposed area with the second display order among the multiple superimposed areas is determined as the second superimposed area corresponding to the current time; if the device scene or geographical area of ​​the terminal device changes for the second time, it is determined as the second superimposed area corresponding to the current time; if the device scene or geographical area of ​​the terminal device changes for the third time, the superimposed area with the fourth display order among the multiple superimposed areas is determined as the second superimposed area corresponding to the current time. The above embodiment can, when the user selects multiple second images and obtains multiple superimposed areas, display the multiple superimposed areas in turn based on the display order of the multiple superimposed areas each time the device scene or geographical area of ​​the terminal device changes, thereby updating the currently displayed wallpaper and providing a richer user experience for the user.

[0098] In one embodiment of the present application, updating the wallpaper based on the second overlay area includes generating a new target image based on the target main image, the second overlay area, and the third image, and replacing the old target image with the newly generated target image as the wallpaper, thereby updating the wallpaper. For specific implementations of generating the target image based on the target main image, the second overlay area, and the third image, please refer to the relevant description above and will not be repeated here.

[0099] The wallpaper setting method provided in the embodiment of the present application can determine the first image and the second image based on the user's selection, thereby increasing the number of human-computer interactions and the user's sense of participation in the process of generating the wallpaper; at the same time, the superimposed area is determined in the second image based on the target main image of the first image, and the size of the superimposed area is the same as the size of the target main image, so that the target main image can be perfectly superimposed with the superimposed area, which can present a better superimposed effect, thereby obtaining a more aesthetically pleasing wallpaper.

[0100] FIG14 is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of the present application. Referring to FIG14 , the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

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

[0102] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU).

[0103] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0104] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I1C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0105] The I1C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality.

[0106] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.

[0107] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I1C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0108] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, or to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices 100, such as AR devices.

[0109] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0110] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance).

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

[0112] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0113] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.

[0114] The wireless communication module 160 can provide wireless communication solutions applied to the terminal device 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.

[0115] The terminal device 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor that provides service exception notifications and connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0116] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED).

[0117] In some embodiments, the terminal device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1. The terminal device 100 may implement a shooting function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.

[0118] The camera 193 is used to capture still images or videos. The object is projected onto the photosensitive element through the lens to generate an optical image.

[0119] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0120] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

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

[0122] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals.

[0123] The speaker 170A, also known as a "speaker," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset," is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or a voice message, the voice can be heard by placing the receiver 170B close to the human ear. The microphone 170C, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by placing their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which, in addition to collecting sound signals, can also implement noise reduction. In other embodiments, the terminal device 100 can also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording, and the like.

[0124] The headphone jack 170D is used to connect a wired headphone and can be a USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0125] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The proximity light sensor 180G can include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also known as a "touch control device", can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen". The bone conduction sensor 180M can acquire vibration signals.

[0126] Buttons 190 include a power button, volume button, and other buttons. They can be mechanical or touch-sensitive. Motor 191 can generate vibrations. Indicator 192 can be an indicator light that can indicate charging status, battery level changes, messages, missed calls, and notifications.

[0127] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the terminal device 100 by inserting or removing it from the SIM card interface 195. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The multiple cards can be of the same or different types. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0128] This embodiment further provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 executes the above-mentioned related method steps to implement the wallpaper setting method in the above embodiment.

[0129] This embodiment further provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the wallpaper setting method in the above-mentioned embodiment.

[0130] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the wallpaper setting method in the above-mentioned method embodiments.

[0131] Among them, the terminal device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here. Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual application, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0133] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A wallpaper setting method, applied to a terminal device, wherein the terminal device includes a display screen, characterized in that: The method comprises: In response to a click operation on the synthetic wallpaper control, displaying a wallpaper preview interface on the display screen, the wallpaper preview interface including a wallpaper selection control and a wallpaper application control; In response to receiving a click operation on the wallpaper selection control, displaying a first option and a second option; In response to the received selection operation of the first option, determining a first image; performing subject extraction on the first image to obtain a target subject image, and displaying the target subject image on the wallpaper preview interface; In response to the received selection operation of the second option, determining a second image; determining a superimposed area in the second image based on the target main image, the size of the superimposed area being the same as the size of the target main image; generating a target image according to the target main image and the superimposed area, and displaying the target image; In response to a received click operation on the wallpaper application control, the target image is set as the wallpaper of the terminal device, and the wallpaper is displayed.

2. The wallpaper setting method according to claim 1, characterized in that: The step of responding to the received selection operation of the first option and determining the first image includes: Based on the first image, at least one superimposed recommended image is determined, and based on the at least one superimposed recommended image, the second option is updated.

3. The wallpaper setting method according to claim 2, characterized in that: The determining, based on the first image, at least one superimposed recommended image comprises: Based on the main color of the first image, a search is performed in the first gallery, and a picture in the first gallery that matches the main color is determined as the superimposed recommended picture.

4. The wallpaper setting method according to claim 2, characterized in that: The determining, based on the first image, at least one superimposed recommended image further includes: Based on the shooting information of the first image, a search is performed in the second gallery, and a picture in the second gallery that matches the shooting information is determined as the superimposed recommended picture.

5. The wallpaper setting method according to any one of claims 1 to 4, characterized in that: The generating a target image according to the target main image and the superimposed area comprises: determining a third image; The target image is generated according to the target main image, the superimposed area and the third image.

6. The wallpaper setting method according to claim 5, characterized in that: The determining of the third image comprises: Determine at least one background color based on the main color of the first image, and display background color options corresponding to each background color in the at least one background color; In response to a selection operation on any background color option, the third image is generated based on the background color corresponding to the any background color option.

7. The wallpaper setting method according to claim 5, characterized in that: After generating the target image according to the target main image, the superimposed area and the third image, the method further includes: Based on a preset adjustment rule, determining a first area corresponding to the target image; If the terminal device receives the first operation on the first area, adjusting the target subject image; Adjusting the superimposed area according to the adjusted target subject image; The target image is updated based on the adjusted target subject image, the adjusted superimposed area and the third image.

8. The wallpaper setting method according to claim 7, characterized in that: The first operation is a combination of one or more of the following operations: a zoom-in operation, a zoom-out operation, and a move operation.

9. The wallpaper setting method according to claim 7, characterized in that: After generating the target image according to the target main image, the superimposed area and the third image, the method further includes: Based on the adjustment rule, determining a second area corresponding to the target image; If the terminal device receives the second operation on the second area, the superimposed area is adjusted, the display content of the adjusted superimposed area is different from the display content of the superimposed area, and the size of the adjusted superimposed area is the same as the size of the superimposed area; The target image is updated based on the target subject image, the adjusted superimposed area and the third image.

10. The wallpaper setting method according to claim 9, characterized in that: The second operation is a combination of one or more of the following operations: a zoom-in operation, a zoom-out operation, and a move operation.

11. The wallpaper setting method according to claim 5, characterized in that: When there are multiple superimposed areas, generating the target image according to the target main image, the superimposed areas and the third image includes: Determining a display order corresponding to the multiple superimposed areas; Determine a first superimposed area among the multiple superimposed areas according to the display order; The target image is generated according to the target subject image, the first superimposed area and the third image.

12. The wallpaper setting method according to claim 11, characterized in that: After displaying the wallpaper, the method further includes: Determine, according to a preset time interval and the display order, a second superimposed area corresponding to the current time among the multiple superimposed areas; Based on the second superimposed area, the wallpaper is updated, and the updated wallpaper is obtained and displayed.

13. The wallpaper setting method according to claim 11, characterized in that: After displaying the wallpaper, the method further includes: If it is detected that the terminal device enters a locked screen state, determining a second superimposed area corresponding to the current time in the multiple superimposed areas based on the display order; Based on the second superimposed area, the wallpaper is updated, and the updated wallpaper is obtained and displayed.

14. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on a terminal device, the terminal device executes the wallpaper setting method according to any one of claims 1 to 13.

15. A terminal device, characterized in that: The terminal device comprises a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the terminal device executes the wallpaper setting method according to any one of claims 1 to 13.