Wallpaper setting method, terminal equipment and storage medium

By implementing the wallpaper setting method on the terminal device, users are allowed to select and edit images, and the target image is generated by matching the target subject image with the superimposed area, the problem of single wallpaper setting method and poor user participation in the prior art is solved, and richer user interaction and more beautiful wallpaper effects are achieved.

CN119987599APending Publication Date: 2025-05-13HONOR DEVICE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311702858.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-11-03
Filing Date
2023-12-11
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

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

Method used

By implementing a wallpaper setting method on the terminal device, it includes displaying the wallpaper preview interface in response to user click operation, allowing the user to select and edit the first image and the second image, and generate the target image through matching the target subject image with the superimposed area, and finally setting it as the wallpaper of the terminal device.

Benefits of technology

It increases the number of interactions and sense of participation of users in the process of generating wallpapers, meets users' personalized settings for wallpapers, and at the same time generates more beautiful wallpapers through perfect superposition effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987599A_ABST
    Figure CN119987599A_ABST
Patent Text Reader

Abstract

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

Description

Technical Field

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

[0002] With the development of electronic technology, the use of terminal devices such as smart phones and tablets has become more and more widespread and has become a part of people's work and life. Users have higher and higher requirements for the functions and aesthetics of terminal devices. Take mobile phones as an example. In addition to functions such as calling, watching videos, shopping, etc., mobile phones also have many functions that can increase beauty and improve human-computer interaction. Wallpaper is one of them. Wallpaper is an important carrier for presenting the overall visual style of terminal products.

[0003] When setting wallpaper, users can usually select a picture as the wallpaper of their mobile phone. In the related art, the way of setting wallpaper is relatively simple, and the human-computer interaction in the process of generating wallpaper is not rich enough, resulting in poor user participation and failing to meet the user's personalized wallpaper settings. Summary of the invention

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

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

[0006] In some optional implementations, the response to the received selection operation of the first option, after determining the first image, includes: determining at least one recommended overlay image based on the first image, and updating the second option based on the at least one recommended overlay image. The above method can make the displayed second option more compatible with the first option selected by the user, making it easier for the user to select a target overlay image that matches the target main image better.

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

[0008] In some optional implementations, the determining at least one recommended superimposed image based on the first image further includes: searching in a second image library based on the shooting information of the first image, and determining the image in the second image library that matches the shooting information as the recommended superimposed image. The above method determines the recommended superimposed image that matches the selected first option through information matching rules, so that the determined recommended superimposed image matches the selected first option in terms of shooting information, thereby allowing the user to more conveniently select a target superimposed image that matches the selected recommended subject image in terms of shooting information.

[0009] In some optional implementations, generating a target image according to the target main image and the superimposed area includes: determining a third image; and generating the target image according to the target main image, the superimposed area, and the third image. In the above method, by superimposing the third image, the content in the target image can be enriched, so that the generated target image is more aesthetically pleasing.

[0010] In some optional implementations, the determining of the third image includes: determining at least one background color based on the main color of the first image, and displaying background color options corresponding to each background color in the at least one background color; in response to a selection operation of any background color option, generating the third image based on the background color corresponding to any background color option. The above method can make the generated third image match the main color of the first image in color, thereby improving the aesthetics of the generated wallpaper.

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

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

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

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

[0015] In some optional implementations, when there are multiple superimposed areas, generating the target image according to the target main image, the superimposed area and the third image includes: determining a display order corresponding to the multiple superimposed areas; determining a first superimposed area among the multiple superimposed areas according to the display order; and generating the target image according to the target main image, the first superimposed area and the third image. The above method can determine a superimposed area to be displayed first among the multiple superimposed areas when multiple superimposed areas are determined.

