Wallpaper setting method, and terminal device and storage medium

By displaying a wallpaper preview interface on the terminal device, users can select and generate a target image and set it as wallpaper. This solves the problems of limited wallpaper setting methods and insufficient human-computer interaction, achieving a higher level of user engagement and aesthetic appeal.

WO2025092105A9PCT designated stage expired Publication Date: 2026-01-22HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/111536
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-11
Filing Date
2024-08-12
Publication Date
2026-01-22

AI Technical Summary

Technical Problem

Existing technologies offer limited wallpaper setting options, lack rich human-computer interaction, and result in poor user engagement, failing to meet personalized setting needs.

Method used

By responding to user actions, a wallpaper preview interface is displayed on the terminal device, allowing users to select the first and second images. Based on the target subject image, the overlay area is determined in the second image, generating the target image and setting it as the wallpaper. This increases the number of human-computer interactions and achieves perfect overlay between the target subject image and the overlay area.

Benefits of technology

It enhances user engagement in the wallpaper generation process, satisfies users' personalized wallpaper customization needs, and generates wallpapers with better overlay effects and aesthetic appeal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024111536_22012026_PF_FP_ABST
    Figure CN2024111536_22012026_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of terminal devices. Provided are a wallpaper setting method, and a terminal device and a storage medium. The method comprises: in response to a tap operation for a wallpaper synthesis control, displaying a wallpaper preview interface; in response to a tap operation for a wallpaper selection control, displaying a first option and a second option; in response to a selection operation for 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 selection operation for the second option, determining a second image; on the basis of the target subject image, determining a superimposition region in the second image; generating a target image on the basis of the target subject image and the superimposition region, and displaying the target image; and in response to a tap operation for a wallpaper application control, setting the target image to be a wallpaper. In the embodiments of the present application, during the generation of a wallpaper, the number of instances of human-machine interaction is increased, thereby improving the sense of participation of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Wallpaper setting method, terminal device and storage medium

[0001] The present application claims priority to the Chinese patent application No. 202311463356.4, filed on November 3, 2023, entitled "Wallpaper setting method based on photo superposition", and the Chinese patent application No. 202311702858.8, filed on December 11, 2023, entitled "Wallpaper setting method, terminal device and storage medium", the whole contents of which are hereby incorporated 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

[0003] With the development of electronic technology, terminal devices such as smart phones and tablet computers are being used more and more widely and have become a part of people's work and life, and users' requirements for the functions and aesthetics of terminal devices are also getting higher and higher. Taking a mobile phone as an example, in addition to functions such as calling, watching videos and shopping, the mobile phone also has many functions that can increase aesthetics and improve human-computer interaction, and wallpaper is one of them. Wallpaper is an important carrier for presenting the overall visual style of a terminal product.

[0004] When setting a wallpaper, a user can usually select a picture as the wallpaper of the mobile phone. In related technologies, the way of setting a wallpaper is relatively single, and the human-computer interaction in the process of generating a wallpaper is not rich enough, resulting in poor user engagement and failing to meet the user's personalized setting of the wallpaper.

[0005] SUMMARY

[0006] The embodiments of the present application disclose a wallpaper setting method, a terminal device and a storage medium, which can solve the technical problem that the way of setting a wallpaper is relatively single, and the human-computer interaction in the process of generating a wallpaper is not rich enough, resulting in poor user engagement.

[0007] The first aspect of the application discloses a wallpaper setting method applied to a terminal device, the method comprising: in response to a click operation on a synthetic wallpaper control, displaying a wallpaper preview interface on the display screen, the wallpaper preview interface comprising 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 overlapping area in the second image, the size of the overlapping area being the same as that of the target subject image; generating a target image according to the target subject image and the overlapping 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 a first image and a second image based on the user's selection, increase the number of human-computer interactions in the process of generating a wallpaper, and increase the user's sense of participation. At the same time, based on the target subject image of the first image, an overlapping area is determined in the second image, the size of the overlapping area being the same as that of the target subject image, so that the target subject image can be perfectly overlapped with the overlapping area, a better overlapping effect can be presented, and a more aesthetic wallpaper can be obtained.

[0008] In some optional embodiments, after the first image is determined in response to the selection operation on the first option, the method further comprises: determining at least one overlapping recommended image based on the first image, and updating the second option based on the at least one overlapping recommended image. The above method can make the displayed second option more matched with the selected first option, and facilitate the user to select a target overlapping image with a better matching effect with the target subject image.

[0009] In some optional embodiments, the determination of the at least one overlapping recommended image based on the first image comprises: based on a main color of the first image, searching in a first image gallery, and determining a picture in the first image gallery that matches the main color as the overlapping recommended image. The above method can determine an overlapping recommended image that matches the selected first option in color through a main color matching rule, so that the user can more conveniently select a target overlapping image that matches the color of the selected recommended subject image.

[0010] In some optional embodiments, the determining the at least one superimposition recommendation image based on the first image further includes: searching in a second gallery based on shooting information of the first image, and determining, as the superimposition recommendation image, a picture in the second gallery that matches the shooting information. With the information matching rule, the superimposition recommendation image that matches the selected first option can be determined, so that the superimposition recommendation image determined can match the selected first option in shooting information, and thus the user can more conveniently select a target superimposition image that matches the selected recommendation subject image in shooting information.

[0011] In some optional embodiments, the generating the target image according to the target subject image and the superimposition region includes: determining a third image, and generating the target image according to the target subject image, the superimposition region, and the third image. With the superimposition of the third image, the content in the target image can be enriched, so that the generated target image is more aesthetic.

[0012] In some optional embodiments, the determining the third image includes: determining at least one background color based on a main color of the first image, and displaying a background color option corresponding to each of the at least one background color; and in response to a selection operation on any background color option, generating the third image based on a background color corresponding to the any background color option. With the method, the third image generated can match the main color of the first image in color, so that the aesthetic of the generated wallpaper is improved.

[0013] In some optional embodiments, after the generating the target image according to the target subject image, the superimposition region, and the third image, the method further includes: determining a first region corresponding to the target image based on a preset adjustment rule; if the terminal device receives a first operation on the first region, adjusting the target subject image to obtain an adjusted target subject image; adjusting the superimposition region according to the adjusted target subject image to obtain an adjusted superimposition region; and updating the target image based on the adjusted target subject image, the adjusted superimposition region, and the third image. With the method, the display of the target subject image on the target image can be adjusted based on the first operation of the user on the first region.

[0014] In some optional embodiments, the first operation is one or a combination of the following operations: a zoom-in operation, a zoom-out operation, and a moving operation. With the method, the display position or the display size of the target subject image on the target image can be adjusted.

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

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

[0017] In some optional embodiments, when there are multiple superimposed regions, the target image is generated according to the target subject image, the superimposed region, and the third image, including: determining a display order corresponding to the multiple superimposed regions; determining a first superimposed region from the multiple superimposed regions according to the display order; and generating the target image according to the target subject image, the first superimposed region, and the third image. The above method can determine a superimposed region to be displayed first from multiple superimposed regions.

[0018] In some optional embodiments, after the wallpaper is displayed, the method further includes: determining a second superimposed region corresponding to a current time from the multiple superimposed regions according to a preset time interval and the display order; and updating the wallpaper based on the second superimposed region to obtain and display an updated wallpaper. The above method can display multiple superimposed regions in turn based on a preset time interval and a determined display order of the multiple superimposed regions, and thus can update the currently displayed wallpaper, thereby providing a user with a richer user experience.

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

[0020] The second aspect of the present application discloses a terminal device, the terminal device comprising a processor and a memory, the memory being configured to store instructions, and the processor being configured to invoke the instructions in the memory to cause the terminal device to perform the wallpaper setting method according to the first aspect.

[0021] The third aspect of the present application discloses a computer-readable storage medium comprising computer instructions, which, when executed on a terminal device, cause the terminal device to perform the wallpaper setting method according to the first aspect.

[0022] It should be understood that the terminal device according to the second aspect and the computer-readable storage medium according to the third aspect provided above both correspond to the method according to the first aspect, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0023] FIG. 1 is a flow diagram of a wallpaper setting method according to an embodiment of the present application.

