Method for generating a theme wallpaper and electronic device

By acquiring user-defined images from electronic devices, detecting and extracting target elements, and generating suitable wallpaper proportions and transition methods, this technology solves the problem of insufficient dynamic linkage effects for theme wallpapers in existing technologies, realizes user-defined dynamic linkage effects, and improves the user experience.

CN122431767APending Publication Date: 2026-07-21HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-07-09
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing technologies make it difficult to achieve dynamic interaction between user-customized themes and wallpapers on electronic devices, resulting in a poor user experience.

Method used

By acquiring user-defined images, detecting target elements, performing image cutout processing, and scaling them according to different ratio coefficients, wallpapers for the always-on screen, lock screen, and unlock screen are generated. Combined with configuration parameters for transition methods, dynamic linkage effects between the always-on screen, lock screen, and unlock screen are achieved.

Benefits of technology

It provides a seamless visual experience, meets users' personalized needs, enhances user experience, and increases the selection of themes and wallpapers with dynamic changing effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431767A_ABST
    Figure CN122431767A_ABST
Patent Text Reader

Abstract

The application provides a method for generating a theme wallpaper and an electronic device, which can be a mobile phone, a tablet computer or the like. A user can set any picture as a theme wallpaper of the mobile phone according to the user's preference and requirement. The method is based on detection and recognition of the picture customized by the user, image processing such as cutout of a target element in the picture, and different transition modes and transition animations corresponding to the user's setting of the mobile phone in a switching process of a screen-off interface, a lock screen interface and an unlocking interface, so as to present a dynamic linkage effect in the switching process of the screen-off interface, the lock screen interface and the unlocking interface to the user, and further provide a one-shot visual experience to the user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202110781615.2 and the original application date is July 9, 2021. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic technology, and more particularly to a method and electronic device for generating themed wallpapers. Background Technology

[0003] With the increasing intelligence of electronic devices, users may have higher expectations and demands for themes and wallpapers on their devices. Taking mobile phones as an example, users may seek mobile phone themes and wallpapers that can meet the personalized needs of different users.

[0004] Mobile phone themes and wallpapers can be applied to the always-on screen, lock screen, and unlock screen. One possible approach is to customize the wallpaper for the lock screen and unlock screen to meet the personalized needs of different users. However, how to present users with visually appealing themes and wallpapers based on custom images is a pressing issue that needs to be addressed. Summary of the Invention

[0005] This application provides a method and electronic device for generating theme wallpapers. It can generate theme wallpapers for mobile phones based on any single image, multiple images, or videos, and participate in the display process of wallpapers on the always-on screen, lock screen, and unlock screen respectively, presenting users with a dynamic linkage effect during the switching process of always-on screen, lock screen, and unlock screen, thereby providing users with a seamless visual experience.

[0006] Firstly, a method for generating a theme wallpaper is provided, applied to an electronic device. The method includes: acquiring a target image for generating the theme wallpaper of the electronic device; determining a first display area of ​​the target image, and determining the unlock screen of the electronic device based on the first display area; detecting a target element in the content of the first display area, performing image cutout processing on the target element in the first display area to obtain the cutout target element; scaling down or up the cutout target element according to a first proportional coefficient to use it as the display content of the always-on screen of the electronic device, and determining the always-on screen; determining a second display area based on the position of the target element in the target image, and determining the unlock screen based on the second display area. The lock screen interface, wherein the wallpaper of the lock screen interface includes the target element after being cut out and scaled down or enlarged according to a second ratio factor; a first transition method and configuration parameters corresponding to the first transition method are obtained, as well as a second transition method for switching from the lock screen interface to the unlock interface and configuration parameters corresponding to the second transition method; the screen-off interface is displayed according to the display content of the screen-off interface; the user's unlock operation is received, and in response to the unlock operation, the screen-off interface is switched to the lock screen interface according to the configuration parameters corresponding to the first transition method; and the screen-off interface is switched to the unlock interface according to the configuration parameters corresponding to the second transition method, wherein the wallpaper of the unlock interface includes the content of the first display area.

[0007] It should be understood that the "target image" can be any image defined by the user. Optionally, the target image may be obtained from the phone's local image library or from other electronic devices, servers, etc., and the embodiments of this application do not limit the source of one or more images included in the image list.

[0008] It should also be understood that the "target image" selected by the user will be used as the image of the phone's off-screen interface, as the wallpaper of the lock screen interface when the phone is in a lit and locked state, and as the wallpaper of the unlock screen after the phone is unlocked. In other words, in this embodiment of the application, a new theme wallpaper will be generated for the phone based on the "target image" selected by the user.

[0009] It should also be understood that the "obtaining the target image for generating the theme wallpaper of the electronic device" in this application embodiment can also be called "determining the target image for generating the theme wallpaper of the electronic device". The triggering time for this step can be: the user selects a certain image from multiple images as the target image and triggers the electronic device to generate the theme wallpaper based on the target image. Optionally, the user can determine the target image from multiple images through the theme wallpaper entry of the setting application and trigger the electronic device to generate the theme wallpaper based on the target image; or, the user can find the target image from the gallery and then set the main wallpaper to be generated based on the target image. This application embodiment does not limit the operation of triggering the electronic device to generate the theme wallpaper based on the target image.

[0010] It should also be understood that the "first display area" can be understood as the area used to generate the wallpaper for the unlock screen of the electronic device, and the "second display area" can be understood as the area used to generate the wallpaper for the lock screen of the electronic device. Optionally, the first display area and the second display area can be different areas or the same area. For example, the second display area can be a portion of the first display area, and this application embodiment does not limit this.

[0011] Using the above method, users can set any image as their phone's theme wallpaper according to their preferences and needs. This method can present a dynamic linkage effect during the transition between the user-defined image, lock screen, and unlock screen by detecting and recognizing the image, cutting out the target elements in the image, and combining the different transition methods and animations set by the user during the transition between the screen-off, lock screen, and unlock screen. This provides users with a seamless visual experience.

[0012] In conjunction with the first aspect, in some implementations of the first aspect, obtaining the target image for generating the theme wallpaper of the electronic device includes: displaying a first interface, the first interface including one or more images; receiving a first operation from a user, and in response to the first operation, determining the target image for generating the theme wallpaper of the electronic device from the one or more images.

[0013] In combination with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the one or more images are images stored in the local image library of the electronic device, or the one or more images are frames from one or more video clips.

[0014] In combination with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the target image is at least one of the one or more images.

[0015] In combination with the first aspect and the above implementation methods, in some implementation methods of the first aspect, detecting the target element in the content of the first display area includes: receiving a user's sliding operation in the first display area, determining a third display area based on the start point and end point of the sliding trajectory corresponding to the sliding operation, and determining the element included in the third display area as the target element.

[0016] In one possible implementation, the user can manually select the display area of ​​the target image, i.e., the "third display area". For example, the user can select a display area by sliding their finger, and the electronic device can determine the elements within the selected display area as the target elements.

[0017] Optionally, the user can pre-define the shape of the display area, which can be a regular shape such as a rectangle, circle, ellipse, or rhombus.

[0018] Alternatively, the user can pre-define the shape of the display area as an irregular shape that follows the user's finger swipe path. Specifically, the user can swipe on the target image, and the irregular area is determined as the display area based on the user's swipe path; this embodiment of the application does not limit this approach.

[0019] In another possible implementation, during the image matting process, the electronic device in this embodiment can process the image pixels of the target element based on AI deep learning algorithms, edge detection algorithms, image segmentation algorithms, noise reduction algorithms, image filtering algorithms, image matting algorithms, etc., to obtain the target element with clear edges and distinct contours after matting. This embodiment does not limit the process.

[0020] Using the above method, users can manually define a third display area, and the electronic device can identify the element in that third display area as the target element. The process of identifying the target element is more in line with the user's display needs and more accurately locates the target element that the user expects to display.

[0021] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the target element is fixed content set by the user; and / or the target element is the content that appears most frequently in one or more images stored on the electronic device; and / or the target element is the content that is most frequently marked or favorited by the user in one or more images stored on the electronic device; and / or the target element is the content with the highest display priority in a preset element set, wherein the preset element set includes one or more types of elements, and each type of element corresponds to a different display priority.

[0022] In one possible implementation, the electronic device can automatically detect the content or elements included in the target image (or the first display area), and based on the identified content or elements included in the target image (or the first display area), combined with preset rules, automatically determine the target elements for the user.

[0023] Optionally, the target element may include one or more elements, such as one character, two characters, etc., which is not limited in this embodiment of the application.

[0024] Optionally, "fixed content" may include fixed users such as the phone owner or family members set by the user, or elements of a preset type set by the user. For example, when the electronic device detects that the "target image" includes facial information, it determines whether the person is the phone owner based on that facial information. If the "target image" includes the phone owner, the phone owner can be identified as the target element. Specifically, the electronic device can identify the user corresponding to the facial information entered by the user for unlocking and identity verification as the phone owner. Alternatively, for example, if the user sets the "target element" to a person, when the phone detects that the target image includes multiple types such as people, animals, and plants, the phone can identify the person as the "target element."

[0025] Optionally, the "target element" can be the most frequently occurring content in one or more images stored on the phone. For example, if the phone detects that the most frequently occurring element among N images stored in the local photo library is the user's pet, and if the target image includes the user's pet, the user's pet is identified as the "target element." Alternatively, the phone can obtain facial features from multiple albums in the local photo library, such as family albums and friends albums, and arrange them in descending order of the frequency of each facial feature. When the target image includes multiple people, the phone can query the frequency of each of those people in the local photo library and identify the person with the highest frequency as the target element.

[0026] Optionally, the "target element" can be the content that has been most frequently marked or saved by the user among one or more images stored on the phone. For example, if the phone detects that among N images stored in the local gallery, multiple images that have been saved or marked by the user include the user's pet, and if the target image contains the user's pet, then the user's pet is identified as the "target element".

[0027] Optionally, the "target element" can be the content with the highest display priority in a preset set of elements. This preset set of elements includes one or more types of elements, each type of element corresponding to a different display priority. For example, if the user sets the priority of people > animals > buildings > plants, etc., in descending order, and if the priorities of the various elements included in the target image are detected, the element with the highest priority will be determined as the "target element".

[0028] It should be understood that the various preset rules listed above can also correspond to different priority orders. For example, an electronic device can prioritize one of the rules to determine the target element. When the rule does not meet the current scenario, the target element can be determined according to another rule. This application embodiment does not limit this.

[0029] Using the methods described above, in the process of generating a mobile phone theme based on the target image selected by the user, various possible methods can be used. For example, the mobile phone can automatically detect and identify the target element in the target image, or the target element in the target image can be determined based on the user's operation. The target element can be used as a display element on the always-on display screen or as a prominent display element on the lock screen. The display process of the target element can better meet the user's display needs, thereby improving the user experience.

[0030] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the step of scaling down or scaling up the cut-out target element according to a first proportional coefficient to serve as the display content of the always-on display of the electronic device, and determining the always-on display, includes: determining the height and width of the cut-out target element; obtaining a first preset area of ​​the always-on display, and the height and width of the first preset area; when the height of the cut-out target element is greater than its width, determining the first proportional coefficient based on the ratio of the height of the target element to the height of the first preset area; or when the height of the cut-out target element is less than or equal to its width, determining the first proportional coefficient based on the ratio of the width of the target element to the width of the first preset area; scaling down or scaling up the cut-out target element according to the first proportional coefficient and displaying it in the first preset area of ​​the always-on display.

[0031] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, determining the second display area according to the position of the target element in the target picture and determining the lock screen interface according to the second display area includes: determining the height and width of the target element after cropping, and the position information of the target element in the target picture; according to the position information of the target element in the target picture, taking the target element as the center, determining the area on the target picture within a preset range of the distance from the target element as the second display area; obtaining the second preset area of the lock screen interface, and the height and width of the second preset area; when the height of the target element after cropping is greater than the width, determining the second proportionality coefficient according to the ratio of the height of the target element to the height of the second preset area; or when the height of the target element after cropping is less than or equal to the width, determining the second proportionality coefficient according to the ratio of the width of the target element to the width of the second preset area; determining the lock screen interface according to the content of the target element and the second display area after being reduced or enlarged based on the second proportionality coefficient.

[0032] In a possible implementation manner, in the original target picture, the display height n and display width m of the cropped target element "little girl" may have the situations of n>m, n<m, and n=m. In the embodiments of the present application, the rule for determining the scaling ratio of the target element can be called the "long side matching principle". The "long side matching principle" can be understood as: the electronic device determines the scaling ratio (i.e., the first proportionality coefficient and the second proportionality coefficient) of the target element according to the larger value of n and m, and then displays the scaled target element "little girl" in the target display area of the lock screen interface and the target display area of the unlock interface.

[0033] In the above process, taking a user-defined picture (i.e., the "target picture") as an example, the process of generating the screen-off interface, lock screen interface, and unlock interface of the mobile phone based on this picture is introduced. In a possible implementation manner, the user can also select multiple pictures at the same time and generate the screen-off interface, lock screen interface, and unlock interface of the mobile phone based on these multiple pictures.

[0034] Optionally, these multiple pictures can be sourced from the local picture gallery of the mobile phone or from multiple frames of a video clip. The embodiments of the present application do not limit the source of these multiple pictures.

