Expression image generation method and apparatus, and electronic device and readable storage medium
By automatically generating and adding expressions when users upload or shoot media content, the problem of complex operations in the existing technology is solved, convenient expression generation and sending is realized, and user experience and efficiency are improved.
Patent Information
- Application Number
- PCT/CN2024/089804
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-06
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-14
AI Technical Summary
The prior art is difficult to automatically generate and add emoticons when users upload or shoot media content easily, resulting in users requiring complex operational processes when publishing works or chatting, which affects efficiency.
Provides a method and device for generating expression images, by receiving user input, generating expression images based on initial media content, and displaying target information in the media content generation interface, allowing users to easily edit and send expressions, and supporting the generation of dynamic and static expressions. .
It simplifies the expression generation process of users when publishing works or chats, improves operation efficiency, and users can easily generate and send expressions based on the initial media content, reducing the steps to create expressions and improving flexibility.
Smart Images

Figure CN2024089804_14112024_PF_FP_ABST
Abstract
Description
Method, device, electronic device and readable storage medium for generating expression images
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Chinese patent application No. 202310505294.2 filed on May 6, 2023, which is incorporated herein by reference. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a method for generating an expression image, an apparatus for generating an expression image, an electronic device, and a readable storage medium. Background Art
[0004] With the continuous development of electronic communication technology, users often use various emoticons to comment on works or communicate with other users when using various Internet platforms.
[0005] Summary of the Invention
[0006] The purpose of the embodiments of the present application is to provide a method, device, electronic device and readable storage medium for generating emoticon images. The present application enables users to conveniently add media content as emoticons when uploading or shooting media content as personal works, thereby simplifying the process of users making emoticons.
[0007] In a first aspect, an embodiment of the present application provides a method for generating an expression image. On a first user side, the method for generating an expression image includes: receiving a first input when initial media content is acquired, the first input being used to trigger generation of a first expression, the first expression being an expression image generated based on the initial media content, the expression image being used to edit and / or send target content, the initial media content including captured content and / or uploaded content; in response to the first input, displaying target information, wherein the target information is associated with the first expression.
[0008] In the second aspect, an embodiment of the present application provides a device for generating an expression image. On the first user side, the device for generating an expression image includes: a receiving module for receiving a first input when the initial media content is acquired, the first input being used to trigger the generation of a first expression, the first expression being an expression image generated based on the initial media content, the expression image being used to edit and / or send target content, the initial media content including captured content and / or uploaded content; a display module for displaying target information in response to the first input, wherein the target information is associated with the first expression.
[0009] In a third aspect, an embodiment of the present application provides an electronic device comprising 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 of the first aspect.
[0010] 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 for generating an expression image as in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method for generating an expression image as in the first aspect.
[0012] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method for generating an expression image as in the first aspect.
[0013] In a seventh aspect, an embodiment of the present application provides a computer program, which, when executed by a processor, implements the steps of the method for generating an expression image as in the first aspect.
[0014] In an embodiment of the present application, when a user publishes a work or chats with other users, uploads initial media content, or shoots initial media content, the first user side can respond to the first input, automatically generate a corresponding first expression based on the initial media content, and display target information to prompt the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] FIG1 is a schematic diagram showing a flow chart of a method for generating an expression image according to an embodiment of the present application;
[0016] FIG2 shows one of the schematic diagrams of a media content generation interface provided by some embodiments of the present application;
[0017] FIG3 shows a second schematic diagram of a media content generation interface provided by some embodiments of the present application;
[0018] FIG4 shows a third schematic diagram of a media content generation interface provided by some embodiments of the present application;
[0019] FIG5 shows a fourth schematic diagram of a media content generation interface provided by some embodiments of the present application;
[0020] FIG6 shows a schematic diagram of an expression generation interface provided by some embodiments of the present application;
[0021] FIG7 shows a structural block diagram of a device for generating an expression image according to an embodiment of the present application;
[0022] FIG8 shows a structural block diagram of an electronic device provided in an embodiment of the present application;
[0023] FIG9 shows a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the accompanying drawings to clearly describe the technical solutions in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. All other embodiments derived by ordinary technicians in this field based on the embodiments of this application are within the scope of protection of this application.
[0025] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] The following, in conjunction with Figures 1 to 9, describes in detail the expression image generation method, expression image generation device, electronic device and readable storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0027] In an embodiment of the present application, a method for generating an expression image is provided. FIG1 shows a flow chart of the method for generating an expression image provided in an embodiment of the present application. As shown in FIG1 , the method for generating an expression image, on the first user side, includes:
[0028] Step 102: When the initial media content is acquired, a first input is received, where the first input is used to trigger generation of a first expression, where the first expression is an expression image generated based on the initial media content, and the expression image is used to edit and / or send target content, where the initial media content includes captured content and / or uploaded content.
[0029] In the embodiment of the present application, the initial media content may include pictures or video content. The initial media content may be media content uploaded by the user through the first user side, or may be media content captured by the user through the first user side.
[0030] Exemplarily, when a user uploads a video file on the platform, the video file uploaded by the user is determined as the initial media content. After the video file is uploaded, the video content is determined as the acquired initial media content.
[0031] Exemplarily, the user captures image data through a capture function of the platform, and the captured image data is determined as the initial media content.
[0032] In an embodiment of the present application, the first input is used to trigger the generation of a first expression, the first expression is an expression image generated based on initial media content, the expression image is used to edit and / or send target content, and the initial media content includes captured content and / or uploaded content;
[0033] In an embodiment of the present application, the target content includes communication message information when a user conducts an instant messaging session with other users. The target content may also include comment information posted by the user on the platform's works. The target content may also include text information and image information used in the user's personal works.
[0034] For example, when a user is chatting with other users, the user can send the first emoticon to the chat dialog box, or when editing a text message, the user can insert the first emoticon into the text message and send it to the chat session page.
[0035] For example, when a user comments on a media work on the platform, he or she can choose to send a first expression to the comment area.
[0036] For example, when a user uploads a video work or an image work, the user can insert the first expression into the image or text information of the video work or the image and text work.
[0037] In the embodiment of the present application, the first input can be: a click input by the user on a control in the interface where the initial media content is located, or a voice command input by the user, or a specific gesture input by the user. The specific input can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.
[0038] The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
[0039] Step 104 : Display target information in response to the first input, wherein the target information is associated with the first expression.
[0040] Exemplarily, the target information includes expression adding success prompt information, and the expression adding success prompt information is used to prompt that the corresponding first expression has been generated based on the initial media content and the first expression has been stored.
[0041] Exemplarily, the target information includes an expression image. After the first expression is generated based on the initial media content, the expression image corresponding to the first expression is displayed, allowing the user to preview the generated first expression.
[0042] In an embodiment of the present application, when a user uploads or captures initial media content while publishing a work or chatting with other users, the first user side can automatically generate a corresponding first emoticon based on the initial media content in response to a first input, and display target information to prompt the user. This allows users to conveniently create corresponding emoticons based on images captured during the process of publishing a work or sending an instant messaging message, thereby providing a convenient emoticon generation path and simplifying the steps for users to create emoticons.
[0043] In some embodiments of the present application, the method for generating an emoticon image further includes: after displaying the target information, generating target media content based on the initial media content in the media content generation interface; in response to a determination operation of the target media content, publishing the target media content and / or sending the target media content to at least one second user.
[0044] In an embodiment of the present application, after displaying the target information related to the first expression, the user can continue to edit the initial media content to generate target media content, and after the user performs a confirmation operation on the target media content, the target media content is published as a personal work, or the target media content is sent to at least one second user.
[0045] The media content generation interface displays the initial media content uploaded or shot by the user. In the media generation interface, the user can edit the initial media content and, in response to a confirmation operation, upload and publish the target media content completed based on the initial media content, or send it to other users.
[0046] Specifically, after adding the first emoticon based on the initial media content, the user can add stickers, adjust filters or special effects, crop the size, and perform other editing operations on the initial media content in the media content generation interface, and use the edited initial media content as the target media content.
[0047] FIG2 shows one schematic diagram of a media content generation interface provided by some embodiments of the present application. As shown in FIG2 , after a user shoots a video work 202, the video work 202 is previewed and displayed on the media content generation interface. After the first expression is created based on the first input, an expression addition completion message 204 is displayed. The user edits the video work 202 to obtain the edited video work 202. The user can upload and publish the edited video work 202 as the target media content by clicking the "Publish" button 206. The expression addition completion message is the target information, the video work 202 is the initial media content, the edited video work 202 is the target media content, and the user's clicking the "Publish" button 206 is the user's confirmation operation on the target media content.
[0048] In an embodiment of the present application, during the process of a user publishing a work or sending a conversation message, the ability to generate a first expression based on the initial media content is provided, and after generating the first expression, the user can continue to edit the initial media content to obtain the target media content, and after the user performs a certain operation on the target media content, publish the target content, or send the target content to other users, ensuring that the expression creation process will not interrupt the user's process of uploading or sending the corresponding target media content.
[0049] In some embodiments of the present application, when the initial media content is acquired, receiving the first input includes: displaying the initial media content on the media content generation interface; and confirming receipt of the first input in response to a triggering operation on the media content generation interface.
[0050] In the embodiment of the present application, the first input is a user triggering an operation on the media content generation interface. The first input can be a triggering operation on an operating control in the media content generation interface, or a triggering operation on the initial media content in the media content generation interface. After receiving the corresponding triggering operation, it is determined that the first input has been received, and subsequent actions such as displaying target information in response to the first input are continued.
[0051] The media content generation interface displays initial media content uploaded or photographed by the user, and the user can trigger an operation of generating a first expression based on the initial media content through a first input in the media generation interface.
[0052] FIG3 shows a second schematic diagram of a media content generation interface provided in some embodiments of the present application. As shown in FIG3 , after a user shoots a video work 302, the video work 302 is previewed and displayed on the media content generation interface. The user long-presses the video work 302 in the media content generation interface to trigger the action of generating a first expression based on the video work 302. After the first expression is generated, an expression addition completion message 304 is displayed. The video work 302 is the initial media content, the user long-pressing the media content generation interface is the first input, and the expression addition completion message is the target information. In other embodiments, the media content generation interface displays an expression addition control, and the first input can also be a triggering operation for the expression addition control.
[0053] In an embodiment of the present application, the initial media content can be displayed in the media content generation interface, and the user can execute a first input for triggering the generation of a first expression based on the initial media content by triggering the media content generation interface, so that the user can generate the corresponding first expression through convenient operations when the initial media content is displayed, further simplifying the user's operation process for making expressions.
[0054] In some embodiments of the present application, the first input includes a first sub-input and a second sub-input; when the initial media content is acquired, the first input is received, including: when the initial media content is displayed on the media content generation interface, receiving a first sub-input for a first control in the media content generation interface; in response to the first sub-input, displaying a second control in the content editing interface; receiving a second sub-input for the second control, wherein the second control includes an emoticon addition control.
[0055] In the embodiment of the present application, the first sub-input and the second sub-input are both sub-inputs of the first input. The first control includes a content sharing button for sharing the initial media content, and the second control includes an expression adding control for adding the generated first expression to the expression favorites.
[0056] FIG4 shows a third schematic diagram of a media content generation interface provided by some embodiments of the present application. As shown in FIG4 , after a user shoots a video work 402, the video work 402 is displayed in the media content generation interface, and a content sharing button 404 is also displayed in the media generation interface. After the user clicks the content sharing button 404, a floating window 406 pops up in the media generation interface, and an expression adding button 408 is displayed in the floating window 406. When the user clicks the expression adding button 408, it can trigger the action of generating a corresponding expression image based on the video work 402 and adding the expression image to the expression favorites. Among them, the video work 402 is the initial media content, the content sharing button 404 is the first control, the expression adding button 408 is the second control, the user clicking the content sharing button 404 is the first sub-input, and the user clicking the expression adding button 408 is the second sub-input.
[0057] In some other embodiments, the user's trigger on the first sub-input in the media content generation interface can also be a preset trigger operation on the media content generation interface, such as a long press operation on the screen area of the media generation interface, after which the second control appears.
[0058] In an embodiment of the present application, the user can conveniently generate an emoticon image based on the initial media content and add the emoticon image to the emoticon favorites by sequentially executing the first sub-input and the second sub-input on the first control and the second control in the media content generation interface, thereby ensuring the convenience of the user's operation in the media content generation interface.
[0059] In some embodiments of the present application, the first expression includes any one of the following: a dynamic expression image, a static expression image.
[0060] In the embodiment of the present application, the first expression can be a dynamic expression image or a static expression image.
[0061] In an embodiment of the present application, the first expression can be stored as a dynamic expression image in GIF format, and the first expression can be converted between a static expression image and a dynamic expression image, that is, a frame of the dynamic expression image is captured as a static expression image. For example, when the initial media content is a GIF or video, a button to switch between static and dynamic expressions is displayed on the user interface, and / or the user is supported to select the image frame to generate the first expression.
[0062] For example, when the first expression is a dynamic expression image, when the user sends the first expression to the dialog box, the first expression can move in the dialog box. When the first expression is a static expression image, the first expression remains fixed in the dialog box.
[0063] In the embodiment of the present application, dynamic expression images and static expression images can be generated through the acquired initial media content, thereby improving the flexibility of users in making their own expressions. Users can choose to make dynamic expressions and static expressions according to actual needs.
[0064] In some embodiments of the present application, the initial media content includes: a first video; before displaying the target information, it includes: generating a first expression based on the first video, wherein the first expression is a dynamic expression image.
[0065] In the embodiment of the present application, the initial media content includes a first video, which can be an uploaded video or a captured video. When generating a first expression using the first video, the first video can be converted into a dynamic image, and the dynamic image can be directly used as the dynamic expression image corresponding to the first expression. For example, during the process of converting the first video into the dynamic expression image, some video frames in the first video are deleted to reduce the data volume of the generated dynamic expression image.
[0066] Exemplarily, during the process of converting the first video into a dynamic expression image, the interval length between at least two video frames in the first video is adjusted to adjust the playback effect of the generated dynamic expression image.
[0067] Exemplarily, during the process of converting the first video into a dynamic expression image, the playback order between at least two video frames in the first video is adjusted to adjust the display content in the generated dynamic expression image.
[0068] In an embodiment of the present application, when the acquired initial media content is a video work, corresponding dynamic expressions can be generated based on the video work, which simplifies the operation process required for the user to create dynamic expressions.
[0069] In some embodiments of the present application, the initial media content includes: a first video; before displaying the target information, it includes: generating a first expression based on the first video, wherein the first expression is a static expression image.
[0070] In an embodiment of the present application, a first expression is generated by extracting a target video frame from a first video and using the target video frame as a static expression image. The first expression generated based on the first video can be a dynamic expression or a static expression. The user can flexibly choose to make a dynamic expression or a static expression based on the first video. While simplifying the user's expression making, it can also improve the user's flexibility in choosing to make expressions.
[0071] Exemplarily, a target video frame is automatically extracted from the first video, wherein the target video frame is a first video frame, a last video frame, or a middle video frame in the first video frame.
[0072] In some embodiments of the present application, generating a first expression based on a first video includes: when the video length of the first video is less than or equal to a preset length, determining a first dynamic image as the first expression, the first dynamic image being a dynamic image converted from the first video.
[0073] In an embodiment of the present application, by comparing the video length of the first video with a preset length, when the video length of the first video is less than or equal to the preset length, the complete first video is directly converted into a first dynamic image, and the first dynamic image is determined as the first expression.
[0074] The preset length ranges from 5 seconds to 10 seconds.
[0075] For example, the preset length is 10 seconds, and the video length of the first video is recognized to be 8 seconds, then the first video is directly converted into a GIF image format, and the GIF image is stored as the first emoticon in the emoticon favorites. It can be understood that the emoticon favorites can be a storage area for emoticons, which matches the user's account. For example, the emoticon favorites can be an emoticon panel.
[0076] In an embodiment of the present application, by comparing the video length of the first video with a preset length, and automatically converting the format of the first video whose video length does not exceed the preset length to obtain a first expression, it can be ensured that the amount of data of the obtained first expression is small, and the user does not need to manually crop the obtained video, etc., to complete the production of the corresponding expression, further simplifying the user's operating steps when making expressions.
[0077] In some embodiments of the present application, generating a first expression based on a first video includes: when the video length of the first video is greater than a preset length, determining a second video in the first video, the video length of the second video being less than or equal to the preset length; determining a second dynamic image as the first expression, the second dynamic image being a dynamic image converted from the second video.
[0078] In the embodiment of the present application, the second video is a portion of the first video, the first video includes all video content in the second video, and the video length of the first video is greater than the video length of the second video. In the embodiment of the present application, by comparing the video length of the first video with a preset length, if the video length of the first video is greater than the preset length, the first video is cropped to a second video having a video length less than or equal to the preset length, and the second video is converted into a second dynamic image, and the second dynamic image is determined to be the first expression.
[0079] In some possible implementations, the first video can be automatically cropped according to a preset length.
[0080] For example, a target video frame segment with a preset length in the first video is automatically captured and used as the second video. The target video frame segment can be selected at a location set by the user in advance, including the beginning, end, or middle of the first video.
[0081] In this embodiment of the present application, the length of the first video is compared with a preset length. If the length of the first video exceeds the preset length, the second video is intercepted from the first video. By determining the second dynamic image converted from the second video as the first expression, even if the length of the first video is too long, the amount of data for the first expression can still be kept small.
[0082] In some embodiments of the present application, determining a second video in a first video includes: displaying initial media content and a third control; receiving a second input to the third control, the third control including a video cropping control; and intercepting the second video in the first video in response to the second input.
[0083] In an embodiment of the present application, a third control is used to crop a first video in the initial media content, and a second input is used to trigger the cropping action on the first video. The user can select a target frame segment in the first video by executing the second input on the third control, and the second video in the first video is captured based on the selected target frame segment.
[0084] FIG5 shows a fourth schematic diagram of a media content generation interface provided by some embodiments of the present application. As shown in FIG5 , a first video 502 and a video cropping control 506 are displayed in the media content generation interface. The user cuts off the second video 504 in the first video 502 by dragging the floating mark 508 in the video cropping control 506. A preview image 510 in the video is displayed at a position associated with the video cropping control 506. When the user drags the floating mark 508, the user determines the video segment to be cropped by viewing the preview image 510 at the corresponding position (for example, the current preview image is displayed above the floating mark 508 in FIG5 ). The video cropping control is the third control, and the user dragging the floating mark in the video cropping control is the second input.
[0085] In an embodiment of the present application, the user can manually crop the first video by operating the third control to obtain the second video, so that the content of the first expression generated based on the second video is manually selected by the user, ensuring that the obtained first expression meets the user's actual needs.
[0086] In some embodiments of the present application, the method for generating an expression image further includes: generating a first expression based on the initial media content.
[0087] In the embodiment of the present application, before displaying the target information, a first expression is generated based on the initial media content displayed in the media content generation interface. The initial media content can be video content, image content, or text content. The initial media content is media content uploaded or captured by the user, and the specific type is not specifically limited here.
[0088] For example, when the initial media content is video content, a static first expression can be generated by intercepting video frames in the video content, and a portion of the video content can be converted into a dynamic image to obtain a dynamic first expression.
[0089] For example, when the initial media content is image content, the image content can be used directly as the first expression. If the image content is a static image, the first expression is a static expression; if the image content is a dynamic image, the first expression is a dynamic image. If there are multiple images, the multiple images can be synthesized to generate a dynamic first expression.
[0090] Exemplarily, when the initial media content is text content, a text image can be generated according to the text content, and the text image is used as the first expression.
[0091] In the embodiment of the present application, the first expression is generated based on the initial media content, which can ensure that different types of initial media content can generate corresponding first expressions, allowing users to flexibly select the type of initial media content uploaded or photographed, thereby being able to create different types of first expressions.
[0092] In some embodiments of the present application, generating a first expression based on initial media content includes: displaying target information and a fourth control, the target information including an expression image generated based on the initial media content; receiving a third input to the fourth control, the third input being used to edit the expression image; and generating a first expression based on the edited expression image.
[0093] In an embodiment of the present application, the fourth control is a control for editing the generated emoticon image. By performing the third input on the fourth control, the user can perform editing operations such as inserting stickers or inserting text on the emoticon image.
[0094] In an embodiment of the present application, during the process of generating a first expression based on initial media content, an expression image generated based on the initial content and a fourth control for editing the expression image are displayed. The user can edit the expression image through the displayed fourth control, determine the edited expression image as the first expression, and then add the first expression to the expression favorites.
[0095] Exemplarily, editing the emoticon image includes at least one of the following: inserting text into the emoticon image, inserting stickers into the emoticon image, adjusting color parameters of the emoticon image, adjusting size parameters of the emoticon image, and adjusting the playback speed of the emoticon image.
[0096] It is understood that after receiving the first input, the user may jump to the expression generation interface to display the target information, where the target information may include the initial media content or the intermediate media content that has been edited in the media content generation interface. The first expression is generated through the user's editing operation in the expression generation interface. After the first expression is generated, the user may return to the media content generation interface to continue editing the initial media content or the media content that was previously edited in the expression generation interface to generate the target media content.
[0097] FIG6 shows a schematic diagram of an emoticon generation interface provided by some embodiments of the present application. As shown in FIG6 , an emoticon image 602 and an image editing control 604 are displayed on the emoticon generation interface. After a user clicks the text insertion option in the image editing control 604, a text input box 606 is displayed. The user enters text content 608 in the text input box 606. After the user clicks the "Confirm" button 610, the editing of the text inserted into the emoticon image is completed. Specifically, the user clicking the text insertion option in the image editing control 604 and entering text in the text input box 606 constitutes a third input, and the image editing control 604 constitutes a fourth control.
[0098] In an embodiment of the present application, before storing the expression image generated based on the initial media content as the first expression, the user can edit the expression image through the fourth control and use the edited expression image as the first expression, allowing the user to perform secondary editing on the expression image generated based on the initial media content, further improving the flexibility of creating expressions.
[0099] In some embodiments of the present application, the initial media content includes at least one preset image; before displaying the target information, the process includes: determining the at least one preset image as a first expression, and the number of the first expressions matches the number of the preset images.
[0100] In the embodiment of the present application, the preset image can be an image uploaded by the user or a photographed image. When the initial media content is the preset image, the preset image is directly stored as the first expression in the expression favorites.
[0101] For example, when there are multiple preset images, each preset image is used as a first expression, and multiple first expressions are stored in the expression favorites. The number of first expressions is the same as the number of preset images, and the first expressions correspond to the preset images one by one.
[0102] For example, the preset image can be a static image, in which case the first expression corresponding to the preset image is a static expression. Alternatively, the preset image can be a dynamic image, in which case the first expression corresponding to the preset image is a dynamic expression. For example, if the dynamic image is a Live Photo, the dynamic image is converted into a GIF image and used as the first expression.
[0103] In an embodiment of the present application, when the initial media content is multiple preset images, by using each preset image as the corresponding first expression, when the initial media content is multiple preset images, multiple first expressions can be added to the expression favorites at one time, thereby achieving the effect of batch production of expressions.
[0104] In some embodiments of the present application, the number of preset images is at least two; determining at least one preset image as the first expression includes: in response to a selection operation of a target image from at least two preset images, determining the target image as the first expression, the target image being at least one preset image from at least two preset images.
[0105] In an embodiment of the present application, when the initial media content is a plurality of preset images, the user can select the plurality of preset images through a selection operation and determine the selected target image as the first expression. The user can select one or more target images from the plurality of preset images.
[0106] For example, a plurality of preset images are displayed on the media content generation interface, and a user clicks a target image among the plurality of preset images. The clicked preset image is determined as the target image, and a selection mark is displayed on the target image. The click input by the user by clicking the target image is a selection operation.
[0107] In an embodiment of the present application, when the initial media content includes at least two preset images, at least two preset images are displayed, and the user selects a target image through a selection operation, so that the user can select part of the initial media content to generate a corresponding first expression.
[0108] In some embodiments of the present application, the initial media content includes at least two preset images; before displaying the target information, the process includes: synthesizing the at least two preset images into a first expression, wherein the first expression is a dynamic expression image.
[0109] In the embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized and the synthesized image can be used as the first expression. The expression image synthesized from the at least two preset images is a dynamic expression image.
[0110] Exemplarily, at least two preset images are synthesized according to their arrangement order to generate a dynamic expression image, so that the display order of the at least two preset images in the dynamic expression image matches the arrangement order.
[0111] In an embodiment of the present application, the user can set the display duration of each preset image in the synthesized dynamic expression image. For example, the preset images include a first image and a second image, and the display duration of the first image in the dynamic expression image is 1 second, and the display duration of the second image is 3 seconds.
[0112] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized into a dynamic expression image, and the synthesized dynamic expression image can be used as the first expression. The user does not need to synthesize multiple preset images in other applications, and the synthesized dynamic expression image can be quickly generated.
[0113] In some embodiments of the present application, the initial media content includes at least two preset images; before displaying the target information, the process includes: synthesizing the at least two preset images into a first expression, wherein the first expression is a static expression image.
[0114] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized in a tiled manner. For example, the area ratio of each preset image in the synthesized static expression image can be freely set by the user.
[0115] In some embodiments of the present application, the preset image includes any one of the following: a static preset image, a dynamic preset image. In some embodiments, the dynamic preset image may include an animated image or a video.
[0116] In the embodiment of the present application, when the initial media content is a static preset image or a dynamic preset image, the first expression can be generated based on the preset image, thereby improving the flexibility of the user in making expressions.
[0117] Exemplarily, a dynamic first expression can be obtained by synthesizing multiple preset static images.
[0118] Exemplarily, the static first expression can be obtained by intercepting an image frame in the dynamic preset image.
[0119] In some embodiments of the present application, in response to the first input, after the target information is displayed, the method includes: storing the first expression in a local storage area; and / or adding the first expression to an expression panel, which is used to generate target content.
[0120] In an embodiment of the present application, after the first expression is generated based on the initial media content, the first expression can be saved. The saved location can be a local storage area, and can also be uploaded to a server so that the server can bind the first expression to the user's account and add it to the expression panel corresponding to the account.
[0121] Specifically, the user can set the storage location of the first emoticon in advance, and thus choose to store the first emoticon locally and / or upload it to a server for storage.
[0122] In the embodiment of the present application, by saving the generated first expression in a local storage area and / or adding it to an expression panel, the convenience of the user in using the first expression can be improved.
[0123] In some embodiments of the present application, the target content includes an expression image, and the method further includes: generating the target content based on the first expression in the expression panel; and sending the target content to at least one second user and / or publishing the target content in response to the target content determination operation.
[0124] In an embodiment of the present application, when editing target content, the user can edit the target content with a first expression, and publish the target content and / or send it to at least one second user.
[0125] Exemplarily, the target content includes social chat information that the user needs to send to the second user.
[0126] Exemplarily, the target content includes video works uploaded and published by users.
[0127] Exemplarily, the target content includes comment information of a user under a video work posted by other users.
[0128] The method for generating an expression image provided in the embodiment of the present application can be executed by an apparatus for generating an expression image. In the embodiment of the present application, the apparatus for generating an expression image is described by taking the apparatus for generating an expression image executing the method for generating an expression image as an example.
[0129] In some embodiments of the present application, a device for generating an expression image is provided. FIG7 shows a structural block diagram of the device for generating an expression image provided in an embodiment of the present application. As shown in FIG7 , the device for generating an expression image 700, on the first user side, includes:
[0130] A receiving module 702 is configured to receive a first input when initial media content is acquired, the first input being used to trigger generation of a first expression, the first expression being an expression image generated based on the initial media content, the expression image being used to edit and / or send target content, the initial media content including captured content and / or uploaded content;
[0131] The display module 704 is configured to display target information in response to the first input, wherein the target information is associated with the first expression.
[0132] In an embodiment of the present application, when a user uploads or captures initial media content while publishing a work or chatting with other users, the first user side can automatically generate a corresponding first emoticon based on the initial media content in response to a first input, and display target information to prompt the user. This allows users to conveniently create corresponding emoticons based on images captured during the process of publishing a work or sending an instant messaging message, thereby providing a convenient emoticon generation path and simplifying the steps for users to create emoticons.
[0133] In some embodiments of the present application, the display module 704 is configured to generate target media content based on the initial media content on the media content generation interface after displaying the target information;
[0134] The expression image generating device 700 includes:
[0135] a publishing module, configured to publish target media content in response to a determination operation of the target media content;
[0136] and / or a sending module, configured to send the target media content to at least one second user.
[0137] In an embodiment of the present application, during the process of a user publishing a work or sending a conversation message, the ability to generate a first expression based on the initial media content is provided, and after generating the first expression, the user can continue to edit the initial media content to obtain the target media content, and after the user performs a certain operation on the target media content, publish the target content, or send the target content to other users, ensuring that the expression creation process will not interrupt the user's process of uploading or sending the corresponding target media content.
[0138] In some embodiments of the present application, the display module 704 is configured to display the initial media content on the media content generation interface;
[0139] The expression image generating device 700 includes:
[0140] The determination module is configured to confirm receipt of the first input in response to a triggering operation on the media content generation interface.
[0141] In an embodiment of the present application, the initial media content can be displayed in the media content generation interface, and the user can execute a first input for triggering the generation of a first expression based on the initial media content by triggering the media content generation interface, so that the user can generate the corresponding first expression through convenient operations when the initial media content is displayed, further simplifying the user's operation process for making expressions.
[0142] In some embodiments of the present application, the first input includes a first sub-input and a second sub-input;
[0143] The receiving module 702 is configured to receive a first sub-input to a first control in the media content generation interface when the media content generation interface displays initial media content;
[0144] Display module 704, configured to display a second control in the content editing interface in response to the first sub-input;
[0145] The receiving module 702 is configured to receive a second sub-input to a second control, wherein the second control includes an expression adding control.
[0146] In an embodiment of the present application, the user can conveniently generate an emoticon image based on the initial media content and add the emoticon image to the emoticon favorites by sequentially executing the first sub-input and the second sub-input on the first control and the second control in the media content generation interface, thereby ensuring the convenience of the user's operation in the media content generation interface.
[0147] In some embodiments of the present application, the first expression includes any one of the following: a dynamic expression image, a static expression image.
[0148] In the embodiment of the present application, dynamic expression images and static expression images can be generated through the acquired initial media content, thereby improving the flexibility of users in making their own expressions. Users can choose to make dynamic expressions and static expressions according to actual needs.
[0149] In some embodiments of the present application, the initial media content includes: a first video;
[0150] The expression image generating device 700 includes:
[0151] A generating module is used to generate a first expression according to the first video, wherein the first expression is a dynamic expression image.
[0152] In an embodiment of the present application, when the acquired initial media content is a video work, corresponding dynamic expressions can be generated based on the video work, which simplifies the operation process required for the user to create dynamic expressions.
[0153] In some embodiments of the present application, the initial media content includes: a first video;
[0154] A generating module is used to generate a first expression according to the first video, wherein the first expression is a static expression image.
[0155] In an embodiment of the present application, a first expression is generated by extracting a target video frame from a first video and using the target video frame as a static expression image. The first expression generated based on the first video can be a dynamic expression or a static expression. The user can flexibly choose to make a dynamic expression or a static expression based on the first video. While simplifying the user's expression making, it can also improve the user's flexibility in choosing to make expressions.
[0156] In some embodiments of the present application, the determination module is used to determine the first dynamic image as the first expression when the video length of the first video is less than or equal to a preset length, and the first dynamic image is a dynamic image converted from the first video.
[0157] In an embodiment of the present application, by comparing the video length of the first video with a preset length, and automatically converting the format of the first video whose video length does not exceed the preset length to obtain a first expression, it can be ensured that the amount of data of the obtained first expression is small, and the user does not need to manually crop the obtained video, etc., to complete the production of the corresponding expression, further simplifying the user's operating steps when making expressions.
[0158] In some embodiments of the present application, the determining module is configured to, if the video length of the first video is greater than a preset length, determine a second video in the first video, the video length of the second video being less than or equal to the preset length;
[0159] The determination module is used to determine the second dynamic image as the first expression, and the second dynamic image is a dynamic image obtained by converting the second video.
[0160] In this embodiment of the present application, the length of the first video is compared with a preset length. If the length of the first video exceeds the preset length, the second video is intercepted from the first video. By determining the second dynamic image converted from the second video as the first expression, even if the length of the first video is too long, the amount of data for the first expression can still be kept small.
[0161] In some embodiments of the present application, the display module 704 is configured to display the initial media content and the third control;
[0162] A receiving module, configured to receive a second input to a third control, where the third control includes a video cropping control;
[0163] The expression image generating device 700 includes:
[0164] The capture module is configured to capture the second video in the first video in response to a second input.
[0165] In an embodiment of the present application, the user can manually crop the first video by operating the third control to obtain the second video, so that the content of the first expression generated based on the second video is manually selected by the user, ensuring that the obtained first expression meets the user's actual needs.
[0166] In some embodiments of the present application, the generating module is configured to generate a first expression based on initial media content.
[0167] In the embodiment of the present application, the first expression is generated based on the initial media content, which can ensure that different types of initial media content can generate corresponding first expressions, allowing users to flexibly select the type of initial media content uploaded or photographed, thereby being able to create different types of first expressions.
[0168] In some embodiments of the present application, the display module 704 is configured to display target information and a fourth control, where the target information includes an expression image generated based on the initial media content;
[0169] A receiving module 702 receives a third input to a fourth control, where the third input is used to edit the expression image;
[0170] A generating module is used to generate a first expression based on the edited expression image.
[0171] In an embodiment of the present application, before storing the expression image generated based on the initial media content as the first expression, the user can edit the expression image through the fourth control and use the edited expression image as the first expression, allowing the user to perform secondary editing on the expression image generated based on the initial media content, further improving the flexibility of creating expressions.
[0172] In some embodiments of the present application, the determination module is configured to determine at least one preset image as a first expression, and the number of the first expressions matches the number of the preset images.
[0173] In an embodiment of the present application, when the initial media content is a preset image, by using each preset image as the corresponding first expression, when the initial media content is multiple preset images, multiple first expressions can be added to the expression favorites at one time, thereby achieving the effect of batch production of expressions.
[0174] In some embodiments of the present application, the number of preset images is at least two;
[0175] The determination module is configured to determine the target image as the first expression in response to a selection operation on a target image from the at least two preset images, where the target image is at least one of the at least two preset images.
[0176] In an embodiment of the present application, when the initial media content includes at least two preset images, at least two preset images are displayed, and the user selects a target image through a selection operation, so that the user can select part of the initial media content to generate a corresponding first expression.
[0177] In some embodiments of the present application, the initial media content includes at least two preset images;
[0178] The expression image generating device 700 includes:
[0179] The synthesis module is used to synthesize at least two preset images into a first expression, wherein the first expression is a dynamic expression image.
[0180] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized into a dynamic expression image, and the synthesized dynamic expression image can be used as the first expression. The user does not need to synthesize multiple preset images in other applications, and the synthesized dynamic expression image can be quickly generated.
[0181] In some embodiments of the present application, the initial media content includes at least two preset images;
[0182] The synthesis module is used to synthesize at least two preset images into a first expression, wherein the first expression is a static expression image.
[0183] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized in a tiled manner. For example, the area ratio of each preset image in the synthesized static expression image can be freely set by the user.
[0184] In some embodiments of the present application, the preset image includes any one of the following: a static preset image, a dynamic preset image.
[0185] In the embodiment of the present application, when the initial media content is a static preset image or a dynamic preset image, the first expression can be generated based on the preset image, thereby improving the flexibility of the user in making expressions.
[0186] In the embodiment of the present application, by saving the generated first expression in a local storage area and / or adding it to an expression panel, the convenience of the user in using the first expression can be improved.
[0187] In some embodiments of the present application, the generating module is configured to generate target content based on the first expression in the expression panel;
[0188] The sending module is configured to send the target content to at least one second user and / or publish the target content in response to the target content determination operation.
[0189] In an embodiment of the present application, when editing target content, the user can edit the target content with a first expression, and publish the target content and / or send it to at least one second user.
[0190] The device for generating an expression image in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0191] The device for generating an expression image 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.
[0192] The device for generating an expression image provided in the embodiment of the present application can implement each process implemented in the above-mentioned method embodiment. To avoid repetition, they will not be described here.
[0193] Optionally, an embodiment of the present application also provides an electronic device. Figure 8 shows a structural block diagram of an electronic device according to an embodiment of the present application. As shown in Figure 8, the electronic device 800 includes a processor 802 and a memory 804. The memory 804 stores programs or instructions that can be run on the processor 802. When the program or instructions are executed by the processor 802, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0194] 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.
[0195] FIG9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0196] The electronic device 900 includes but is not limited to components such as a radio frequency unit 901 , a network module 902 , an audio output unit 903 , an input unit 904 , a sensor 905 , a display unit 906 , a user input unit 907 , an interface unit 908 , a memory 909 , and a processor 910 .
[0197] Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 910 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG9 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.
[0198] Processor 910 is configured to, upon acquiring media content, receive a first input, the first input being configured to trigger generation of a first expression, the first expression being an expression image generated based on the media content, the expression image being configured to edit and / or send target content, the media content including captured content and / or uploaded content;
[0199] The display unit 906 is configured to display target information in response to the first input, wherein the target information is associated with the first expression.
[0200] In an embodiment of the present application, after a user uploads or captures initial media content, the first user side can automatically generate a corresponding first emoticon based on the initial media content in response to a first input, and display target information to prompt the user. This allows users to conveniently create emoticons based on their published works during the process of publishing their own works, simplifying the process of creating emoticons, increasing the rate of users revisiting their works, and expanding the user supply pool of emoticons.
[0201] In some embodiments of the present application, the processor 910 is configured to generate target media content based on the initial media content on the media content generation interface after displaying the target information;
[0202] The processor 910 is configured to publish the target media content in response to a target media content determination operation;
[0203] and / or the processor 910 , configured to send the target media content to at least one second user.
[0204] In an embodiment of the present application, after generating the first expression based on the initial media content, the user can continue to edit the initial media content to obtain the target media content, and publish the target content after the user performs a certain operation on the target media content, or send the target content to other users, thereby ensuring that the expression creation process does not interrupt the user's process of uploading or sending the corresponding target media content.
[0205] In some embodiments of the present application, the display unit 906 is configured to display the initial media content on the media content generation interface;
[0206] The processor 910 is configured to confirm receipt of a first input in response to a triggering operation on the media content generation interface.
[0207] In an embodiment of the present application, the initial media content can be displayed in the media content generation interface, and the user can execute a first input for triggering the generation of a first expression based on the initial media content by triggering the media content generation interface, so that the user can generate the corresponding first expression through convenient operations when the initial media content is displayed, further simplifying the user's operation process for making expressions.
[0208] In some embodiments of the present application, the first input includes a first sub-input and a second sub-input;
[0209] Processor 910 is configured to receive a first sub-input to a first control in the media content generation interface when the media content generation interface displays initial media content;
[0210] Display unit 906, configured to display a second control in the content editing interface in response to the first sub-input;
[0211] Processor 910 is configured to receive a second sub-input to a second control, where the second control includes an expression adding control.
[0212] In an embodiment of the present application, the user can conveniently generate an emoticon image based on the initial media content and add the emoticon image to the emoticon favorites by sequentially executing the first sub-input and the second sub-input on the first control and the second control in the media content generation interface, thereby ensuring the convenience of the user's operation in the media content generation interface.
[0213] In some embodiments of the present application, the first expression includes any one of the following: a dynamic expression image, a static expression image.
[0214] In the embodiment of the present application, dynamic expression images and static expression images can be generated through the acquired initial media content, thereby improving the flexibility of users in making their own expressions. Users can choose to make dynamic expressions and static expressions according to actual needs.
[0215] In some embodiments of the present application, the initial media content includes: a first video;
[0216] The processor 910 is configured to generate a first expression according to the first video, wherein the first expression is a dynamic expression image.
[0217] In an embodiment of the present application, when the acquired initial media content is a video work, corresponding dynamic expressions can be generated based on the video work, which simplifies the operation process required for the user to create dynamic expressions.
[0218] In some embodiments of the present application, the initial media content includes: a first video;
[0219] The processor 910 is configured to generate a first expression according to the first video, wherein the first expression is a static expression image.
[0220] In an embodiment of the present application, a first expression is generated by extracting a target video frame from a first video and using the target video frame as a static expression image. The first expression generated based on the first video can be a dynamic expression or a static expression. The user can flexibly choose to make a dynamic expression or a static expression based on the first video. While simplifying the user's expression making, it can also improve the user's flexibility in choosing to make expressions.
[0221] In some embodiments of the present application, the processor 910 is configured to determine the first dynamic image as the first expression when the length of the first video is less than or equal to a preset length, and the first dynamic image is a dynamic image converted from the first video.
[0222] In an embodiment of the present application, by comparing the video length of the first video with a preset length, and automatically converting the format of the first video whose video length does not exceed the preset length to obtain a first expression, it can be ensured that the amount of data of the obtained first expression is small, and the user does not need to manually crop the obtained video, etc., to complete the production of the corresponding expression, further simplifying the user's operating steps when making expressions.
[0223] In some embodiments of the present application, the processor 910 is configured to, if the video length of the first video is greater than a preset length, determine a second video in the first video, where the video length of the second video is less than or equal to the preset length;
[0224] The processor 910 is configured to determine the second dynamic image as the first expression, where the second dynamic image is a dynamic image converted from the second video.
[0225] In this embodiment of the present application, the length of the first video is compared with a preset length. If the length of the first video exceeds the preset length, the second video is intercepted from the first video. By determining the second dynamic image converted from the second video as the first expression, even if the length of the first video is too long, the amount of data for the first expression can still be kept small.
[0226] In some embodiments of the present application, the display unit 906 is configured to display the initial media content and the third control;
[0227] Processor 910 is configured to receive a second input to a third control, where the third control includes a video cropping control;
[0228] The processor 910 is configured to intercept a second video from the first video in response to a second input.
[0229] In an embodiment of the present application, the user can manually crop the first video by operating the third control to obtain the second video, so that the content of the first expression generated based on the second video is manually selected by the user, ensuring that the obtained first expression meets the user's actual needs.
[0230] In some embodiments of the present application, the processor 910 is configured to generate a first expression based on initial media content.
[0231] In the embodiment of the present application, the first expression is generated based on the initial media content, which can ensure that different types of initial media content can generate corresponding first expressions, allowing users to flexibly select the type of initial media content uploaded or photographed, thereby being able to create different types of first expressions.
[0232] In some embodiments of the present application, the display unit 906 is configured to display target information and a fourth control, where the target information includes an expression image generated based on the initial media content;
[0233] Processor 910, configured to receive a third input to a fourth control, where the third input is used to edit the expression image;
[0234] The processor 910 is configured to generate a first expression based on the edited expression image.
[0235] In an embodiment of the present application, before storing the expression image generated based on the initial media content as the first expression, the user can edit the expression image through the fourth control and use the edited expression image as the first expression, allowing the user to perform secondary editing on the expression image generated based on the initial media content, further improving the flexibility of creating expressions.
[0236] In some embodiments of the present application, the processor 910 is configured to determine at least one preset image as a first expression, and the number of the first expressions matches the number of the preset images.
[0237] In an embodiment of the present application, when the initial media content is a preset image, by using each preset image as the corresponding first expression, when the initial media content is multiple preset images, multiple first expressions can be added to the expression favorites at one time, thereby achieving the effect of batch production of expressions.
[0238] In some embodiments of the present application, the number of preset images is at least two;
[0239] The processor 910 is configured to determine the target image as a first expression in response to a selection operation on a target image from at least two preset images, where the target image is at least one preset image from the at least two preset images.
[0240] In an embodiment of the present application, when the initial media content includes at least two preset images, at least two preset images are displayed, and the user selects a target image through a selection operation, so that the user can select part of the initial media content to generate a corresponding first expression.
[0241] In some embodiments of the present application, the initial media content includes at least two preset images;
[0242] The processor 910 is configured to synthesize at least two preset images into a first expression, wherein the first expression is a dynamic expression image.
[0243] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized into a dynamic expression image, and the synthesized dynamic expression image can be used as the first expression. The user does not need to synthesize multiple preset images in other applications, and the synthesized dynamic expression image can be quickly generated.
[0244] In some embodiments of the present application, the initial media content includes at least two preset images;
[0245] The processor 910 is configured to synthesize at least two preset images into a first expression, wherein the first expression is a static expression image.
[0246] In an embodiment of the present application, when the initial media content is at least two preset images, the at least two preset images can be synthesized in a tiled manner. For example, the area ratio of each preset image in the synthesized static expression image can be freely set by the user.
[0247] In some embodiments of the present application, the preset image includes any one of the following: a static preset image, a dynamic preset image.
[0248] In the embodiment of the present application, when the initial media content is a static preset image or a dynamic preset image, the first expression can be generated based on the preset image, thereby improving the flexibility of the user in making expressions.
[0249] In the embodiment of the present application, by saving the generated first expression in a local storage area and / or adding it to an expression panel, the convenience of the user in using the first expression can be improved.
[0250] In some embodiments of the present application, the processor 910 is configured to generate target content based on a first expression in the expression panel;
[0251] The processor 910 is configured to send the target content to at least one second user and / or publish the target content in response to the target content determination operation.
[0252] In an embodiment of the present application, when editing target content, the user can edit the target content with a first expression, and publish the target content and / or send it to at least one second user.
[0253] It should be understood that in an embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0254] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a 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 RAM bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0255] Processor 910 may include one or more processing units. Optionally, processor 910 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 910.
[0256] An 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, the various processes of the above-mentioned embodiment of the method for generating an expression image are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0257] 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.
[0258] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-mentioned embodiment of the method for generating expression images, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0259] 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.
[0260] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the method for generating an expression image as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0261] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite 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.
[0262] 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 the necessary general hardware platform, and of course 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 the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0263] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for generating an expression image, wherein: On the first user side, the method for generating the expression image includes: In the case of acquiring the initial media content, receiving a first input, the first input being used to trigger generation of a first expression, the first expression being an expression image generated based on the initial media content, the expression image being used to edit and / or send target content, the initial media content including shot content and / or uploaded content; In response to the first input, target information is displayed, wherein the target information is associated with the first expression.
2. The method for generating an expression image according to claim 1, wherein: The method further comprises: After displaying the target information, generating target media content based on the initial media content on a media content generation interface; In response to the determination operation of the target media content, the target media content is published and / or sent to at least one second user.
3. The method for generating an expression image according to claim 2, wherein: The step of receiving a first input when the initial media content is acquired includes: Displaying the initial media content on a media content generation interface; In response to a triggering operation on the media content generation interface, receiving the first input is confirmed.
4. The method for generating an expression image according to claim 3, wherein: The first input includes a first sub-input and a second sub-input; The step of receiving a first input when the initial media content is acquired includes: In a case where the media content generation interface displays the initial media content, receiving the first sub-input to a first control in the media content generation interface; In response to the first sub-input, displaying a second control in the content editing interface; A second sub-input to the second control is received, wherein the second control includes an expression adding control.
5. The method for generating an expression image according to any one of claims 1 to 4, wherein: The first expression includes any one of the following: a dynamic expression image, a static expression image.
6. The method for generating an expression image according to any one of claims 1 to 5, wherein: The initial media content includes: a first video; Before displaying the target information, the method includes: The first expression is generated according to the first video, wherein the first expression is a dynamic expression image.
7. The method for generating an expression image according to claim 6, wherein: Generating the first expression according to the first video includes: When the video length of the first video is less than or equal to a preset length, a first dynamic image is determined as the first expression, and the first dynamic image is a dynamic image obtained by converting the first video.
8. The method for generating an expression image according to claim 6, wherein: Generating the first expression according to the first video includes: In a case where the video length of the first video is greater than a preset length, determining a second video in the first video, the video length of the second video being less than or equal to the preset length; A second dynamic image is determined as the first expression, and the second dynamic image is a dynamic image obtained by converting the second video.
9. The method for generating an expression image according to claim 8, wherein: The determining the second video in the first video includes: Displaying the initial media content and a third control; receiving a second input to the third control, the third control comprising a video cropping control; In response to the second input, the second video in the first video is intercepted.
10. The method for generating an expression image according to any one of claims 1 to 5, wherein: The method further includes generating the first expression based on the initial media content.
11. The method for generating an expression image according to claim 10, wherein: The generating the first expression based on the initial media content includes: Displaying the target information and a fourth control, wherein the target information includes an expression image generated based on the initial media content; receiving a third input to the fourth control, wherein the third input is used to edit the expression image; The first expression is generated based on the edited expression image.
12. The method for generating an expression image according to any one of claims 1 to 5, wherein: The initial media content includes at least one preset image; Before displaying the target information, the method includes: At least one of the preset images is determined as the first expression, and the number of the first expressions matches the number of the preset images.
13. The method for generating an expression image according to claim 12, wherein: The number of the preset images is at least two; The step of determining at least one of the preset images as the first expression includes: In response to a selection operation on a target image from among the at least two preset images, the target image is determined as the first expression, and the target image is at least one of the at least two preset images.
14. The method for generating an expression image according to any one of claims 1 to 5, wherein: The initial media content includes at least two preset images; Before displaying the target information, the method includes: The at least two preset images are combined into the first expression, wherein the first expression is a dynamic expression image.
15. The method for generating an expression image according to any one of claims 12 to 14, wherein: The preset image includes any of the following: Static preset images, dynamic preset images.
16. The method for generating an expression image according to any one of claims 1 to 14, wherein: After the target information is displayed in response to the first input, the method further comprises: storing the first expression in a local storage area; and / or The first expression is added to an expression panel, where the expression panel is used to generate the target content.
17. The method for generating an expression image according to claim 16, wherein: The target content includes the expression image, and the method further includes: generating the target content based on the first expression in the expression panel; In response to the target content determination operation, the target content is sent to at least one second user and / or the target content is published.
18. A device for generating an expression image, wherein: On the first user side, the expression image generating device includes: A receiving module, configured to receive a first input when initial media content is acquired, wherein the first input is used to trigger generation of a first expression, wherein the first expression is an expression image generated based on the initial media content, and the expression image is used to edit and / or send target content, wherein the initial media content includes captured content and / or uploaded content; The display module is used to display target information in response to the first input, wherein the target information is associated with the first expression.
19. An electronic device, wherein: The electronic device comprises: A memory on which programs or instructions are stored; A processor, configured to implement the steps of the method for generating an expression image as described in any one of claims 1 to 17 when executing the program or instruction.
20. A readable storage medium having a program or instruction stored thereon, wherein: When the program or instruction is executed by a processor, the steps of the method for generating an expression image according to any one of claims 1 to 17 are implemented.
21. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the steps of the method for generating an expression image according to any one of claims 1 to 17 are implemented.
22. A computer program, wherein When the computer program is executed by a processor, the steps of the method for generating an expression image according to any one of claims 1 to 17 are implemented.
Citation Information
Patent Citations
Image display method, image display device and electronic equipment
CN111625740A
Media content processing method and device, equipment and storage medium
CN115269886A
Expression image generation method and device, electronic equipment and readable storage medium
CN116543079A