[0024] FIG. 2 is a schematic diagram of a wallpaper preview interface displayed in response to a user clicking a synthetic wallpaper control according to an embodiment of the present application.

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

[0026] FIG. 4 is a schematic diagram of a gallery image displayed in response to a user clicking a subject replacement control according to an embodiment of the present application.

[0027] FIG. 5 is a schematic diagram of updating a second option based on a selected operation of a first option according to an embodiment of the present application.

[0028] FIG. 6 is a schematic diagram of subject extraction according to an embodiment of the present application.

[0029] FIG. 7 is a schematic diagram illustrating a method for determining an overlay area in an overlay image according to a target subject image, according to an embodiment of the present application.

[0030] FIG. 8 is a schematic diagram illustrating a method for displaying a gallery image in response to a click on an overlay image control, according to an embodiment of the present application.

[0031] FIG. 9 is a schematic diagram illustrating a method for dividing an overlay area based on an overlay range, according to an embodiment of the present application.

[0032] FIG. 10 is a schematic diagram illustrating a method for dragging a control bar of an overlay range, according to an embodiment of the present application.

[0033] FIG. 11 is a schematic diagram illustrating an image overlay order, according to an embodiment of the present application.

[0034] FIG. 12 is a schematic diagram illustrating a method for determining a first area, according to an embodiment of the present application.

[0035] FIG. 13 is a schematic diagram illustrating a method for adjusting an overlay area based on a second operation, according to an embodiment of the present application.

[0036] FIG. 14 is a schematic diagram illustrating a structure of a terminal device, according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] Hereinafter, the terms "first" and "second" are used only for the purpose of description, and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the words "exemplary", "or", "for example" are used to mean as an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the use of "exemplary", "or", "for example" and the like is intended to present the relevant concept in a specific manner.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It is to be understood that the use of "a", "an", "the" and "at least one" herein are simply an antecedent basis upon which the open-ended claim or claims can be interpreted and thus "a", "an", "the" and "at least one" are used merely for convenience and to simplify presentation of the detailed description of the application. It is to be understood that the foregoing description is by way of example only, and is not intended to limit the application in any way. Indeed, various modifications and variations of the embodiments described herein will be apparent to those skilled in the art from considering this description, which is to be considered affirmative.

[0039] Wallpaper is an important carrier to present the overall visual style of a terminal product. When setting a wallpaper, a user usually selects a picture directly as the wallpaper, and the setting manner of the wallpaper is relatively single. The content of the lock screen wallpaper is the content in the picture, and no other elements outside the picture are included, so the lock screen wallpaper is relatively monotonous. In the process of setting the wallpaper, the user only needs to select a photo, and no other interaction with the terminal device is required, so the interaction based on the wallpaper is not rich enough, the user's participation in setting the wallpaper is poor, and the personalized setting of the wallpaper by the user cannot be met. In the related art, a 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 wallpaper obtained by superimposing is also poor.

[0040] To solve the technical problem that the setting manner of the wallpaper is relatively single, the human-computer interaction in the process of generating the wallpaper is not rich enough, the user's participation is poor, and the personalized setting of the wallpaper by the user cannot be met, the embodiments of the application provide a wallpaper setting method, which can determine a first image and a second image based on the selection of a user, increase the number of human-computer interactions in the process of generating the wallpaper, increase the user's participation, and meet the personalized setting of the wallpaper by the user. At the same time, the superimposition region is determined in the second image based on the target subject image of the first image, the size of the target subject image is the same as the size of the superimposition region, so that the target subject image can be perfectly superimposed with the superimposition region, a better superimposition effect can be presented, and a more aesthetic wallpaper can be obtained.

[0041] The wallpaper setting method provided by the embodiments of the present application is applied to a terminal device including a display screen. Exemplarily, 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, 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, and the like. The embodiments of the present application do not specially limit the specific form of the terminal device.

[0042] In order 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 can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments.

[0043] FIG. 1 is a flowchart of a wallpaper setting method provided by the embodiments 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 flowchart can be changed, and some steps can be omitted according to different needs. As shown in FIG. 1, the method includes:

[0044] In step S101, in response to a click on a synthetic wallpaper control, a wallpaper preview interface is displayed on the display screen.

[0045] The wallpaper preview interface can 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, and the like, which are not limited herein. For example, the wallpaper can be generated based on a determined subject image and an overlay image. The subject image is an image used to determine a target subject, and the target subject can be obtained by subject extraction on the subject image. The overlay image is an image used to be superimposed on the target subject, and an overlay area used to be superimposed on the target subject can be determined from the overlay image, and the overlay area is used to be superimposed on the target subject.

[0046] In an embodiment of the present application, the synthetic wallpaper control can include thumbnails of preset wallpapers. The preset wallpaper is a preset synthetic picture that can be used as a wallpaper. The preset wallpaper includes a preset main picture and a preset overlay picture. The preset overlay picture is used to be overlaid on the preset main picture. After the terminal device receives a selection operation of the synthetic wallpaper control by the user, the terminal device can display a wallpaper preview interface of the synthetic wallpaper control on the terminal device, i.e., display the preset wallpaper. FIG. 2 is a schematic diagram of displaying a wallpaper preview interface in response to a click of a synthetic wallpaper control by a user according to an embodiment of the present application. As shown in (a) of FIG. 2, the terminal device can display a synthetic wallpaper control and other wallpaper options, such as a screen-off display option, a magazine lock screen option, and the like, on a wallpaper setting page. As shown in (b) of FIG. 2, in response to a selection operation of the synthetic wallpaper control by the user, the terminal device can display a wallpaper preview interface, which includes a preset wallpaper corresponding to the synthetic wallpaper control.

[0047] In an embodiment of the present application, the user can trigger a wallpaper setting instruction by performing a preset gesture action on the display screen. After the terminal device receives the wallpaper setting instruction, the terminal device displays a wallpaper setting page, which includes a synthetic wallpaper control. The gesture action can be set according to actual conditions, such as including a long press on a blank area on the home screen and selecting a preset option, such as selecting a "desktop and wallpaper option" option in a displayed pop-up window, to trigger the wallpaper setting instruction. For another example, the user performs a preset gesture action on the display screen, such as a double-hand pinch gesture, to trigger the wallpaper setting instruction. Alternatively, the user can enter a "settings" menu of the mobile phone and select a "desktop and wallpaper option" or a "display and brightness" option to trigger the wallpaper setting instruction. Alternatively, the user can trigger the wallpaper setting instruction by clicking a "settings" icon at the top of a notification bar, such as a pull-down notification bar, and selecting a "desktop and wallpaper option" option in an opened settings panel. Alternatively, the user can trigger the wallpaper setting instruction by opening an application list of the terminal device and selecting an application named "desktop and wallpaper option" or a similar name. Alternatively, the user can trigger the wallpaper setting instruction by opening a photo album or gallery application and selecting a setting wallpaper control corresponding to a target picture. The setting wallpaper control is used to set the target picture as a wallpaper.

[0048] In step S102, the terminal device displays a first option and a second option in response to a click operation of the wallpaper selection control.

[0049] In the embodiment of the present application, the wallpaper preview interface comprises a wallpaper selection control. The wallpaper selection control is used to select an image for generating a wallpaper, such as a subject image and an overlay image. In an embodiment of the present application, the wallpaper selection control can comprise a selection control, such as the "select wallpaper" control shown in (b) of FIG. 2. In another embodiment, the wallpaper selection control can further comprise a replacement control, such as the "replace picture" control shown in (b) of FIG. 2.