[0035] Combined with the first aspect and the above implementation manners, in some implementation manners of the first aspect, determining the first display area of the target picture includes: determining the fixed area of the target picture as the first display area; or receiving a second operation of the user, and in response to the second operation, determining the first display area of the target picture.

[0036] In combination with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the first transition method and the second transition method are preset methods or manually set by the user.

[0037] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the configuration parameters corresponding to the first transition method include one or more of the following parameters: during the process of switching from the always-on display interface to the lock screen interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times; the configuration parameters corresponding to the second transition method include one or more of the following parameters: during the process of switching from the lock screen interface to the unlock interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times.

[0038] In summary, using the methods described above, users can set any single photo, multiple photos, or video as their phone's theme wallpaper, tailored to their preferences and needs. Based on this photo or video, it can be used to display the wallpaper on the always-on screen, lock screen, and unlock screen. This means generating the phone's always-on screen, lock screen, and unlock screen based on the photo or video. Furthermore, different animation effects are added during the transition between the always-on screen, lock screen, and unlock screen, creating dynamically changing theme wallpapers and providing a seamless playback effect. This offers users an unlimited selection of themes, avoiding reliance on system-preset themes. It also allows for sharing target elements during the always-on screen, lock screen, and unlock screen transitions and enables continuous dynamic playback, meeting diverse user needs and enhancing the user experience.

[0039] Secondly, a method for generating a theme wallpaper is provided, applied to an electronic device. The method includes: displaying a first interface, the first interface including one or more images; receiving a first operation from a user, and in response to the first operation, determining a target image from the one or more images for generating a theme wallpaper for the electronic device; determining a first display area of ​​the target image, and displaying a wallpaper preview interface of the unlock screen of the electronic device according to the first display area; receiving a second operation from a user, and in response to the second operation, determining a target element in the content of the first display area, and performing image cutout processing on the target element in the first display area to obtain the cutout target element; receiving a third operation from a user, and in response to the third operation, displaying a preview interface of the screen-off interface of the electronic device, the preview interface of the screen-off interface including the cutout target element scaled down or enlarged according to a first proportional coefficient; receiving a fourth operation from a user, and in response to the fourth operation, acquiring the electronic device's... The device performs a first transition mode and corresponding configuration parameters during the process of switching from the always-on screen to the lock screen; receives a fifth user operation, and in response to the fifth operation, displays a wallpaper preview interface of the lock screen of the electronic device, wherein the wallpaper of the lock screen includes the content of the target element and the second display area of ​​the target image after being reduced or enlarged according to a second ratio factor; receives a sixth user operation, and in response to the sixth operation, obtains a second transition mode and corresponding configuration parameters during the process of switching from the lock screen to the unlock screen; displays the always-on screen; receives a user unlock operation, and in response to the unlock operation, switches from the always-on screen to the lock screen according to the configuration parameters corresponding to the first transition mode; and switches from the lock screen to the unlock screen according to the configuration parameters corresponding to the second transition mode, wherein the wallpaper of the unlock screen includes the content of the first display area.

[0040] In conjunction with the second aspect, in some implementations of the second aspect, determining the target element in the content of the first display area includes: receiving a user's swiping operation in the first display area; determining a third display area based on the start and end points of the swiping trajectory corresponding to the swiping operation; and determining the elements included in the third display area as the target element.

[0041] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the target element is fixed content set by the user; and / or the target element is the content that appears most frequently in one or more images stored on the electronic device; and / or the target element is the content that is most frequently marked or favorited by the user in one or more images stored on the electronic device; and / or the target element is the content with the highest display priority in a preset element set, wherein the preset element set includes one or more types of elements, and each type of element corresponds to a different display priority.

[0042] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, displaying the screen-off interface includes: determining the height and width of the cut-out target element; obtaining a first preset area of ​​the screen-off interface, and the height and width of the first preset area; when the height of the cut-out target element is greater than its width, determining a first proportional coefficient based on the ratio of the height of the target element to the height of the first preset area; or when the height of the cut-out target element is less than or equal to its width, determining the first proportional coefficient based on the ratio of the width of the target element to the width of the first preset area; and scaling the cut-out target element down or up according to the first proportional coefficient and displaying it in the first preset area of ​​the screen-off interface.

[0043] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the step of switching from the off-screen interface to the lock screen interface includes: determining the height and width of the cut-out target element, and the position information of the target element in the target image; based on the position information of the target element in the target image, determining the area on the target image where the distance from the target element is within a preset range, centered on the target element, as the second display area; obtaining the second preset area of ​​the lock screen interface, and the height and width of the second preset area; when the height of the cut-out target element is greater than its width, determining the second proportional coefficient based on the ratio of the height of the target element to the height of the second preset area; or when the height of the cut-out target element is less than or equal to its width, determining the second proportional coefficient based on the ratio of the width of the target element to the width of the second preset area; and determining the lock screen interface based on the content of the target element and the second display area after being scaled down or enlarged based on the second proportional coefficient.

[0044] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, determining the first display area of ​​the target image includes: determining a fixed area of ​​the target image as the first display area; or receiving a second operation from the user, and in response to the second operation, determining the first display area of ​​the target image.

[0045] In combination with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the first transition method and the second transition method are preset methods or manually set by the user.

[0046] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the configuration parameters corresponding to the first transition method include one or more of the following parameters: during the process of switching from the always-on display interface to the lock screen interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times; the configuration parameters corresponding to the second transition method include one or more of the following parameters: during the process of switching from the lock screen interface to the unlock interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times.

[0047] Thirdly, an electronic device is provided, characterized in that it includes: a display screen; one or more processors; one or more memories; a module with multiple applications installed; the memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device performs the following steps: acquiring a target image for generating a theme wallpaper for the electronic device; determining a first display area of ​​the target image, and determining an unlock screen for the electronic device based on the first display area; detecting a target element in the content of the first display area, performing image cutout processing on the target element in the first display area to obtain the cutout target element; reducing or enlarging the cutout target element according to a first proportional coefficient as the display content of the screen-off interface of the electronic device, and determining the screen-off interface; and determining the unlock screen based on the first display area. The system determines a second display area based on the location of the target element in the target image, and determines the lock screen interface based on the second display area. The wallpaper of the lock screen interface includes the target element after being cut out and scaled down or enlarged according to a second ratio factor. It acquires a first transition method and its corresponding configuration parameters, as well as a second transition method for switching from the lock screen interface to the unlock interface and its corresponding configuration parameters. It displays the off-screen interface based on its content. It receives a user's unlock operation, and in response to the unlock operation, switches from the off-screen interface to the lock screen interface based on the configuration parameters corresponding to the first transition method. It also switches from the lock screen interface to the unlock interface based on the configuration parameters corresponding to the second transition method. The wallpaper of the unlock interface includes the content of the first display area.

[0048] In conjunction with the third aspect, in some implementations of the third aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: receiving a user's swiping operation in the first display area, determining a third display area based on the start and end points of the swiping trajectory corresponding to the swiping operation; and determining the elements included in the third display area as the target elements.

[0049] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, the target element is fixed content set by the user; and / or the target element is the content that appears most frequently in one or more images stored on the electronic device; and / or the target element is the content that is most frequently marked or favorited by the user in one or more images stored on the electronic device; and / or the target element is the content with the highest display priority in a preset element set, wherein the preset element set includes one or more types of elements, and each type of element corresponds to a different display priority.

[0050] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: determining the height and width of the cut-out target element; obtaining a first preset area of ​​the always-on display, and the height and width of the first preset area; when the height of the cut-out target element is greater than its width, determining a first proportional coefficient based on the ratio of the height of the target element to the height of the first preset area; or when the height of the cut-out target element is less than or equal to its width, determining a first proportional coefficient based on the ratio of the width of the target element to the width of the first preset area; and scaling the cut-out target element down or up according to the first proportional coefficient and displaying it in the first preset area of ​​the always-on display.

[0051] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: determining the height and width of the cut-out target element, and the position information of the target element in the target image; based on the position information of the target element in the target image, determining the area on the target image whose distance from the target element is within a preset range, centered on the target element, as the second display area; obtaining the second preset area of ​​the lock screen interface, and the height and width of the second preset area; when the height of the cut-out target element is greater than its width, determining the second proportional coefficient based on the ratio of the height of the target element to the height of the second preset area; or when the height of the cut-out target element is less than or equal to its width, determining the second proportional coefficient based on the ratio of the width of the target element to the width of the second preset area; determining the lock screen interface based on the content of the target element and the second display area after being reduced or enlarged based on the second proportional coefficient.

[0052] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: displaying a first interface, the first interface including one or more images; receiving a first operation from a user, and in response to the first operation, determining the target image from the one or more images for generating the theme wallpaper of the electronic device.

[0053] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: determining a fixed area of ​​the target image as the first display area; or receiving a second operation from the user, and in response to the second operation, determining the first display area of ​​the target image.

[0054] In combination with the third aspect and the above implementation methods, in some implementation methods of the third aspect, the first transition method and the second transition method are preset methods or manually set by the user.

[0055] In conjunction with the third aspect and the above implementation methods, in some implementation methods of the third aspect, the configuration parameters corresponding to the first transition method include one or more of the following parameters: during the process of switching from the always-on display interface to the lock screen interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times; the configuration parameters corresponding to the second transition method include one or more of the following parameters: during the process of switching from the lock screen interface to the unlock interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times.

[0056] Fourthly, a graphical user interface system is provided for an electronic device having a display screen, one or more memories, and one or more processors, the one or more processors being configured to execute one or more computer programs stored in the one or more memories, the graphical user interface system including a graphical user interface displayed when the electronic device performs a method as described in the first aspect and any one of the first aspects, and a method as described in the second aspect and any one of the second aspects.

[0057] Fifthly, an apparatus is provided, included in an electronic device, having the function of implementing the methods described in the first and any one of the first aspects, as well as the behavior of the electronic device in the methods described in the second and any one of the second aspects. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. For example, a display module or unit, a detection module or unit, a processing module or unit, etc.

[0058] In a sixth aspect, a computer-readable storage medium is provided that stores computer instructions, which, when executed on an electronic device, cause the electronic device to perform the methods of the first aspect and any one of the second aspect.

[0059] In a seventh aspect, a computer program product is provided that, when the computer program product is run on an electronic device, causes the electronic device to perform the methods described in the first aspect or any possible method of the first aspect, as well as the methods described in the second aspect and any one of the second aspects. Attached Figure Description

[0060] Figure 1 This is a user interface illustration of how a user sets the always-on screen of their phone through a settings application.

[0061] Figure 2 This is an illustration of the effect of a mobile phone transitioning from the off screen to the unlock screen.

[0062] Figure 3 This is another example illustrating how a user sets their phone theme through the settings app.

[0063] Figure 4 This is another example illustrating the effect of a phone transitioning from the always-on screen to the unlock screen.

[0064] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0065] Figure 6 This is a software structure block diagram of an electronic device provided in an embodiment of this application.

[0066] Figure 7 This is a schematic diagram illustrating an example of a user setting a mobile phone theme wallpaper through a settings application, provided in an embodiment of this application.

[0067] Figure 8 This is another example of a user setting a mobile phone theme wallpaper through a gallery application, provided in this application embodiment.

[0068] Figure 9 This is a schematic diagram illustrating the effect of a mobile phone transitioning from a sleep screen to an unlock screen, as provided in an embodiment of this application.

[0069] Figure 10 This is a schematic flowchart illustrating an example of a method for generating a theme wallpaper provided in an embodiment of this application.

[0070] Figure 11 This is a schematic diagram illustrating an example of image processing of a target image provided in an embodiment of this application.

[0071] Figure 12 This is another flowchart illustrating the image processing procedure for a target image provided in this application embodiment.

[0072] Figure 13 This is a schematic diagram illustrating an example of displaying a target element on an always-on display screen, provided in an embodiment of this application.

[0073] Figure 14 This is a schematic diagram illustrating an example of calculating the scaling ratio provided in an embodiment of this application.

[0074] Figure 15 This is a schematic diagram illustrating an example of displaying a target element on a lock screen interface, provided in an embodiment of this application.

[0075] Figure 16 This is a schematic diagram illustrating an example of generating a wallpaper for an unlock interface based on a target image, provided in an embodiment of this application. Detailed Implementation

[0076] Taking mobile phones as an example, mobile phone themes and wallpapers can be applied to the always-on screen, lock screen, and unlock screen. By setting mobile phone themes and wallpapers, different users can meet their personalized needs.

[0077] The term "always-on display" refers to the interface displayed when the phone is locked and the screen is black (or off). It can also be called "always-on display (AOD) interface," "screen-off interface," or "screen-off screen," etc.

[0078] Optionally, the phone's "always-on screen" may include different display content. For example, the phone's "always-on screen" may display one or more of the following: text such as time and date, user-defined images, icons for current battery level, icons for text messages, icons for missed calls, etc.

[0079] "Lock screen" refers to the interface displayed when the phone is in a locked state. Optionally, the phone's "lock screen" may display one or more of the following on the wallpaper: time and date, text such as "recognizing face", lock screen icon, and icons of some applications.