[0016] In some optional implementations, after displaying the wallpaper, the method further includes: determining a second superimposed area corresponding to the current time in the multiple superimposed areas according to a preset time interval and the display order; and updating the wallpaper based on the second superimposed area to obtain and display the updated wallpaper. The above method can display multiple superimposed areas in turn based on a preset time interval and a determined display order of multiple superimposed areas, thereby updating the currently displayed wallpaper, so as to provide users with a richer user experience.

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

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

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

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

[0021] Figure 1 It is a flowchart of a wallpaper setting method provided in an embodiment of the present application.

[0022] Figure 2 A schematic diagram of displaying a wallpaper preview interface in response to a user clicking on a composite wallpaper control provided in an embodiment of the present application.

[0023] Figure 3 A schematic diagram of displaying a wallpaper editing window is provided for an embodiment of the present application.

[0024] Figure 4 A schematic diagram of displaying a gallery image in response to a click on a control to change a main image is provided in an embodiment of the present application.

[0025] Figure 5 A schematic diagram of updating a second option based on a selection operation of a first option provided in an embodiment of the present application.

[0026] Figure 6A schematic diagram of subject extraction provided for an embodiment of the present application.

[0027] Figure 7 A schematic diagram of determining a superimposed area in a superimposed image according to a target subject image provided in an embodiment of the present application.

[0028] Figure 8 A schematic diagram of displaying a gallery image in response to a click on a change overlay image control provided in an embodiment of the present application.

[0029] Fig. 9 A schematic diagram of dividing an overlay area based on an overlay range provided in an embodiment of the present application.

[0030] Fig.10 A schematic diagram of an overlay range dragging control bar provided in an embodiment of the present application.

[0031] Fig.11 A schematic diagram of an image superposition sequence provided in an embodiment of the present application.

[0032] Fig.12 A schematic diagram for determining a first area provided in an embodiment of the present application.

[0033] Fig.13 A schematic diagram of adjusting the superimposed area based on a second operation provided in an embodiment of the present application.

[0034] Fig.14 A schematic diagram of adjusting the superimposed area based on a second operation provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that, unless otherwise specified in the present application, " / " means or. For example, A / B can represent A or B. "And / or" in the present application is only a kind of association relationship describing associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations. It should be understood that the order of the steps shown in the flowchart of this article can be changed, and some can also be omitted.

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

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

[0039] The wallpaper setting method provided in the embodiment of the present application is applied to a terminal device including a display screen. Exemplarily, the terminal device in the embodiment 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, and a cellular phone, a personal digital assistant (PDA), an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific form of the terminal device.

[0040] In order to better understand the embodiments of the present application, the wallpaper setting method provided in the embodiments of the present application will be described below by way of example in conjunction with the accompanying drawings. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0041] Figure 1 1 is a flowchart of a wallpaper setting method provided in an embodiment of the present application. The wallpaper setting method is applied to a terminal device including a display screen. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. Figure 1 As shown, the method includes:

[0042] Step S101, in response to a click on a composite wallpaper control, displaying a wallpaper preview interface on the display screen.

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

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

[0045] In one embodiment of the present application, a user can trigger a wallpaper setting instruction by performing a preset gesture action on the display screen. After receiving 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 the actual situation, such as long pressing a blank area on the main screen, and selecting a preset option, such as selecting the "Desktop and Wallpaper Options" option in the 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 pinch gesture of both hands, to trigger the wallpaper setting instruction. Alternatively, the user can trigger the wallpaper setting instruction by entering the "Settings" menu of the mobile phone and selecting the "Desktop and Wallpaper Options" or "Display and Brightness" option. Alternatively, the user can trigger the wallpaper setting instruction through the notification bar, such as pulling down the notification bar, clicking the "Settings" icon at the top of the notification bar, and selecting the "Desktop and Wallpaper Options" option in the opened settings panel. Alternatively, the user opens the application list of the terminal device and selects an application named "Desktop and Wallpaper Options" or a similar name to trigger the wallpaper setting instruction. Alternatively, the user can trigger the wallpaper setting instruction by opening the album or gallery application and selecting the wallpaper setting control corresponding to the target image. The Set Wallpaper control is used to set the target image as wallpaper.

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

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