[0050] When the terminal device receives a click operation of the wallpaper selection control by the user, at least one first option and at least one second option are displayed on the wallpaper preview interface. The number of the displayed first options and second options is not limited in the embodiment of the present application. The first option is a reduced image corresponding to a recommended subject image. Each first option corresponds to a recommended subject image. The second option is a reduced image corresponding to a recommended overlay image. Each second option corresponds to a recommended overlay image. In an embodiment of the present application, the terminal device can display the first options and the second options through a wallpaper editing window. For example, when the terminal device receives a click operation of the wallpaper selection control by the user, a wallpaper editing window is displayed on the wallpaper preview interface, and the wallpaper editing window comprises the first options and the second options. FIG. 3 is a schematic diagram of displaying a wallpaper editing window according to an embodiment of the present application. As shown in (a) of FIG. 3, the wallpaper preview interface comprises a wallpaper selection control. As shown in (b) of FIG. 3, in response to the click of the wallpaper selection control by the user, a wallpaper editing window 30 is displayed on the wallpaper preview interface, and the wallpaper editing window 30 comprises three first options 301 and three second options 302. As shown in (b) of FIG. 3, each first option is a reduced image corresponding to a recommended subject image. Different first options correspond to different recommended subject images; and each second option is a reduced image corresponding to a recommended overlay image. Different second options correspond to different recommended overlay images.

[0051] In an embodiment of the present application, the recommended subject images and the recommended overlay images can be determined according to a preset recommendation rule. The recommendation rule can be set according to the needs of the user. For example, the recommendation rule can comprise determining the top three subject images in the official recommended images in terms of user usage rate as the recommended subject images, and determining the top three overlay images in the official recommended images in terms of user usage rate as the recommended overlay images, or the recommendation rule can comprise determining the latest image containing a subject taken by the user as the recommended subject image, and determining the latest image taken by the user as the recommended overlay image.

[0052] In an embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control, the first option and the second option are displayed, and the subject image replacement control is also displayed. The subject image replacement control is used to select a subject image for generating a wallpaper, as shown in (b) of FIG. 3. When a click operation on the subject image replacement control is received from the user, the gallery images are displayed on the wallpaper preview interface. If a selection operation on any of the displayed gallery images is received from the user, the any of the gallery images is determined as the subject image for generating a wallpaper. The gallery images are images stored in a gallery in the terminal device. In an embodiment of the present application, when a click operation on the subject image replacement control is received from the user, all the gallery images can be sequentially displayed on the wallpaper preview interface in the order of the time when the images are stored in the gallery. For example, the later the time when an image is stored in the gallery, the more front the position of the image on the wallpaper preview interface; the earlier the time when an image is stored in the gallery, the more back the position of the image on the wallpaper preview interface. In order to reduce the time spent by the user in searching for an image, the gallery images can be displayed according to the tags of the gallery images. In another embodiment of the present application, when a click operation on the subject image replacement control is received from the user, the gallery images to be displayed on the wallpaper preview interface can be determined based on the tags of the gallery images and a preset display rule. The tags of the gallery images are used to classify the images, for example, people, selected, landscape, animals, buildings, etc. The display rule is used to determine the type of images to be displayed on the wallpaper preview interface after the user clicks the subject image replacement option. The display rule can be set according to the user's needs, for example, the gallery images with the tag of people are displayed after the user clicks the subject image replacement option, or the gallery images with the tag of selected are displayed after the user clicks the subject image replacement option. The images with the tag of selected can be official recommended images, or can be images suitable for being subject images after intelligent recognition.

[0053] Figure 4 is a schematic diagram of displaying a gallery image in response to a click on a subject changing graphical control according to an embodiment of the present application. As shown in Figure 4, when the terminal device receives a click operation of a user on a subject changing option, the gallery image with a label of a person is displayed on the wallpaper preview interface, as shown in (a) to (b) of Figure 4. Based on the label, the corresponding image is displayed, which can avoid displaying images of various categories on the wallpaper preview interface, so that the user can quickly locate the first image. By selecting the label, the user can quickly determine the first image from the specified category. In an embodiment, the wallpaper preview interface further includes at least one label of other images in the gallery, such as a selected label, a landscape label, a building label, etc. When the terminal device receives a selection operation of a user on any label, the image corresponding to the any label is displayed on the wallpaper setting page. For example, as shown in (b) of Figure 4, the image with a label of a person in the gallery is displayed on the wallpaper setting page. When the terminal device receives a selection operation of a user on a label representing an animal, the image with a label of a person in the gallery is stopped from being displayed on the wallpaper setting page, and the image with a label of an animal in the gallery is displayed. The above embodiment can modify the type of images displayed on the wallpaper preview interface by switching the label. In an embodiment, when the terminal device receives a cancel operation of a user on the currently selected label, all types of images can be displayed on the wallpaper setting page. For example, as shown in (b) of Figure 4, the currently selected label is a person. When the user performs a cancel operation on the label representing a person, such as clicking on the label picture of a person, and the user does not select other labels, all types of images can be displayed on the wallpaper setting page. All types of images can be displayed according to the time of storage in the gallery. For example, the later the time of storage in the gallery, the closer to the front position on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer to the rear position on the wallpaper preview interface.

[0054] In an embodiment of the present application, after displaying the gallery image on the wallpaper preview interface, the user can perform a preset action on the display area of the gallery image to change the image content displayed on the wallpaper preview interface. For example, the user can perform a downward sliding operation on the display area of the gallery image, and the current display interface displays the gallery image that has not been displayed by sliding the display area downward. Or the user can perform an upward sliding operation on the display area of the gallery image, and the current display interface displays the gallery image that has been displayed by sliding the display area upward.

[0055] Step S103, when the terminal device receives a selection operation on the first option, determining the first image.

[0056] In an embodiment of the present application, when receiving the selection operation of the user 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, i.e., the recommended subject image corresponding to the any first option is determined as the first image. In an embodiment of the present application, after the terminal device receives the click operation on the wallpaper selection control and displays the first options, as shown in (b) of FIG. 3, the thumbnail of the preset subject image corresponding to the preset wallpaper is selected by default in the displayed at least one first option.

[0057] In an embodiment of the present application, if receiving the selection operation of the user on any displayed gallery image, the any gallery image is determined as the subject image for generating the wallpaper, and the first control is updated according to the any gallery image, so that the first control after the update includes the reduced image corresponding to the any gallery image. After the update of the first control, the first control corresponding to the any gallery image is in the selected state. In this embodiment, the selection operation of the user on any displayed gallery image is equivalent to the selection operation on the first option, and if receiving the selection operation of the user on any displayed gallery image, the any gallery image is determined as the first image.

[0058] In an embodiment of the present application, when the terminal device receives the selection operation on the first option, the second option is updated based on the selected first option and the preset matching rule, so that the updated second option matches the selected first option. FIG. 5 is a schematic diagram of updating the second option based on the selection operation on the first option according to an embodiment of the present application. As shown in (a) of FIG. 5, the pre-selected first option is the first option corresponding to the girl thumbnail. As shown in (a) to (b) of FIG. 5, when the terminal device receives the selection operation of the user on the first option corresponding to the man thumbnail, the second option is updated, and the updated second option and the second option before the update include different recommended superimposed images. The above embodiment updates the second option based on the selected first option, so that the updated second option is more matched with the selected first option, and the user can more conveniently select the recommended superimposed image more matched with the selected recommended subject image.

[0059] In an embodiment of the present application, the matching rule can include a primary color matching rule. Each picture has its corresponding primary color. The primary color of a picture refers to the color that occupies a dominant position or appears most frequently in the picture, and is the color that is most salient and important in the entire picture, and can be used to represent the overall color tone and style of the picture. The primary color matching rule can include a correspondence relationship between different primary colors. One of the primary colors can correspond to one or more other primary colors. A first primary color corresponding to the selected first option can be determined; based on the primary color matching rule, a second primary color corresponding to the first primary color is determined, and one first primary color can correspond to one or more second primary colors; based on the determined second primary color, at least one superimposed recommendation picture is determined; and the second option is updated according to the superimposed recommendation picture, so that the primary color of the updated second option matches the primary color of the selected first option. The primary color of the superimposed recommendation picture is the second primary color. In an embodiment of the present application, the first image gallery can be searched based on the determined second primary color, and the images in the first image gallery whose primary color is the second primary color are determined as the second image gallery. The first image gallery can be an image gallery storing official recommended pictures, or an image gallery storing all pictures of the terminal device. If multiple second primary colors are determined, one superimposed recommendation picture can be determined for each second primary color, thereby obtaining multiple superimposed recommendation pictures. If one second primary color is determined, multiple superimposed recommendation pictures whose primary color is the second primary color can be determined based on the second primary color, thereby obtaining multiple superimposed recommendation pictures. In an embodiment of the present application, the primary color of an image can be determined based on an image editing software, an online color palette tool, or a color analysis tool. The above embodiment determines the superimposed recommendation picture that matches the selected first option based on the primary color matching rule, so that the determined superimposed recommendation picture matches the selected first option in color, and thus the user can more conveniently select a target superimposed picture that matches the color of the selected recommended primary picture.