[0080] "Unlock screen" refers to the interface displayed when the phone screen is on and unlocked. It should be understood that after the phone is unlocked, it can continue to display the interface it displayed before the lock screen, which can be the running interface of any application or the phone's main interface. In this application embodiment, it will be referred to as... Figure 1 The main interface 101 of the mobile phone shown in Figure (a) serves as the "unlock interface". Optionally, the "unlock interface" may be one or more of the following: the mobile phone displays a clock and weather control, icons of one or more applications (Apps), etc. on the wallpaper of the unlock interface. This application embodiment does not limit this.

[0081] For the display of the "always-on screen", users can add custom images to the "always-on screen" and then display the content that the user wants to display on the "always-on screen".

[0082] Figure 1 This is an example of a graphical user interface (GUI) diagram showing how a user can configure the display of their phone's always-on screen through a settings app. For instance, Figure 1 Figure (a) shows the interface 101 currently displayed on the phone in unlocked mode. This interface 101 displays a weather clock component and icons for various applications. These applications may include contacts, phone, gallery, settings, etc. It should be understood that this interface 101 may also include other applications, and this embodiment of the application does not limit this.

[0083] like Figure 1 As shown in Figure (a), when a user clicks the settings app icon, the phone displays the following in response to the user's click: Figure 1 The main interface 102 of the settings application is shown in Figure (b). The main interface 102 of the settings application can display different function areas and menus, such as a search box, user account, wireless local area networks (WLAN) menu, Bluetooth menu, desktop and wallpaper menu, display and brightness menu, sound and vibration menu, and more connection menus.

[0084] Optionally, when a user clicks the desktop and wallpaper menu, the phone displays the following in response to the user's click: Figure 1 The interface 103 shown in Figure (c) is shown in the figure. This interface 103 can display theme settings controls, always-on display controls, magazine lock screen controls, wallpaper controls, and icon controls, etc. This interface 103 can also include desktop settings options and desktop style options, etc. The desktop settings options can be used to set the layout of the mobile phone desktop, the layout of application icons, etc. The desktop style options are used to set the standard style of the mobile phone desktop (i.e., display all applications on the main page), drawer style (i.e., display all applications in the drawer interface), etc., which will not be listed here.

[0085] When a user wants to set the display style and method of the phone's always-on screen, they can perform the following steps: Figure 1 As shown in Figure (c), clicking the always-on display control 103-1 responds to the user's click, and the phone displays as shown in Figure (c). Figure 1 The interface 104 is shown in Figure (d). This interface 104 may include an always-on display switch 104-1, a preview area for the always-on display style 104-2, and a display mode setting area 104-3. The display mode setting area 104-3 is used to set the time period for the phone's always-on display, such as 06:00-23:00, which will not be elaborated further here.

[0086] In one possible implementation, the user can first execute, such as Figure 1 As shown in Figure (d) of the diagram, operation 1 involves clicking the always-on display switch, which changes the always-on display switch from off (or "OFF") to on (or "ON"). In response to the user's operation of turning on the always-on display switch, a possible always-on display style can be displayed in the preview area 104-2 of the always-on display interface. For example, this always-on display style can be a default style, or a style previously set by the user; this embodiment does not limit this. When the user wishes to modify the current always-on display style of the phone, they can perform the following... Figure 1 As shown in Figure (d) of the diagram, in operation 2, clicking the "More" option in the always-on display will cause the phone to display the following in response to the user's click: Figure 1 The interface 105 shown in Figure (e) is described above. This interface 105 may include multiple functional areas, such as a personalized image selection area, an artistic signature selection area, and a clock selection area. The personalized image selection area allows users to add images to the phone's always-on display, such as custom images or system preset images. The artistic signature selection area allows users to add personalized signatures with different fonts and styles, such as "Pursue Excellence," "Go for It," or "Go!" to the always-on display. The clock selection area allows users to choose different clock styles for the always-on display, such as dial clocks or digital clocks, which will not be described in detail here.

[0087] Optionally, users can customize the various display styles of the phone's always-on display through different functional areas of the interface 105, according to their needs and habits.

[0088] For example, taking the personalized image selection area as an example, this area can provide users with multiple system-preset images, such as preset image 1. This personalized image selection area can also provide users with a way to add custom images, for example... Figure 1 The added control 105-1 is shown in Figure (e). Figure 1 As shown in Figure (e), the user can click any area of ​​the added control 105-1. In response to the user's click, the phone can further display, as shown in Figure (e). Figure 1 Interface 106 is shown in Figure (f).

[0089] Optionally, the interface 106 may include controls 106-1, a screen-off style selection area, a time and date display switch, and a notification and battery display switch. The "time and date display switch" controls the display of the current time and date on the phone's screen-off interface; the "notification and battery display switch" controls the display of the remaining battery level on the phone's screen-off interface, and these will not be elaborated upon further.

[0090] like Figure 1 As shown in Figure (f), when the user clicks control 106-1, the phone displays the following in response to the user's click: Figure 1 The image selection interface 107 shown in Figure (g) displays an image list. Users can click the selection box for any image in the list and select that image as the target image for the phone's always-on display. The one or more images included in the image list may originate from the phone's local image library or be obtained through other means from other electronic devices, servers, etc. This embodiment of the application does not limit the source of the one or more images included in the image list.

[0091] It should be understood that in the embodiments of this application, "the image is used as the target image of the mobile phone's always-on display" can be understood as: the content of a certain area of ​​the target image is cropped as the display content of the always-on display, and the certain area can be part or all of the target image.

[0092] For example, when a user performs such Figure 1 As shown in Figure (g) 1, click and select the selection box for the target image, and then perform the following... Figure 1 In operation 2 shown in Figure (g), clicking the "OK" option will cause the phone to display the following in response to the user's action: Figure 1 The interface 108 is shown in Figure (h).

[0093] Optionally, this interface 108 is compared to Figure 1 As shown in Figure (e), interface 106 has its control 108-1 containing the content of the target image selected by the user. Furthermore, interface 108 can also display control 108-2, which the user can click to access when they wish to modify the target image of the always-on display. Figure 1 The image selection interface 107 shown in Figure (g) allows you to reselect the target image, which will not be described in detail here.

[0094] Optionally, the control 108-1 can have different shapes and sizes, such as circles, ellipses, rectangles, and squares. This embodiment will use a circular control as an example. Accordingly, the target image selected by the user can be filled into the circular control 108-1.

[0095] It should be understood that the circular control 108-1 can display part or all of the content of the target image selected by the user, and the user can perform various possible operations on the control 108-1. For example, the user can drag the target image within the control 108-1 to change the display area of ​​the target image, thereby changing the displayed content in the control 108-1; or, the user can perform operations such as selecting the target image with two fingers and pinching, or selecting the target image with two fingers and expanding, to shrink or enlarge the target image, changing the display area of ​​the target image, thereby changing the displayed content in the control 108-1; or, the user can perform operations such as selecting the target image with two fingers and rotating, changing the placement angle of the target image in the control 108-1, etc., and this application embodiment does not limit these operations.

[0096] It should also be understood that, in the embodiments of this application, "displaying the target image on the always-on display screen" refers to displaying part or all of the content of the target image within a preset area or a preset-shaped control on the always-on display screen, or in other words, displaying part or all of the elements of the target image, which will not be elaborated further hereafter. For example, such as... Figure 1 As shown in Figure (i), the preset area is a circular area slightly above the center of the display screen, or the preset shape of the control is a circular control, etc.

[0097] In one possible implementation, when the user executes such as Figure 1 In operation 1 shown in Figure (h), click and select Style 1, and keep the display time and date switch on (or "ON") and the display notification and battery switch off (or "OFF"), then execute as follows. Figure 1 As shown in Figure (h) of the diagram, in operation 2, clicking the "Apply" option responds to the user's action. Subsequently, the phone can display the current time and date, and part or all of the content of a user-defined target image on the always-on display screen, according to the user's settings. In other words, the "display content of the always-on display screen" in this embodiment can include: the content of a certain area of ​​the target image, the time, and the date.

[0098] For example, when the user follows Figure 1 After completing the always-on display settings in Figure (h), you can click anywhere in the area 108-3 indicated by the dotted box on screen 108 to preview the display effect. That is, the phone can display something like... Figure 1 The off-screen interface 109 is shown in Figure (i). Alternatively, after the user presses the phone's lock screen button to lock the screen, the screen will display as shown in Figure (i). Figure 1 The always-on screen interface 109 shown in Figure (i) is not limited in this embodiment.

[0099] For example, in the embodiments of this application, it will be used as Figure 1 Taking the always-on display interface 109 shown in Figure (i) as an example, the content that can be displayed on the always-on display interface 109 includes: the content of the circular area of ​​the target image, the current time and date. Specifically, the content of the circular area of ​​the target image is displayed in the circular control of the always-on display interface 109, and the circular control area, the time display area and the date display area can have the positional relationship shown in Figure (i), which is not limited in this embodiment of the application.

[0100] Figure 2 This is an illustration of the effect of a mobile phone transitioning from the off screen to the unlock screen.

[0101] When the user follows Figure 1 After completing the screen-off interface settings as shown in Figures (a) to (h), the phone can display the following when the screen is off: Figure 2 The screen-off interface 201 shown in Figure (a) is as follows. When the phone is in the screen-off state, and the user triggers the phone to start face recognition and unlock, the phone screen can be turned on and displayed as shown in Figure (a). Figure 2 The lock screen interface 202 shown in Figure (b) displays a lock screen icon, a "Recognizing Face" message, the current time and date, and the camera app icon. After successful face verification, the phone unlocks and displays the following: Figure 2 The unlock interface 203 is shown in Figure (c).

[0102] First, in the above process, for the always-on display 201, filling the circular control of the always-on display 201 with a user-defined target image will cause a large visual difference between the image content displayed in the circular control and the black always-on display area. The splicing or transition between the image content in the circular control and the black always-on display area is relatively abrupt, the display effect is not beautiful, and the user's visual experience is poor.

[0103] In addition, according to Figure 2As shown in Figures (a), (b), and (c), the phone can display changes in the interface during the transition from the always-on screen to the lock screen and then to the unlock screen. However, it cannot provide the user with a smooth transition animation between these screens. In other words, if the user sets different images for the target picture on the always-on screen 201, the wallpaper on the lock screen 202, and the wallpaper on the unlock screen 203, then the phone can only display changes in the interface during the transition, simply switching from one unrelated screen to another, resulting in a poor visual experience for the user. If the user sets the target image on the always-on screen 201, the wallpaper on the lock screen 202, and the wallpaper on the unlock screen 203 to be the same image, then regardless of whether the image is used as the target image on the always-on screen 201, the wallpaper on the lock screen 202, or the wallpaper on the unlock screen 203, the user sets a fixed area or fixed content to display the image. In this case, the phone can only display a transition from one fixed content to another, and it cannot present the user with the effect of a transition animation between the always-on screen, the lock screen, and the unlock screen, resulting in a poor user visual experience.

[0104] In another possible implementation, users can set the theme of their phone so that the phone dynamically changes from the always-on screen to the lock screen to the unlock screen.

[0105] Figure 3 This is another example of a user setting their phone theme through the settings app. Optionally, users can also set their phone theme through the desktop and wallpaper menu in the settings app.

[0106] For example, such as Figure 3 As shown in Figure (a), when the user clicks the settings application icon on the phone's main interface 301, the phone displays the following... Figure 3 The main interface 302 of the settings application is shown in Figure (b). When the user then clicks the Desktop & Wallpaper menu on this interface 302, the phone displays... Figure 3 Interface 303 is shown in Figure (c). When a user clicks the theme settings control on interface 303, the phone can display the following in response to the user's click: Figure 3 The theme settings interface 304 is shown in Figure (d). This theme settings interface 304 may include one or more preset themes, such as... Figure 3 The themes shown in Figure (d) include Starry Night, Coral Sea, Milky Way, and Rainbow Glass.

[0107] like Figure 3 As shown in Figure (d), when a user clicks the control for the Starry Night themed artwork, the phone displays the following in response to the user's click: Figure 3The starry night theme details interface 305 is shown in Figure (e). Users can swipe left or right on this interface 305 to preview the effects of the starry night theme. When a user clicks the "Apply" option on interface 305, the phone can change the theme to the starry night theme in response to the user's click. Optionally, the phone's preset starry night theme can present a dynamic linkage effect between the always-on display, lock screen, and unlock screen.

[0108] Figure 4 This is another example illustrating the transition from the always-on screen to the unlock screen on a mobile phone. When a user sets this starry night theme to their phone, the phone can display the following effect when the screen is off: Figure 4 The always-on display 401 shown in Figure (a) displays the starry night artwork in a circular control. When the phone is in the always-on state, and the user triggers face recognition to unlock the phone, the screen can be turned on and the artwork displayed is shown in Figure (a). Figure 4 The lock screen interface 402 shown in Figure (b) features a starry night artwork as wallpaper and displays the lock screen icon, a "Recognizing Face" message, the current time and date, and the camera app icon. After successful face verification, the phone unlocks and displays the following: Figure 4 The unlock screen 403 shown in Figure (c) can also be set as a wallpaper featuring a starry night painting.

[0109] Optionally, from Figure 4 Figure (a) in the middle— Figure 4 Figure (b) in the middle— Figure 4 As shown in diagram (c), during the transition from the always-on display to the lock screen and then to the unlock screen, the starry sky image dynamically expands from a small area to the full screen, creating a beautiful and dynamic effect. While this process provides a dynamic change in content between the always-on display, lock screen, and unlock screen, this effect is only applicable to a few preset phone themes. User-taken or personally liked images cannot be used as wallpapers; that is, it cannot achieve the dynamic effect based on user-customized images, thus failing to meet users' personalized needs.

