Sticker display method and electronic device
Patent Information
- Application Number
- CN202611254501.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-10-27
AI Technical Summary
然而,上述方案中,由于需要依赖平台所提供的资源,因而难以满足用户的个性化需求
[0011]在本申请实施例中,电子设备在显示第一图像的情况下,根据用户的第一输入,在第一界面显示基于第一图像中的拍摄对象生成的贴纸。由此,电子设备可以基于第一图像中的拍摄对象生成贴纸,从而可以从任意图像中获取贴纸素材,无需受限于平台提供的资源,从而满足用户的个性化需求。
Smart Images

Figure CN122994423A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a sticker display method and an electronic device. Background Technology
[0002] With the increasing demand for personalization on mobile devices, electronic devices can enrich desktop visual effects by adding elements such as stickers.
[0003] In related technologies, users can personalize their desktop style, for example, by downloading themes from the system's theme store. However, the above solutions rely on resources provided by the platform, making it difficult to meet users' personalized needs. Summary of the Invention
[0004] The purpose of this application is to provide a sticker display method and electronic device that can meet the personalized needs of users.
[0005] In a first aspect, embodiments of this application provide a sticker display method, the method comprising: receiving a first input from a user when displaying a first image; displaying a sticker on a first interface in response to the first input; the sticker being generated based on a photographed object in the first image.
[0006] Secondly, embodiments of this application provide a sticker display device, which includes a receiving module and a display module, wherein: the receiving module is used to receive a first input from a user when a first image is displayed; the display module is used to display a sticker on a first interface in response to the first input received by the receiving module; the sticker is generated based on a photographed object in the first image.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, when displaying a first image, the electronic device displays a sticker generated based on the photographed object in the first image on a first interface according to the user's first input. Thus, the electronic device can generate stickers based on the photographed object in the first image, allowing it to obtain sticker materials from any image without being limited by the resources provided by the platform, thereby meeting the user's personalized needs. Attached Figure Description
[0012] Figure 1 A schematic flowchart illustrating the sticker display method provided in an embodiment of this application;
[0013] Figure 2A A schematic diagram of one of the interfaces to which the sticker display method provided in the embodiments of this application can be applied;
[0014] Figure 2B A second schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0015] Figure 2C A third schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0016] Figure 2D A fourth schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0017] Figure 3A Fifth schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0018] Figure 3B A sixth schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0019] Figure 4A A schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0020] Figure 4B Eighth schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0021] Figure 5A A schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0022] Figure 5B A schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0023] Figure 6A 11. A schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0024] Figure 6B 12. A schematic diagram of an interface to which the sticker display method provided in this application embodiment can be applied;
[0025] Figure 6C A schematic diagram, number thirteen, of the interfaces to which the sticker display method provided in this application embodiment can be applied;
[0026] Figure 7A Fourteenth of the schematic diagrams showing the interface to which the sticker display method provided in the embodiments of this application can be applied;
[0027] Figure 7B A schematic diagram, number fifteen, of the interfaces to which the sticker display method provided in this application embodiment can be applied;
[0028] Figure 7C A schematic diagram sixteen of the interfaces to which the sticker display method provided in the embodiments of this application can be applied;
[0029] Figure 8 Schematic diagram seventeen of the interfaces to which the sticker display method provided in the embodiments of this application can be applied;
[0030] Figure 9 This is a schematic diagram of the structure of the sticker display device provided in the embodiments of this application;
[0031] Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0032] Figure 11 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0034] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0035] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0036] The sticker display method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0037] The sticker display method provided in this application can be applied to the generation and display of desktop stickers.
[0038] One specific scenario is this: When a user is browsing a photo album on an electronic device, they see an image containing objects of interest, such as pets, people, or items. The user wants to extract these objects from the image to use as desktop stickers. The user can long-press or drag the image in the album interface. The electronic device recognizes the objects in the image and generates a sticker, which is then displayed on the desktop. This allows users to customize their desktop stickers, thus meeting their individual needs.
[0039] Another specific scenario is: a user is browsing video content in a social media app and finds a frame containing a moving object of interest (such as a person waving). The user wants to create a dynamic sticker from this object and place it on their home screen. The user can long-press or drag the current video frame in the video playback interface. The electronic device extracts the moving object from the video and generates a dynamic sticker, which is then displayed on the home screen and its playback controlled. In this way, users can obtain desktop stickers that meet their personalized needs without needing video editing apps for dynamic image cutout or downloading them from the system theme store.
[0040] The sticker display method provided in this application can be executed by a sticker display device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device executing the sticker display method as an example to illustrate the sticker display method provided in this application.
[0041] Figure 1 This is a flowchart illustrating the sticker display method provided in an embodiment of this application, as shown below. Figure 1 As shown, the sticker display method may include the following steps 201 and 202:
[0042] Step 201: The electronic device receives the user's first input while displaying the first image.
[0043] In some embodiments of this application, the first image described above can be any image in an electronic device.
[0044] For example, the first image can be a photo in a photo album application, an image in a social application, an image in a video in a video playback application, an image browsed by the user in a multimedia application, an image in a short video browsed by the user in a multimedia application, an image saved during web browsing, etc., and this application embodiment does not specifically limit it.
[0045] In some embodiments of this application, the first input described above is used to trigger the display of a sticker on a first interface.
[0046] In some embodiments of this application, the first input may include any of the following: user touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, which are not limited in this application embodiment. Further, the touch input may be: user click input, swipe input, press input, etc. Further, the click operation may be any number of clicks. The swipe operation may be a swipe operation in any direction, such as swiping up, swiping down, swiping left, or swiping right, which are not limited in this application embodiment.
[0047] For example, the first input can be a touch operation performed by the user on the first image, such as clicking, long pressing, double-clicking or dragging, or it can be voice input or air gesture input. This application embodiment does not limit this.
[0048] For example, an electronic device displays a photo in a photo album app, and the user performs a long press on the photo, which is the first input.
[0049] For example, when a user is browsing a short video in a multimedia application, the user performs a long press operation on the current image frame of the playing short video, which is the first input.
[0050] Step 202: The electronic device responds to the first input and displays a sticker on the first interface.
[0051] The stickers mentioned above are generated based on the subject captured in the first image.
[0052] In some embodiments of this application, the first interface described above may be the desktop interface of an electronic device, or it may be a negative one screen interface, a lock screen interface, an application interface, a note interface, a drawing board interface, an image editing interface, an image preview interface, or any other interface that can be used to display stickers. This application does not limit this.
[0053] In some embodiments of this application, the first image may be an image from a photo album, an image from a webpage, a frame from a video, or a moving image, etc. The embodiments of this application do not limit the first image.
[0054] For example, the first image is a photo taken by the user and saved in the album; or the first image is an image downloaded from a third-party platform and saved in the album; or the first image is an image viewed by the user on a webpage or multimedia application; or the first image is one or more frames of a video viewed by the user in a multimedia application.
[0055] In some embodiments of this application, the subject of the photograph is the main visual object that the user is interested in in the first image, such as a person, animal, building, or object.
[0056] In some embodiments of this application, the electronic device can automatically identify the subject in the first image using an image segmentation algorithm, and then generate a sticker based on the subject.
[0057] It should be noted that the subject being photographed can also be referred to as the main image subject or the main object. Stickers can be visual objects with their backgrounds removed, which can be displayed independently on the interface.
[0058] For example, when a user long-presses a pet photo in the album, the electronic device automatically recognizes the pet in the photo and generates a corresponding sticker, which is then displayed on the desktop interface of the electronic device.
[0059] The following describes the sticker display method provided in the embodiments of this application through several implementation methods.
[0060] Method 1: The user directly drags the first image (i.e., the first input). The electronic device responds to this drag operation, identifies the subject in the first image, generates a sticker, and displays the sticker on the first interface. It can be seen that in this method, a single drag input by the user simultaneously triggers the identification of the subject, the generation of the sticker, and the display of the sticker.
[0061] For example, when a user browses a photo containing a puppy in a photo album application, the user can directly drag the photo from the album interface to the desktop interface. After receiving the drag input, the electronic device automatically recognizes the puppy in the photo, generates a corresponding sticker, and displays the puppy sticker on the desktop interface.
[0062] In this embodiment, the user only needs to drag and drop once to complete the entire process of generating and displaying the sticker from the image. The operation path is short, which greatly improves the efficiency of sticker generation.
[0063] Method 2: The user first taps or long-presses the first image. The electronic device responds to this action by recognizing and extracting the subject from the first image. Then, the user drags the first image to the first screen (the first action). The electronic device responds to this drag action by generating a sticker based on the extracted subject and displaying the sticker on the first screen. It can be seen that in this method, the tap or long-press action triggers object recognition and extraction before generation, while the drag action triggers the generation and display of the sticker.
[0064] For example, a user browses a photo containing a puppy in a photo album application. The user first taps the photo, and the electronic device responds to the tap by recognizing and extracting the puppy from the photo. Then, the user drags the photo from the album interface to the home screen. The electronic device responds to the drag by generating a sticker based on the extracted puppy and displays the puppy sticker on the home screen.
[0065] In this embodiment, the electronic device triggers the recognition and extraction of the photographed object by clicking or long-pressing, and then triggers the generation and display of the sticker by dragging. After the extraction is completed, the user can confirm the recognition effect of the photographed object and then decide whether to continue generating the sticker, which improves the accuracy of sticker generation.
[0066] Method 3: The user first taps or long-presses the first image. The electronic device responds by recognizing and extracting the subject from the first image and displays it on the current screen. Then, the user drags the subject to the first screen. The electronic device responds by generating a sticker based on the subject and displays it on the first screen. It can be seen that in this method, the tap or long-press operation triggers object recognition, extraction, and preview display, while the drag operation targets the already extracted and displayed subject, not the original first image.
[0067] For example, a user browses a photo containing a puppy in a photo album app. The user long-presses the photo, and the electronic device responds to the long-press operation by identifying and extracting the puppy from the photo, displaying it as a semi-transparent preview image on the album interface. After viewing the effect of the puppy image, if the user finds it to be a suitable sticker effect, they can drag the puppy preview image from the album interface to the home screen. The electronic device responds to this drag operation by generating a sticker based on the puppy image and displaying the puppy sticker on the home screen.
[0068] In this embodiment, the electronic device displays the subject after it is cut out, allowing the user to preview the effect of the cut-out subject intuitively. After confirming that it is correct, the user can then drag it to the first interface to generate a sticker. This avoids the problem that subsequent operations are invalid due to an unsatisfactory cut-out effect, and improves the accuracy of sticker generation.
[0069] Understandably, the main differences between the three implementation methods are as follows: In Method 1, the user can trigger the entire generation and display process with a single drag-and-drop operation; in Method 2, the user needs to first trigger the recognition and extraction of the photographed object by clicking or long-pressing, and then trigger generation and display by dragging the image; in Method 3, the user needs to first trigger the recognition, extraction, and display of the photographed object by clicking or long-pressing, and then trigger generation and display by dragging the extracted photographed object. All three implementation methods provided in this application can achieve the generation and display of stickers from images, and users can choose different operation methods according to their own needs and usage habits.
[0070] The following description, in conjunction with the accompanying drawings, provides an exemplary illustration of the sticker display method.
[0071] For example, such as Figure 2A As shown, when a user long-presses an image in the album interface 11, a lightweight CNN model (MobileNet + Landmark optimized combination) is launched within 0.1 seconds to automatically identify prominent subjects in the image, such as... Figure 2B As shown, the identified subject 12 is previewed in real time using a semi-transparent mask. Then, as... Figure 2C As shown, after the user drags the subject 12 to the desktop 13, as... Figure 2D As shown, the electronic device displays a sticker 14 on the desktop 13, which is generated based on the photographed object.
[0072] For example, if an image contains multiple independent subjects (such as 2 people and 1 pet), the electronic device automatically marks all subjects and generates smart tags (such as "little girl" and "golden retriever"). Users can click on the tags to switch the subject to be extracted; it also supports two-finger zoom to view the edge details of the subject.
[0073] For example, the electronic device uses an adaptive edge feathering algorithm to perform sub-pixel-level processing on complex elements such as pet fur, hollowed-out textures, and dynamic edges, eliminating jagged edges, preserving original details, and ensuring natural transitions at the edges of the sticker.
[0074] For example, the extracted subject is automatically converted into a transparent material without a background and temporarily stored in the system's temporary cache for real-time rendering during drag-and-drop.
[0075] The sticker display method provided in this application embodiment allows an electronic device to display stickers generated based on the photographed object in the first image on a first interface, based on the user's first input, while displaying a first image. Thus, the electronic device can generate stickers based on the photographed object in the first image, thereby obtaining sticker materials from any image without being limited to preset resources provided by the platform, thus meeting the user's personalized needs.
[0076] In some embodiments of this application, receiving the user's first input in step 201 above can be achieved through the following step 201a:
[0077] Step 201a: The electronic device receives the user's first input on the first image.
[0078] The first input mentioned above is used to trigger the generation and display of the sticker on the first interface.
[0079] In some embodiments of this application, when a user views a first image, they can directly perform a first input operation on the first image. In response to the first input, the electronic device performs object recognition and extraction, sticker generation, and sticker display on a second interface.
[0080] For example, a user views a photo containing people in a photo album application. The user drags the photo from the album interface to the desktop interface. In response to the drag operation, the electronic device identifies the people in the photo, generates the corresponding sticker, and displays the sticker on the desktop interface.
[0081] In this embodiment of the application, the electronic device can trigger the generation of stickers and their display on the second interface by receiving the user's first input on the first image, so that the user does not need to perform multiple operation steps, simplifying the process from image to sticker display and improving the user's operation efficiency.
[0082] In some embodiments of this application, before receiving the user's first input in step 201 above, the sticker display method provided in this application embodiment may further include steps 203 and 204:
[0083] Step 203: The electronic device receives the user's sixth input on the first image.
[0084] Step 204: The electronic device responds to the sixth input and extracts the subject from the first image;
[0085] For example, in combination with steps 203 and 204 above, step 201 can be implemented by the following step A1.
[0086] Step A1: The electronic device receives the user's first input on the first image;
[0087] The first input mentioned above is used to trigger the generation of stickers based on the photographed object and to display the stickers on the second interface.
[0088] In some embodiments of this application, the electronic device separates the subject from the background using an image segmentation algorithm and extracts the subject from the first image.
[0089] In some embodiments of this application, the sixth input is used to trigger the extraction of the photographed object from the first image.
[0090] In some embodiments of this application, the sixth input can be any feasible input such as touch input, voice input, or gesture input. The specific form of the sixth input is not limited in the embodiments of this application.
[0091] For example, the sixth input is a long press operation on the first image, and the electronic device responds to the long press operation by slicing out the subject to be photographed.
[0092] In some embodiments of this application, a user can trigger an electronic device to generate a sticker based on the cut-out photographed object and display it on a second interface through a first input.
[0093] For example, a user views a photo containing a puppy in a photo album app. The user long-presses the photo, and the electronic device responds by selecting and cutting out the puppy from the photo. Then, the user drags the photo from the album interface to the home screen. The electronic device responds by generating a sticker based on the cut-out puppy and displays the sticker on the home screen.
[0094] In this embodiment, the electronic device triggers the cutout of the subject through a sixth input, and then triggers the generation and display of the sticker through a first input. In this way, the cutout of the subject and the generation and display of the sticker are divided into two stages. After the cutout is completed, the user can trigger the generation and display of the sticker by dragging the first image, thereby improving the convenience and flexibility of the user's operation.
[0095] In some embodiments of this application, before receiving the user's first input in step 201 above, the sticker display method provided in this application embodiment may further include steps 205 and 206:
[0096] Step 205: The electronic device receives the user's sixth input on the first image.
[0097] Step 206: The electronic device responds to the sixth input, extracts the subject from the first image, and displays the subject.
[0098] For example, in combination with steps 205 and 206 above, the process of receiving the user's first input in step 201 can be implemented by the following step B1.
[0099] Step B1: The electronic device receives the user's first input about the subject being photographed.
[0100] The first input mentioned above is used to trigger the generation of stickers based on the photographed object and to display the stickers on the second interface.
[0101] In some embodiments of this application, the first input is used to trigger the extraction of the photographed object from the first image and to display the photographed object.
[0102] In some embodiments of this application, the electronic device may display the subject on the current interface, or the electronic device may overlay the subject on the first image, or the electronic device may display the subject floating in a specific display area of the electronic device.
[0103] In some examples, the electronic device can display the target object on the interface where the first image is located, such as in a photo album. Subsequent users can then trigger the display of a sticker on the first interface by dragging the target object there.
[0104] In some examples, the electronic device can overlay the target object on top of the image area where the target object is located in the first image. The user can then trigger the display of a sticker on the first screen by dragging the target object to it.
[0105] In some examples, the electronic device can display the subject floating in the upper right corner of the screen, and this display remains even after the interface is switched. The user can then switch to the first interface and drag the subject to a specific location within that interface to trigger the display of a sticker. For instance, a user can switch to the desktop and drag the subject to a specific location on the desktop to trigger the display of a sticker at that location.
[0106] It should be noted that in the aforementioned embodiments of this application, the subject is not displayed immediately after being cut out. In this embodiment, the subject can be displayed on the current interface after being cut out, so that the user can intuitively view the cutout effect.
[0107] In some embodiments of this application, after a user views and confirms the image, they can perform a first input on the displayed object (e.g., drag the object). The electronic device responds to the first input, generates a sticker based on the object, and displays it on a first interface.
[0108] For example, a user views a photo containing a person in a photo album app. The user performs a long press on the photo, and the electronic device responds to the long press by identifying and extracting the person from the photo, displaying the person as a semi-transparent preview image on the current photo album screen. After the user confirms the effect, they drag the preview image to the home screen. The electronic device responds to the drag operation by generating a sticker based on the person and displaying the sticker on the home screen.
[0109] In this embodiment, the electronic device displays the subject after it is cut out, allowing the user to instantly view the effect of the cut-out subject. The sticker is then generated and displayed only after the user confirms that everything is correct, thus improving the accuracy of sticker generation and the user experience.
[0110] In some embodiments of this application, the sticker display method provided in this application may further include steps 207 to 209:
[0111] Step 207: The electronic device performs object recognition on the first image to determine at least one candidate subject for shooting;
[0112] Step 208: The electronic device receives a second input from the user regarding the target object in at least one candidate object identifier;
[0113] Step 209: The electronic device responds to the second input and identifies the target object as the subject to be photographed.
[0114] In some embodiments of this application, when the first image contains multiple subjects, the electronic device can identify multiple candidate subjects in the image through an object recognition algorithm and generate a corresponding object identifier for each candidate subject. For example, the object identifier can be a text label (such as "person", "pet", "flower", etc.), an object thumbnail (such as a person thumbnail), or a visual identifier (such as a highlighted border, marker point, etc.).
[0115] In some embodiments of this application, after the electronic device displays the above-mentioned candidate shooting objects, the user can select the target shooting object from them through a fourth input, and the electronic device determines the target shooting object selected by the user as the shooting object used to generate stickers later.
[0116] In some embodiments of this application, the second input can be any feasible input such as touch input, voice input, or gesture input. The embodiments of this application do not limit the form of the fourth input.
[0117] For example, the electronic device performs object recognition on a photo containing two objects, a person and a pet, identifying two candidate subjects: "person" and "pet," and displays "person" and "pet" labels in the corresponding areas of the photo. When the user clicks the "pet" label, the electronic device identifies the pet as the subject and extracts the pet image for subsequent sticker generation.
[0118] In this embodiment of the application, when the first image contains multiple objects to be photographed, the electronic device enables the user to select the target object to be photographed from the object recognition and object display, so that the determined object to be photographed meets the user's expectations, thereby improving the flexibility and accuracy of sticker generation.
[0119] In some embodiments of this application, the first interface described above is a desktop interface; exemplarily, step 202 may include steps 202a and 202b:
[0120] Step 202a: In response to the first input, the electronic device determines the style characteristics of at least one desktop element in the first interface.
[0121] Among them, the aforementioned style features include at least one of color features, texture features, and shape features;
[0122] Step 202b: The electronic device displays a sticker on the first interface based on the style characteristics of at least one desktop element.
[0123] In some embodiments of this application, the desktop elements described above may include at least one of the following: icons, components, cards, input boxes, etc.
[0124] It should be noted that the desktop elements mentioned above can also be other types of desktop elements, and this application embodiment does not limit them.
[0125] In some embodiments of this application, the above-mentioned icons may be application icons, folder icons, etc., and this application does not limit them.
[0126] In some embodiments of this application, the color characteristics of desktop elements refer to the color attributes of desktop elements in the first interface. Specifically, color characteristics may include the primary color and secondary color of an icon; for example, the primary color of an icon may be blue.
[0127] In some embodiments of this application, an electronic device can perform color space analysis on icon image data, extract the color channel values of icon pixels, and determine the primary and secondary colors by statistically analyzing the distribution of each color channel.
[0128] In some embodiments of this application, the texture characteristics of desktop elements refer to the visual material properties presented by the desktop elements in the first interface. Specifically, texture characteristics may include at least one of glass texture, metallic texture, flat texture, and skeuomorphic texture. For example, the texture of an icon is a flat texture.
[0129] In some embodiments of this application, electronic devices can determine the texture type of an icon by performing texture analysis, light and shadow analysis, and reflection analysis on the icon.
[0130] In some embodiments of this application, the shape features of a desktop element refer to the geometric outline attributes of the desktop element in the first interface. Specifically, the shape features may include the outline shape and corner radius of the icon base. The outline shape refers to the geometric shape formed by the outer edges of the icon base, such as a circle, rounded rectangle, square, or other shapes. The corner radius refers to the radius of the arc at the four corners of the icon base. For example, the icon base may be elliptical.
[0131] In some embodiments of this application, the electronic device can extract the edge contour of the icon background using a contour detection algorithm, identify its shape category, and calculate the rounded corner parameters.
[0132] It should be noted that the aforementioned color features, texture features, and shape features can be used individually or in any combination. For example, an electronic device can determine the background color of the sticker based solely on the color features, or it can simultaneously determine the background color, texture rendering parameters, and background shape of the sticker based on the color features, texture features, and shape features respectively, in order to achieve adaptation of the sticker to the first interface in multiple visual dimensions. This application embodiment does not limit this.
[0133] In some embodiments of this application, after the electronic device extracts the style features of the desktop elements, it renders the sticker according to the style features, so that the visual attributes of the sticker, such as color, texture, and shape, match the style features of the icons in the first interface.
[0134] For example, a user drags a photo containing flowers onto the desktop interface. The electronic device detects that the icons on the desktop interface have a glass-like texture, a rounded rectangle shape, and a blue main color. Then, the electronic device adds a semi-transparent effect, a rounded rectangle background, and a blue background color to the flower sticker according to the style of the icons, so that the flower sticker is consistent with the visual style of the desktop icons.
[0135] Understandably, a primary interface (such as a desktop interface) typically contains multiple application icons, each with its own visual style. When an electronic device displays a sticker, it extracts the style characteristics of at least one desktop element from the primary interface and renders the sticker accordingly. This ensures that the sticker's color, texture, shape, and other visual attributes match the style characteristics of the icons in the primary interface, thereby achieving harmony and unity between the sticker and the overall visual style of the interface, and enhancing the aesthetics of the interface.
[0136] In this embodiment, the electronic device recognizes the style features of the first interface and renders the sticker accordingly, so that the sticker can automatically adapt to the visual style of the target interface without the user having to manually adjust parameters such as the color, texture or shape of the sticker, thereby improving the coordination between the sticker and the interface.
[0137] In some embodiments of this application, step 202b can be implemented by steps 202b1 to 202b4.
[0138] Step 201b1: The electronic device determines the background color of the sticker based on the color characteristics of at least one desktop element.
[0139] Step 201b2: The electronic device determines the base shape of the sticker based on the shape features of at least one desktop element.
[0140] Step 201b3: The electronic device determines the texture rendering parameters of the sticker based on the texture characteristics of at least one desktop element.
[0141] Step 201b4: The electronic device displays the sticker on the first interface based on the base plate color, base plate shape, and texture rendering parameters.
[0142] In some embodiments of this application, the electronic device can determine the color of the sticker substrate based on the extracted color features.
[0143] For example, the electronic device can extract at least one color value of an icon in the first interface and determine the color value as the color of the sticker background.
[0144] For example, an electronic device can determine the shape of the sticker base based on the extracted shape features, such as determining the outline shape of the icon base (e.g., a circle, a rounded rectangle, etc.) as the shape of the sticker base.
[0145] For example, an electronic device can determine the texture rendering parameters of a sticker based on the extracted texture features. For instance, when the texture feature is glass, the texture rendering parameters may include semi-transparent layer parameters; when the texture feature is metallic, the texture rendering parameters may include ambient reflection texture parameters; when the texture feature is flat, the texture rendering parameters may be to remove lighting and texture effects; and when the texture feature is skeuomorphic, the texture rendering parameters may include texture mapping parameters and stereoscopic lighting parameters.
[0146] In some embodiments of this application, the electronic device generates and displays stickers based on determined base plate color, base plate shape, and texture rendering parameters.
[0147] For example, if the electronic device extracts the main color of the desktop icon as light blue, the base shape as a rounded rectangle, and the texture as glass, then it determines that the sticker base color is light blue, the base shape as a rounded rectangle, and the texture rendering parameters are semi-transparent layer parameters and blur parameters, and generates and displays the sticker accordingly.
[0148] The sticker display method provided in this application is illustrated below with reference to the accompanying drawings.
[0149] For example, when a user drags the extracted subject to the desktop, the electronic device automatically scans the current desktop icons (taking the average feature of all icons in the visible area of the screen), identifies the style type through an algorithm model, and generates a style feature vector (such as "glass texture + rounded rectangle + light blue main color + low shadow intensity").
[0150] For example, during the drag-and-drop process, the adaptation engine optimizes the sticker effect in real time based on the feature vector:
[0151] For example, electronic devices adapt the texture of stickers and desktop icons. Glass-textured icons are fitted with glass, metallic, flat, and skeuomorphic textures to match different stickers. The adaptation rules are as follows:
[0152] Glass texture: Add a 50% semi-transparent layer to the sticker + Gaussian blur (radius σ=3px) + shallow depth of field (depth of field value D=8) effect to simulate the transparency of glass;
[0153] Metallic texture: The sticker is treated with an ambient reflective texture (reflectivity R=60%) and a frosted base layer (frostiness M=40%) to match the luster and texture of metal;
[0154] Flat design: The stickers remove all light and shadow effects and texture effects, retaining only solid color fill and a 1px stroke, to match the visual style of the flat icons;
[0155] Realistic texture: The stickers add real-world texture mapping (such as wood / leather) + 3D lighting (highlight angle 45°, shadow angle 135°) to restore the realistic visual effect of the real object.
[0156] For example, the electronic device adapts the shape of the sticker to the desktop icon and automatically generates a background shape that matches the icon.
[0157] Specifically, the shape features and rounded corner parameters of the desktop icon background are extracted using a contour detection algorithm, and the sticker background shape is directly matched isomorphically; if the icon is round / irregular, a rounded shape is used as the background, such as... Figure 3A As shown, the base shape of sticker 31 on the desktop is rounded; if it is a square icon, the rounded rectangle outline is extracted as the sticker base outline, as shown below. Figure 3B As shown, the base shape of sticker 32 on the desktop is a rounded rectangle.
[0158] For example, the electronic device performs color adaptation between the sticker and the desktop icon, and extracts the main color of the desktop as the background color of the sticker.
[0159] Specifically, the RGB color gamut mean method is used to extract the R, G, and B channel values of all icons in the visible area, and calculate their arithmetic mean to obtain the RGB values of the desktop's main color tone (R0, G0, B0). The second most frequent color in the icons is extracted as the auxiliary color, and its calculation method is the same as that of the main color tone to obtain the RGB values (R1, G1, B1). The contrast ratio between the sticker body and the desktop's main color tone is calculated using the RGB contrast ratio formula, where the contrast ratio C = [(max(R_main, R_sticker) + max(G_main, G_sticker) + max(B_main, B_sticker)) - (min(R_main, R_sticker) + min(G_main, G_sticker) + min(B_main, B_sticker))] / (max(R_main, R_sticker) + max(G_main, G_sticker) + max(B_main, B_sticker)) × 100%. Furthermore, if C ≥ 30%, the sticker base uses the primary color; if C < 30%, it automatically switches to the secondary color; if the secondary color contrast is still < 30%, the complementary color of the primary color is generated using the complementary color calculation formula as the base color to ensure the recognizability of the sticker body.
[0160] For example, electronic devices can display stickers with different styles based on icon style and color. Figure 4B As shown, the color of the puppy sticker 42 can be light yellow.
[0161] In this embodiment, the electronic device determines the display style of the sticker from three aspects: color, shape, and texture. This makes the sticker match the style of the first interface in multiple visual dimensions, achieving the adaptation of the sticker and the interface in terms of color harmony, shape consistency, and texture unity, thereby further improving the visual coordination between the sticker and the interface.
[0162] In some embodiments of this application, step 202 above may include steps 202c to 202e:
[0163] Step 202c: The electronic device responds to the first input and determines the position to be displayed.
[0164] Step 202d: The electronic device determines the size information of the sticker based on the size information of the position to be displayed.
[0165] Step 202e: The electronic device displays the sticker at the above-mentioned display position according to the sticker size information.
[0166] In some embodiments of this application, the size information of the position to be displayed can be the grid size of the area to be displayed.
[0167] In some embodiments of this application, the first input can be the input of a user dragging a sticker to a desktop area. The electronic device can determine the size information of the sticker based on the grid size of the desktop area corresponding to the first input, so that the size of the sticker adapts to the grid size of the desktop area.
[0168] In some embodiments of this application, the size of the sticker can be equal to the grid size, or the size of the sticker can be slightly smaller than the grid size, that is, the size of the sticker can match the grid size corresponding to the area to be displayed, so that the area to be displayed can accommodate the sticker.
[0169] For example, after a user drags the first image to an area on the desktop, the electronic device adjusts the size of the sticker to match the grid size corresponding to that area, and displays the sticker within the grid corresponding to that area.
[0170] In some embodiments of this application, the electronic device can determine the size of the sticker in the first interface based on the sticker's size information (such as sticker ratio and size percentage), for example, the grid size occupied by the sticker in the first interface, and display the sticker in the first interface according to the grid size.
[0171] In some embodiments of this application, the sticker ratio is determined based on the ratio of the sticker's width to its height, and the size ratio is determined based on the ratio of the number of pixels in the sticker to the screen pixel value of the electronic device.
[0172] For example, the electronic device adapts the sticker size by automatically recognizing the desktop grid placeholder (one icon is a 1*1 grid) according to the sticker ratio. The sticker ratio is W:H, the number of pixels is X, and its R value (R=W / H) and Z value (X / phone pixel value) are calculated.
[0173] For example, if 0.95 ≤ R ≤ 1.05, a 1*1 or 2*2 desktop grid is matched, meaning the sticker occupies a 1*1 or 2*2 grid size; if 0.2 ≤ Z, a 2*2 desktop grid is used, otherwise a 1*1 desktop grid is used. If R < 0.95, a 2*1 or 4*2 desktop grid is matched; if 0.2 ≤ Z, a 2*1 desktop grid is used, otherwise a 4*2 desktop grid is used. If 0.95 < R, a 1*2 or 2*4 desktop grid is matched; if 0.2 ≤ Z, a 1*2 desktop grid is used, otherwise a 2*4 desktop grid is used. For example, as... Figure 4A As shown, sticker 41 on the desktop has a value of 0.95≤R≤1.05 and is a near-square sticker, so a 2*2 desktop grid is used.
[0174] In this embodiment, the electronic device can determine the size information of the sticker based on the size information of the position to be displayed, thereby matching the size of the sticker with the size of the position to be displayed, and further improving the visual coordination between the sticker and the interface.
[0175] In some embodiments of this application, the first image is a video image or a moving image; the sticker is a dynamic sticker; exemplaryly, the sticker display method provided in the embodiments of this application may further include the following step 210:
[0176] Step 210: The electronic device generates a dynamic sticker based on the aforementioned dynamic shooting object.
[0177] In some embodiments of this application, the first image described above may be a single image, an image frame from a video, or a moving image.
[0178] In some embodiments of this application, the sticker can be a static sticker or a dynamic sticker.
[0179] In some embodiments of this application, dynamic stickers can be obtained from videos or Live Photos, etc.
[0180] In some embodiments of this application, when the first image is an image from a video, the electronic device can extract the dynamic shooting object from the video, that is, the shooting object that moves over time in the video. For example, running animals, dancing people, etc. in the video.
[0181] In some embodiments of this application, the electronic device can identify and track moving objects in a video using motion detection algorithms and / or image segmentation algorithms, separating them from the video background to obtain the dynamic object. Then, the electronic device generates a dynamic sticker based on this dynamic object.
[0182] Understandably, compared to static stickers, dynamic stickers have a dynamic visual effect that changes over time.
[0183] For example, a user views a video containing a running puppy in their photo album. The electronic device extracts the puppy as the subject of the video and generates a dynamic sticker of the running puppy based on the dynamic subject.
[0184] In this embodiment of the application, the electronic device can extract dynamic shooting objects from the video and generate dynamic stickers, so that the stickers are no longer limited to static images and the expression of the stickers is enriched.
[0185] In some embodiments of this application, displaying the sticker on the first interface in step 202 above can be achieved through the following step 202c:
[0186] Step 202c: The electronic device displays a dynamic sticker on the first interface and controls the playback of the dynamic sticker according to the first playback speed.
[0187] In some embodiments of this application, when an electronic device displays a dynamic sticker on a desktop interface or other target interface, it can control the dynamic sticker to play once or in a loop at a specific first playback speed.
[0188] It should be noted that the playback of dynamic stickers refers to the continuous movement of the subject in the dynamic sticker, such as an animal running or a person dancing.
[0189] In some embodiments of this application, the first playback speed can be the system's default animation playback rate, or it can be the same as the system animation rate of the electronic device, or it can be set or adjusted by the user according to personal needs.
[0190] In some examples, electronic devices display a dynamic sticker of a running puppy on the desktop interface and control the dynamic sticker to loop at a playback speed of 30 frames per second, so that the puppy continuously presents a running dynamic effect on the desktop interface.
[0191] In some examples, electronic devices display a dynamic sticker of a running puppy on the desktop interface, playing it once at a speed of 30 frames per second. Users can then trigger a loop of the dynamic sticker by clicking on it, continuously displaying the running puppy effect on the desktop.
[0192] In this embodiment of the application, the electronic device controls the dynamic sticker to play at a first playback speed, so that the dynamic sticker can present dynamic effects at an appropriate rate, thereby improving the visual expressiveness of the dynamic sticker.
[0193] In some embodiments of this application, the sticker display method provided in this application may further include the following steps C1 and C2:
[0194] Step C1: The electronic device receives a third input from the user regarding the dynamic sticker.
[0195] Step C2: The electronic device responds to the third input and displays the dynamic effect of the animated sticker.
[0196] In some embodiments of this application, displaying the dynamic effects of a dynamic sticker may include displaying or playing an animation effect corresponding to the dynamic sticker. For example, an electronic device may display an animation effect corresponding to the object category to which the image in the dynamic sticker belongs.
[0197] In some embodiments of this application, the aforementioned third input can be any feasible input such as touch input, voice input, or gesture input. The embodiments of this application do not limit the form of the third input.
[0198] In some embodiments of this application, the above-mentioned object categories may include animal categories (cats, dogs, horses, etc.), human categories, item categories, etc.
[0199] In some embodiments of this application, different corresponding categories may correspond to different dynamic effects (or animation effects).
[0200] For example, electronic devices can associate different dynamic effects with different object categories. For instance, for animal-themed dynamic stickers, the dynamic effect could be the animal making a responsive action (such as wagging its tail, jumping, or spinning); for human-themed dynamic stickers, the dynamic effect could be the human waving or nodding.
[0201] In some embodiments of this application, when a user views an animated sticker, they can perform a third input on the animated sticker (e.g., click on the animated sticker), and the electronic device responds to the third input by displaying the animated effect corresponding to the animated sticker.
[0202] For example, the desktop interface of an electronic device displays a dynamic puppy sticker. When the user clicks on the dynamic puppy sticker, the electronic device controls the puppy in the sticker to make a stretching animation.
[0203] The sticker display method provided in this application is illustrated below with reference to the accompanying drawings.
[0204] For example, when a user long-presses a video clip in the photo album (supporting 3-10 seconds of clipping), the electronic device uses a motion detection algorithm based on optical flow and a dual-network segmentation architecture (Base + Refine) to extract the dynamic subject from the video in real time, automatically selects the best loop segment (with default optimization for first and last frame transitions), and generates dynamic material at 60 FPS. When the user drags the dynamic material to the desktop, style adaptation is triggered simultaneously (rules are the same as for static stickers). After placement, it automatically plays once, with the playback speed matching the system animation rate (which can be adjusted in settings), and then displays as a static sticker, such as... Figure 5A As shown, a puppy sticker 52 is displayed on the desktop 51. This puppy sticker 52 automatically plays once and then becomes a static sticker. Clicking on the dynamic sticker triggers preset actions (such as animal stickers responding with animation, or character stickers waving), such as... Figure 5B As shown, when a user taps the puppy sticker 52, the sticker sticks out its tongue and shoots a heart. Furthermore, the size of the animated sticker can be adjusted by pinching and zooming, with the animation remaining uninterrupted during the zooming process. Additionally, it supports enabling gravity sensor linkage, causing the animated sticker to shift with the phone's tilt angle (e.g., the pet sticker moves towards the edge when the phone is tilted). This feature can be disabled in the settings.
[0205] In this embodiment, the electronic device receives user input for the dynamic sticker and controls the dynamic sticker to execute a preset animation corresponding to the object category, thereby increasing the interactivity between the dynamic sticker and the user and enhancing the fun of the sticker display.
[0206] In some embodiments of this application, after displaying the sticker on the second interface in step 202 above, the sticker display method provided in this application embodiment may further include the following steps 212 and 213:
[0207] Step 212: The electronic device receives the eighth input to the sticker.
[0208] Step 213: The electronic device responds to the eighth input and adjusts the display size of the sticker.
[0209] In some embodiments of this application, the eighth input can be any feasible input such as touch input, voice input, or gesture input, and this application does not limit the form of the eighth input.
[0210] In some embodiments of this application, the eighth input described above can be an editing operation on the sticker.
[0211] For example, the eighth input can be a user's two-finger zoom input on the sticker, or a user's input to a size adjustment control, wherein the size adjustment control is used to adjust the size of the sticker.
[0212] In some embodiments of this application, the electronic device can receive an eighth input from the user to the sticker, such as two-finger zoom input, dragging the size adjustment control, etc., to adjust the display size of the sticker.
[0213] In some embodiments of this application, for animated stickers, the dynamic effects of the animated stickers can continue to play without interruption during the resizing process.
[0214] For example, a user displays a flower sticker on the desktop interface. The user uses two fingers to zoom in on the sticker, and the electronic device responds to the user's two-finger zoom input by enlarging the display size of the flower sticker.
[0215] In this embodiment, the electronic device allows users to adjust the size of the stickers, enabling users to freely adjust the sticker size according to desktop layout or personal preferences, thereby improving the flexibility and personalization of sticker display.
[0216] In some embodiments of this application, after displaying the sticker on the second interface in step 202 above, the sticker display method provided in this application embodiment may further include the following step 214:
[0217] Step 214: When the gravity sensor linkage mode is enabled, the electronic device controls the sticker to move in the first interface based on the electronic device's posture information.
[0218] In some embodiments of this application, the electronic device may have a gravity sensor linkage mode, which can be manually turned on or off by the user.
[0219] In some embodiments of this application, when the gravity sensing linkage mode is activated, the electronic device can acquire its attitude information, such as the tilt angle and tilt direction, through a gravity sensor, an accelerometer, etc. Then, based on the acquired attitude information, the electronic device controls the sticker to move accordingly on the first interface. For example, when the electronic device tilts to the left, the sticker moves to the left; when the electronic device tilts to the right, the sticker moves to the right.
[0220] For example, when the electronic device is in gravity sensor-activated linkage mode, a dynamic dog sticker is displayed on the device's desktop. When the user tilts the electronic device to the left, the device detects the tilt angle and controls the dog sticker to move to the left side of the desktop.
[0221] In this embodiment, the electronic device detects the posture information of the electronic device and moves the sticker on the first interface according to the posture information, so that the sticker can move with the posture change of the electronic device, which increases the interactivity between the sticker and the user and thus enhances the fun of the sticker.
[0222] In some embodiments of this application, after displaying the sticker on the second interface in step 202 above, the sticker display method provided in this application embodiment may further include the following steps 216 and 217:
[0223] Step 216: The electronic device receives the user's fourth input.
[0224] Step 217: In response to the fourth input, the electronic device updates the display style of at least one desktop element in the first interface based on the style features of the sticker.
[0225] The style of the stickers matches the style of the first interface after the first interface is updated.
[0226] In some embodiments of this application, the fourth input can be any feasible input such as touch input, voice input or gesture input. This application does not limit the form of the fourth input.
[0227] In some embodiments of this application, the fourth input can be an input to the "desktop style adaptation" option or an input to the sticker. For example, the "desktop style adaptation" option is used to trigger a sticker-based style feature update to the display style of the image in the first interface.
[0228] For example, when the fourth input is for the "desktop style adaptation" option, the user can first click or long-press the sticker to trigger the display of the "desktop style adaptation" option. Then, by clicking the "desktop style adaptation" option, the electronic device can update the display style of the image in the first interface based on the style features of the sticker.
[0229] In some embodiments of this application, after receiving the fourth input, the electronic device identifies the style characteristics of the sticker and adjusts the display style of at least one desktop element in the first interface according to the style characteristics. After adjustment, the display style of the icon matches the style characteristics of the sticker, achieving a unified desktop visual style.
[0230] In some embodiments of this application, the style characteristics of the sticker can be cute (such as rounded lines, highly saturated colors, and yellow as the main color), technological (such as cool colors and geometric lines), artistic (such as hand-drawn textures and irregular shapes), etc.
[0231] For example, a user places a cute puppy sticker on the desktop interface. After the user long-presses the puppy sticker and selects "desktop style adaptation", the electronic device recognizes the style characteristics of the sticker as cute, specifically manifested as rounded lines, high saturation colors, and yellow as the main color. The icons on the desktop are then adjusted to cute icons, that is, blunted edges, warm colors, and yellow as the main color.
[0232] The sticker display method provided in this application is illustrated below with reference to the accompanying drawings.
[0233] For example, after a sticker is placed on a desktop, the electronic device automatically analyzes its style characteristics (cute style: rounded lines, highly saturated colors, cartoon textures; tech style: cool colors, metallic textures, geometric lines; artistic style: hand-drawn textures, irregular shapes). For example... Figure 6A As shown, a sticker 62 is displayed on the desktop 61. The user can long-press the sticker 62 to view the following: Figure 6B As shown, the "Desktop Style Adaptation" option is displayed. After the user clicks the "Desktop Style Adaptation" option, reverse adaptation is initiated, and the desktop with the adapted style is as follows. Figure 6C Desktop 63 in the game features icons that match the style of the puppy stickers, giving it a cute look.
[0234] Specifically, the icon style is automatically generated based on sticker characteristics. An image recognition algorithm understands the sticker content and corresponding color scheme before generating the icon (e.g., a dog sticker generates a cute dog icon with warmer colors and a flat texture; a tech product sticker triggers a tech-style icon with sharpened edges, a metallic texture, and cool-toned fill). Furthermore, the style transition uses a 1.5-second fade-in / fade-out transition. The transparency change in the transition animation follows a linear interpolation algorithm, meaning the icon transparency linearly decreases from 100% to 0% and then linearly increases back to 100% over time t (0-1.5s), ensuring a seamless visual transition between the new and original styles.
[0235] In this embodiment, the electronic device supports adjusting the display style of the icon in reverse according to the style of the sticker, realizing two-way linkage between the sticker content and the desktop visual elements, allowing users to adjust the overall style of the desktop by customizing stickers, thereby improving the personalization and flexibility of the display.
[0236] In some embodiments of this application, after displaying the sticker on the second interface in step 202 above, the sticker display method provided in this application embodiment may further include the following steps 218 to 220:
[0237] Step 218: The electronic device displays at least one function control, each function control corresponding to one function.
[0238] Step 219: The electronic device receives the user's fifth input.
[0239] Step 220: The electronic device responds to the fifth input and establishes an association between the sticker and the function corresponding to the target function control.
[0240] The target function control is one or more controls among at least one function control, and the sticker is used to trigger the execution of the function corresponding to the target function control.
[0241] In some embodiments of this application, the electronic device may display at least one function control on a first interface, with each function control indicating a function.
[0242] In some embodiments of this application, the above-mentioned functions may include application function controls and / or system function controls. For example, functions may include application function shortcuts (such as "scan", "payment code", etc.), atomic pages within the application (such as "create note", "create schedule", etc.), and native system control capabilities (such as "one-click lock screen", "flashlight", "unlock screen", etc.).
[0243] In some embodiments of this application, after the sticker is displayed on the first interface, the electronic device may display at least one functional control.
[0244] In some embodiments of this application, the electronic device can receive a fifth input from the user and, in response to the fifth input, establish an association between the sticker and the function corresponding to the target function control.
[0245] In some embodiments of this application, the target functional control is one or more controls among at least one functional control. For example, the target functional control is all functional controls among at least one functional control; or, the target functional control is one or more functional controls selected by the user among at least one functional control; or, the target functional control is a functional control among at least one functional control whose corresponding function is a function recently used by the user.
[0246] In some embodiments of this application, the fifth input can be any feasible input such as touch input, voice input or gesture input, and the embodiments of this application do not limit the form of the fifth input.
[0247] In some embodiments of this application, the fifth input can be user input to the "one-click association" control or user input to the target functional control. The "one-click association" control is used to establish associations between at least one functional control and stickers in batches.
[0248] In some embodiments of this application, after the electronic device establishes the association between the sticker and the function corresponding to the target function control, it receives the user's ninth input on the sticker and executes the function corresponding to the target function.
[0249] It should be noted that the way electronic devices establish associations and trigger functions can vary depending on the number of target function controls selected by the user. The following will explain case 1 and case 2 respectively.
[0250] Scenario 1: Stickers are associated with a single function;
[0251] In some embodiments of this application, when the target functional control is one of at least one functional control, the electronic device establishes an association between the sticker and a function corresponding to that target functional control. That is, when a user selects a functional control from a plurality of displayed functional controls, the electronic device binds the sticker to the function corresponding to that functional control. After the association is established, the user can trigger the execution of the function associated with the sticker by inputting on the sticker (e.g., clicking the sticker).
[0252] For example, an electronic device displays a flower sticker on its desktop interface, along with several function controls such as "Scan," "Payment Code," and "One-Click Screen Lock" near the sticker. When the user selects the "Payment Code" function control, the electronic device establishes a connection between the flower sticker and the payment code function. Subsequently, when the user clicks the flower sticker, the electronic device directly opens the payment code interface.
[0253] Scenario 2: Binding multiple functions;
[0254] In some embodiments of this application, when the target functional control is multiple functional controls among at least one functional control, the electronic device establishes an association between the sticker and the multiple functions corresponding to each of the multiple functional controls. That is, the user can select two or more functional controls from the displayed multiple functional controls, or select the "one-click association" option to bind multiple functions with one click, and the electronic device binds the sticker to multiple functions.
[0255] Specifically, after the electronic device establishes the association between the sticker and multiple functions, the electronic device can receive the user's click input on the sticker and display the function icons (such as icons and text labels of each function) corresponding to the multiple functions associated with the sticker. The user can select any one or more function icons from them, and the electronic device responds to the selection input by executing the function corresponding to the one or more function icons.
[0256] In some examples, the electronic device displays a flower sticker on the desktop interface, along with several function controls such as "Scan," "Payment Code," and "One-Click Lock Screen" near the sticker. When the user selects one of these controls, the electronic device establishes an association between the flower sticker and the scan, payment code, and one-click lock screen functions. Subsequently, when the user clicks the flower sticker, the electronic device displays a shortcut menu containing icons for "Scan," "Payment Code," and "One-Click Lock Screen." Selecting "Payment Code" from this menu opens the payment code interface.
[0257] In some examples, the electronic device displays a flower sticker on the desktop interface, along with several function controls such as "Navigation App," "Ride Code," and "One-Click Lock Screen" near the sticker. When the user selects one of these controls, the electronic device establishes an association between the flower sticker and the map navigation, ride code, and one-click lock screen functions. Subsequently, when the user clicks the flower sticker, the electronic device displays a shortcut menu containing icons for "Navigation App," "Ride Code," and "One-Click Lock Screen." Selecting "Navigation App" or "Ride Code" from this menu opens the navigation app and the ride code on the electronic device.
[0258] In other embodiments of this application, after the electronic device establishes an association between the sticker and multiple functions, the electronic device can receive user click input on the sticker and, in response to the click input, directly execute multiple functions associated with the sticker.
[0259] For example, an electronic device displays a flower sticker on its desktop interface, with "Ride Code" and "Map Navigation" controls displayed near the sticker. After the user clicks the "One-Click Association" control, the electronic device establishes an association between the flower sticker and the map navigation and ride code functions. Subsequently, when the user clicks the flower sticker, the electronic device opens the navigation application and the ride code.
[0260] In some embodiments of this application, when a sticker is associated with multiple functions, the electronic device can adopt different response methods based on different user input methods. For example, when a user short-presses the sticker, the electronic device displays multiple function icons for the user to select; when a user long-presses the sticker, the electronic device directly executes all associated functions. The specific triggering method can be set according to actual usage needs, and this application embodiment does not limit it in this regard.
[0261] In some embodiments of this application, the first interface described above is a lock screen interface; exemplarily, the sticker display method described above may further include the following steps D1 and D2:
[0262] Step D1: The electronic device receives the user's seventh input on the sticker.
[0263] Step D2: The electronic device responds to the seventh input and performs an unlocking operation.
[0264] In some embodiments of this application, the seventh input can be any feasible input such as touch input, voice input or gesture input, and the embodiments of this application do not limit the form of the seventh input.
[0265] In some embodiments of this application, the process of unlocking the electronic device in step D2 above may include the following step E1:
[0266] Step E1: If the seventh input matches the preset input trajectory, perform an unlocking operation on the electronic device.
[0267] In some embodiments of this application, the preset input trajectory can be any trajectory preset by the system or defined by the user. For example, the preset input trajectory can be a straight line trajectory, a curved trajectory, a trajectory of arbitrary graphic shape, etc., and this application does not limit this.
[0268] For example, when a sticker is displayed on the lock screen, the electronic device unlocks after the user swipes up on the sticker.
[0269] In some embodiments of this application, the sticker is one of a plurality of stickers in the lock screen interface; exemplarily, the process of performing the unlocking operation on the electronic device in step D2 above may include the following step E2:
[0270] Step E2: If the sticker has unlocking permissions, perform an unlocking operation on the electronic device.
[0271] In some embodiments of this application, the electronic device can establish an association between the sticker and unlocking permission.
[0272] For example, the electronic device establishes an association between the puppy sticker and the unlock operation. When the puppy sticker is displayed on the lock screen, the electronic device performs the unlock operation after the user clicks on the puppy sticker.
[0273] In this embodiment, the electronic device can perform an unlocking operation based on the user's operation on the sticker, thereby enhancing the fun of unlocking the screen.
[0274] The sticker display method provided in this application is illustrated below with reference to the accompanying drawings.
[0275] For example, electronic devices automatically scan the compliance capabilities of all installed applications through the native Android PackageManager interface, and uniformly aggregate them into a global shortcut function pool without requiring additional application adaptation. The core coverage includes three types of functions: standard application shortcuts: compatible with the Android App Shortcuts specification, covering static application shortcuts, dynamic shortcuts, and fixed shortcuts (such as WeChat "Scan, Payment Code, Start Group Chat", Alipay "Receive and Pay, Travel Code, Social Security Inquiry", and camera "Take Photo, Record Video, Portrait Mode").
[0276] In-app atomic pages: Extract independent Activity entry points that can be directly navigated to from the outside of the application (such as "Call Frequently Used Contacts" in Phone, "Create Note" in Notes, and "Create Schedule" in Calendar);
[0277] Native system control capabilities: Incorporating system-level shortcut functions, including one-click screen lock, brightness adjustment, Bluetooth / WiFi switch, screenshot and screen recording, silent mode, flashlight and other system control capabilities, expanding the boundaries of sticker functionality.
[0278] For example, the binding process is completely aligned with the original "one press, two drags, three releases" core interaction, providing dual trigger entry points with no additional learning cost. It also supports multiple binding modes to meet the differentiated needs of single-function direct access and multi-function invocation.
[0279] For example, embodiments of this application provide dual-scene binding trigger entry points, wherein:
[0280] Scenario 1: One-click quick binding during placement
[0281] For example, after dragging and dropping the sticker to the desktop and releasing it to complete the style adaptation, a non-blocking "Quick Function Binding" floating pop-up window appears at the bottom of the screen, which displays 3-5 frequently used quick functions by default. Users can click to complete one-click binding; or they can choose "Do not bind for now", and the sticker will directly enter a pure decoration mode without any forced operation.
[0282] For example, after the electronic device displays sticker 72 on desktop 71, it automatically displays several recommended functional controls, namely functional controls 73, 74, 75, and 76. Users can select one or more functional controls to establish a binding relationship with the sticker, or click the "Confirm" option to trigger the binding relationship between all four functional controls and the sticker with one click, or click the "Cancel" option to return. Figure 7A As shown.
[0283] Scenario 2: Editing custom bindings after placement
[0284] For example, when a user long-presses a sticker already placed on the desktop, a new option to bind a shortcut function is added to the original operation menu. After clicking, the user enters the full function selection panel, which displays the complete shortcut function pool by "System Functions / Application Categories". It supports keyword search, multiple function selection, and custom sorting. Users can freely configure the number and order of bound functions.
[0285] For example, after the electronic device displays sticker 72 on desktop 71, the user clicks on sticker 72, as follows: Figure 7B As shown, the electronic device displays the "Adapt Desktop Icons" option and the "Bind Shortcut Function Options" option on desktop 71. After the user clicks the "Bind Shortcut Function Options" option, as shown... Figure 7C As shown, the electronic device displays a function window 77 on the desktop 71. The function window 77 includes at least one function control, from which the user can select one or more function controls to establish a binding relationship between them and the sticker.
[0286] For example, embodiments of this application provide single / multiple binding modes to cover all scenario requirements, wherein:
[0287] Mode 1: Single-function binding based on click-to-access
[0288] For example, users can set one core, essential quick function. A short press on the sticker (<300ms) directly triggers the function, eliminating the need for secondary selection or opening the main application interface. The operation is completed by directly launching an atomic page. For example, clicking the sticker can directly open WeChat payment code, scan with the camera, or lock the screen with one click, minimizing the operation path and adapting to high-frequency, essential scenarios.
[0289] For example, for single-function binding, after a sticker is displayed on the desktop, the user can click on the sticker to directly trigger the execution of a function that is bound to the sticker, such as turning on the flashlight.
[0290] Mode 2: Multi-functional combination binding based on long press activation
[0291] For example, it supports users to bind 2-6 shortcut functions. When long-pressing a sticker (≥300ms), a fan-shaped / disc-shaped shortcut function menu pops up with the sticker as the center. Each function corresponds to an independent icon and text label. Clicking it will trigger the corresponding operation. Clicking an empty area of the desktop / back gesture can quickly collapse the menu, adapting to the needs of multi-functional aggregation.
[0292] For example, such as Figure 8 As shown, after the sticker is displayed on the desktop 81, the user can long press the sticker, and the electronic device will display a function menu 82 on the desktop. The function menu 82 includes multiple function controls that are bound to the sticker. The user can click on one or more functions to trigger the corresponding operation.
[0293] In this embodiment, the electronic device can bind stickers to functions based on user input, making the stickers a composite desktop component that combines visual decoration and functional access. This expands the functionality of the stickers and improves their practicality and operational efficiency.
[0294] The following example illustrates the sticker display method provided in this application through a specific scenario.
[0295] Suppose a user is browsing photos in a photo album app on their electronic device, and one of the photos contains a puppy. The user wants to create a desktop sticker from this puppy image to decorate their home screen. The user drags the puppy photo from the album to the desktop. During the dragging process, the electronic device recognizes the puppy in the photo as the subject and retrieves the style characteristics of all application icons in the visible area of the desktop. Based on these style characteristics, it renders a puppy sticker based on the subject. After the user drags the image to the target location on the desktop and releases the button, the electronic device completes the sticker generation and adaptive display, displaying the puppy sticker at the end of the drag input on the desktop. The puppy sticker's color, texture, and shape are coordinated and consistent with the desktop icons.
[0296] Furthermore, users can perform additional settings on the dog sticker, such as adjusting its size, or clicking on the sticker to establish an association between the sticker and the electronic device's functions (such as camera functionality). Afterward, clicking the dog sticker will directly open the camera application on the electronic device.
[0297] In this embodiment, users can easily extract the subject from any image to generate style-adaptive desktop stickers without the need for third-party tools, greatly improving the convenience of desktop personalization.
[0298] In this embodiment, users can long-press an image / video in their photo album to extract the main subject within 0.1 seconds. A semi-transparent mask previews the extraction result, and multiple subjects can be switched using clickable tags. Edge details are optimized in real time. The extracted subject can be dragged to the desktop, triggering style adaptation (real-time rendering of texture, shape, and color) during the dragging process. A preview window is displayed in the upper right corner of the screen, and magnetic alignment is triggered when the subject is dragged to the desktop. After releasing the button, the sticker automatically completes size fine-tuning and final style adaptation. Static stickers are fixed directly, while dynamic stickers automatically loop. After placement, the sticker supports: long-press and drag to adjust position, two-finger zoom, click to trigger interaction (dynamic stickers), and reverse adaptation to the desktop style. This improves the convenience and practicality of sticker display.
[0299] In some embodiments of this application, the electronic device can also support a multi-subject combined sticker function. Specifically, the user can continuously extract shooting objects from multiple images or videos, and drag the extracted shooting objects to the same position on the desktop interface in sequence. In response to this operation, the electronic device automatically generates a combined sticker from the multiple shooting objects. In this combined sticker, the electronic device intelligently adjusts the display layer (i.e., the stacking order of the objects), relative size, and style uniformity of each shooting object, so that the multiple shooting objects visually constitute a coordinated whole sticker, realizing a personalized display of multiple materials on one screen.
[0300] In some embodiments of this application, dynamic stickers can also be linked to system status or applications. In one possible implementation, dynamic stickers can be linked to system status; for example, weather stickers can change their animation effects based on real-time weather information obtained by the electronic device, and time stickers can switch between day and night display effects based on the current time. In another possible implementation, dynamic stickers can be linked to applications; for example, a sticker bound to an instant messaging application (such as WeChat) can execute a flashing notification animation when the application receives a new message. In this way, dynamic stickers are no longer displayed in isolation but can perceive system status and application events and respond accordingly, enhancing the practicality and information delivery capabilities of the stickers.
[0301] In some embodiments of this application, the electronic device can also support cross-device synchronization of desktop sticker configurations. Specifically, after a user logs in to the same account, the electronic device can upload the desktop sticker configurations (including static stickers, dynamic stickers, and their style settings) on the current device to a server or the cloud. When a user logs in to the same account on another device, the electronic device retrieves the aforementioned sticker configurations from the server or the cloud and restores their display on the target device. During the synchronization process, the electronic device automatically adapts the sticker display parameters according to the screen size and icon style of the target device, ensuring that the stickers achieve good display effects on different devices and improving the consistency of personalized experiences for users across multiple devices.
[0302] In some embodiments of this application, the electronic device can also perform lifecycle management of stickers. Specifically, the electronic device can record the creation time and recent usage time of each sticker. For stickers that have not been viewed or used for more than a preset period (e.g., 3 months), the electronic device automatically clears the cached data of that sticker. Specifically, for static stickers, the electronic device retains their thumbnails for user preview; for dynamic stickers, the electronic device retains their core frames (such as the first frame or keyframe image) to preserve the visual overview of the sticker while occupying less storage space. Users can also mark specific stickers as "frequently used stickers." In response to this marking operation, the electronic device excludes the marked stickers from the automatic cleanup scope, preventing frequently used stickers from being mistakenly cleared. In this way, storage space is freed up while also meeting the user's need to retain frequently used stickers.
[0303] In some embodiments of this application, the electronic device may also provide an application programming interface (API) for subject extraction and style adaptation capabilities. Specifically, third-party applications (such as image editing applications, video editing applications, etc.) can access the subject extraction and style adaptation capabilities provided in this application by calling the API. When a user browses or edits materials in a third-party application, they can directly drag and drop image or video materials from the third-party application to the desktop interface. In response to this drag-and-drop operation, the electronic device calls the subject extraction and style adaptation capabilities to generate corresponding stickers and display them on the desktop interface.
[0304] In this way, the source of sticker materials is no longer limited to the system photo album; materials from third-party applications can also be used as sticker sources, expanding the channels for obtaining sticker materials and improving the flexibility of sticker generation and the richness of application scenarios.
[0305] The sticker display method provided in this application can solve the problems of cumbersome operation, inconsistent style, and insufficient dynamic effects of existing desktop personalization functions. It can realize a desktop sticker creation experience with one-click extraction, intelligent adaptation, and dynamic interaction. At the same time, it establishes a two-way style linkage mechanism between materials and desktop, allowing users to quickly generate personalized stickers that fit the desktop style without professional skills.
[0306] In this embodiment, on the one hand, subject extraction is triggered by long-pressing an album image, and style matching is completed during the dragging process, achieving an ultra-short creation path of "one-click selection, two-drag to the desktop, three-placement." On the other hand, a desktop style intelligent recognition and adaptation system is constructed, which automatically analyzes the core features of icons in terms of color, light and shadow, texture, and shape, and generates stickers (including background shape, color, and effects) that match the style in real time, without the need for manual parameter adjustment. Furthermore, video cutout and dynamic rendering technologies are integrated to support the extraction of dynamic subjects from local videos, generating loopable and interactive dynamic stickers, and adapting to mobile device performance optimization. On another hand, a reverse adaptation mechanism between sticker content and desktop style is established. After the user drags specific style materials (such as animals or technological products) to the desktop, the system can automatically adjust the desktop icon style to achieve global visual unity. Finally, a multi-scenario compatible adaptive mechanism is designed to dynamically adjust the sticker rendering effect according to the device screen size, icon specifications, and hardware performance to ensure cross-device consistency.
[0307] Compared to existing technologies, the sticker display method provided in this application has no additional application dependencies. As a native function of the operating system, it does not require switching to third-party tools, and the operation process is continuous. Style adaptation is fully automated, avoiding the tedious and unprofessional problems of manual adjustment by users. It supports static or dynamic dual-mode stickers, and the dynamic effects are deeply integrated with desktop interaction. The two-way style linkage mechanism expands the dimension of personalization and realizes the innovative experience of defining the desktop with materials. The interaction logic conforms to user intuition, has a low learning cost, and is compatible with different operating habits.
[0308] It should be noted that each of the above method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0309] The sticker display method provided in this application can be executed by a sticker display device. This application uses a sticker display device to perform the sticker display method as an example to illustrate the sticker display device provided in this application.
[0310] Figure 9 This is a schematic diagram of the structure of a sticker display device provided in an embodiment of this application. Figure 9 As shown, the sticker display device 600 includes a receiving module 601 and a display module 602.
[0311] Wherein: receiving module 601 is used to receive a first input from the user when the first image is displayed; display module 602 is used to display a sticker on the first interface in response to the first input received by the receiving module; the sticker is generated based on the photographed object in the first image.
[0312] In some embodiments of this application, the receiving module is specifically used to receive a first input from a user to a first image; wherein the first input is used to trigger the generation and display of a sticker on a first interface.
[0313] In some embodiments of this application, the receiving module is further configured to receive a sixth input from the user to the first image; the processing module is configured to extract the photographed object from the first image in response to the sixth input received by the receiving module; the receiving module is specifically configured to receive a first input from the user to the first image;
[0314] The first input is used to trigger the generation of stickers based on the photographed object, and the stickers are displayed on the second interface.
[0315] In some embodiments of this application, the receiving module is further configured to: receive a seventh input from the user to the first image; the processing module is configured to, in response to the seventh input, extract the photographed object from the first image and display the photographed object; the receiving module is specifically configured to receive a first input from the user to the photographed object; wherein the first input is used to trigger the generation of a sticker based on the photographed object and display the sticker on the second interface.
[0316] In some embodiments of this application, the processing module is further configured to perform object recognition on the first image to determine at least one candidate shooting object; the receiving module is further configured to receive a second input from the user regarding the target shooting object among the at least one candidate shooting object; and the processing module is further configured to determine the target shooting object as the shooting object in response to the second input.
[0317] In some embodiments of this application, the display module is specifically configured to: in response to a first input, determine the style features of at least one desktop element in a first interface; the style features include at least one of color features, texture features, and shape features; and display a sticker on the first interface based on the style features of at least one desktop element.
[0318] In some embodiments of this application, the display module is specifically used to: determine the background color of the sticker based on the color characteristics of at least one desktop element; determine the background shape of the sticker based on the shape characteristics of at least one desktop element; determine the texture rendering parameters of the sticker based on the texture characteristics of at least one desktop element; and display the sticker on a first interface based on the background color, background shape, and texture rendering parameters.
[0319] In some embodiments of this application, the first image is an image from a video; the sticker is an animated sticker; the processing module is used to: extract the animated object from the video; and generate the animated sticker based on the animated object.
[0320] In some embodiments of this application, the display module is specifically used for: responding to a first input, determining a display position; determining the size information of a sticker based on the size information of the display position; and displaying the sticker at the display position based on the size information of the sticker.
[0321] In some embodiments of this application, the display module is specifically used to display dynamic stickers on a first interface and control the playback of the dynamic stickers according to a first playback speed.
[0322] In some embodiments of this application, the receiving module is further configured to receive a third input from the user regarding the dynamic sticker; the processing module is configured to display the dynamic effect of the dynamic sticker in response to the third input received by the receiving module.
[0323] In some embodiments of this application, the receiving module is further configured to receive an eighth input from the user; the processing module is configured to adjust the display size of the sticker in response to the eighth input.
[0324] In some embodiments of this application, the processing module is used to: control the sticker to move in the first interface according to the attitude information of the electronic device when the gravity sensing linkage mode is enabled.
[0325] In some embodiments of this application, the receiving module is further configured to receive a fourth input from the user; the processing module is configured to, in response to the fourth input, update the display style of at least one desktop element in the first interface based on the style features of the sticker; wherein the style features of the sticker match the updated style features of the first interface.
[0326] In some embodiments of this application, the display module is further configured to display at least one functional control, each functional control corresponding to a function; the receiving module is further configured to receive a fifth input from the user; and the processing module is configured to, in response to the fifth input, establish an association between the sticker and the function corresponding to the target functional control; wherein the target functional control is one or more controls among at least one functional control, and the sticker is used to trigger the execution of the function corresponding to the target functional control.
[0327] In some embodiments of this application, the first interface is a lock screen interface; the receiving module is further configured to receive a seventh input from the user on the sticker; and the processing module is configured to perform an unlocking operation on the electronic device in response to the seventh input.
[0328] In some embodiments of this application, the processing module is specifically used to perform an unlocking operation on the electronic device when the seventh input matches a preset input trajectory.
[0329] In some embodiments of this application, the processing module is specifically used to perform an unlocking operation on the electronic device when the sticker has unlocking permission.
[0330] The sticker display device provided in this application embodiment, when displaying a first image, displays stickers generated based on the photographed object in the first image on a first interface according to the user's first input. Therefore, the sticker display device can generate stickers based on the photographed object in the first image, thereby obtaining sticker materials from any image without being limited to the preset sticker resource library provided by the platform, thus improving the flexibility and personalization of sticker display.
[0331] The sticker display device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0332] The sticker display device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0333] The sticker display device provided in this application embodiment can realize the various processes implemented in the method embodiment of the sticker display method, and will not be described again here to avoid repetition.
[0334] Optionally, such as Figure 10 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described sticker display method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0335] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0336] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0337] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0338] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0339] The user input unit 107 is used to receive a first input from a user when the first image is displayed; the display unit 106 is used to display a sticker on the first interface in response to the first input received by the user input unit 107; the sticker is generated based on the photographed object in the first image.
[0340] In some embodiments of this application, the user input unit 107 is specifically used to receive a first input from a user to a first image; wherein the first input is used to trigger the generation and display of a sticker on a first interface.
[0341] In some embodiments of this application, the user input unit 107 is further configured to receive a sixth input from the user to the first image; the processing module is configured to extract the subject from the first image in response to the sixth input received by the user input unit 107; specifically, the user input unit 107 is configured to receive a first input from the user to the first image.
[0342] The first input is used to trigger the generation of stickers based on the photographed object, and the stickers are displayed on the second interface.
[0343] In some embodiments of this application, the user input unit 107 is further configured to: receive a sixth input from the user to the first image; the processing module is configured to, in response to the sixth input, extract the photographed object from the first image and display the photographed object; the user input unit 107 is specifically configured to receive a first input from the user to the photographed object; wherein the first input is used to trigger the generation of a sticker based on the photographed object and display the sticker on the second interface.
[0344] In some embodiments of this application, the processing module is further configured to perform object recognition on the first image to determine at least one candidate shooting object; the user input unit 107 is further configured to receive a second input from the user regarding the target shooting object among the at least one candidate shooting object; the processing module is further configured to determine the target shooting object as the shooting object in response to the second input.
[0345] In some embodiments of this application, the display unit 106 is specifically configured to: in response to a first input, determine the style features of at least one desktop element in a first interface; the style features include at least one of color features, texture features, and shape features; and display a sticker on the first interface based on the style features of at least one desktop element.
[0346] In some embodiments of this application, the display unit 106 is specifically used to: determine the background color of the sticker based on the color characteristics of at least one desktop element; determine the background shape of the sticker based on the shape characteristics of at least one desktop element; determine the texture rendering parameters of the sticker based on the texture characteristics of at least one desktop element; and display the sticker on a first interface based on the background color, background shape, and texture rendering parameters.
[0347] In some embodiments of this application, the first image is an image from a video; the sticker is an animated sticker; the processing module is used to: extract the animated object from the video; and generate the animated sticker based on the animated object.
[0348] In some embodiments of this application, the display unit 106 is specifically configured to: determine a display position in response to a first input; determine the size information of a sticker based on the size information of the display position; and display the sticker at the display position based on the size information of the sticker.
[0349] In some embodiments of this application, the display unit 106 is specifically used to display dynamic stickers on a first interface and control the playback of the dynamic stickers according to a first playback speed.
[0350] In some embodiments of this application, the user input unit 107 is further configured to receive a third input from the user regarding the dynamic sticker; the processing module is configured to display the dynamic effect of the dynamic sticker in response to the third input received by the user input unit 107.
[0351] In some embodiments of this application, the user input unit 107 is further configured to receive an eighth input from the user; and the processing module is configured to adjust the display size of the sticker in response to the eighth input.
[0352] In some embodiments of this application, the processing module is configured to: acquire the attitude information of the electronic device when the gravity sensing linkage mode is enabled; and control the sticker to move in the first interface according to the attitude information.
[0353] In some embodiments of this application, the user input unit 107 is further configured to receive a fourth input from the user; the processing module is configured to, in response to the fourth input, update the display style of at least one desktop element in the first interface based on the style features of the sticker; wherein the style features of the sticker match the updated style features of the first interface.
[0354] In some embodiments of this application, the display unit 106 is further configured to display at least one functional control, with one functional control corresponding to one function; the user input unit 107 is further configured to receive a fifth input from the user; and the processing module is configured to, in response to the fifth input, establish an association between the sticker and the function corresponding to the target functional control; wherein the target functional control is one or more controls among at least one functional control, and the sticker is used to trigger the execution of the function corresponding to the target functional control.
[0355] In some embodiments of this application, the first interface is a lock screen interface; the user input unit 107 is also used to receive a seventh input from the user on the sticker; the processing module is used to perform an unlocking operation on the electronic device in response to the seventh input.
[0356] In some embodiments of this application, the processing unit 110 is specifically used to perform an unlocking operation on the electronic device when the seventh input matches a preset input trajectory.
[0357] In some embodiments of this application, the processing unit 110 is specifically used to perform an unlocking operation on the electronic device when the sticker has unlocking permission.
[0358] The electronic device provided in this application embodiment, when displaying a first image, displays a sticker generated based on a photographed object in the first image on a first interface according to a user's first input. Therefore, the electronic device can generate stickers based on the photographed object in the first image, thereby obtaining sticker materials from any image without being limited to a preset sticker resource library provided by the platform, thus improving the flexibility and personalization of sticker display.
[0359] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0360] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or it may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0361] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0362] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described sticker display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0363] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0364] This application embodiment also provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the above. Sticker display The various processes in the method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.
[0365] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0366] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the above-described functionality. Sticker display The various processes in the method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.
[0367] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0368] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0369] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A sticker display method, characterized in that, The method includes: While displaying the first image, receive the user's first input; In response to the first input, a sticker is displayed on a first interface; the sticker is generated based on the subject captured in the first image.
2. The method according to claim 1, characterized in that, The method further includes: Perform object recognition on the first image to identify at least one candidate subject for shooting; Receive a second input from the user regarding the target object among the at least one candidate objects; In response to the second input, the target object is identified as the subject of the photograph.
3. The method according to claim 1, characterized in that, The first interface is the desktop interface; The step of displaying a sticker on the first interface in response to the first input includes: In response to the first input, a style feature of at least one desktop element in the first interface is determined; the style feature includes at least one of color feature, texture feature and shape feature; The sticker is displayed on the first interface based on the style characteristics of the at least one desktop element.
4. The method according to claim 3, characterized in that, Displaying the sticker on the first interface based on the style features of the at least one desktop element includes: The background color of the sticker is determined based on the color characteristics of at least one desktop element; The shape of the base plate of the sticker is determined based on the shape features of the at least one desktop element; The texture rendering parameters of the sticker are determined based on the texture characteristics of at least one desktop element. The sticker is displayed on the first interface based on the base plate color, base plate shape, and texture rendering parameters.
5. The method according to claim 1, characterized in that, The first image is a video image or a moving image; the sticker is a dynamic sticker; the method further includes: Receive a third input from the user regarding the dynamic sticker; In response to the third input, the dynamic effect of the animated sticker is displayed.
6. The method according to claim 1, characterized in that, After the sticker is displayed on the first interface, the method further includes: When the gravity sensor linkage mode is enabled, the sticker is controlled to move on the first interface based on the posture information of the electronic device.
7. The method according to claim 1, characterized in that, The first interface is the desktop interface; After the sticker is displayed on the first interface, the method further includes: Receive the user's fourth input; In response to the fourth input, at least one desktop element in the first interface is updated based on the style characteristics of the sticker; The style features of the sticker match the style features of the updated first interface.
8. The method according to claim 1, characterized in that, The step of displaying a sticker on the first interface in response to the first input includes: In response to the first input, determine the position to be displayed; The size information of the sticker is determined based on the size information of the position to be displayed; The sticker is displayed at the designated display location based on its size information.
9. The method according to claim 1, characterized in that, After the sticker is displayed on the first interface, the method further includes: Display at least one functional control, with each functional control corresponding to one function; Receive the user's fifth input; In response to the fifth input, an association is established between the sticker and the function corresponding to the target function control; The target function control is one or more controls among the at least one function control, and the sticker is used to trigger the execution of the function corresponding to the target function control.
10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the sticker display method as described in any one of claims 1-9.