[0060] In an embodiment of the present application, the matching rule can include an information matching rule. After the selection operation on the first option is performed, the shooting information of the recommended subject image corresponding to the selected first option, such as shooting time, shooting location and the like, can be determined, and the superimposed recommended image matching the shooting information can be determined; the second option displayed on the wallpaper preview interface can be updated according to the superimposed recommended image, so that the shooting information of the recommended superimposed image corresponding to the updated second option matches the shooting information of the recommended subject image corresponding to the selected first option. In an embodiment of the present application, the second gallery of the terminal device can be searched based on the determined shooting information, and the image in the second gallery matching the shooting information can be determined as the superimposed recommended image. The second gallery can be a gallery storing pictures taken by the user, or a gallery storing 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 as the superimposed recommended image matching the shooting information of the first option. In the above embodiment, the superimposed recommended image matching the selected first option is determined based on the information matching rule, so that the determined superimposed recommended image matches the selected first option in shooting information, and thus the user can more conveniently select the target superimposed image matching the selected recommended subject image in shooting information.

[0061] In an embodiment of the present application, the superimposed recommended image can be determined based on the primary color matching rule and the information matching rule simultaneously, and the second option can be updated according to the determined superimposed recommended image, so that the updated second option includes the second option matching the first primary color of the selected first option, and the second option matching the shooting information of the selected second option.

[0062] In step S104, the subject of the first image is extracted to obtain a target subject image, and the target subject image is displayed on the wallpaper preview interface.

[0063] In an embodiment of the present application, the subject can refer to the most eye-catching, most focused part or object in the image, which can include a person, an object, a scene, a detail. For example, the person can include a single person, multiple persons. The object can include a car, a building, food, an animal, etc. The scene can include a mountain, a beach, a forest. The detail can refer to a local part with a specific meaning, which can be a flower, an eye, a palm, etc. Through the subject extraction manner, the subject in the image can be extracted. The target subject image is a partial image corresponding to the subject in the first image. FIG. 6 is a schematic diagram of subject extraction provided by an embodiment of the present application. (a) in FIG. 6 is a first image, which includes a girl, a white cloud and a tree. The subject in the first image is the girl. The target subject image shown in (b) in FIG. 6, i.e., the partial image corresponding to the girl in (a) in FIG. 6, can be obtained by subject extraction on the first image shown in (a) in FIG. 6.

[0064] In an embodiment of the present application, the subject can refer to the most eye-catching, most focused part or object in the image, which can include a person, an object, a scene, a detail. For example, the person can include a single person, multiple persons. The object can include a car, a building, food, an animal, etc. The scene can include a mountain, a beach, a forest. The detail can refer to a local part with a specific meaning, which can be a flower, an eye, a palm, etc. Through the subject extraction manner, the subject in the image can be extracted. The target subject image is a partial image corresponding to the subject in the first image. FIG. 6 is a schematic diagram of subject extraction provided by an embodiment of the present application. (a) in FIG. 6 is a first image, which includes a girl, a white cloud and a tree. The subject in the first image is the girl. The target subject image shown in (b) in FIG. 6, i.e., the partial image corresponding to the girl in (a) in FIG. 6, can be obtained by subject extraction on the first image shown in (a) in FIG. 6.

[0065] In an embodiment of the present application, the target subject image is displayed on the wallpaper preview interface, including: determining an overlay area in a preset overlay based on the target subject image, the overlay area having the same size as the target subject image; generating a target image according to the target subject image and the determined overlay area, and displaying the generated target image on the wallpaper preview interface. FIG. 7 is a schematic diagram of determining an overlay area in an overlay according to a target subject image in an embodiment of the present application. As shown in (a) of FIG. 7, it is a preset overlay. As shown in (b) and (c) of FIG. 7, an overlay area is determined in the preset overlay based on the image contour of the target subject image, and the overlay area has the same size as the target subject image. In an embodiment of the present application, a region having the same size as the target subject image can be determined in any region of the preset overlay, and the region is determined as the overlay area. In an embodiment of the present application, a region having the same size as the target subject image can be determined in a region rich in color in the preset overlay, and the region is determined as the overlay area. For example, a region having the same size as the target subject image can be determined in an image region in which the color variance of the region pixels in the preset overlay is greater than a preset variance threshold, and the region is determined as the overlay area. This method can make the overlay area have richer colors and improve the visual experience. In an embodiment of the present application, the way of determining the overlay area is not limited in any way.

[0066] In an 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 a preset subject image corresponding to the preset wallpaper, and the second option displayed includes a thumbnail of a preset overlay image corresponding to the preset wallpaper. After the second option is displayed, as shown in (b) of FIG. 3, the thumbnail of the preset subject image is selected by default. If the determined first image is inconsistent with the preset subject image and the currently selected second option is not the thumbnail of the preset overlay image, the first image is subjected to subject extraction to obtain a target subject image, an overlay region is determined in the preset overlay image based on the target subject image, the size of the overlay region is the same as that of the target subject image, a target image is generated according to the target subject image and the determined overlay region, and the generated target image is displayed on the wallpaper preview interface. If the determined first image is consistent with the preset subject image and the image corresponding to the currently selected second option is not the thumbnail of the preset overlay image, the first image is subjected to subject extraction to obtain a target subject image, an overlay region is determined in the image corresponding to the currently selected second option based on the target subject image, the size of the determined overlay region is the same as that of the target subject image, a target image is generated according to the target subject image and the determined overlay region, and the generated target image is displayed on the wallpaper preview interface. If the determined first image is consistent with the preset subject image and the image corresponding to the currently selected second option is the thumbnail of the preset overlay image, the currently displayed wallpaper on the wallpaper preview interface is not adjusted, i.e., the preset wallpaper displayed on the wallpaper preview interface is not adjusted, and the currently displayed wallpaper is continuously displayed. The above embodiment can determine that the subject part of the wallpaper generated based on the first image has not changed compared with the subject part of the currently displayed wallpaper, i.e., one or more of the outline, size, and content of the subject part has not changed, when the first image has not changed compared with the preset subject image, and the currently displayed wallpaper is not adjusted, thereby avoiding waste of computing power.

[0067] In step S105, when the terminal device receives a selection operation on the second option, a second image is determined, and an overlay region is determined in the second image based on the target subject image.

[0068] In an embodiment of the present application, when a selection operation of any second option by a user is received, a recommended overlay image corresponding to the any second option is determined as a target overlay image for generating a wallpaper, i.e., the recommended overlay image corresponding to the any second option is determined as a second image. In an embodiment of the present application, after the terminal device displays the second option upon receiving a click operation on the wallpaper selection control, as shown in (b) of FIG. 3, 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 an embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control, the first option and the second option are displayed, and a change superimposed image control is also displayed. The change superimposed image control is used to select a superimposed image for generating a wallpaper, as shown in (b) of FIG. 3. When a click operation on the change superimposed image control is received from the user, a gallery image is displayed on the wallpaper preview interface; if a selection operation on any gallery image displayed is received from the user, the any gallery image is determined as the superimposed image for generating a wallpaper. The gallery image is an image stored in a gallery in the terminal device. In an embodiment of the present application, when a click operation on the change superimposed image control is received from the user, all gallery images can be displayed in order on the wallpaper preview interface according to the time sequence in which the images are stored in the gallery. For example, the later the time at which an image is stored in the gallery, the more forward the position at which the image is displayed on the wallpaper preview interface; the earlier the time at which an image is stored in the gallery, the more backward the position at which the image is displayed on the wallpaper preview interface. In order to reduce the time spent by the user in searching for an image, the gallery images can be displayed according to their tags, and in another embodiment of the present application, when a click operation on the change superimposed image control is received from the user, the gallery images that need to be displayed on the wallpaper preview interface can be determined based on the tags of the gallery images and a preset display rule. The tag of a gallery image is used to classify the image, for example, a person, a selection, a landscape, an animal, a building, etc. The display rule is used to determine the type of image displayed on the wallpaper preview interface after the user clicks the change superimposed image option. The display rule can be set according to user demand, for example, the gallery images with a landscape tag are displayed after the user clicks the change superimposed image option, or for example, the gallery images with a selection tag are displayed after the user clicks the change superimposed image option. The image with a selection tag can be an officially recommended image, or can be an image that is suitable for superimposition after intelligent recognition.

