Sticker recommendation method, device, electronic device and storage medium
By receiving input on the target image and automatically recommending stickers based on object attribute information, it solves the user's time-consuming problem in selecting stickers and improves image editing efficiency.
Patent Information
- Application Number
- CN202011080468.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-10-10
AI Technical Summary
When selecting stickers, users need to manually filter from a large number of stickers, resulting in a time-consuming selection process and low image editing efficiency.
By receiving the target object input on the target image and displaying the corresponding candidate stickers on the editing interface according to the attribute information of the target object, automatic recommendation is realized and the user's manual screening steps are reduced.
It saves users time in selecting stickers, improves picture editing efficiency, and simplifies the user operation process.
Smart Images

Figure CN112199534B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a sticker recommendation method, device, electronic device and storage medium. Background Art
[0002] With the improvement of software and hardware technologies on electronic devices, more and more people like to use the camera function on electronic devices to take pictures or record videos, and then edit the taken pictures and videos. For example, users choose their favorite stickers and put them on the pictures to get new pictures with stickers.
[0003] In the process of implementing this application, the inventors found that there are at least the following problems in the prior art: users need to manually select stickers of interest from a large number of stickers, which results in time-consuming sticker selection and low image editing efficiency. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a sticker recommendation method, device, electronic device and storage medium, which can solve the problems in the prior art that it is time-consuming for users to select stickers and the image editing efficiency is low.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a sticker recommendation method, the method comprising:
[0007] receiving a first input of a target object on a target image;
[0008] In response to the first input, candidate stickers corresponding to the target object are displayed on an editing interface according to the attribute information of the target object.
[0009] In a second aspect, an embodiment of the present application provides a sticker recommendation device, comprising:
[0010] A first receiving module, configured to receive a first input of a target object on a target image;
[0011] The first display module is used to display candidate stickers corresponding to the target object in an editing interface in response to the first input and according to the attribute information of the target object.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0015] In an embodiment of the present application, by receiving a first input of a target object on a target image, in response to the first input, candidate stickers corresponding to the target object are displayed in the editing interface based on the attribute information of the target object, so that candidate stickers corresponding to the target object can be recommended to the user based on the target object selected by the user, without the need for the user to manually screen stickers, thereby saving the user's time required to select stickers and improving image editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flowchart of a sticker recommendation method provided in an embodiment of the present application;
[0017] Figure 2 This is a schematic diagram of a sticker recommendation interface provided in an embodiment of the present application;
[0018] Figure 3 is a flowchart of another sticker recommendation method provided in an embodiment of the present application;
[0019] Figure 4 This is a schematic diagram of another sticker recommendation interface provided in an embodiment of the present application;
[0020] Figure 5 This is a schematic diagram of another sticker recommendation interface provided in an embodiment of the present application;
[0021] Figure 6 This is a schematic diagram of another sticker recommendation interface provided in an embodiment of the present application;
[0022] Figure 7 This is a schematic diagram of a picture editing interface provided by an embodiment of the present application;
[0023] Figure 8 This is a schematic diagram of an interface after a sticker is copied provided in an embodiment of the present application;
[0024] Fig. 9 is a flowchart of another sticker recommendation method provided in an embodiment of the present application;
[0025] Fig.10 This is another interface diagram of sticker recommendation provided in an embodiment of the present application;
[0026] Fig.11 This is another interface diagram of sticker recommendation provided in an embodiment of the present application;
[0027] Fig.12 This is another interface diagram of sticker recommendation provided in an embodiment of the present application;
[0028] Fig.13 This is another interface diagram of sticker recommendation provided in an embodiment of the present application;
[0029] Fig.14 is a structural schematic diagram of a sticker recommendation device provided in an embodiment of the present application;
[0030] Fig.15 A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application;
[0031] Fig.16 A schematic diagram of the hardware structure of another electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0034] The sticker recommendation method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in combination with the accompanying drawings.
[0035] Reference Figure 1 , Figure 1 : is a flowchart of a sticker recommendation method provided in an embodiment of the present application, and the method may include the following steps:
[0036] Step 101: Receive a first input of a target object on a target image.
[0037] Reference Figure 2 , Figure 2 is a schematic diagram of a sticker recommendation interface provided in an embodiment of the present application. The target image is, for example, Figure 2 For a picture shown in the figure, the user can click "AI Cutout" on the editing interface. In response to the user clicking "AI Cutout", the electronic device can automatically identify the object in the picture, which is not limited to the portrait. The user can select the object he wants to process, for example, by clicking Figure 2 The object 201 (a white cloud) in the picture shown in FIG. 1 , that is, the target image is Figure 2 As shown in the picture, the first input can be a user click such as Figure 2 Operation of the object 201 in the picture shown.
[0038] Step 102: In response to the first input, candidate stickers corresponding to the target object are displayed on the editing interface according to the attribute information of the target object.
[0039] The attribute information includes at least one of the type of the target object, the object outline of the target object, and the scene in which the target object is located. For example, if the attribute information is the type of the target object, the target object is Figure 2 In the case of the object 201 shown, stickers of the same type as the object 201 can be displayed in the editing interface. The stickers of the same type as the object 201 are the candidate stickers corresponding to the object 201, that is, the candidate stickers can be cloud-type stickers.
[0040] If the attribute information is the object contour of the target object, the target object is Figure 2 In the case of the object 201 shown, stickers with the same outline as the object 201 can be displayed in the editing interface. The stickers with the same outline as the object 201 are the candidate stickers corresponding to the object 201, that is, the candidate stickers can be stickers with the same outline as the clouds.
[0041] If the attribute information is the scene where the target object is located, the target object is Figure 2 In the case of object 201 shown, stickers with the same scene as object 201 can be displayed in the editing interface. Stickers with the same scene as object 201 are candidate stickers corresponding to object 201, that is, the candidate stickers can be stickers with the same scene as the clouds. For example, eagle, sun, bird, kite, dragon and other stickers are candidate stickers.
[0042] If the attribute information includes a type of the target object, an object contour of the target object, and multiple information in a scene where the target object is located, the candidate stickers may be displayed according to the multiple information included in the attribute information.
[0043] It should be noted that the editing interface can also display the recognized objects on the target image in text, such as Figure 2 As shown, object 1 represents object 201, and object 2 represents object 202 (object 202 is, for example, Figure 2 2 clouds shown), object 3 represents object 203 (object 203 is, for example, Figure 2 The sun is shown in the figure), and due to the limitation of the interface area, the object 204 is not represented by object 4 on the editing interface. The object 204 is, for example, the background of the picture, such as a lawn.
[0044] The sticker recommendation method provided in this embodiment receives a first input of a target object on a target image, and in response to the first input, displays candidate stickers corresponding to the target object in an editing interface according to attribute information of the target object, thereby recommending candidate stickers corresponding to the target object to the user based on the target object selected by the user, eliminating the need for the user to manually screen stickers, thereby saving the user's time required to select stickers and improving image editing efficiency.
[0045] Reference Figure 3 , Figure 3 : is a flowchart of another sticker recommendation method provided in an embodiment of the present application, the method comprising the following steps:
[0046] Step 301: Receive a first input of a target object on a target image.
[0047] Step 302: Receive a second input to a target grouping control in the grouping controls on the editing interface.
[0048] The grouping control includes at least one of a first grouping control, a second grouping control and a third grouping control, and the attribute information includes at least one information of the type of the target object, the object outline of the target object and the scene in which the target object is located. The first grouping control corresponds to the type, the second grouping control corresponds to the object outline, and the third grouping control corresponds to the scene.
[0049] Reference Figure 4 , Figure 4 is another interface diagram of sticker recommendation provided in an embodiment of the present application. Grouping controls may be displayed on the editing interface, and the grouping controls may include, for example, Figure 4 The first grouping control ("same object" control), the second grouping control ("same outline" control), and the third grouping control ("same scene" control) shown in FIG. Figure 2 and Figure 4 If the user clicks the object 201 and then clicks the first grouping control, that is, the first grouping control (the "same object" control) is the target grouping control, the second input may be the operation of the user clicking the first grouping control.
[0050] Step 303 , in response to the first input and the second input, obtaining target attribute information corresponding to the target object according to the target grouping control, and displaying candidate stickers corresponding to the target attribute information of the target object in a preset area of the editing interface.
[0051] The electronic device can respond to the first input and the second input, obtain the target attribute information corresponding to the target object according to the target grouping control, and display the candidate stickers corresponding to the target attribute information of the target object in a preset area of the editing interface. Figure 4 As shown, when the target grouping control is the first grouping control, the target attribute information corresponding to the target object obtained is the type information of the target object. Therefore, candidate stickers 401, candidate stickers 402, candidate stickers 403, and candidate stickers 404 corresponding to the type information of the target object (for example, the target object is object 201) can be displayed in a preset area of the editing interface, and candidate stickers 401, candidate stickers 402, candidate stickers 403, and candidate stickers 404 are clouds of different shapes.
[0052] If the first input is the user clicking Figure 2 The second input is the user clicking on the target object (the target object is, for example, object 2, that is, object 2 is two clouds). Figure 4 The "same outline" control shown, that is, the "same outline" control is a target grouping control, then the outlines of the two clouds can be regarded as a whole outline, and the target attribute information corresponding to the target object obtained is the outline information of the two clouds. Figure 5 As shown, Figure 5 1 is another interface diagram of sticker recommendation provided in an embodiment of the present application, in which candidate stickers corresponding to target attribute information of a target object are displayed in a preset area of the editing interface, and the candidate stickers include, for example, candidate sticker 501, candidate sticker 502, candidate sticker 503, and candidate sticker 504. That is, when the target grouping control is a "same outline" control, candidate stickers corresponding to the target object and the target grouping control will be recommended to the user according to the overall outline of the target object.
[0053] If the first input is the user clicking Figure 2 The target object (the target object is, for example, object 1) is operated, and the second input is the user clicking on the Figure 4 The "same scene" control shown, that is, the "same scene" control is a target grouping control, and the target attribute information corresponding to the target object obtained is the scene information where the object 1 is located, then the candidate stickers corresponding to the target attribute information of the target object are displayed in the preset area of the editing interface. Figure 6 As shown, Figure 61 is another interface diagram of sticker recommendation provided in an embodiment of the present application, in which candidate stickers corresponding to target attribute information of a target object are displayed in a preset area of the editing interface, and the candidate stickers include, for example, candidate sticker 601, candidate sticker 602, candidate sticker 603, and candidate sticker 604. That is, when the target grouping control is a "same scene" control, candidate stickers corresponding to the target object and the target grouping control will be recommended to the user according to the scene in which the target object is located.
[0054] It should be noted that when the second input is when the user clicks the "Same Scene" control, a preset number of stickers can be selected for recommendation based on the scene where the target object is located, starting from the stickers that best fit the scene. For example, if the target object is clouds in the sky (such as object 201), stickers such as "Dragon", "Bird", "Jade Rabbit", and "Kite" are recommended first. If the target object is such as Figure 2 For the object 204 shown (the object 204 is, for example, a lawn), stickers such as “tree” and “tent” are recommended first, because the scenes of such stickers are more closely aligned with the scene where the target object is located.
[0055] Step 304: Receive a third input of a first target sticker among the candidate stickers.
[0056] If the first input is the operation of the user clicking on the object 201, the second input is the operation of the user clicking on the "same object" control, and the third input is the operation of the user clicking on Figure 4 The operation of candidate sticker 403 shown in the figure, the first target sticker is candidate sticker 403.
[0057] Step 305: In response to the third input, the target object in the target image is replaced with the first target sticker.
[0058] In response to the third input, the electronic device replaces the object 1 with the first target sticker (candidate sticker 403). The interface after replacing the object 1 is shown in FIG. Figure 7 As shown, Figure 7 is a schematic diagram of a picture editing interface provided by an embodiment of the present application. After object 1 is replaced with candidate sticker 403, Figure 7 As shown, you can perform operations such as "copy", "rotate", "mirror", and "delete". Figure 8 As shown, Figure 8 This is a schematic diagram of an interface after a sticker is copied provided in an embodiment of the present application.
[0059] It should be noted that this embodiment also provides a function for users to customize and select stickers. Figure 4 The “+” control shown, after the user clicks the control, can select a picture in the gallery as the first sticker to replace the selected target object.
[0060] The sticker recommendation method provided in this embodiment can not only use static stickers to replace the target object in the picture, but also use static stickers to replace the target object in the video screen, that is, when the target image is a video screen, the static sticker is used to replace the target object in the video screen. The example of replacing the target object in the picture with a static sticker has been introduced in the above embodiment. The following describes the case of replacing the target object in the video screen with a static sticker.
[0061] Reference Fig. 9 , Fig. 9 : is a flowchart of another sticker recommendation method provided in an embodiment of the present application, the method comprising the following steps:
[0062] Step 901: Receive a first input of a target object on a target image.
[0063] Reference Fig.10 , Fig.10 is another sticker recommendation interface diagram provided in the embodiment of the present application. Fig.10 The video screen is shown.
[0064] Step 902: In response to the first input, display candidate stickers corresponding to the target object in the editing interface according to the attribute information of the target object.
[0065] If the first input is the user clicking Fig.10 The electronic device responds to the first input and displays candidate stickers corresponding to the character 1001 in a preset area of the editing interface according to the attribute information of the character 1001.
[0066] It should be noted that, when the target image is a video screen, the attribute information includes the posture of the target object, and the candidate stickers include at least one of static stickers and dynamic stickers.
[0067] When the target image is a video screen, the method of recommending candidate stickers is basically the same as the example described above where the target image is a picture. The difference is that when the target image is a video screen, the attribute information also includes the posture of the target object, that is, the candidate stickers can be displayed based on the type of target object, the object outline of the target object, the scene in which the target object is located, and the posture of the target object.
[0068] Step 903: When a fourth input to a second target sticker in the static sticker is received, in response to the fourth input, the target object is replaced with the second target sticker, and a motion trajectory of the target object in the video screen is identified.
[0069] For example, refer to Fig.11 , Fig.11This is another interface diagram of sticker recommendation provided by the embodiment of the present application. The user clicks to select Fig.11 After the little girl sticker in the game, replace it with the little girl sticker Fig.10 The figure 1001 in the figure, the interface diagram after replacement is as follows Fig.11 As shown. And identify the motion trajectory of the target object in the video screen, that is, when the target image is a video screen, a static sticker can be used to replace the target object in the video screen, and identify the motion trajectory of the target object in the video screen.
[0070] Step 904: Control the second target sticker to move in the video screen according to the motion trajectory.
[0071] For example, Fig.12 As shown, Fig.12 1 is another interface diagram of sticker recommendation provided by the embodiment of the present application. Fig.10 Move to the right side of Fig.12 When the left side is shown, Fig.13 As shown, Fig.13 This is another interface diagram of sticker recommendation provided in an embodiment of the present application. The second target sticker is also moved to the left and covers the character 1001.
[0072] The sticker recommendation method provided in this embodiment, when receiving the fourth input of the second target sticker in the static stickers, responds to the fourth input, replaces the target object with the second target sticker, identifies the motion trajectory of the target object in the video screen, and controls the second target sticker to move in the video screen according to the motion trajectory, thereby recommending stickers suitable for editing the video screen to the user, and editing the video screen, saving the user's time in searching for stickers required to edit the video screen and the time required to edit the video screen, thereby improving the efficiency of video screen editing.
[0073] The sticker recommendation method provided in this embodiment can not only use static stickers to replace the target object in the picture, but also use dynamic stickers to replace the target object in the video screen. The following introduces the case of using dynamic stickers to replace the target object in the video screen.
[0074] Optionally, the candidate stickers include dynamic stickers, and after the candidate stickers corresponding to the target object are displayed on the editing interface, the following further includes:
[0075] When a fifth input is received for a target dynamic sticker in the dynamic stickers, in response to the fifth input, the size of the frame video sticker in the target dynamic sticker is controlled to be consistent with the size of the target object in the frame picture corresponding to the frame video sticker, and the position of the frame video sticker is controlled to be consistent with the position of the target object in the frame picture corresponding to the frame video sticker.
[0076] Optionally, after the candidate stickers corresponding to the target object are displayed on the editing interface, the following further includes:
[0077] According to the scene where the target object is located, displaying candidate information matching the scene, the candidate information including at least one of text and audio;
[0078] In a case where a sixth input of target information in the candidate information is received, the target information is embedded into the target image.
[0079] In this embodiment, the content of the picture scene can be identified based on the picture and video screen scene, and then at least one of the current mainstream text and audio can be recommended based on the crawler and algorithm. For example, when the target image is a picture, the text can be selected to be embedded in the picture. If the picture is a scene related to students, poems and beautiful English sentences can be recommended. If the picture is a picture based on the type of scenery, online romantic words can be recommended. Different types of mainstream texts can be recommended according to the different scenes in which the target object is located. For example: if it is identified as a rural landscape photo, the text can be recommended: Go two or three miles, there are four or five families in Yan Village, and the fireworks in the world are the most soothing to the hearts of ordinary people. If it is identified as a sunrise and sunset photo, it can be recommended: The sunrise in the east wakes people up, but it is not as good as the sunset to understand my heart. There will be no day to meet again after this farewell, and I will spend the spring and autumn alone. If it is identified as a sad and deserted street scene photo, it can be recommended: The south of the south of the city is no longer south, and the north of the city is no longer beautiful.
[0080] When the target image is a video screen, at least one of audio and text can be recommended, and the user can select at least one of the audio and text as target information, so that the target information can be embedded in the video screen to obtain an edited video screen that meets the user's needs.
[0081] It should be noted that the sticker recommendation method provided in the embodiment of the present application can be executed by a sticker recommendation device, or a control module in the sticker recommendation device for executing the sticker recommendation method. In the embodiment of the present application, the method of executing sticker recommendation by the sticker recommendation device is taken as an example to illustrate the sticker recommendation device provided in the embodiment of the present application.
[0082] Reference Fig.14 , Fig.14 14 is a schematic diagram of a sticker recommendation device provided in an embodiment of the present application. The sticker recommendation device 1400 includes:
[0083] The first receiving module 1410 is used to receive a first input of a target object on a target image;
[0084] The first display module 1420 is used to display candidate stickers corresponding to the target object in an editing interface in response to the first input and according to the attribute information of the target object.
[0085] The sticker recommendation device provided in this embodiment receives a first input of a target object on a target image, and in response to the first input, displays candidate stickers corresponding to the target object in an editing interface according to attribute information of the target object, thereby recommending candidate stickers corresponding to the target object to the user based on the target object selected by the user, eliminating the need for the user to manually screen stickers, thereby saving the user's time required to select stickers and improving image editing efficiency.
[0086] Optionally, the first receiving module 1410 is further configured to receive a second input to a target grouping control in the grouping controls on the editing interface;
[0087] The first display module 1420 is specifically used to respond to the first input and the second input, obtain target attribute information corresponding to the target object according to the target grouping control, and display candidate stickers corresponding to the target attribute information of the target object in a preset area of the editing interface.
[0088] Optionally, the grouping control includes at least one of a first grouping control, a second grouping control, and a third grouping control, and the attribute information includes at least one information of the type of the target object, the object outline of the target object, and the scene in which the target object is located, the first grouping control corresponds to the type, the second grouping control corresponds to the object outline, and the third grouping control corresponds to the scene.
[0089] Optionally, also include:
[0090] A second receiving module, configured to receive a third input of a first target sticker among the candidate stickers;
[0091] A replacement module is used to replace the target object in the picture with the first target sticker in response to the third input.
[0092] Optionally, when the target image is a video picture, the attribute information also includes the posture of the target object, and the candidate stickers include static stickers and / or dynamic stickers.
[0093] Optionally, also include:
[0094] a recognition module, configured to, upon receiving a fourth input of a second target sticker in the static sticker, replace the target object with the second target sticker in response to the fourth input, and recognize a motion trajectory of the target object in the video picture;
[0095] The first control module is used to control the second target sticker to move in the video screen according to the motion trajectory.
[0096] Optionally, also include:
[0097] The second control module is used to control the size of the frame video screen sticker in the target dynamic sticker to be consistent with the size of the target object in the frame screen corresponding to the frame video screen sticker, and to control the position of the frame video screen sticker to be consistent with the position of the target object in the frame screen corresponding to the frame video screen sticker in response to the fifth input when receiving the fifth input to the target dynamic sticker in the dynamic sticker.
[0098] Among them, the frame screen corresponding to the frame video screen sticker is a frame screen in the video screen corresponding to the frame video screen sticker, and a frame screen in the video screen corresponds to a frame video screen sticker in the target dynamic sticker.
[0099] Optionally, also include:
[0100] The second display module is further used to display text and / or audio matching the scene according to the scene where the target object is located;
[0101] An embedding module is used to embed the target text into the target image upon receiving a sixth input of the target information in the candidate information, and / or to embed the target audio into the target image upon receiving a seventh input of the target audio in the audio.
[0102] The sticker recommendation device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0103] The sticker recommendation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0104] The sticker recommendation device provided in the embodiment of the present application can achieve Figure 1 , Figure 3 and Fig. 9 In order to avoid repetition, the various processes implemented by the sticker recommendation device in the method embodiment will not be described here.
[0105] Optionally, the present application embodiment further provides an electronic device, such as Fig.15 As shown, Fig.15 The hardware structure diagram of an electronic device for implementing the embodiment of the present application is shown below. The electronic device 1500 includes a processor 1501, a memory 1502, and a program or instruction stored in the memory 1502 and executable on the processor 1501. When the program or instruction is executed by the processor 1501, each process of the sticker recommendation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0106] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0107] Fig.16 A schematic diagram of the hardware structure of another electronic device to implement an embodiment of the present application.
[0108] The electronic device 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, and a processor 1610.
[0109] Those skilled in the art will appreciate that the electronic device 1600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0110] The user input unit 1607 is used to receive a first input to a target object on a target image.
[0111] The processor 1610 is configured to display candidate stickers corresponding to the target object in an editing interface through the display unit 1606 in response to the first input and according to the attribute information of the target object.
[0112] The processor 1610 is further configured to control the user input unit 1607 to receive a second input to a target grouping control in the grouping controls on the editing interface;
[0113] In response to the first input and the second input, target attribute information corresponding to the target object is obtained according to the target grouping control, and candidate stickers corresponding to the target attribute information of the target object are displayed in a preset area of the editing interface through the display unit 1606.
[0114] The grouping control includes at least one of a first grouping control, a second grouping control and a third grouping control, the attribute information includes at least one of type information of the target object, object contour information of the target object and scene information in which the target object is located, the first grouping control corresponds to the type information, the second grouping control corresponds to the object contour information, and the third grouping control corresponds to the scene information.
[0115] The processor 1610 is further configured to control the user input unit 1607 to receive a third input to a first target sticker among the candidate stickers;
[0116] In response to the third input, the target object in the target image is replaced with the first target sticker.
[0117] In the case where the target image is a video picture, the attribute information includes the posture of the target object, and the candidate stickers include at least one of a static sticker and a dynamic sticker.
[0118] The candidate stickers include static stickers. The processor 1610 is further configured to, when the control user input unit 1607 receives a fourth input to a second target sticker in the static stickers, replace the target object with the second target sticker in response to the fourth input, and identify a motion trajectory of the target object in the video screen;
[0119] According to the motion trajectory, the second target sticker is controlled to move in the video screen.
[0120] The candidate stickers include dynamic stickers, and the processor 1610 is also used to, when the control user input unit 1607 receives a fifth input to a target dynamic sticker among the dynamic stickers, replace the target object with the target dynamic sticker in response to the fifth input, and control the size of the frame video sticker in the target dynamic sticker to be consistent with the size of the target object in the frame picture corresponding to the frame video sticker, and control the position of the frame video sticker to be consistent with the position of the target object in the frame picture corresponding to the frame video sticker.
[0121] The processor 1610 is further configured to display, according to the scene where the target object is located, candidate information matching the scene through the display unit 1606, where the candidate information includes at least one of text and audio;
[0122] The processor 1610 is further configured to embed the target information into the target image when the user input unit 1607 receives a sixth input of the target information in the candidate information.
[0123] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned noise reduction function control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0124] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0125] It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processor (Graphics Processing Unit, GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1607 includes a touch panel 16071 and other input devices 16072. The touch panel 16071 is also called a touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1610.
[0126] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned sticker recommendation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0127] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0128] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0130] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A sticker recommendation method, It is characterized in that The method comprises: receiving a first input of a target object on a target image; In response to the first input, displaying candidate stickers corresponding to the target object in an editing interface according to the attribute information of the target object; receiving a second input to a target grouping control in the grouping controls on the editing interface; The step of displaying candidate stickers corresponding to the target object in a preset area of an editing interface in response to the first input and according to the attribute information of the target object includes: In response to the first input and the second input, acquiring target attribute information corresponding to the target object according to the target grouping control, and displaying candidate stickers corresponding to the target attribute information of the target object in a preset area of the editing interface; The grouping control includes at least one of a first grouping control, a second grouping control and a third grouping control, the attribute information includes at least one of type information of the target object, object contour information of the target object and scene information in which the target object is located, the first grouping control corresponds to the type information, the second grouping control corresponds to the object contour information, and the third grouping control corresponds to the scene information.
2. The method according to claim 1, It is characterized in that After the candidate stickers corresponding to the target object are displayed on the editing interface, the method further includes: receiving a third input of a first target sticker among the candidate stickers; In response to the third input, the target object in the target image is replaced with the first target sticker.
3. The method according to claim 1, It is characterized in that In the case where the target image is a video picture, the attribute information includes the posture of the target object, and the candidate stickers include at least one of a static sticker and a dynamic sticker.
4. The method according to claim 3, It is characterized in that The candidate stickers include static stickers, and after the candidate stickers corresponding to the target object are displayed on the editing interface, the method further includes: When receiving a fourth input to a second target sticker in the static stickers, in response to the fourth input, the target object is replaced with the second target sticker, and a motion track of the target object in the video picture is identified; According to the motion trajectory, the second target sticker is controlled to move in the video screen.
5. The method according to claim 3, It is characterized in that The candidate stickers include dynamic stickers, and after the candidate stickers corresponding to the target object are displayed on the editing interface, the method further includes: When a fifth input is received for a target dynamic sticker in the dynamic stickers, in response to the fifth input, the size of the frame video sticker in the target dynamic sticker is controlled to be consistent with the size of the target object in the frame picture corresponding to the frame video sticker, and the position of the frame video sticker is controlled to be consistent with the position of the target object in the frame picture corresponding to the frame video sticker.
6. The method according to claim 1, It is characterized in that After the candidate stickers corresponding to the target object are displayed on the editing interface, the method further includes: According to the scene where the target object is located, displaying candidate information matching the scene, the candidate information including at least one of text and audio; In a case where a sixth input of target information in the candidate information is received, the target information is embedded into the target image.
7. A sticker recommendation device, It is characterized in that The device comprises: A first receiving module, configured to receive a first input of a target object on a target image; A first display module, configured to display candidate stickers corresponding to the target object on an editing interface in response to the first input and according to the attribute information of the target object; The first receiving module is further used to receive a second input of a target grouping control in the grouping controls on the editing interface; The first display module is specifically configured to respond to the first input and the second input, obtain target attribute information corresponding to the target object according to the target grouping control, and display candidate stickers corresponding to the target attribute information of the target object in a preset area of the editing interface; The grouping control includes at least one of a first grouping control, a second grouping control and a third grouping control, the attribute information includes at least one of type information of the target object, object contour information of the target object and scene information in which the target object is located, the first grouping control corresponds to the type information, the second grouping control corresponds to the object contour information, and the third grouping control corresponds to the scene information.
8. The device according to claim 7, It is characterized in that Also includes: A second receiving module, configured to receive a third input of a first target sticker among the candidate stickers; A replacement module is used to replace the target object in the target image with the first target sticker in response to the third input.
9. The device according to claim 7, It is characterized in that In the case where the target image is a video picture, the attribute information includes the posture of the target object, and the candidate stickers include at least one of a static sticker and a dynamic sticker.
10. An electronic device, It is characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the sticker recommendation method according to any one of claims 1 to 6.
11. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the sticker recommendation method according to any one of claims 1 to 6 are implemented.