[0110] Therefore, to improve the user's visual experience during the unlocking process, this application provides a method for generating theme wallpapers. This method can apply user-defined images to the theme wallpaper of an electronic device, achieving a dynamic linkage effect between the content of the always-on screen, lock screen, and unlock screen, thereby enhancing the user's visual experience. The technical solutions in this application will now be described with reference to the accompanying drawings.

[0111] First, it should be noted that in the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0112] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0113] The method for generating theme wallpapers provided in this application embodiment can be applied to electronic devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application embodiment does not impose any restrictions on the specific type of electronic device.

[0114] For example, Figure 5This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. The electronic 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, a headphone jack 170D, a sensor module 180, buttons 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, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.

[0115] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0116] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0117] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0118] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0119] In this embodiment of the application, the processor 110 stores the program or instructions corresponding to the method for generating theme wallpapers in this embodiment of the application. The method can control: the electronic device 100 to determine the user-defined target image, and perform image processing such as detection and recognition of the target image, and cut out the target elements in the image, as well as determine the different transition methods and transition animations corresponding to the user's settings for the switching process of the mobile phone's screen-lock screen-unlock screen, so as to present the user with a dynamic linkage and one-shot animation effect during the switching process of the screen-lock screen-unlock screen, that is, to generate a dynamic theme wallpaper for the user based on the target image selected by the user.

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

[0121] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0122] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0123] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0124] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0125] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.

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

[0127] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0128] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0129] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0130] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0131] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0132] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0133] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G / 6G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0134] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0135] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0136] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0137] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0138] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0139] In this embodiment of the application, when the electronic device 100 is Figure 1 When the phone is shown, the phone's display screen 194 can receive user operations and present the user with a dynamic linkage effect during the switching process of the screen off interface, lock screen interface, and unlock interface.

[0140] In addition, users can perform operations such as clicking, double-clicking, and swiping on the display screen 194. The content displayed on the display screen 194 of the electronic device 100 responds to the user's operation and displays different interfaces, which will not be elaborated here.

[0141] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0142] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0143] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0144] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0145] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0146] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0147] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0148] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

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

[0150] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0151] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0152] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0153] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0154] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0155] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0156] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0157] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0158] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0159] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.

[0160] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0161] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0162] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0163] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0164] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.

[0165] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0166] In this embodiment, the touch sensor 180K can detect user touch, click, double-click, swipe and other operations, and transmit the user operation to the processor 110, which then responds.

[0167] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.

[0168] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0169] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0170] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0171] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0172] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android® system as an example to illustrate the software structure of electronic device 100.

[0173] Figure 6 This is a software architecture block diagram of an example electronic device 100 provided in an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android® system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android® runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0174] like Figure 6As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0175] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0176] like Figure 6 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0177] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, and participate in operations such as locking the screen and capturing the screen.

[0178] Content providers are used to store and retrieve data, making that data accessible to applications. The stored data can include video data, image data, audio data, and may also include call logs, user browsing history, bookmarks, and other data, which will not be elaborated upon here.

[0179] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0180] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including call connection, call termination, etc.).

[0181] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and so on.

[0182] The notification manager allows applications to display notifications in the screen's status bar, conveying messages to the user. These notifications disappear automatically after a brief appearance in the status bar, without requiring user interaction such as closing the app. For example, the notification manager can inform the user that a download is complete. The notification manager can also appear as an icon or scrolling text bar in the top status bar, such as notifications from background applications; alternatively, it can appear as a dialog box on the screen, such as a text message in the status bar; furthermore, the notification manager can control electronic devices to emit sounds, vibrate, and flash indicator lights, among other things. These details will not be elaborated upon here.

[0183] The Android® runtime consists of core libraries and a virtual machine. The Android® runtime is responsible for scheduling and managing the Android system.

[0184] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0185] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0186] The system library can include multiple functional modules. For example: surface manager, media libraries, three-dimensional (3D) graphics processing libraries (e.g., OpenGL ES), two-dimensional (2D) graphics engines, etc.

[0187] The Surface Manager is used to manage the display subsystem of electronic devices and provides the blending of 2D and 3D layers for multiple applications.

[0188] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0189] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0190] A 2D graphics engine is a drawing engine for 2D drawing.

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

[0192] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 5 and Figure 6 Taking the mobile phone with the structure shown as an example, and in conjunction with the accompanying drawings and application scenarios, the process of generating theme wallpapers provided in this application embodiment will be specifically described.

[0193] In one possible implementation, users can configure the switching rules and dynamic effects of the phone's always-on screen, lock screen, and unlock screen through a settings application.

[0194] Figure 7 This is a schematic diagram illustrating an example of a user setting a mobile phone theme wallpaper through a settings application, provided in an embodiment of this application.

[0195] For example, a user can execute the following commands in sequence: Figure 7 Figure (a) in the middle— Figure 7 Figure (b) in the middle— Figure 7 The operation shown in Figure (c) responds to the user's action, and the phone displays as shown below. Figure 7 The theme settings interface 704 shown in Figure (d) can be referred to in the preceding text. Figure 3 For the sake of simplicity, the relevant descriptions in the document will not be repeated here.

[0196] Optionally, such as Figure 7 As shown in Figure (d), the theme settings interface 704 can display a custom theme control 704-1, as well as several preset theme controls such as Starry Night Theme, Galaxy Theme, and Rainbow Glass Theme. The custom theme control 704-1 provides users with an entry point for adding custom themes, allowing them to add custom theme wallpapers to the system.

[0197] For example, the user performs such Figure 7 As shown in Figure (d), clicking the custom theme control 704-1 on the theme settings interface 704 will cause the phone to display the following in response to the user's click: Figure 7 The interface 705 is shown in Figure (e). This interface 705 may include controls 705-1, a theme style selection area, a time and date display switch, a notification display switch, and a battery level display switch.

[0198] Optionally, the interface 705 may also include control 705-2, and the theme style selection area may include control 705-3. Users can click on any one of control 705-1, control 705-2, and control 705-3 to trigger the phone to display, for example... Figure 7 The image selection interface 706 shown in Figure (f) is not limited in this embodiment.

[0199] For example, the user performs such Figure 7 As shown in Figure (e), when the user clicks control 705-3, the phone displays the following in response to the user's click: Figure 7 The image selection interface 706 shown in Figure (f) can display an image list, which may include one or more images.

[0200] Optionally, the images included in the image list may be from the phone's local photo library or obtained by requesting images from other electronic devices, servers, etc. in other ways. This application embodiment does not limit the source of one or more images included in the image list.

[0201] Users can click the selection box of any image in the image list. In this embodiment of the application, the image selected by the user is called the "target image". It is assumed that the display content of the target image (or "display elements", "main elements", etc.) includes: bamboo forest, sun and clouds, little girl.

[0202] It should be understood that, in this embodiment of the application, after the user selects the "target image," the phone's always-on screen, lock screen, and unlock screen can be generated based on the "target image." Specifically, part or all of the display area of ​​the "target image" can be displayed on the phone's always-on screen, and part or all of the display area of ​​the "target image" can also be used as the wallpaper for the lock screen and the unlock screen. In other words, a new theme wallpaper can be generated for the phone based on the "target image" selected by the user.

[0203] Optionally, the "target image" displayed on part or all of the screen on the phone's always-on display, and the part or all of the display area displayed when the "target image" is used as wallpaper on the lock screen (or unlock screen), can be different areas or the same area. In other words, the content displayed by the "target image" on the phone's always-on display and the content displayed when the "target image" is used as wallpaper on the lock screen (or unlock screen) can be the same or different.

[0204] Accordingly, the portion or all of the display area shown when the "target image" is used as the wallpaper on the lock screen and the portion or all of the display area shown when the "target image" is used as the wallpaper on the unlock screen can be different areas or the same area. In other words, the content displayed when the "target image" is used as the wallpaper on the lock screen and the content displayed when the "target image" is used as the wallpaper on the unlock screen can be the same or different.

[0205] It should also be understood that the portion or all of the display area of ​​the "target image" on the lock screen is the "lock screen wallpaper," and the portion or all of the display area of ​​the "target image" on the unlock screen is the "unlock screen wallpaper." Optionally, users can adjust the display area of ​​the "target image" on the phone's always-on screen, or adjust the display area of ​​the "target image" when used as the lock screen wallpaper, or adjust the display area of ​​the "target image" when used as the unlock screen wallpaper, through different operations.

[0206] For example, when a user performs such Figure 7 As shown in Figure (f), in operation 1, click and select the selection box of the target image, and then perform the following... Figure 7 In operation 2 shown in Figure (f), clicking the "OK" option will cause the phone to display the following in response to the user's action: Figure 7 Interface 707 is shown in Figure (g).

[0207] It should be understood that interface 707 can also be called a "wallpaper preview interface for the unlock screen," which can display a preview of the target image as the wallpaper for the unlock screen after the phone is unlocked. In other words, users can preview the display area of ​​the target image as the wallpaper through interface 707, that is, preview and view the content displayed when the target image is used as the wallpaper for the unlock screen. For example, the content displayed on interface 707 may include: bamboo forest, sun and clouds, and a little girl. Optionally, users can click on any position on interface 707 (or the target image) and perform left swipe (left shift) or right swipe (right shift) operations to adjust the display area of ​​the wallpaper for the unlock screen. For example, users can adjust the position of the target image so that the displayed content in the target image (e.g., bamboo forest, sun and clouds, little girl) is located in the center display area of ​​the screen.

[0208] Alternatively, users can perform two-finger selection and pinch, or two-finger selection and expand, to zoom in or out on the target image, adjusting the display area of ​​the target image when it is used as the wallpaper on the unlock screen.

[0209] Alternatively, users can perform a two-finger selection and rotation operation to change the placement angle of the target image in the control 108-1, etc. This application embodiment does not limit this.

[0210] In one possible implementation, once the user has adjusted the display area of ​​the target image, i.e. determined the display content of the target image, the user can manually select the target element that the always-on display interface will present to the user from the display content of the target image.

[0211] Optionally, the user can determine the target element of the always-on display by swiping their finger. The target element may include one or more elements, which is not limited in this embodiment.

[0212] For example, a user can perform actions such as Figure 7 In operation 1 shown in Figure (g), the user clicks point A and uses point A as the starting point for sliding. Following the direction indicated by the dashed line with arrows, the user slides to point B and releases. In response to the user's sliding operation, the mobile phone can automatically display a dashed frame 707-1 on the interface 707 according to the sliding trajectory A-B. The elements included in the dashed frame 707-1 will serve as the target elements of the always-on display.

[0213] Optionally, after the dashed box 707-1 is automatically displayed on interface 707, the user can perform the following actions: Figure 7 As shown in Figure (g) of the operation 2, when the user clicks the "∨ (check mark)" option, the phone can detect and identify the elements included in the dashed box 707-1 in response to the user's click operation, and perform image cutout processing on the identified target element, only extracting the target element in the dashed box 707-1 and displaying it on the always-on display screen.

[0214] It should be understood that the dashed box 707-1 determined by the user's sliding trajectory A-B may include one or more elements. The mobile phone can select one element as the target element from the dashed box 707-1, or it can select multiple elements as the target elements at the same time. This application embodiment does not limit this.

[0215] Optionally, the mobile phone can determine the target element from one or more elements based on a variety of possible preset rules. For example, the preset rules may include any one or more of the following: (1) The “target element” can be the owner of the mobile phone. For example, when facial information is detected in the “target image”, it is determined whether the person is the owner of the mobile phone based on the facial information. If the “target image” includes the owner of the mobile phone, the owner of the mobile phone can be identified as the target element, and the display position of the dashed box 707-1 can be determined according to the display area of ​​the owner of the mobile phone. In this case, the mobile phone can identify the user corresponding to the facial information entered by the user for unlocking and identity verification as the owner of the mobile phone.

[0216] (2) The “target element” can be fixed content set by the user. For example, if the user sets the “target element” to a person, when the mobile phone detects that the target image includes multiple types such as people, animals, and plants, the mobile phone can identify the person as the “target element”.

[0217] (3) The “target element” can be the content that appears most frequently in one or more pictures stored on the mobile phone.

[0218] For example, if the phone detects that the user's pet appears most frequently among N images stored in the local gallery, and if the target image contains the user's pet, then the user's pet is identified as the "target element".

[0219] Alternatively, the phone can acquire facial features from multiple albums in its local photo library, such as family albums and friends albums, and sort them in descending order of frequency of each facial feature. When the target image contains multiple people, the phone can query the frequency of each of those people in the local photo library, identify the person with the highest frequency as the target element, and then determine the display position of the dashed box 707-1 based on the display area of ​​the target element. For example, if the dashed box 707-1 contains two people, and the phone detects that both are family members of the user, it can treat both as target elements and perform image cutout processing. If the phone detects that only one of the two people is a family member of the user, it can treat that family member as the target element and perform image cutout processing only on that family member. Specifically, the phone can compare the features with photos in the local photo library (such as facial information that may be included in the family album) to determine whether the dashed box 707-1 includes the user's family members, friends, etc., which will not be elaborated further here.