[0048] When the terminal device receives a click operation on 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. In the embodiment of the present application, there is no restriction on the number of first options and second options displayed. The first option is a reduced image corresponding to the recommended main image. Each first option corresponds to a recommended main image. The second option is a reduced image corresponding to the recommended overlay image. Each second option corresponds to a recommended overlay image. In one embodiment of the present application, the terminal device can display the first option and the second option through the wallpaper editing window. For example, when the terminal device receives a click operation on the wallpaper selection control by the user, the wallpaper editing window is displayed on the wallpaper preview interface, and the wallpaper editing window includes the first option and the second option. Figure 3 A schematic diagram of displaying a wallpaper editing window is provided for an embodiment of the present application. Figure 3 As shown in (a) of FIG. 1 , the wallpaper preview interface includes a wallpaper selection control. Figure 3 As shown in (b) of FIG. 1 , in response to the user clicking on the wallpaper selection control, a wallpaper editing window 30 is displayed on the wallpaper preview interface, and the wallpaper editing window 30 includes three first options 301 and three second options 302. Figure 3 As shown in (b), each first option is a reduced image corresponding to a recommended main image. Different first options correspond to different recommended main images; each second option is a reduced image corresponding to a recommended overlay image. Different second options correspond to different recommended overlay images.

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

[0050] In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control and displays the first option and the second option, it also displays a control for changing the main image. The control for changing the main image is used to select the main image for generating the wallpaper, such as Figure 3As shown in (b) in the figure. When a user clicks on the control to change the main image, the gallery image is displayed on the wallpaper preview interface; if a user selects any of the displayed gallery images, the gallery image is determined as the main image for generating the wallpaper. The gallery image is an image stored in the gallery in the terminal device. In one embodiment of the present application, when a user clicks on the control to change the main image, all gallery images can be displayed on the wallpaper preview interface in sequence according to the time sequence in which the images are stored in the gallery. For example, the later the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface. In order to reduce the time it takes for the user to find the image, the gallery image can be displayed according to the label of the gallery image. In another embodiment of the present application, when a user clicks on the control to change the main image, the gallery image that needs to be displayed on the wallpaper preview interface can be determined based on the label of the gallery image and the preset display rules. The label of the gallery image is used to classify the image, for example, people, selections, scenery, animals, buildings, etc. The display rule is used to determine the type of image displayed on the wallpaper preview interface after the user clicks the Change Subject Picture option. The display rule can be set according to user needs, such as displaying gallery images labeled People when the user clicks the Change Subject Picture option, or displaying gallery images labeled Selected when the user clicks the Change Subject Picture option. Images labeled Selected can be images recommended by the official website, or can be images that are suitable for being the subject picture after intelligent recognition.

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

[0052] In one embodiment of the present application, after displaying the gallery image on the wallpaper preview interface, the user can change the image content displayed on the wallpaper preview interface by performing a preset action in the display area of ​​the gallery image. For example, the user can perform a swiping operation in the display area of ​​the gallery image, and by sliding the display area downward, the current display interface displays gallery images that have not been displayed; or the user can perform an upward sliding operation in the display area of ​​the gallery image, and by sliding the display area upward, the current display interface displays gallery images that have been displayed.

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

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

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

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

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

[0058] In one embodiment of the present application, the matching rule may include an information matching rule. After the first option is selected, the shooting information of the recommended subject image corresponding to the selected first option, such as shooting time, shooting location, etc., may be determined, and the superimposed recommended image matching the shooting information may be determined; the second option displayed on the wallpaper preview interface may 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 one embodiment of the present application, a search may be performed in the second gallery of the terminal device based on the determined shooting information, and an image matching the shooting information in the second gallery may be determined as the superimposed recommended image. The second gallery may 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 corresponding to the picture corresponding to the selected first option, and / or the shooting location of the image is the same as the shooting location corresponding to the picture corresponding to the currently selected first option, the image is determined to be the superimposed recommended image matching the shooting information corresponding to the first option. In the above embodiment, the overlay recommendation image that matches the selected first option is determined through information matching rules, so that the determined overlay recommendation image can match the selected first option in shooting information, thereby allowing the user to more conveniently select the target overlay image that matches the selected recommended subject image in the shooting information.

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

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

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