[0070] Figure 8 is a schematic diagram illustrating displaying a gallery image in response to a click on a replace overlay control according to an embodiment of the present application. As shown in Figure 8, when the terminal device receives a click operation on the replace overlay option, the gallery image with the label of landscape is displayed on the wallpaper preview interface, as shown in (a) to (b) of Figure 8. Displaying the corresponding image based on the label can avoid displaying a large number of images of different categories on the wallpaper preview interface, which makes it difficult for the user to quickly locate the first image. The user can quickly determine the first image from the specified category by selecting the label. In an embodiment, the wallpaper preview interface further includes at least one label corresponding to other images in the gallery, such as the labels of selected, landscape, and building. When the terminal device receives a selection operation on any label, the images corresponding to the any label are displayed on the wallpaper setting page. For example, as shown in (b) of Figure 8, the images with the label of landscape in the gallery are displayed on the wallpaper setting page. When the terminal device receives a selection operation on the label representing the building, the images with the label of landscape in the gallery are stopped from being displayed on the wallpaper setting page, and the images with the label of building in the gallery are displayed. The above embodiment can modify the types of images displayed on the wallpaper preview interface by switching the labels. In an embodiment, when the terminal device receives a cancel operation on the currently selected label, all types of images can be displayed on the wallpaper setting page. For example, as shown in (b) of Figure 8, the currently selected label is landscape. When the user performs a cancel operation on the label representing the landscape, such as clicking the label image of the landscape, and the user does not select other labels, all types of images can be displayed on the wallpaper setting page. All types of images can be displayed according to the time of storage in the gallery. For example, the later the time of storage in the gallery, the closer to the front position on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer to the rear position on the wallpaper preview interface.

[0071] In an embodiment of the present application, after the second image is determined, an overlay area is determined in the second image based on the target subject image, the size of the determined overlay area in the second image is the same as the size of the target subject image; a target image is generated according to the target subject image and the determined overlay area, and the generated target image is displayed on the wallpaper preview interface. In an embodiment of the present application, if the determined second image is inconsistent with the preset overlay image, the 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, such as the preset wallpaper is not adjusted, and the currently displayed wallpaper is continuously displayed. The above embodiment can determine that the overlay part of the wallpaper generated based on the second image has not changed compared with the overlay part of the currently displayed wallpaper when the second image has not changed compared with the preset overlay image, such as the content contained in the overlay part has not changed, the currently displayed wallpaper is not adjusted, thereby avoiding the waste of computing power. For specific embodiments of determining the overlay area in the second image based on the target subject image, reference can be made to the related description in the foregoing, such as the related description of determining the overlay area in the preset overlay image based on the target subject image in the foregoing.

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

[0073] In some embodiments of the present application, in order to automatically update the displayed wallpaper, a plurality of second images can be determined based on the user's selection. For example, a plurality of overlay image options can be displayed on the wallpaper preview interface, and a plurality of second images can be determined based on the user's selection in response to the user's click operation on the plurality of overlay image options. The overlay area can be determined in each second image determined by the user based on the target subject image.

[0074] In step S106, a target image is generated according to the target subject image and the overlay area, and the target image is displayed.

[0075] In an embodiment of the present application, the target subject image and the overlay area can be overlaid based on the overlay range to generate a target image. The overlay range can be set according to actual conditions. The larger the overlay range is, the more visible parts in the overlay area are; the smaller the overlay range is, the fewer visible parts in the overlay area are. The visible part and the invisible part in the overlay area can be determined based on the overlay range. The transparency of the overlay area is set based on the determined visible part and invisible part; the overlay area with the set transparency is overlaid on the target subject image to generate a target image.

[0076] In some embodiments of the present application, the visible part and the invisible part in the superimposition region can be determined according to the width of the superimposition region and the superimposition range. For example, the superimposition region can be divided into an upper half and a lower half according to the width of the superimposition region and the superimposition range, 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 embodiments, the ratio of the invisible part to the visible part can be determined based on the superimposition range. For example, when the superimposition range is 60%, the ratio of the invisible part to the visible part is determined to be 4:6; when the superimposition range is 50%, the ratio of the invisible part to the visible part is determined to be 5:5; and when the superimposition range is 40%, the ratio of the invisible part to the visible part is determined to be 6:4.

[0077] In some other embodiments of the present application, the superimposition region can be divided into a left half and a right half according to the length of the superimposition region and the superimposition range, and the left half can be set as the visible part and the right half can be set as the invisible part, or the left half can be set as the invisible part and the right half can be set as the visible part. In actual applications, the above examples are not limited, and the following examples are described by dividing the superimposition region into an upper half and a lower half according to the width of the superimposition region and the superimposition range, in which the upper half is the invisible part and the lower half is the visible part. FIG. 9 is a schematic diagram of dividing the superimposition region based on the superimposition range according to an embodiment of the present application. For example, the superimposition range is 60%, and as shown in FIG. 9, the superimposition region is divided into two parts with a width of 4:6 according to the width, the upper half is the invisible part of the superimposition region, and the lower half is the visible part of the superimposition region.

[0078] In an embodiment of the present application, the transparency of the invisible part of the superimposition area is 0%. The visible part of the superimposition area can realize a gradual change of the transparency from 0 to 100%. For example, as shown in FIG. 9, the transparency of the initial position of the visible part of the superimposition area is 0%, and the transparency of the end position is 100%. The transparency corresponding to each width of the visible part can be determined according to a linear relationship between the width of the visible part and the range of the transparency interval. In an embodiment of the present application, the visible part can be divided into a plurality of sub-areas with equal width according to a preset number of areas, the serial numbers of the plurality of sub-areas are determined based on the number of areas, and the transparency corresponding to each serial number of the sub-areas is set; and different transparency intervals are set for each sub-area based on the transparency corresponding to each serial number of the sub-areas. The number of areas can be set according to actual needs, for example, set to 10. For example, the number of areas is 10, indicating that the visible part can be divided into 10 sub-areas. Based on the number of areas, the serial numbers of the 10 sub-areas can be determined in the order from top to bottom: the first sub-area, the second sub-area, the third sub-area, …, the tenth sub-area. Since the 10 sub-areas need to realize a gradual change of the transparency from 0 to 100%, the difference of the transparency of adjacent two sub-areas can be set to 10%, for example, the transparency interval of the first sub-area can be set to 0%-10%, the transparency interval of the second sub-area can be set to 11%-20%, the transparency interval of the third sub-area can be set to 21%-30%, …, and the transparency interval of the tenth sub-area can be set to 91%-100%.

[0079] In an embodiment of the present application, the superimposition range corresponding to the drag control bar can be displayed on the wallpaper preview interface, and when a user's drag operation on the drag control bar is received, the superimposition range can be adjusted. In another embodiment, the superimposition range can also be adjusted by a scalable rectangular frame. In an embodiment of the present application, the superimposition range corresponding to the drag control bar can be displayed on the wallpaper preview interface in response to a user's click on the target subject image. The drag control bar can be displayed on a preset position of the target subject image, such as the top, bottom, left, right, etc. In an embodiment of the present application, the superimposition range corresponding to the drag control bar can be displayed when a click operation on the wallpaper selection control is received, for example, can be displayed below the second option. FIG. 10 is a schematic diagram of a superimposition range drag control bar provided in an embodiment of the present application. For example, as shown in FIG. 10, the superimposition range corresponding to the drag control bar is displayed on the wallpaper preview interface, when a user's leftward drag operation on the drag control bar is received, the superimposition range is reduced; and when a user's rightward drag operation on the drag control bar is received, the superimposition range is increased.