[0220] (4) The “target element” can be the content that has been marked or favorited most times by the user in one or more pictures stored on the mobile phone. For example, if the mobile phone detects that among the N pictures stored in the local gallery, multiple pictures that have been favorited or marked by the user include the user’s pet, and if the target picture includes the user’s pet, the user’s pet is identified as the “target element”.

[0221] (5) The “target element” can be the content with the highest display priority in a preset element set. The preset element set includes one or more types of elements, and each type of element corresponds to a different display priority. For example, if the user sets the priority of people > animals > buildings > plants, etc. in descending order, if the priority of the multiple elements included in the target image is detected, the element with the highest priority will be determined as the “target element”.

[0222] Optionally, the various preset rules listed above can also correspond to different priority orders. For example, when the various preset rules mentioned above exist at the same time, the electronic device can first determine the target element according to the rule of (1). When the rule of (1) does not meet the current scenario, the target element can be determined according to the rule of (2), and so on. This application embodiment does not limit this.

[0223] like Figure 7 As shown in Figure (g) of the diagram, in operation 2, after the user clicks the "∨ (checkmark)" option and the phone recognizes that the selected target element is a "little girl," the target element "little girl" can be cut out and displayed as shown in the diagram. Figure 7The interface 708 shown in Figure (h) can optionally be understood as: a preview interface for displaying the always-on screen of the mobile phone to the user, and providing the user with a way to switch between the always-on screen and the lock screen.

[0224] For example, such as Figure 7 As shown in Figure (h), the interface 708 may include a screen-off preview area 708-1 indicated by a dashed box. The screen-off preview area 708-1 presents to the user the effect of the target element "little girl" displayed on the screen-off interface after the cutout process. For example, the screen-off preview area 708-1 has a black background color and displays the target element "little girl", time and date according to the screen-off style set by the user.

[0225] Optionally, the user can tap any location within the always-on display preview area 708-1. When the user performs the first tap, the phone can display a full-screen preview of the always-on display interface, such as... Figure 9 The always-on screen interface 901 shown in Figure (a) is different from... Figure 2 The always-on screen 201 shown in Figure (a) and Figure 4 The always-on display 401 shown in Figure (a) may not include the circular control in the full-screen always-on display 901, and only displays the cutout target element "little girl". When the phone detects that the user performs a second click operation at any position in the full-screen preview of the always-on display, the phone can exit the full-screen preview of the always-on display, return to and display as shown in Figure (a). Figure 7 The interface 708 shown in Figure (h) will not be described further here.

[0226] It should be understood that, in order to better present the outline of the target element "little girl" after image cutout processing in the accompanying drawings provided in this application embodiments, the little girl filled with black is changed to filled with white and displayed on the always-on display screen. This color change is only for illustration and does not limit the solution provided in this application embodiment. In actual implementation, the little girl can retain her original color and be displayed on the always-on display screen simply according to her outline, which will not be described further below.

[0227] In addition, the interface 708 may also include a transition animation selection area, which provides users with various animation effects corresponding to the switching process from the always-on screen to the lock screen, such as transition mode 1, transition mode 2, etc., with each transition mode corresponding to different animation effects.

[0228] Optionally, the animation effect includes, but is not limited to, one or more of the following: sliding in, page turning, flying, falling, fading in / out, grid, pushing, flipping, scaling, etc. This application embodiment does not limit the transition method and animation effect from the always-on display to the lock screen. Users can also perform left swipe (left-shift) and right swipe (right-shift) operations in the selection area of ​​the transition animation to view more transition methods, which will not be elaborated here.

[0229] It should be understood that in the embodiments of this application, each transition method may correspond to different configuration parameters. These configuration parameters may include: information such as the display area and display elements of the target image at each moment during the switching process of the mobile phone from the always-on screen to the lock screen to the unlock screen, as well as information such as the size change, coordinate change and position change of each element in the target image. The embodiments of this application do not limit this.

[0230] For example, a user can perform actions such as Figure 7 As shown in Figure (h) in Operation 1, the user clicks and selects the "Transition Method 1" control, performs Operation 2, and clicks the "Next" option. In response to the user's operation, the mobile phone can display as shown below. Figure 7 Interface 709 is shown in Figure (i).

[0231] Optionally, this interface 709 can be understood as: a wallpaper preview interface for displaying the phone's lock screen to the user, and providing the user with a way to switch between setting the lock screen and the unlock screen.

[0232] For example, such as Figure 7 As shown in Figure (i), the interface 709 may include a lock screen preview area 709-1, indicated by a dashed box. This lock screen preview area 709-1 presents the user with the display content and effect of the wallpaper on the lock screen, specifically showcasing the display effect of the target element "little girl" on the lock screen. For example, the lock screen preview area 709-1 may use the background of a portion of the original target image as background content (such as the background shown in gray in the lock screen preview area 709-1), and display the target element "little girl" after it has been enlarged and cut out, multiplied by a certain factor, on this background content.

[0233] For example, such as Figure 7As shown in Figure (i), in the lock screen preview area 709-1, the target element "little girl" after the cutout process can be displayed at a large magnification ratio, and the background of a portion of the little girl's image on the original target image can be used as the background content. The background content and the target element "little girl" together form the wallpaper of the lock screen interface. Optionally, the background of this portion of the image can be magnified at a smaller magnification ratio as the background content of the target element "little girl", or the background of this portion of the image can have the same magnification ratio as the target element "little girl". This embodiment of the application does not limit this.

[0234] It should be understood that "background content" or "background" here refers to all content or elements on the original target image other than the target element "little girl", such as bamboo forest, sun and clouds, sky, etc.

[0235] Optionally, in the specific implementation process, the lock screen preview area 709-1 can display a preview interface that is consistent with the content of the lock screen interface, such as lock screen icon, time and date, etc.; or, limited by the size of the lock screen preview area 709-1, it can only display the wallpaper preview interface of the lock screen interface to the user, that is, it does not include lock screen icon, time and date, etc., and displays the wallpaper of the lock screen interface formed by background content and target element "little girl" to the user. This application embodiment does not limit this.

[0236] Optionally, the user can tap any location within the lock screen preview area 709-1. When the user's first tap is detected, the phone can display a full-screen preview of the lock screen wallpaper (without displaying the lock screen icon, time, date, etc.), or display something like... Figure 9 The lock screen interface 902 shown in Figure (b) (displaying the lock screen icon, time and date, etc.) can be called a "full-screen preview interface".

[0237] Different from Figure 2 The always-on screen 202 shown in Figure (b) and Figure 4 As shown in Figure (b), the off-screen interface 402, in the full-screen lock screen interface 902, can further display the cutout target element "little girl" to the user, and the target element "little girl" in the lock screen interface 902 is enlarged and can be displayed more prominently. When the user is detected to perform a second click operation at any position in the full-screen preview interface, the phone can exit the full-screen preview interface, return and display as shown in Figure (b). Figure 7 The interface 709 shown in Figure (i) will not be described further here.

[0238] In addition, the interface 709 may also include a transition animation selection area, which provides users with various animation effects corresponding to the transition from the lock screen to the unlock screen (such as the desktop wallpaper of the main screen), such as transition method 4, transition method 5, etc., each transition method corresponding to different animation effects. Optionally, the animation effects include, but are not limited to, one or more of the following: slide in, page turn, fly, fall, fade in / out, grid, push, flip, zoom, etc. This application embodiment does not limit the transition methods and animation effects from the lock screen to the unlock screen. Users can also perform left swipe (left move) and right swipe (right move) operations in the transition animation selection area to view more transition methods, which will not be elaborated here.

[0239] For example, a user can perform actions such as Figure 7 In operation 1 shown in Figure (i), the user clicks and selects the "Transition Method 5" control, performs operation 2, and clicks the "Complete" option. In response to the user's operation, the process of generating a custom theme for the mobile phone based on the target image selected by the user is completed. This custom theme can achieve the linkage switching effect of the always-on screen, the lock screen, and the unlock screen.

[0240] In another possible implementation, after the user selects a target image and adjusts the display area and element sizes, the phone can automatically detect and identify one or more elements within the target image's display area, and automatically determine the target element for the user based on preset rules. Optionally, these preset rules can refer to the aforementioned... Figure 7 For the sake of simplicity, the relevant information will not be repeated here.

[0241] For example, such as Figure 7 As shown in Figure (g), the interface 707 can trigger the phone to automatically detect and identify one or more elements in the target image (desktop wallpaper) during the user's preview of the desktop wallpaper. According to preset rules, one of the one or more elements is identified as the target element, and a dashed frame 707-1 is automatically displayed on the interface 707. The elements included in the dashed frame 707-1 are the target elements of the screen-off interface.

[0242] Optionally, when the mobile phone automatically detects and identifies an element in the target image (desktop wallpaper) as the target element, and automatically displays a dashed frame 707-1 on the interface 707, if the result of the automatic identification is not what the user expects, for example, the user does not expect "little girl" as the target element, but expects "bamboo forest" as the target element, then the user can manually drag the dashed frame 707-1 to the display area of ​​the bamboo forest. In response to the user's dragging operation, the mobile phone can re-identify "bamboo forest" as the target element, and automatically adjust the size of the dashed frame 707-1 so that the dashed frame 707-1 can accommodate the "bamboo forest" in the target image. This will not be elaborated further here.

[0243] It should be understood that the embodiments of this application can also set rules for the mobile phone to determine the target element from the target image, or rules for determining the display position of the dashed box 707-1, through more methods, more detailed element classification and priority order arrangement, etc., and the embodiments of this application do not limit this.

[0244] In another possible implementation, when a user selects a target image, the phone can automatically detect and identify one or more elements within that image. When multiple elements are detected in the target image, the phone can automatically display multiple dashed boxes 707-1 on interface 707, meaning each element corresponds to a dashed box, indicating the detected elements to the user. The user can click on any of the multiple dashed boxes to designate the element within that selected box as the target element.

[0245] For example, such as Figure 7 As shown in Figure (g) of the interface 707, during the user's preview of the desktop wallpaper, the phone can automatically detect and identify one or more elements in the target image. When the target image is detected to include three elements: bamboo forest, sun and clouds, and little girl, three dashed boxes can appear. The user can click on the dashed box 707-1 where the little girl is located. In response to the user's click operation, the phone can identify the "little girl" in the selected dashed box 707-1 as the target element.

[0246] Through the above implementation, in the process of generating a mobile phone theme based on the target image selected by the user, various possible methods can be used. For example, the mobile phone can automatically detect and identify the target element in the target image, or the target element in the target image can be determined based on the user's operation. The target element can be used as a display element on the always-on display screen or as a prominent display element on the lock screen. The display process of the target element can better meet the user's display needs, thereby improving the user experience.

[0247] In another possible implementation, in addition to following the above... Figure 7The method described above, based on the Settings app, allows you to set the switching rules and dynamic effects for the phone's always-on screen, lock screen, and unlock screen. This process can also be achieved through the Gallery app.

[0248] Figure 8 This is another example illustrating how a user sets a mobile phone theme wallpaper through a gallery application, as provided in this application embodiment. The user can click as shown... Figure 1 The icon of the gallery application on the main screen 101 of the mobile phone shown in Figure (a) allows you to enter the gallery application and find the desired target image. This process can be referred to in the implementation of existing solutions, and will not be described in detail here for the sake of simplicity.

[0249] For example, the phone displays as follows Figure 8 The image details interface 801 shown in Figure (a) is assumed to display the image that the user expects to generate a mobile phone theme wallpaper. The image details interface 801 also includes a bottom menu bar for displaying share, favorites, edit, delete, and more menus. Users can perform actions such as... Figure 8 As shown in Figure (a), clicking the "More" menu will automatically display the following in response to the user's click: Figure 8 The interface 802 shown in Figure (b) may include a window 802-1, which includes more menus or more options that the user can select, such as move, copy, add notes, more editing, play slideshow, print or generate PDF, rename, set as, rotate, etc. The embodiments of this application do not limit the menus or options displayed in window 802-1.

[0250] When the user executes such Figure 8 As shown in Figure (b), clicking the "Set as" menu will cause the phone to display the following in response to the user's click: Figure 8 The interface 803 shown in Figure (c) may include a window 803-1, which includes one or more uses for the image, such as a contact photo option, an always-on display option, and a super wallpaper option. The "contact photo" option allows the target image to be set as the avatar of any contact in the phone's address book; the "always-on display" option allows the target image to be set as the image for always-on display only; and the "super wallpaper" option allows the phone to generate a custom theme based on the target image, as provided in this application embodiment. Specifically, the "target image" will serve as the image for the phone's always-on display, as the wallpaper for the lock screen when the phone is on and locked, and as the wallpaper for the unlock screen after the phone is unlocked.

[0251] For example, the user performs such Figure 8As shown in Figure (c), clicking the "Super Wallpaper" option will cause the phone to display the following in response to the user's click: Figure 8 The interface 804 shown in Figure (d) is the "wallpaper preview interface for the unlock screen". This interface 804 and the subsequent setup process can be found in the previous section. Figure 7 (g) diagram in the middle — Figure 7 (h) diagram in the middle — Figure 7 The process described in Figure (i) will not be repeated here for the sake of simplicity. The following is an example of one possible implementation.