[0062] In one embodiment of the present application, the subject of the first image can be extracted based on a preset detection method. For example, the subject of the first image can be extracted based on a color segmentation method, an edge detection method, a semantic segmentation of deep learning, a segmentation method of texture and shape features, and the like. For another example, the subject of the first image can be extracted based on a pre-trained model, such as using a trained deep learning model Mask R-CNN to extract the subject of the first image. In the embodiment of the present application, the implementation method of subject extraction is not limited.

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

[0064] In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control, the first option displayed includes a thumbnail of a preset main 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, Figure 3As shown in (b), the second option corresponding to the thumbnail of the preset main image will be selected by default. If the determined first image is inconsistent with the preset main image and the currently selected second option is a reduced image of the preset overlay image, the main body is extracted from the determined first image to obtain a target main image, and an overlay area is determined in the preset overlay image based on the target main image, and the size of the overlay area is the same as the size of the determined target main image; a target image is generated based on the target main image and the determined overlay area, and the generated target image is displayed on the wallpaper preview interface. If the determined first image is inconsistent with the preset main image, Figure 1 If the image corresponding to the currently selected second option is not a reduced image of the preset overlay image, the subject of the determined first image is extracted to obtain a target subject image, and an overlay area is determined in the image corresponding to the currently selected second option based on the target subject image, and the size of the determined overlay area 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. Figure 1 In the above implementation, when the first image does not change compared to the preset main image, it can be determined that the main part of the wallpaper generated based on the first image has not changed compared to the main part of the currently displayed wallpaper, such as one or more contents of the outline, size, content, etc. of the main part have not changed, and the wallpaper currently displayed is not adjusted, thereby avoiding waste of computing power.

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

[0066] In one embodiment of the present application, when a user selects any second option, the recommended overlay image corresponding to the second option is determined as the target overlay image for generating wallpaper, that is, the recommended overlay image corresponding to the second option is determined as the second image. Figure 3 As shown in (b), the second option corresponding to the thumbnail of the preset overlay image corresponding to the preset wallpaper will be selected by default in the at least one second option displayed.

[0067] In one embodiment of the present application, when the terminal device receives a click operation on the wallpaper selection control and displays the first option and the second option, it also displays a change overlay control. The change overlay control is used to select an overlay for generating wallpaper, such as Figure 3 As shown in (b) in . When a user clicks on the control for changing the overlay image, the gallery image is displayed on the wallpaper preview interface; if a user selects any of the displayed gallery images, the gallery image is determined as the overlay image for generating the wallpaper. The gallery image is an image stored in the gallery in the terminal device. In one embodiment of the present application, when a user clicks on the control for changing the overlay image, all gallery images can be displayed on the wallpaper preview interface in sequence according to the time sequence in which the images are stored in the gallery. For example, the later the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface; the earlier the time of storage in the gallery, the closer the position displayed on the wallpaper preview interface. In order to reduce the time it takes for the user to find the image, the gallery image can be displayed according to the label of the gallery image. In another embodiment of the present application, when a user clicks on the control for changing the overlay image, the gallery image that needs to be displayed on the wallpaper preview interface can be determined based on the label of the gallery image and the preset display rule. The label of the gallery image is used to classify the image, for example, people, selections, scenery, animals, buildings, etc. The display rule is used to determine the type of image displayed on the wallpaper preview interface after the user clicks the Change Overlay option. The display rule can be set according to user needs, such as displaying gallery images labeled Scenery when the user clicks the Change Overlay option, or displaying gallery images labeled Featured when the user clicks the Change Overlay option. Images labeled Featured can be images recommended by the official website, or can be images that are suitable for overlays after intelligent recognition.