[0080] In an embodiment of the present application, the superimposed region with completed transparency setting is superimposed on the target subject image to generate a target image, including: superimposing the superimposed region with completed transparency setting on the target subject image to obtain a first image; generating a second image according to a preset image size and the first image, the second image having the same size as the image size and including the first image; determining a background color corresponding to the second image, and coloring a region in the second image other than the first image based on the determined background color to obtain the target image. The position of the first image in the second image can be set according to the user's demand. In an embodiment of the present application, the first image is displayed in the center of the second image. In an embodiment of the present application, the background color corresponding to the second image can be determined based on the main color of the target subject image (or the first image). For example, the target main color corresponding to the main color of the target subject image (or the first image) can be determined based on a preset main color matching rule, and the determined target main color is used as the background color. In an embodiment of the present application, after at least one background color corresponding to the second image is determined, a background color option corresponding to the at least one background color can be displayed on the wallpaper preview interface, and the background color option is used to indicate the displayed background color. For example, as shown in (a) to (b) of FIG. 3, in response to the user's click on the wallpaper selection control, the background color option corresponding to the background color is displayed on the wallpaper preview interface. When the terminal device receives the user's selection operation on any background color option, the region in the second image other than the first image is colored based on the background color corresponding to the any background color option to obtain the target image. When the background color option is displayed on the wallpaper preview interface, more color options can also be displayed. The more color options are used to select the background color of the generated wallpaper. If the terminal device receives the user's click operation on the more color option, the target color is determined based on the user's operation, and the background color option is updated based on the determined target color, so that the updated background color option includes an option corresponding to the target color, and at this time, the option corresponding to the target color is in the selected state. After the target color is determined, the region in 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, the generating the target image according to the target subject image and the superimposition region comprises: determining a third image; and generating the target image according to the target subject image, the superimposition region and the third image. The third image can be a picture of a pure color. The target subject image, the superimposition region and the third image are superimposed to generate the target image. In some embodiments, after the superimposition region is superimposed on the target subject image, the target subject image is superimposed on the third image, that is, in the order from top to bottom, the superimposition region is the first layer, the target subject image is the second layer, and the third image is the third layer. The positions of the target subject image and the superimposition region in the third image can be set according to the user's demand. In an embodiment of the present application, the target subject image and the superimposition region can be displayed in the center of the third image. The above-mentioned embodiments can enrich the content of the target image by superimposing the third image, so that the generated target image is more aesthetic.

[0082] In some embodiments, the determining the third image comprises: determining at least one background color based on a main color of the target subject image (or an image obtained by superimposing the target subject image and the superimposition region), and displaying a background color option corresponding to each of the at least one background color; and when the terminal device receives a selection operation on any background color option, generating the third image based on a background color corresponding to the any background color option. At least one target main color corresponding to the main color of the target subject image can be determined based on a preset main color matching rule, and the determined target main color is used as a background color to generate and display at least one background color option. In an embodiment of the present application, after the terminal device displays the at least one background color option, the terminal device can default to selecting a background color option corresponding to the highest recommendation degree of the main color of the target subject image among the displayed at least one background color option. The above-mentioned embodiments can generate a background color option corresponding to a background color based on the main color of the target subject image (or an image obtained by superimposing the target subject image and the superimposition region), so that the user can easily select a background color matching the target subject image (or an image obtained by superimposing the target subject image and the superimposition region) in color, and a more aesthetic wallpaper can be generated more easily.

[0083] In an embodiment of the present application, when the background color option is displayed on the wallpaper preview interface, more color options can also be displayed. The more color options are used to select the background color of the third picture. If a user's click operation on the more color options is received, 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 option corresponding to the target color, and the option corresponding to the target color in the updated background color options is in a selected state. After the target color is determined, the 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 more background color options for the user, increase the user's interaction in the wallpaper generation process, and improve the user experience. At the same time, the generated wallpaper can better meet the user's needs.

[0084] In some embodiments of the present application, if the wallpaper is a lock screen wallpaper, generating a target image according to the target subject image and the superimposition region includes: determining a third image; generating a clock layer; and generating the target image according to the target subject image, the superimposition region, 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 through the lock screen interface function in the operating system of the terminal device. The time format and style of the clock layer can be set according to the user's needs. FIG. 11 is a schematic diagram of an image superimposition sequence provided in an embodiment of the present application. As shown in FIG. 11, in the order from top to bottom, the superimposition region is the first layer, the target subject image is the second layer, the clock layer is the third layer, and the third image is the fourth layer, which are superimposed in this order to obtain the target image. In an embodiment of the present application, the text area of the clock layer partially overlaps the target subject image, so that the target subject image covers part of the content in the text area of the clock layer, showing a sense of hierarchy and creating a depth of field effect. In an embodiment of the present application, the color of the text in the clock layer can be determined based on the dominant color of the target subject image or the dominant color of the image obtained by superimposing the target subject image and the superimposition region. For example, the color of the text in the clock layer can be determined based on a preset dominant color matching rule and the dominant color of the target subject image (or the image obtained by superimposing the target subject image and the superimposition region), so that the color of the text in the clock layer matches the dominant color of the target subject image (or the dominant color of the image obtained by superimposing the target subject image and the superimposition region). The above method can generate a lock screen wallpaper with a superimposition effect because the clock layer is in the third layer and is superimposed by the superimposition region and the target subject image.

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

[0086] The adjustment rule can be set according to user demand. For example, the adjustment rule can comprise determining a bisector of the target subject image in the width direction, and determining the region above the bisector as the first region based on the width of the target subject image. FIG. 12 is a schematic diagram of determining a first region according to an embodiment of the present application. As shown in FIG. 12, a bisector of the target subject image in the width direction is determined, and the region above the bisector is determined as the first region. The first region is the region of the target image in which the target subject image is adjusted. The user can perform a corresponding action in the first region to achieve an adjustment operation (i.e., a first operation) on the target subject image. For example, the first operation can comprise one or a combination of multiple operations such as a zoom-in operation, a zoom-out operation, a moving operation, etc. The zoom-in operation is used to zoom in the target subject image, the zoom-out operation is used to zoom out the target subject image, and the moving operation is used to move the target subject image. A gesture action corresponding to each first operation can be preset. For example, a pinch operation of two hands corresponds to a zoom-out operation, a double-finger moving operation corresponds to a zoom-in operation, and a long-pressing and dragging operation corresponds to a moving operation. According to the above embodiment, the display of the target subject image on the target image can be adjusted based on the first operation of the user in the first region.

[0087] In an embodiment of the present application, adjusting the superimposed region according to the adjusted target subject image comprises: when the target subject image is zoomed in, zooming in the superimposed region to obtain a zoomed-in superimposed region; when the target subject image is zoomed out, zooming out the superimposed region to obtain a zoomed-out superimposed region; and when the target subject image is moved, moving the superimposed region to obtain a moved superimposed region. When the size of the target subject image changes, the size of the superimposed region changes by a corresponding proportion, so that the sizes of the target subject image and the superimposed region are consistent. When the position of the target subject image changes, the position of the superimposed region changes, so that the positions of the target subject image and the superimposed region are consistent.

[0088] In an embodiment of the present application, after the target image is generated according to the target subject image, the superimposed region and the third image, the method further comprises: determining a second region corresponding to the target image based on the adjustment rule; when the terminal device receives a second operation on the second region, adjusting the superimposed region to obtain an adjusted superimposed region, the display content of the adjusted superimposed region being different from the display content of the superimposed region, the size of the adjusted superimposed region being the same as the size of the superimposed region; and updating the target image based on the target subject image, the adjusted superimposed region and the third image. The above embodiment can adjust the display content of the superimposed region based on the second operation of the user on the second region.