[0252] One possible implementation is, such as Figure 8 As shown in Figure (c) of the interface 804, the user can preview the display area, display elements, and size of the display elements when the target image is used as the wallpaper for the unlock screen. Simultaneously, the phone can automatically detect and identify one or more elements in the target image. When multiple elements are detected in the target image, the phone can automatically display multiple dashed boxes on interface 804. Each dashed box can contain one element or one type of element, used to prompt the user about the detected multiple elements.

[0253] For example, such as Figure 8 As shown in Figure (c), dashed box 804-1 can define the identified "little girl," dashed box 804-2 can define the identified "bamboo forest," and dashed box 804-3 can define the identified "sun and clouds." The user executes as follows... Figure 8 As shown in Figure (c), operation 1 allows users to click on any area of ​​the dashed box 804-1. The mobile phone can then identify the element "little girl" in the dashed box 804-1 as the target element.

[0254] The user then executes, such as Figure 8 As shown in Figure (d) 2, clicking the "∨ (checkmark)" option responds to the user's action. The phone can then cut out the target element "little girl" and display it as shown in Figure (d). Figure 8 The interface 805 is shown in Figure (e). Continuing, the user performs the following actions on this interface 805: Figure 8 As shown in Figure (e), operations 1 and 2 involve clicking and selecting the "Transition Method 1" control, and then clicking the "Next" option. In response to the user's actions, the phone can display the following... Figure 8 The interface 806 is shown in Figure (f). Further, the user can perform actions such as... Figure 8As shown in Figure (f), operations 1 and 2 are performed by clicking and selecting the "Transition Method 5" control, and then clicking the "Complete" option. In response to the user's operation, the process of generating a custom theme for the mobile phone based on the target image selected by the user is completed. This custom theme can achieve a linkage switching effect between the always-on screen, the lock screen, and the unlock screen.

[0255] It should be understood that, Figure 8 In diagrams (e) and (f), the user does not need to perform operation 1, i.e., the user does not need to manually select a transition method; the system can generate the interface switching animation according to the default transition method. Alternatively, the user can manually reselect the desired transition method according to their needs; this embodiment does not limit this. It should also be understood that the interface content of interfaces 805 and 806 can refer to the foregoing... Figure 7 For the sake of simplicity, the relevant descriptions of the (h) and (i) plots will not be repeated here.

[0256] The above implementation provides users with another way to generate mobile phone themes based on target images. Users can... Figure 7 or Figure 8 The method described above generates a custom theme for the phone based on the target image selected by the user. This custom theme allows the "target element" in the target image to be displayed on the always-on display screen. The "target element" can also be the main content displayed on the lock screen, making the display process of the target element more in line with the user's display needs, thereby improving the user experience.

[0257] Figure 9 This is a schematic diagram illustrating the effect of a mobile phone transitioning from a sleep screen to an unlock screen, as provided in an embodiment of this application.

[0258] like Figure 9 As shown, when the phone screen is off, it can display something like this: Figure 9 The always-on display 901 shown in Figure (a) displays the target element "little girl" from the target image, along with the time and date information in white (or transparent). The target element "little girl" is extracted from the target image; that is, the always-on display 901 does not include the bamboo forest, sun, clouds, or other elements from the target image besides the little girl.

[0259] It should be understood that the background color of the always-on screen 901 on the mobile phone is generally black. Therefore, in order to better display the "time and date content" to the user, it can generally be processed by color inversion. For example, the black always-on screen displays the time and date content in white, which makes it easier for the user to obtain the time and date information more clearly and quickly. In this embodiment, the always-on screen 901 may also include other background colors. For different background colors, the "time and date content" can also display white or other colors with more obvious contrast. This embodiment does not limit the color inversion process, the background color of the always-on screen, or the display color of the "time and date content".

[0260] In one possible implementation, the background color of the always-on display and the display color of the "time and date" can be determined based on the color tone of the user-defined "target image" or "target element," resulting in a better visual effect for the "target element" on the always-on display. For example, if the color tone of the "target element" is a warm color such as orange-red, the background color of the always-on display can also be displayed as a warm color of the same type, such as yellow, and the display color of the "time and date" can be displayed as a cool color with a clear contrast, such as blue. This application embodiment does not limit this.

[0261] In the above process, firstly, the always-on display 901 does not include a circular control area, unlike... Figure 2 The always-on screen 201 shown in Figure (a) and Figure 4 The always-on display 401 shown in Figure (a) can avoid a large visual difference between the image content in the circular control area and the black always-on display area, making the splicing or transition between the target image content and the always-on display interface smoother, the display effect more beautiful, and improving the user's visual experience.

[0262] Furthermore, when the phone is in a screen-off state, and the user triggers facial recognition to unlock it, the screen can be turned on and gradually displayed using the user-defined "transition method 1" dynamic effect, as shown below. Figure 9 The lock screen interface 902 shown in Figure (b) can display a lock screen icon, a "Recognizing face" message, the current time and date, and an icon for the camera application, etc.

[0263] Optionally, using the target element "little girl" as a reference, the changes in the phone's display during the transition from the always-on screen 901 to the lock screen 902 may include a combination of one or more of the following effects: (1) The target element "little girl" selected by the user can gradually increase in size from a smaller size at a certain rate of change until it is displayed at a larger size as shown on the lock screen interface 902. For example, the size of the target element "little girl" can be increased from a smaller size to a larger size as shown on the lock screen interface 902. Figure 9The width shown in figure (d) and height Gradually changed into Figure 9 The width shown in figure (e) and height .

[0264] (2) The display position of the target element "little girl" can be gradually moved from a first preset area slightly above the screen to a second preset area slightly below the center of the screen. For example, taking the physical center of gravity (hollow point) of the target element "little girl" as a reference point, the change in the display position of the target element "little girl" can be as follows: Figure 9 As shown in Figure (e), starting from the initial position C, the path gradually moves along the trajectory marked with arrows (black solid line) to... Figure 9 Point D is shown in Figure (e).

[0265] (3) While displaying the target element "little girl" on the lock screen interface 902, the background content is still a portion of the background of the "little girl" in the original target image. The combination of the target element "little girl" and the background content serves as the wallpaper of the lock screen interface. For example, such as Figure 9 As shown in Figure (b), the background content of the phone's lock screen 902 (e.g., the background content shown in gray) can be derived from... Figure 8 The background content of the original target image shown in Figure (a) is a portion of the background content (e.g., the background content shown in gray). Optionally, the background content of the lock screen 902 is obtained by magnifying a portion of the background of the original target image, and this magnification ratio can be the same as or different from the magnification ratio of the target element "little girl".

[0266] Optionally, the "partial area of ​​the original target image" can be an area centered on the target element "little girl" and whose outline distance from the target element "little girl" is within a preset range. This application embodiment does not limit this.

[0267] During the lock screen phase described above, as the phone switches from the off screen 901 to the lock screen 902, it can present the user with a dynamic change effect of the target element "little girl". This process adds fun and enhances the user's visual experience.

[0268] Finally, if facial recognition verification is successful, the phone will unlock successfully and display the following message: Figure 9 The unlock interface 903 is shown in Figure (c).

[0269] Optionally, during the transition from the lock screen 902 to the unlock screen 903, the screen can be gradually displayed using the user-defined "transition method 5" dynamic effect, as shown below. Figure 9The unlock interface 903 shown in Figure (c) can be used as... Figure 8 The original target image shown in Figure (a) is used as the wallpaper for the unlock screen, and displays the weather clock component at the bottom of the phone's main screen, as well as applications in the bottom area.

[0270] Optionally, using the target element "little girl" as a reference, the changes in the phone's appearance during the transition from the lock screen 902 to the unlock screen 903 may include a combination of one or more of the following effects: (1) The target element "little girl" selected by the user can be gradually reduced in size from a larger size at a certain rate until it is displayed at the final size shown on the lock screen interface 903. For example, the size of the target element "little girl" can be changed from a larger size to a smaller size at a certain rate. Figure 9 The width shown in figure (e) and height Gradually changed into Figure 9 The width shown in figure (f) and height .

[0271] (2) The display position of the target element "little girl" can be gradually moved from the second preset area slightly below the center of the screen until it is restored to the position set by the user. Figure 8 (d) diagram or Figure 7 The image (g) shows a preview of the wallpaper on the unlock screen. For example, using the physical center of gravity (hollow point) of the target element "little girl" as a reference point, the display position of the target element "little girl" is from... Figure 9 Point D, as shown in Figure (e), continues along... Figure 9 The trajectory of the black solid line with arrows shown in Figure (f) moves and eventually stops at... Figure 9 Point E is shown in diagram (f). The final position of the target element, the "little girl," can be presented to the user as shown in... Figure 8 (d) diagram or Figure 7 The preview of the desktop wallpaper set in image (g) is shown.

[0272] (3) During this process, the wallpaper of the lock screen interface 902 can also present a dynamic effect of gradually zooming out (gradually shrinking), and finally the wallpaper of the lock screen interface 902 can present to the user as follows: Figure 8 (d) diagram or Figure 7 The preview effect of the wallpaper set in (g) is shown in the image, and the content of the wallpaper of the unlock interface 903 is consistent with the content of the display area selected by the user in the original target image.

[0273] It should be understood that in the embodiments of this application, each transition method may correspond to different configuration parameters. These configuration parameters may include: information such as the display area and display elements of the target image at each moment during the switching process of the mobile phone from the always-on screen to the lock screen to the unlock screen, as well as information such as the size change, coordinate change and position change of each element in the target image. The embodiments of this application do not limit this.

[0274] During the unlocking phase described above, as the phone switches from the lock screen 902 to the unlock screen 903, it presents the user with dynamic changes in the target element and ultimately displays the wallpaper set by the user for the unlock screen. This process adds fun and enhances the user's visual experience.

[0275] In summary, through the method of this application embodiment, users can set any image as the theme wallpaper of their mobile phone according to their own preferences and needs. The method can present a dynamic linkage effect during the switching process of the user-defined image, such as detection and recognition of the image, and cutout of the target elements in the image, as well as the different transition methods and transition animations corresponding to the user-set screen-lock screen-unlock screen switching process, thereby providing users with a seamless visual experience.