[0068] Figure 8 A schematic diagram of displaying a gallery image in response to a click on a change overlay image control provided in an embodiment of the present application. Figure 8 As shown, Figure 8 As shown in (a) to (b) in the figure, when the terminal device receives a user click operation on the option to change the overlay image, the gallery image labeled as landscape is displayed on the wallpaper preview interface. Displaying corresponding images based on labels can avoid displaying images of various categories on the wallpaper preview interface, which makes it difficult for users to quickly locate the first image. By selecting labels, users can quickly determine the first image from a specified category. In one embodiment, the wallpaper preview interface also includes labels corresponding to other images in the gallery, such as at least one label such as featured, landscape, and architecture. When the terminal device receives a user selection operation on any label, the image corresponding to the label is displayed on the wallpaper settings page. For example, Figure 8As shown in (b) in the figure, the images labeled as scenery in the gallery are displayed on the wallpaper setting page. When the terminal device receives the user's selection operation on the tag represented as architecture, the images labeled as scenery in the gallery are stopped from being displayed on the wallpaper setting page, and the images labeled as architecture in the gallery are displayed. In the above implementation, the type of image displayed on the wallpaper preview interface can be modified by switching tags. In one implementation, when the terminal device receives the user's cancel operation on the currently selected tag, all types of images can be displayed on the wallpaper setting page. For example, Figure 8 As shown in (b), the currently selected label is landscape. When the user cancels the label representing landscape, such as clicking on the label image of landscape, the user has not selected other labels at this time, and all types of images can be displayed on the wallpaper setting page. All types of images can be displayed according to the time they were stored in the gallery. For example, the later the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface; the earlier the time they were stored in the gallery, the closer they are displayed on the wallpaper preview interface.

[0069] In one embodiment of the present application, after determining the second image, a superimposed area is determined in the second image based on the target main image, and the size of the superimposed area determined in the second image is the same as the size of the target main image; the target image is generated according to the target main image and the determined superimposed area, and the generated target image is displayed on the wallpaper preview interface. In one embodiment of the present application, if the determined second image is inconsistent with the preset superimposed image, the superimposed area is determined in the second image based on the target main image; if the preset main image is consistent with the target main image, the currently displayed wallpaper is not adjusted, such as the preset wallpaper is not adjusted, and the currently displayed wallpaper continues to be displayed. In the above embodiment, when the second image has not changed compared to the preset superimposed image, it can be determined that the superimposed part of the wallpaper generated based on the second image has not changed compared to the superimposed part of the currently displayed wallpaper, such as the content contained in the superimposed part has not changed, and the currently displayed wallpaper is not adjusted, thereby avoiding the waste of computing power. For some specific implementations of determining the superimposed area in the second image based on the target main image, please refer to the relevant description above, such as the relevant description of determining the superimposed area in the preset superimposed image based on the target main image above.

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

[0071] In some embodiments of the present application, in order to enable the displayed wallpaper to be automatically updated, multiple second images may be determined based on the user's selection. For example, multiple overlay image options may be displayed on the wallpaper preview interface, and in response to the user clicking the multiple overlay image options, multiple second images may be determined based on the user's selection. The overlay area may be determined in each second image determined by the user based on the target subject image.

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

[0073] In one embodiment of the present application, the target main image and the superposition area can be superimposed based on the superposition range to generate the target image. The superposition range can be set according to actual conditions. The larger the superposition range, the more visible parts in the superposition area; the smaller the superposition range, the fewer visible parts in the superposition area. The visible part and the invisible part in the superposition area can be determined based on the superposition range. Based on the determined visible part and invisible part, the transparency of the superposition area is set; the superposition area with the transparency set is superimposed on the target main image to generate the target image.

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

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