[0089] The adjustment rule can be set according to user needs. For example, the adjustment rule can comprise determining a bisector of the target subject image in the width direction based on the width of the target subject image, and determining a region below the bisector as the second region. For example, as shown in FIG. 12, a bisector of the target subject image in the width direction is determined, and a region below the bisector is determined as the second region. The second region is a region of the target image in which the superimposed region is adjusted. The user can perform a corresponding action in the second region to implement an adjustment operation (i.e., a second operation) on the superimposed region. For example, the second operation can comprise one or a combination of multiple operations such as a zoom-in operation, a zoom-out operation and a moving operation. The zoom-in operation is used to zoom in the superimposed region, the zoom-out operation is used to zoom out the superimposed region, and the moving operation is used to move the superimposed region.

[0090] Since the superimposition region is limited in size and position of the target subject image, after the adjustment operation on the superimposition region, the adjusted superimposition region is determined based on the target subject image again, and the target image is updated based on the target subject image, the adjusted superimposition region and the third image. The adjusted superimposition region is still in the contour corresponding to the target subject image and does not exceed the contour corresponding to the target subject image. The size of the adjusted superimposition region is consistent with that of the superimposition region before adjustment. FIG. 13 is a schematic diagram of adjusting the superimposition region based on the second operation according to an embodiment of the present application. As shown in (a) of FIG. 13, the second image is shown, and as shown in (b) of FIG. 13, the initial superimposition region determined based on the second image is shown. If the second operation performed by the user on the second region is moving to the left, the current superimposition region shown in (c) of FIG. 13 can be obtained. As shown in (c) of FIG. 13, the image on the right side of the initial superimposition region in the second image can be seen in the current superimposition region. Since the superimposition region is limited in size and position of the target subject image, part of the content in the initial superimposition region is invisible in the current superimposition region. If the second operation performed by the user on the second region is zooming in, the current superimposition region shown in (d) of FIG. 13 can be obtained. As shown in (d) of FIG. 13, the content displayed in the current superimposition region is equivalent to zooming in the content in the initial superimposition region. Since the superimposition region is limited in size and position of the target subject image, part of the content in the initial superimposition region is invisible in the current superimposition region.

[0091] In an embodiment of the present application, the user determines a plurality of second images, and there are a plurality of superimposition regions. If there are a plurality of superimposition regions, the target image is generated based on the target subject image, the superimposition region and the third image, including: determining the display order corresponding to the plurality of superimposition regions; determining a first superimposition region in the plurality of superimposition regions according to the display order; and generating the target image based on the target subject image, the first superimposition region and the third image. In an embodiment of the present application, the display order corresponding to each superimposition region can be determined according to the order in which the user selects the plurality of second images. For example, the user selects the second image A first, and determines that the display order of the superimposition region corresponding to the second image A is first. The user selects the second image B fourth, and determines that the display order of the superimposition region corresponding to the second image B is fourth. In another embodiment of the present application, the display order corresponding to the plurality of superimposition regions can be set based on the user's ranking. The first superimposition region is the superimposition region with the first display order in the plurality of superimposition regions. The above embodiment can determine the superimposition region to be displayed first in the plurality of superimposition regions.

[0092] In 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 the embodiments 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 an embodiment of the present application, after the terminal device receives a click operation of a user on the synthetic wallpaper control, the wallpaper preview interface is displayed, and the wallpaper application control is included in the displayed wallpaper preview interface. For example, as shown in (b) of FIG. 3, the wallpaper application control, i.e., the application control, is displayed on the wallpaper preview interface. In an embodiment of the present application, when the terminal device receives a click operation of a user 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 an embodiment of the present application, after the target image generated on the wallpaper preview interface is displayed, when the terminal device receives a click operation of a user 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 an embodiment of the present application, after the wallpaper is displayed, the method further includes: determining a second superimposed area corresponding to a current time in the plurality of superimposed areas according to a preset time interval and the display order; updating the wallpaper based on the second superimposed area to obtain and display the updated wallpaper. The time interval can be set according to the user's demand, 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 currently displayed in the wallpaper is the superimposed area with the first display order in the plurality of superimposed areas; if the current time is 14:00, it is determined that the update time of the wallpaper has arrived, and the superimposed area with the second display order in the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time; if the current time is 14:30, it is determined that the update time of the wallpaper has arrived, and the superimposed area with the third display order in the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time; if the current time is 15:00, it is determined that the update time of the wallpaper has arrived, and the superimposed area with the fourth display order in the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time. The above embodiment can display the plurality of superimposed areas in turn based on the preset time interval and the display order of the plurality of superimposed areas when the user selects the plurality of second images to obtain the plurality of superimposed areas, so as to update the currently displayed wallpaper, thereby providing the user with a richer user experience.

[0096] In an embodiment of the present application, after the wallpaper is displayed, the method further comprises: when it is detected that the terminal device enters a lock screen state, determining a second superimposed area corresponding to a current time among the plurality of superimposed areas based on the display order; updating the wallpaper based on the second superimposed area to obtain an updated wallpaper and displaying 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 the lock screen state and the display order of the plurality of superimposed areas. For example, the superimposed area currently displayed in the wallpaper is the superimposed area with the first display order among the plurality of superimposed areas. After the wallpaper is displayed, if the terminal device enters the lock screen state for the first time, the superimposed area with the second display order among the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time. If the terminal device enters the lock screen state for the second time, the superimposed area with the third display order among the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time. If the terminal device enters the lock screen state for the third time, the superimposed area with the fourth display order among the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time. The plurality of superimposed areas are displayed in turn based on the preset time interval and the display order of the plurality of superimposed areas. In the above embodiment, when the user selects a plurality of second images to obtain a plurality of superimposed areas, the plurality of superimposed areas can be displayed in turn based on the display order of the plurality of superimposed areas after the terminal device enters the lock screen state each time. The current displayed wallpaper is updated each time the user enters the lock screen, so that the user can have a richer user experience.

[0097] In some embodiments of the present application, after the wallpaper is displayed, the method further comprises: when a change in a device scene or a geographic area where the terminal device is located is detected, determining a second superimposed area corresponding to the current time among the plurality of superimposed areas based on the display order; updating the wallpaper based on the second superimposed area to obtain an updated wallpaper and displaying the updated wallpaper. The device scene can be set according to actual conditions, including a flight scene, a focus scene, and a normal scene, etc. The geographic area where the terminal device is located can be determined based on a geofence. The geographic area can be set according to actual conditions, for example, can include home, company, supermarket, shopping mall, subway station, train station, etc. The second superimposed area corresponding to the current time can be determined based on the number of times of changes in the device scene or the geographic area of the terminal device. For example, if the superimposed area currently displayed in the wallpaper is the superimposed area with the first display order among the plurality of superimposed areas, after the wallpaper is displayed, if the device scene or the geographic area of the terminal device changes for the first time, the superimposed area with the second display order among the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time; if the device scene or the geographic 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 the geographic area of the terminal device changes for the third time, the superimposed area with the fourth display order among the plurality of superimposed areas is determined as the second superimposed area corresponding to the current time. In the above implementation, when the user selects a plurality of second images to obtain a plurality of superimposed areas, the plurality of superimposed areas can be displayed in turn based on the display order of the plurality of superimposed areas each time the device scene or the geographic area where the terminal device is located changes, which realizes updating of the currently displayed wallpaper and brings a richer user experience to the user.

[0098] In an embodiment of the present application, updating the wallpaper based on the second superimposed area comprises: generating a new target image according to the target subject image, the second superimposed area, and the third image, and replacing the old target image with the newly generated target image as the wallpaper to realize updating of the wallpaper. For some specific implementations of generating a target image based on the target subject image, the second superimposed area, and the third image, refer to the related description in the foregoing, which will not be repeated here.

[0099] The wallpaper setting method provided by the embodiments of the present application can determine the first image and the second image based on the user's selection, increase the number of human-computer interactions in the process of generating the wallpaper, and increase the user's sense of participation. At the same time, the superimposed area is determined in the second image based on the target subject image of the first image, the size of the superimposed area is the same as that of the target subject image, the target subject image can be perfectly superimposed with the superimposed area, a better superimposition effect can be presented, and a more aesthetic wallpaper can be obtained.