[0276] Therefore, users can choose any photo they've taken, such as a family photo or a friend's commemorative photo, and use that photo as the base for displaying wallpapers on the always-on screen, lock screen, and unlock screen. This allows users to highlight specific elements (such as a child's portrait) on these screens. Furthermore, different animation effects are added during the transition between the always-on screen, lock screen, and unlock screen, generating dynamically changing theme wallpapers and providing a seamless viewing experience. This method offers users an unlimited selection of themes, avoiding reliance on system-preset themes. It achieves dynamic interaction during the always-on screen, lock screen, and unlock screen transitions, meeting diverse user needs and enhancing the user experience.

[0277] In the above embodiments, taking a user-defined image (i.e., the "target image") as an example, the process of generating the always-on screen, lock screen, and unlock screen of the mobile phone based on the image is introduced. In one possible implementation, the user can also select multiple images at the same time and generate the always-on screen, lock screen, and unlock screen of the mobile phone based on the multiple images.

[0278] Optionally, the multiple images may be from the phone's local image library or from multiple frames of a video clip. This application embodiment does not limit the source of the multiple images.

[0279] For example, in Figure 7 On the image selection interface 706 shown in Figure (f), the user can click the selection box of any number of images in the image list, and use the selected images as "target images" and the common elements in the images as "target elements". For example, if the images all contain "little girl", "little girl" can be used as the target element to further generate the phone's always-on screen, lock screen, and unlock screen.

[0280] Or, for example, in Figure 7 The image selection interface 706 shown in Figure (f) can also display one or more video clips from the phone. When a user clicks on a video clip, multiple frames of the video clip can be displayed. The user can select one or more frames from the multiple frames of the video clip as the "target image" and identify the same elements in the one or more frames as the "target elements". For example, if one or more frames contain "little girl", "little girl" can be used as the target element to further generate the phone's always-on screen, lock screen, and unlock screen. This will not be elaborated further here.

[0281] The above embodiments combined Figures 1 to 9 The process of generating theme wallpapers was introduced from the user interaction perspective. The following will combine... Figure 10 This paper describes the specific implementation process of generating theme wallpapers provided in the embodiments of this application from the perspective of software implementation strategy. It should be understood that this method can be used in various applications such as... Figure 5 , Figure 6 This is implemented in electronic devices with structures such as touch screens (e.g., mobile phones, tablets, etc.).

[0282] Figure 10 This is a schematic flowchart illustrating an example of a method for generating a theme wallpaper provided in an embodiment of this application, such as... Figure 10 As shown, the method 1000 may include the following steps: S1001, Obtain the target image.

[0283] It should be understood that the "target image" can be any image defined by the user. Optionally, the target image may be obtained from the phone's local image library or from other electronic devices, servers, etc., and the source of the image is not limited in this embodiment.

[0284] It should also be understood that the "target image" selected by the user will be used as the image of the phone's off-screen interface, as the wallpaper of the lock screen interface when the phone is in a lit and locked state, and as the wallpaper of the unlock screen after the phone is unlocked. In other words, in this embodiment of the application, a new theme wallpaper will be generated for the phone based on the "target image" selected by the user.

[0285] It should also be understood that "acquiring the target image" in S1001 of this application embodiment can also be called "determining the target image". The triggering time of S1001 can be: the user selects a certain image from multiple images as the target image and triggers the electronic device to generate a theme wallpaper based on the target image.

[0286] For example, such as Figure 7 As shown in Figure (f), operation 1 occurs when the user clicks and selects the selection box for the target image, and then performs the following... Figure 7 As shown in Figure (f), in operation 2, clicking the "OK" option, in response to the user's operation 2, the mobile phone can determine the target image from multiple images, that is, obtain the information of the target image.

[0287] Alternatively, for example, the user performs such Figure 8 As shown in Figure (c), when the "Super Wallpaper" option is clicked, the mobile phone determines the target image in response to the user's click operation, that is, obtains the information of the target image. This application embodiment does not limit the timing of obtaining the target image.

[0288] Once the electronic device has determined the target image selected by the user, it can further determine the main elements that the user expects to display on the always-on display or lock screen from the various contents and one or more elements included in the target image, namely the "target elements" involved in the aforementioned embodiments. Specifically, the process of the electronic device determining the target elements can include the following two different methods.

[0289] Method 1: Detect and identify the content or elements included in the target image, and determine the target elements. In the scenario corresponding to Method 1, the electronic device can automatically detect the content or elements included in the target image, and based on the identified content or elements included in the target image, combined with preset rules, automatically determine the target elements for the user.

[0290] For this target image, the process of determining the target element may include the following steps: S1002, the electronic device detects one or more elements included in the target image.

[0291] Optionally, the electronic device can detect the types of elements included in the target image, such as people, animals, plants, buildings, landscapes, etc., based on image detection and recognition functions.

[0292] Alternatively, the electronic device can go even further and identify specific elements included in the type of people in the target image, such as the user's family and friends, like father, mother, and daughter.

[0293] S1003, the electronic device automatically determines the target element for the user from one or more elements according to preset rules.

[0294] Optionally, the target element may include one or more elements, such as one character, two characters, etc., which is not limited in this embodiment of the application.

[0295] Optionally, the electronic device can determine the target element from one or more elements based on a variety of possible preset rules. These preset rules may refer to the aforementioned... Figure 7 For the sake of simplicity, the relevant information will not be repeated here.

[0296] In one possible implementation, after the electronic device determines the target element according to any one or more of the above preset rules, a prompt mark can be displayed on the interface of the electronic device. The prompt mark is used to prompt the user that the target element will be displayed on the always-on screen and the lock screen, as well as the display position of the target element on the target image.

[0297] Optionally, the prompt mark can be a dashed frame, a solid frame, etc.; and / or the prompt mark can be a rectangle, a square, an ellipse, a circle, or other different shapes; and / or the prompt mark can be displayed statically or dynamically flashing, which is not limited in this embodiment.

[0298] For example, such as Figure 8 As shown in Figure (d), when multiple elements are detected in the target image and the "little girl" is identified as the target element, the mobile phone can display only a dashed frame 804-1 on the interface 804. The dashed frame 804-1 can circle the identified "little girl".

[0299] Alternatively, when multiple elements are detected in the target image, the phone can automatically display multiple dashed boxes on the 804 interface. Each dashed box can contain one element or one type of element, used to prompt the user of the detected multiple elements. For example... Figure 8 As shown in Figure (c), dashed box 804-1 can identify the "little girl," dashed box 804-2 can identify the "bamboo forest," and dashed box 804-3 can identify the "sun and clouds." Users can click to select any of the dashed boxes. For example, if a user clicks on any area of ​​dashed box 804-1, the phone can identify the element "little girl" within that selected dashed box 804-1 as the target element.

[0300] Using the method provided in Method 1 above, in the process of generating a mobile phone theme based on the target image selected by the user, various possible methods can be used. For example, the mobile phone can automatically detect and identify the target element in the target image, or the target element in the target image can be determined based on the user's operation. The target element can be used as a display element on the always-on display screen or as a prominent display element on the lock screen. The display process of the target element can better meet the user's display needs, thereby improving the user experience.

[0301] Method 2: The user manually selects the target element in the target image. In the scenario corresponding to Method 2, the user may manually select the display area of ​​the target image. For example, the user can... Figure 7 The process illustrated in diagram (g) involves a user swiping their finger to define a display area. The electronic device can then determine the elements within that display area as target elements. This process may include the following steps: S1004, the electronic device detects a user's swiping action on the target image.

[0302] S1005, determine the display area based on the starting and ending points of the sliding trajectory of the sliding operation.

[0303] S1006, Determine the target element based on the content of the display area.

[0304] For example, a user can perform actions such as Figure 7 In operation 1 shown in Figure (g), the user clicks point A and uses point A as the starting point for sliding. Following the direction indicated by the dashed line with arrows, the user slides to point B and releases. In response to the user's sliding operation, the mobile phone can automatically display a dashed frame 707-1 on the interface 707 according to the sliding trajectory A-B. The elements included in the dashed frame 707-1 will serve as the target elements of the always-on display.

[0305] Optionally, the user can pre-define the shape of the display area, which can be a regular shape such as a rectangle, circle, ellipse, or rhombus.

[0306] Alternatively, the user can pre-define the shape of the display area as an irregular shape that follows the user's finger swipe path. Specifically, the user can swipe on the target image, and the irregular area is determined as the display area based on the user's swipe path; this embodiment of the application does not limit this approach.

[0307] For example, such as Figure 7As shown in Figure (g), if the user sets the shape of the display area to a rectangle, then the rectangular dashed frame 707-1 can be determined by the user simply clicking the starting point A and the ending point B of the screen. In this scenario, the user's swiping operation may not be required; it is only necessary to determine the starting point and the ending point of the user's click on the screen, which is convenient for the user operation. This will not be elaborated further here.

[0308] Using the method provided in Method 2 above, users can manually set the display area, and the electronic device can determine the element in the display area as the target element. The process of determining the target element is more in line with the user's display needs and more accurately locates the target element that the user expects to display.

[0309] S1007, Perform image processing on the target image, cut out the target element, and determine the minimum bounding box of the target element.

[0310] Figure 11 This is a schematic diagram illustrating an example of image processing of a target image provided in an embodiment of this application. Figure 12 This is a flowchart illustrating another example of image processing of a target image provided in an embodiment of this application. The following is in conjunction with… Figure 11 and Figure 12 The implementation process of S1007 is described.

[0311] For example, in the aforementioned processes S1004-S1006, the electronic device can determine a display area based on the user's swiping operation, etc., and this display area can be as follows: Figure 7 The region enclosed by the dashed frame 707-1 with height x and width y shown in Figure (g) is the area in the image. The electronic device can perform image processing on the region enclosed by the dashed frame 707-1, or in other words, the electronic device can perform image processing on the target image, such as... Figure 11 As shown, S1007 may include two steps: Step 1: Image cutout of the target element, removing background content from the target image other than the target element.

[0312] For example, such as Figure 11 As shown, the electronic device can determine the dashed frame 707-1 region with height x and width y based on points A and B of the user's sliding trajectory, detect the content included in the dashed frame 707-1 region, and identify the target element "little girl" and other elements such as... Figure 11 The outline of the "little girl" is filled with black, and all background content outside the outline of the "little girl" is removed, leaving only the "little girl" filled with black.

[0313] Step 2: Determine the minimum bounding box of the target element.

[0314] For example, such as Figure 11 As shown, the electronic device can also determine the display height n and display width m based on the black-filled "little girl". The dashed frame (i.e., the "minimum bounding box") formed by the display height n and display width m can ensure that all the pixels of the black-filled "little girl" are contained.

[0315] It should be understood that in the embodiments of this application, the "minimum bounding box" can be used to determine the display height, width, etc. of the target element "little girl" obtained by the cutout process.

[0316] It should also be understood that the “minimum bounding box” obtained in step 2 is different from the dashed box 707-1 determined by the user's sliding operation. The dashed box 707-1 also includes background content, while the “minimum bounding box” only includes the black-filled “little girl” and does not include background content. In other words, everything inside the “minimum bounding box” except for the black-filled “little girl” image is transparent.

[0317] One possible implementation is that the image processing steps 1 and 2 can specifically include: Figure 12 Some or all of the steps, such as Figure 12 As shown in method 1200, the image processing procedure includes: 1201, Obtain the image of the display area determined by the user's swipe trajectory; 1202, based on artificial intelligence (AI) deep learning algorithms, detects and identifies target elements in the image of this display area; 1203, Based on edge detection algorithm and image segmentation algorithm, determine the edge contour of the target element; 1204, Denoising is performed on the image pixels within the edge contour to remove impurity pixels from the target element image; 1205. Based on an image filtering algorithm, the image of the target element is smoothed.

[0318] 1206. The target element is obtained by cutting out the edge contour.

[0319] It should be understood that the noise reduction and smoothing processes described above can eliminate unwanted pixels in an image and improve image quality.

[0320] Optionally, in the embodiments of this application, AI deep learning algorithms, edge detection algorithms, image segmentation algorithms, noise reduction algorithms, image filtering algorithms, matting algorithms, etc., can be based on a variety of possible algorithms such as Sobel operator, Isotropic Sobel operator, Roberts operator, Prewitt operator, Laplacian operator, Canny operator, etc., to process the image pixels of the display area. This process can refer to some existing solutions. The embodiments of this application do not elaborate on the possible algorithms or implementation processes.

[0321] Through the above process, we can obtain the target element "little girl" with clear edges and distinct outlines after image cutout, such as... Figure 11 As shown, the image region of the target element "little girl" has a height of n and a width of m. The height n and width m can determine the minimum bounding box of the target element "little girl".

[0322] S1008, Display the target element of the minimum bounding box onto the target area of ​​the screen-off interface according to a certain ratio, and determine the screen-off interface.

[0323] For example, S1008 can correspond to Figure 9 In Figure (a), the phone will display the user's... Figure 8 The target element "little girl" identified in Figure (d) is displayed in the off-screen interface 901.

[0324] Figure 13 This is a schematic diagram illustrating an example of displaying a target element on an always-on display screen, provided in an embodiment of this application.

[0325] For example, according to S1007 and Figure 11 The process described in steps 1 and 2 shows that the electronic device has obtained the cutout of the target element "little girl," and can then display this target element "little girl" in [the specified location]. Figure 9 In the always-on display 901 shown in Figure (a). Specifically, as... Figure 13 As shown, this process can be represented as: Step 3: The target element within the smallest bounding box is scaled down or enlarged according to a certain ratio and displayed in the target display area 10 of the always-on display screen.

[0326] Optionally, the "target display area 10" can be a fixed area on the screen or a constantly changing area on the screen. The size of the "target display area 10" can be fixed, assuming that the "target display area 10" has a preset width w and height h.

[0327] For example, such as Figure 13As shown, the electronic device determines that the display height of the target element "little girl" in the original target image is n and the display width is m, and reduces or enlarges the target element "little girl" (i.e., the "minimum bounding box") with height n and width m according to a certain ratio, and displays it in the target display area 10 of the screen-off interface.

[0328] First, the electronic device needs to determine the scaling ratio of the target element "little girl", or rather, the scaling ratio of the minimum bounding box.

[0329] Figure 14 It is a schematic diagram for calculating the scaling ratio provided by an embodiment of the present application.

[0330] Exemplarily, in S1007, it is obtained that the display height of the target element "little girl" in the original target image is n and the display width is m. The sizes of n and m may have the situations of n > m, n < m, and n = m. In the embodiments of the present application, the rule for determining the scaling ratio of the target element can be called the "long-side matching principle". The "long-side matching principle" can be understood as: the electronic device determines the scaling ratio of the target element according to the larger value of n and m, and then displays the scaled target element "little girl" in the target display area 10 with width w and height h. Specifically, it includes: Case 1: When n > m, the electronic device can determine the scaling ratio of the target element "little girl" according to n.

[0331] Exemplarily, as shown in the figure (a) in Figure 14 , the height n of the minimum bounding box > the width m. The electronic device can calculate the scaling ratio according to formula (1) : Formula (1) Then, the final display size of the target element "little girl" is: height , width .

[0332] On the one hand, when the electronic device determines the scaling ratio of the target element "little girl" , it can scale the target element "little girl" obtained by cropping in S1007 according to the ratio to obtain the final display size (width , height ) of the target element "little girl".

[0333] On the other hand, the electronic device needs to determine the display position of the target element "little girl" on the lock screen interface (screen). Optionally, the electronic device can place the scaled target element "little girl" (width , height )Display to the middle area of the target display area 10 with width w and height h, or rather, ensure that the geometric center of the scaled minimum bounding box (width , height )coincides with the geometric center of the target display area 10 with width w and height h. Therefore, the electronic device can determine the displacement offset between the upper left reference point G of the target display area 10 and the upper left reference point H of the minimum bounding box according to this principle, and then accurately determine the display position of the target element "little girl", and display the target element "little girl" to Figure 13 in the target display area 10 with width w and height h.

[0334] Case 2: When n < m, the electronic device can determine the scaling ratio of the target element "little girl" according to m.

[0335] Exemplarily, as shown in the figure (b) in Figure 14 , the height n of the minimum bounding box < width m. The electronic device can calculate the scaling ratio according to formula (2) : Formula (2) Then, the final display size of the target element "little girl" is: height , width .

[0336] On the one hand, when the electronic device determines the scaling ratio of the target element "little girl", it can scale the target element "little girl" cut out in S1007 according to the ratio to obtain the final display size (width , height ) of the target element "little girl".

[0337] On the other hand, the electronic device needs to determine the display position of the target element "little girl" on the lock screen interface (screen). Optionally, the electronic device can display the scaled target element "little girl" (width , height ) to the middle area of the target display area 10 with width w and height h in Figure 13 , or rather, ensure that the geometric center of the scaled minimum bounding box (width , height ) coincides with the geometric center of the target display area 10 with width w and height h. Therefore, the electronic device can determine the displacement offset between the upper right reference point I of the target display area 10 and the upper right reference point K of the minimum bounding box according to this principle, and then accurately determine the display position of the target element "little girl", and display the target element "little girl" to Figure 13 The target display area 10 has a width w and a height h.

[0338] Case 3: When n=m, the electronic device can calculate the scaling ratio according to Case 1 or Case 2 above, which will not be elaborated here.

[0339] In another possible implementation, besides Figure 14 In addition to the methods described, the scaling ratio can also be a preset value, and the target display area 10 can also be a preset area.

[0340] For example, the electronic device can scale the target element "little girl" obtained by cutout according to a preset value (e.g., magnify by 1.2 times or shrink by 0.8 times), and set the target display area 10 to be 0.1 below the geometric center of the target element "little girl" in the original target image, to ensure that the center of gravity of the target element "little girl" is located in the lower part of the screen, etc. This application embodiment does not limit this.

[0341] Through the above process, the electronic device can ultimately present the following: Figure 9 The always-on display 901 shown in Figure (a) is an example of this effect. This always-on display 901 no longer displays the content of the user-defined target image through circular controls, but only displays the cut-out target element, "little girl," avoiding a significant visual difference between the image content displayed by the circular controls and the black always-on display area. This makes the splicing or transition between the target image content and the always-on display smoother, resulting in a more aesthetically pleasing display and improved user experience.

[0342] S1009, determine the position information of the target element in the target image.

[0343] S1010, Display the minimum bounding box in the target area of ​​the lock screen interface according to a certain ratio, fill the background of the target element according to the position information, and determine the wallpaper of the lock screen interface.

[0344] It should be understood that the process from S1009 to S1010 can correspond to Figure 9 Figure (b) in the diagram refers to the electronic device generating a target image based on the target image and the target element selected by the user, as shown in Figure (b). Figure 9 The process of the lock screen interface 902 shown in Figure (b) is as follows.

[0345] In this implementation process, on the one hand, the electronic device needs to determine the scaling ratio of the target element "little girl" when it is displayed on the lock screen interface 902. This process can refer to the aforementioned S1008 and... Figure 14 The relevant information will not be repeated here.

[0346] On the other hand, the electronic device needs to determine the background content of the target element "little girl" in the lock screen interface 902, and then display the wallpaper of the lock screen interface 902 by combining the target element "little girl" and the background content of the target element "little girl". Then, the lock screen icon, the prompt message "recognizing face", the current time and date, and the icon of the camera application are displayed on the wallpaper of the lock screen interface 902 to generate the lock screen interface 902.

[0347] Figure 15 This is a schematic diagram illustrating an example of displaying a target element on a lock screen interface, provided in an embodiment of this application.

[0348] For example, according to S1007 and Figure 11 The process described in steps 1 and 2 shows that the electronic device has obtained the cutout of the target element "little girl," and can then display this target element "little girl" in [the specified location]. Figure 9 The lock screen interface 902 shown in Figure (b) is as follows. Specifically, as... Figure 15 As shown, the process may include: Step 4-1: The target element within the smallest bounding box is scaled down or enlarged according to a certain ratio and displayed in the target display area 20 of the lock screen interface.

[0349] Optionally, the "target display area 20" can be a fixed area on the screen. The size of the "target display area 10" is fixed; assuming the "target display area 10" has a preset width w and height h, this process can be referred to the aforementioned S1008 and... Figure 14 For the sake of simplicity, the process of calculating the scaling ratio and determining the display position of the target element will not be described in detail here.

[0350] Step 4-2: Fill the background of the lock screen interface 902.

[0351] In one possible implementation, the electronic device can determine the background content adjacent to the target element in the original target image based on the position information of the target element in the target image as described in S1009, and fill the background content into the background of the target element, that is, combine the target element and the background of the target element into a single image. Figure 9 The wallpaper of the lock screen interface 902 shown in Figure (b) is shown in the figure.

[0352] Optionally, the "background of the target element" can be scaled at a different ratio than the target element itself. For example, the magnification of the target element "little girl" is greater than the magnification of the bamboo forest, sun, and clouds in the original target image. Alternatively, the "background content of the target element" can be scaled at the same ratio as the target element. For example, the original target image may include both the "little girl" and a background area immediately surrounding the "little girl" while being magnified to serve as the wallpaper for the lock screen interface 902. This embodiment of the application does not limit this approach.

[0353] S1011, Based on the set desktop wallpaper display content, select the desktop wallpaper for the unlock screen.

[0354] Figure 16 This is a schematic diagram illustrating an example of generating a wallpaper for an unlock interface based on a target image, provided in an embodiment of this application.

[0355] Optionally, such as Figure 16 As shown, step S1011 can be using the original target image directly as the desktop wallpaper of an electronic device, that is, the process includes: Step 5: Generate the wallpaper for the unlock screen based on the original target image. Optionally, when the unlock screen is the main interface of the electronic device, the unlock screen may also include the display area 30 of the weather clock component and the application display area 40, which will not be elaborated here.

[0356] For example, in S1011, the wallpaper on the unlock screen can be selected by the user. Figure 7 The interface 707 of the (g) diagram is displayed, or according to the user's settings. Figure 8 The interface 804 in (d) is set to display the original target image according to the user's settings, that is, the display area of ​​the original target image is used as the wallpaper of the unlock interface to better meet the user's display needs.

[0357] Through the above process, electronic devices can determine the display style of the always-on screen, the lock screen, and the unlock screen based on the target image selected by the user and the target elements included in the target image. The following section will continue to introduce the transition effects that can be achieved during the switching process of the always-on screen, lock screen, and unlock screen of an electronic device.

[0358] S1012, determine the first transition method from the always-on screen to the lock screen, and the configuration parameters corresponding to the first transition method.

[0359] Optionally, using the target element "little girl" as a reference, the changes in the phone's display during the transition from the always-on screen 901 to the lock screen 902 can include a combination of one or more effects. See the previous text for details, which will not be repeated here. Thus, during the transition from the always-on screen 901 to the lock screen 902, the phone can present the user with a dynamic change effect of the target element, increasing the fun and enhancing the user's visual experience.

[0360] S1013, determine the second transition method from the lock screen interface to the unlock interface, and the configuration parameters corresponding to the second transition method.

[0361] Optionally, the electronic device can receive user settings, namely, the user manually selects the first transition method to switch from the off screen 901 to the lock screen 902, and the user manually selects the second transition method to switch from the lock screen 902 to the unlock screen 903, with each transition method corresponding to different animation effects.

[0362] Table 1 shows a variety of possible transition methods. For example, in the embodiments of this application, each transition method can be any one of the following, or a combination of multiple transition methods. The embodiments of this application do not limit this.

[0363] Table 1

[0364] It should be understood that in the embodiments of this application, each transition method may correspond to different configuration parameters. These configuration parameters may include: information such as the display area and display elements of the target image at each moment during the switching process of the mobile phone from the always-on screen to the lock screen to the unlock screen, as well as information such as the size change, coordinate change and position change of each element in the target image. The embodiments of this application do not limit this.

[0365] Optionally, taking the target element "little girl" as a reference, the changes in the phone's appearance during the transition from the lock screen 902 to the unlock screen 903 can include a combination of one or more effects. For details, please refer to the previous text, which will not be repeated here.

[0366] S1014, the screen-off interface is displayed, and the lock screen interface is dynamically switched from the screen-off interface to the lock screen interface according to the configuration parameters corresponding to the first transition method, and the unlock screen interface is dynamically switched from the screen-off interface to the lock screen interface according to the configuration parameters corresponding to the second transition method.

[0367] In summary, through the method of this application embodiment, users can set any one or more photos or videos as the theme wallpaper of their mobile phone according to their own preferences and needs. Based on the photo or video, it participates in the display process of the wallpaper of the always-on screen, lock screen, and unlock screen, respectively. That is, the always-on screen, lock screen, and unlock screen of the mobile phone are generated based on the photo or video. At the same time, different animation effects are added during the switching process of the always-on screen, lock screen, and unlock screen, thereby generating a theme wallpaper with dynamic changing effects for the user, presenting a one-shot playback effect, providing users with an unlimited number of theme choices, avoiding the limitation of users only relying on the system's preset themes, achieving the sharing of target elements during the switching process of the always-on screen, lock screen, and unlock screen, and also achieving a continuous playback dynamic linkage effect, meeting different user needs and improving the user experience.

[0368] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0369] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0370] When functional modules are divided according to their respective functions, the electronic device involved in the above embodiments may include a display unit, a detection unit, and a processing unit. The display unit, detection unit, and processing unit cooperate with each other to support the electronic device in performing the above-described processes and / or other processes related to the technology described herein.