[0076] In one embodiment of the present application, the transparency of the invisible part in the superimposed area is 0%. The visible part in the superimposed area can achieve a gradual change in transparency from 0-100%. For example, as shown in 9, the transparency of the initial position of the visible part in the superimposed 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 the linear relationship between the width of the visible part in the superimposed area and the transparency interval range. In one embodiment of the present application, the visible part can be divided into a plurality of sub-areas of equal width according to a preset number of areas, and based on the number of areas, a plurality of sub-area serial numbers are determined, and the transparency corresponding to each sub-area serial number is set; based on the transparency corresponding to each sub-area serial number, a different transparency gradient interval is set for each sub-area. The number of areas can be set according to actual needs, such as being 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 10 sub-area serial numbers can be determined in order from top to bottom: the first sub-area, the second sub-area, the third sub-area, ..., the tenth sub-area. Since 10 sub-areas need to complete a gradual change in transparency from 0% to 100%, the difference in transparency between two adjacent sub-areas can be set to 10%. For example, the transparency gradient interval of the first sub-area can be set to 0%-10%, the transparency gradient interval of the second sub-area can be set to 11%-20%, the transparency gradient interval of the third sub-area can be set to 21%-30%,... and the transparency gradient interval of the tenth sub-area can be set to 91%-100%.

[0077] In one embodiment of the present application, a drag control bar corresponding to the overlay range can be displayed on the wallpaper preview interface, and when a user drag operation on the drag control bar is received, the overlay range can be adjusted. In another embodiment, the overlay range can also be adjusted through a scalable rectangular frame. In one embodiment of the present application, a drag control bar corresponding to the overlay range can be displayed on the wallpaper preview interface in response to a user click on the target main image. The drag control bar can be displayed at a preset position of the target main image, such as above, below, left, right, etc. In one embodiment of the present application, when a click operation on the wallpaper selection control is received, a drag control bar corresponding to the overlay range can be displayed, such as being displayed below the second option. Fig.10 A schematic diagram of a superposition range drag control bar provided in an embodiment of the present application. Fig.10As shown, a drag control bar corresponding to the overlay range is displayed on the wallpaper preview interface. When the user drags the drag control bar to the left, the overlay range is reduced; when the user drags the drag control bar to the right, the overlay range is increased.

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

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

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

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

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

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

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

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

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

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

[0088] Since the superimposed area is limited by the size and position of the target subject image, after the superimposed area is adjusted, the adjusted superimposed area must be re-determined based on the target subject image, and the target image must be updated based on the target subject image, the adjusted superimposed area and the third image. The adjusted superimposed area is still within the contour corresponding to the target subject image and will not exceed the contour corresponding to the target subject image. The adjusted superimposed area is the same size as the superimposed area before adjustment. Fig.13 A schematic diagram of adjusting the superimposed area based on a second operation provided in an embodiment of the present application. Fig.13 (a) shows the second image. Fig.13 (b) shows the initial superposition area initially determined based on the second image. If the second operation performed by the user in the second area is to move left, the following can be obtained: Fig.13 The current superposition area shown in (c). Fig.13As shown in (c), the image on the right side of the initial superimposed area in the second image can be seen in the current superimposed area. Due to the size and position restrictions of the target main image in the superimposed area, some content in the initial superimposed area will not be visible in the current superimposed area. If the second operation performed by the user in the second area is zooming in and out, the following can be obtained: Fig.13 The current superposition area shown in (d). Fig.13 As shown in (d), the content displayed in the current superimposed area is equivalent to enlarging the content in the initial superimposed area. Since the superimposed area is limited by the size and position of the target main image, part of the content in the initial superimposed area will not be visible in the current superimposed area.