[0100] FIG. 14 is a structural schematic diagram of a terminal device 100 provided by an embodiment of the present application. Referring to FIG. 14, the terminal device 100 can 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 loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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 can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

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

[0103] The processor 110 can also have internal memory for storing instructions and data. In some embodiments, the internal memory of the processor 110 is a cache memory. The cache memory can hold instructions or data that the processor 110 has recently used or that are likely to be used. If the processor 110 needs to use the instructions or data again, it can be retrieved directly from the cache memory. This avoids repeated accesses to the main memory, reducing the latency of the processor 110 and thus improving the efficiency of the system.

[0104] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) 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, etc.

[0105] The I2C 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, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through a PCM bus interface. The UART interface is a general-purpose serial data bus used 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 usually 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 through the UART interface to realize Bluetooth function.

[0106] The MIPI interface can be used to connect the processor 110 and the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the photographing function of the terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.

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

[0108] The USB interface 130 is an interface that conforms to the USB standard specification, and can 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, and can also be used to transmit data between the terminal device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other terminal devices 100, such as AR devices and the like.

[0109] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 can also use different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[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 and the charging management module 140 to 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 screen 194, the camera 193, and the wireless communication module 160, and the like. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), and the like.

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

[0112] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals.

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

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

[0115] The terminal device 100 realizes the display function by the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for service exception reminding, connected with the display screen 194 and the application processor. The GPU is used for performing mathematical and geometric calculations, and is used for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0116] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like.

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

[0118] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects the optical image to a photosensitive element.

[0119] The internal memory 121 can include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs).

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

[0121] The terminal device 100 can implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor, and the like. For example, music playing, voice recording, and the like.

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

[0123] The speaker 170A, also referred to as a "loudspeaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or listen to a hands-free call through the speaker 170A. The receiver 170B, also referred to as an "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 is on a call or receiving a voice message, the user can listen to the voice by holding the receiver 170B close to the ear. The microphone 170C, also referred to as a "microphone", "voice microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by holding the mouth close to the microphone 170C, and 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, in addition to collecting sound signals, noise reduction functions can also be realized. In other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C, to realize the collection of sound signals, noise reduction, and also to identify the source of the sound, to realize the function of directional recording, etc.

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

[0125] The pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The barometric pressure sensor 180C is used to measure the 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 a flip leather case. The acceleration sensor 180E can detect the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure the 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 ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K can be provided on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen". The bone conduction sensor 180M can obtain a vibration signal.

[0126] The keys 190 include a power key, a volume key, and the like. The keys 190 can be mechanical keys. Alternatively, the keys 190 can be touch keys. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate a message, a missed call, a notification, and the like.

[0127] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 195 to realize contact and separation with the terminal device 100. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support a Nano SIM card, a Micro SIM card, a SIM card, and the like. The same SIM card interface 195 can simultaneously insert multiple cards. The types of the multiple cards can be the same or different. 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 storage cards. The terminal device 100 interacts with a network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 uses an eSIM, that is, 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] The embodiment also provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 performs the related method steps described above to realize the wallpaper setting method in the above embodiment.

[0129] The embodiment also provides a computer program product. When the computer program product is executed on a computer, the computer performs the related steps described above to realize the wallpaper setting method in the above embodiment.

[0130] In addition, the embodiment of the present application also provides an apparatus, which can be a chip, a component or a module. The apparatus can include a processor and a memory connected to each other. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory, so that the chip executes the wallpaper setting method in the above method embodiments.

[0131] The terminal device, the computer storage medium, the computer program product, or the chip provided in the embodiment are used for executing the corresponding method provided in the above, and thus the beneficial effects achieved by the terminal device, the computer storage medium, the computer program product, or the chip can refer to the beneficial effects of the corresponding method provided in the above, which will not be described herein again. Through the description of the above implementation manners, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0132] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiment described above is only illustrative, for example, the division of the module or unit is only a logical function division, and in actual implementation, another division manner can be used, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, which can be electrical, mechanical or other forms. The unit shown as a separate component can be or can not be physically separated, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place or can be distributed to a plurality of different places. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.

[0133] In addition, each of the functional units in the embodiments of the present application can be integrated in one processing unit, or each unit can exist alone physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or software function unit. When the integrated unit is implemented in the form of software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application essentially, or the part that contributes to the prior art, or all or a part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a number of instructions to make a device (which can be a single chip, chip, etc.) or a processor execute all or a part of the steps of the methods in the embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and various other media that can store program codes.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate but not limit the technical solutions of the present application. 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 equivalently without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A method for wallpaper setting, applied to a terminal device, the terminal device comprising a display screen, and the method comprising: receiving a wallpaper setting request; determining a wallpaper setting mode according to the wallpaper setting request; and setting the wallpaper according to the wallpaper setting mode. 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 comprising 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; determining an overlay area in the second image based on the target subject image, the overlay area having the same size as the target subject image; generating a target image according to 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.

2. The method of claim 1, wherein After the response to the received selection operation on the first option, the method comprises: determining at least one overlay recommendation image based on the first image, and updating the second option based on the at least one overlay recommendation image.

3. The method of claim 2, wherein The method comprises: based on the main color of the first image, searching in a first image gallery, and determining pictures in the first image gallery that match the main color as the overlay recommendation image.

4. The method of claim 2, wherein The method further comprises: based on the shooting information of the first image, searching in a second image gallery, and determining pictures in the second image gallery that match the shooting information as the overlay recommendation image.

5. The method of claim 1 to 4, wherein The method comprises: determining a third image; generating the target image according to the target subject image, the overlay area, and the third image.

6. The method of claim 5, wherein The method comprises: based on the main color of the first image, determining at least one background color, and displaying a background color option corresponding to each background color in the at least one background color; in response to a selection operation on any background color option, generating the third image based on the background color corresponding to the any background color option.

7. The method of claim 5, wherein After the generation of the target image according to the target subject image, the overlay area, and the third image, the method further comprises: based on a preset adjustment rule, determining a first region corresponding to the target image; if the terminal device receives a first operation on the first region, adjusting the target subject image; adjusting the overlay area according to the adjusted target subject image; updating the target image based on the adjusted target subject image, the adjusted overlay area, and the third image.

8. The method of claim 7, wherein The first operation is one or a combination of the following operations: zoom-in operation, zoom-out operation, and moving operation.

9. The method of claim 7, wherein After the generation of the target image according to the target subject image, the overlay area, and the third image, the method further comprises: determine a second region corresponding to the target image based on the adjustment rule; if the terminal device receives a second operation on the second region, adjust the superimposed region, the display content of the adjusted superimposed region being different from that of the superimposed region, and the size of the adjusted superimposed region being the same as that of the superimposed region; update the target image based on the target subject image, the adjusted superimposed region, and the third image.

10. The method of claim 9, wherein The second operation is a combination of one or more of the following operations: zoom-in operation, zoom-out operation, and moving operation.

11. The method of claim 5, wherein When there are multiple superimposed regions, the generating the target image based on the target subject image, the superimposed region, and the third image comprises: determining a display order corresponding to the multiple superimposed regions; determining a first superimposed region in the multiple superimposed regions according to the display order; generating the target image based on the target subject image, the first superimposed region, and the third image.

12. The method of claim 11, wherein After displaying the wallpaper, the method further comprises: determining a second superimposed region corresponding to a current time in the multiple superimposed regions according to a preset time interval and the display order; updating the wallpaper based on the second superimposed region to obtain and display an updated wallpaper.

13. The method of claim 11, wherein After displaying the wallpaper, the method further comprises: if it is detected that the terminal device enters a lock screen state, determining a second superimposed region corresponding to a current time in the multiple superimposed regions based on the display order; updating the wallpaper based on the second superimposed region to obtain and display an updated wallpaper.

14. A computer-readable storage medium, characterized in that, The computer instructions, when executed on a terminal device, cause the terminal device to perform the wallpaper setting method of any one of claims 1 to 13.

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