[0371] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0372] The electronic device provided in this embodiment is used to execute the above-described video playback method, and therefore can achieve the same effect as the above-described implementation method.

[0373] When using integrated units, the electronic device may include a processing module, a storage module, and a communication module. The processing module can be used to control and manage the actions of the electronic device; for example, it can support the electronic device in executing the steps performed by the display unit, detection unit, and processing unit. The storage module can support the electronic device in executing stored program code and data. The communication module can support communication between the electronic device and other devices.

[0374] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.

[0375] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment can be a device having... Figure 5 The device with the structure shown.

[0376] This embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the method for generating theme wallpapers in the above embodiment.

[0377] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the method for generating theme wallpapers in the above embodiment.

[0378] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the method for generating theme wallpapers in the above-described method embodiments.

[0379] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0380] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.

[0381] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0382] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0383] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0384] If the integrated unit is implemented as 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 solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0385] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for generating themed wallpapers, applied to electronic devices, characterized in that, The method includes: Display the target image; In response to the user's first action, a theme wallpaper is generated based on the target image; The theme wallpaper includes content that is enlarged or reduced according to a first ratio based on the target image, and the theme wallpaper includes target elements in the target image; A lock screen and an unlock screen are generated based on the theme wallpaper, wherein the lock screen includes the theme wallpaper and time information, and the unlock screen includes application icons and the theme wallpaper.

2. The method according to claim 1, characterized in that, The target element is highlighted on the lock screen wallpaper.

3. The method according to claim 1 or 2, characterized in that, The theme wallpaper also includes a first background, wherein the first background is the content of a portion of the target image surrounding the target element.

4. The method according to any one of claims 1 to 3, characterized in that, The target element is automatically identified by the electronic device.

5. The method according to any one of claims 1 to 3, characterized in that, Also includes: In response to the user's second action, a wallpaper preview interface is displayed, which includes content and time information based on the target elements in the target image magnified at a first ratio.

6. The method according to claim 5, characterized in that, Also includes: In response to a third user action on the wallpaper preview screen, the position of the target element is adjusted, or the content of the theme wallpaper is enlarged or reduced. The theme wallpaper is determined based on the third operation.

7. The method according to any one of claims 1 to 6, characterized in that, Also includes: The target elements include one or more of the following: people, animals, buildings, or plants.

8. The method according to claim 7, characterized in that, When the target image contains multiple elements and includes a person, the electronic device automatically identifies the target element as a person.

9. The method according to claim 1, characterized in that, Also includes: Detecting target elements in the target image includes: The system receives a user's swipe operation in the first display area and determines the target element based on the start and end points of the swipe trajectory corresponding to the swipe operation.

10. The method according to claim 1 or 9, characterized in that, The target element is fixed content set by the user; and / or The target element is the content that appears most frequently in one or more images stored on the electronic device; and / or The target element is the content in one or more images stored on the electronic device that has been most frequently marked or saved by the user; and / or The target element is the content with the highest display priority in a preset element set. The preset element set includes one or more types of elements, and each type of element corresponds to a different display priority.

11. The method according to any one of claims 1 to 10, characterized in that, The process of generating a themed wallpaper based on the target image includes: The first ratio is determined based on the height and width of the first preset area of ​​the theme wallpaper and the height and width of the target element.

12. The method according to any one of claims 1 to 11, characterized in that, Also includes: Display a first interface, which includes one or more images; The system receives a user's selection and determines and displays the target image from one or more images.

13. The method according to any one of claims 1 to 12, characterized in that, Also includes: According to the configuration parameters corresponding to the second transition method, the lock screen interface is switched to the unlock interface. The second transition method is either a preset method or a method manually set by the user.

14. The method according to claim 13, characterized in that, The configuration parameters corresponding to the second transition method include one or more of the following parameters: During the process of switching from the always-on display to the lock screen, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times; The configuration parameters corresponding to the second transition method include one or more of the following parameters: during the process of switching from the lock screen interface to the unlock interface, the parameters corresponding to the display area of ​​the target image, the size parameters, coordinate parameters, and position parameters of the target element at different times.

15. An electronic device, characterized in that, include: Display screen; One or more processors; One or more memory units; The memory stores one or more programs that, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1 to 14.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 14.

17. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 14.