[0089] In one embodiment of the present application, the user determines multiple second images, and there are multiple superposition areas. If there are multiple superposition areas, the generating the target image according to the target main image, the superposition area and the third image includes: determining the display order corresponding to the multiple superposition areas; determining the first superposition area in the multiple superposition areas according to the display order; generating the target image according to the target main image, the first superposition area and the third image. In one embodiment of the present application, the display order corresponding to each superposition area can be determined according to the order in which the user selects multiple second images. For example, the user selects the second image A as the first, and the display order of the superposition area corresponding to the second image A is determined to be the first; the user selects the second image B as the fourth, and the display order of the superposition area corresponding to the second image B is determined to be the fourth. In another embodiment of the present application, the display order corresponding to the multiple superposition areas can be set based on the user's sorting. The first superposition area is the superposition area with the first display order in the multiple superposition areas. In the above embodiment, when multiple superposition areas are determined, the superposition area to be displayed first can be determined in the multiple superposition areas.

[0090] 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.

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

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

[0093] In one embodiment of the present application, after the wallpaper is displayed, the method further includes: determining a second superimposed area corresponding to the current time in the multiple superimposed areas according to a preset time interval and the display order; based on the second superimposed area, updating the wallpaper, obtaining and displaying the updated wallpaper. The time interval can be set according to the needs of the user, 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 to display the wallpaper is 13:30, and the superimposed area in the currently displayed wallpaper is the superimposed area with the first display order in the multiple superimposed areas; if the current time is 14:00, it is determined that the wallpaper update time has arrived, and the superimposed area with the second display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time; if the current time is 14:30, it is determined that the wallpaper update time has arrived, and the superimposed area with the third display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time; if the current time is 15:00, it is determined that the wallpaper update time has arrived, and the superimposed area with the fourth display order in the multiple superimposed areas is determined to be the second superimposed area corresponding to the current time. The above implementation can, when the user selects multiple second images and obtains multiple superimposed areas, display the multiple superimposed areas in turn based on a preset time interval and the display order of the multiple superimposed areas, thereby updating the currently displayed wallpaper, thereby providing the user with a richer user experience.

[0094] In one embodiment of the present application, after the wallpaper is displayed, the method further includes: when it is detected that the terminal device enters the lock screen state, based on the display order, determining the second superimposed area corresponding to the current time in the multiple superimposed areas; based on the second superimposed area, updating the wallpaper, obtaining and displaying the updated wallpaper. The 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 multiple superimposed areas. For example, the superimposed area in the currently displayed wallpaper is the superimposed area with the first display order in the multiple 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 in the multiple 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 in the multiple 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 in the multiple superimposed areas is determined as the second superimposed area corresponding to the current time. Based on the preset time interval and the display order of the multiple superimposed areas, the multiple superimposed areas are displayed in turn. In the above implementation, when the user selects multiple second images and obtains multiple superimposed areas, the multiple superimposed areas can be displayed in turn based on the display order of the multiple superimposed areas after each time entering the lock screen state, thereby updating the currently displayed wallpaper every time the user enters the lock screen, thereby providing the user with a richer user experience.

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

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

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

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

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

[0100] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (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.

[0101] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

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

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

[0105] 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 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I1C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0106] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. 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 peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices 100, such as AR devices, etc.

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

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

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

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

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

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

[0113] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor that serves abnormality reminders and connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

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

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

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

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

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

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

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

[0121] The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a call or voice message, the voice can be answered by placing the receiver 170B close to the human ear. The microphone 170C, also known as the "microphone" or "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 approaching the microphone 170C with the human mouth to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which can not only collect sound signals, but also realize noise reduction function. In other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

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

[0123] The pressure sensor 180A is used to sense the 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 air 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 the flip leather case. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure 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 brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". Bone conduction sensor 180M can obtain vibration signals.

[0124] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The motor 191 may generate a vibration prompt. The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change of the power, or may be used to indicate messages, missed calls, notifications, etc.

[0125] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. 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 memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

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

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

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

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

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

[0131] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Citation Information

Cited By

  • Wallpaper setting method, and terminal device and storage medium

    WO2025092105A1