CN114693827A - Expression generation method and device, computer equipment and storage medium - Google Patents

Expression generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114693827A
CN114693827A CN202210359148.9A CN202210359148A CN114693827A CN 114693827 A CN114693827 A CN 114693827A CN 202210359148 A CN202210359148 A CN 202210359148A CN 114693827 A CN114693827 A CN 114693827A
Authority
CN
China
Prior art keywords
expression
editing
page
conversation
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210359148.9A
Other languages
Chinese (zh)
Inventor
郝莹莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yunzhijia Network Co ltd
Original Assignee
Shenzhen Yunzhijia Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yunzhijia Network Co ltd filed Critical Shenzhen Yunzhijia Network Co ltd
Priority to CN202210359148.9A priority Critical patent/CN114693827A/en
Publication of CN114693827A publication Critical patent/CN114693827A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to an expression generation method, an expression generation device, a computer device and a storage medium. The method comprises the following steps: detecting a generated expression event triggered by a session message in a session page; responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message; in the expression editing page, acquiring editing operation aiming at the session message, and generating an expression after processing the session message according to the editing operation; and adding the expression thumbnail of the expression into an expression panel. The method does not need third-party software, is simple to operate and can quickly generate the expression.

Description

Expression generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an expression generation method and apparatus, a computer device, and a storage medium.
Background
In instant messaging software, expressions become common communication modes, the emotion of a user can be better conveyed by abundant and vivid expressions, and the use experience of the user is greatly enhanced.
At present, the process of adding pictures generated in instant messaging into expressions is as follows: storing the pictures generated in the instant messaging into a local memory, making expressions through third-party software, and storing the expressions into the local memory, wherein the instant messaging software is provided with an expression adding function page, and the expressions can be added from the local memory through the expression adding function page; in the existing method, the process of adding the pictures generated in the instant messaging into the expressions is long, the operation is complex, and the pictures generated in the instant messaging cannot be quickly and efficiently made into the expressions.
Disclosure of Invention
Based on this, there is a need to provide an emotion generating method, apparatus, computer device and storage medium for quickly generating emotions from a conversation message in a conversation page without third-party software.
In a first aspect, the present application provides an expression generation method. The method comprises the following steps:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
In one embodiment, the detecting a generated emotive event triggered by a session message in a session page includes:
detecting a selected event triggered by a session message in a session page, responding to the selected event, and displaying and generating an emoticon;
and detecting a generated expression event triggered by the generated expression icon.
In one embodiment, the session message comprises a picture; the displaying of the expression editing page corresponding to the conversation message includes:
calling a picture editing interface, and jumping from the conversation page to a first expression editing page corresponding to the picture editing interface;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring at least one editing operation of cutting operation, text adding operation and smearing operation aiming at the picture in the first expression editing page;
and processing the picture according to at least one editing operation of the obtained cutting operation, text adding operation and smearing operation to generate the expression.
In one embodiment, the session message comprises a video; the displaying of the expression editing page corresponding to the conversation message includes:
calling a video editing interface, and jumping from the conversation page to a second expression editing page corresponding to the video editing interface;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring key frame extraction operation and format conversion operation aiming at the video in the second expression editing page;
and processing the video according to the obtained key frame extraction operation and format conversion operation to generate an expression.
In one embodiment, the conversation message includes text; the displaying of the expression editing page corresponding to the conversation message includes:
calling a text editing interface, and jumping to a third surface editing page corresponding to the text editing interface from the conversation page;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring selection operation aiming at an expression template thumbnail in the third emotion editing page, and synthesizing the text and an expression template corresponding to the expression template thumbnail according to the acquired selection operation to obtain a candidate expression;
and acquiring text editing operation aiming at the text in the candidate expression, and processing the text in the candidate expression according to the acquired text editing operation to generate the expression.
In one embodiment, the displaying an emoticon edit page corresponding to the session message in response to the emoticon generation event includes:
responding to the generated expression event, and acquiring alternative conversation messages based on a plurality of historical conversation messages in the conversation page;
skipping from the conversation interface to an expression editing page corresponding to the conversation message, and displaying the conversation message and the alternative conversation message in the expression editing page;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
and in the expression editing page, acquiring editing operation aiming at the conversation message and the alternative conversation message, and generating an expression after processing the conversation message and the alternative conversation message according to the acquired editing operation.
In one embodiment, the obtaining alternative conversation messages based on a plurality of historical conversation messages in the conversation page includes:
and determining the text with the highest frequency of occurrence in the plurality of historical conversation messages, and taking the text with the highest frequency of occurrence as an alternative conversation message.
In one embodiment, the conversation message includes a plurality of pictures; the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring a combination operation aiming at the multiple pictures in the first expression editing page, and processing the multiple pictures according to the combination operation to obtain a combined picture;
and acquiring editing operation aiming at the combined picture, and processing the combined picture according to the acquired editing operation to generate an expression.
In one embodiment, the emoticon editing page includes an edit complete icon; the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring editing operation aiming at the conversation message in the expression editing page;
under the condition that the editing operation aiming at the conversation message is obtained, processing the conversation message according to the obtained editing operation to obtain a preview expression, and displaying the preview expression in the expression editing page;
responding to an editing completion event triggered by the editing completion icon, and taking a preview expression displayed in the expression editing page at present as a generated expression;
the method further comprises the following steps:
and under the condition that the editing operation aiming at the conversation message is not acquired, responding to an editing completion event triggered by the editing completion icon, and taking the conversation message as a generated expression.
In a second aspect, the application further provides an expression generating device. The device comprises:
the detection module is used for detecting the generated expression event triggered by the session message in the session page;
the skip module is used for responding to the generated expression event and displaying an expression editing page corresponding to the conversation message;
and the editing module is used for acquiring the editing operation aiming at the session message in the expression editing page and generating an expression after processing the session message according to the editing operation.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
The expression generation method, the expression generation device, the computer equipment, the storage medium and the computer program product are used for generating the expression, the generated emotion events triggered by the user can be directly detected in the conversation page, and jump from the conversation page to the emotion editing page, the expression generation method comprises the steps of editing the session message displayed in the session page through the expression editing page to generate the expression, when the conversation message in the conversation page needs to be emotionally generated, the conversation message does not need to be saved to a local album of the terminal, the expression is generated through the third-party software and then added into the expression panel, so that the third-party software is not needed, in the process of generating the expression, the instant messaging software, the local album of the terminal and the third-party software do not need to be switched for many times, the flow of generating the expression from the conversation message in the conversation page is simplified, and the efficiency of generating the expression is improved.
Drawings
FIG. 1 is a diagram showing an application environment of an expression generation method according to an embodiment;
FIG. 2 is a flowchart illustrating an expression generation method according to an embodiment;
FIG. 3 is a diagram showing details of a presentation of a picture and generating an emoticon on a conversation page, in accordance with one embodiment;
FIG. 4 shows a menu panel of a conversation page showing a schematic diagram of generating emoticons, according to an embodiment;
FIG. 5 is a diagram illustrating a conversation message including a picture, or a video, or text, in one embodiment;
FIG. 6 is a diagram of a first emote editing page showing pictures, crop icons, text icons, and paint icons, in accordance with one embodiment;
FIG. 7 is a diagram of an expression panel, in one embodiment;
FIG. 8 is a flow chart illustrating a method for generating expressions in an exemplary embodiment;
FIG. 9 is a block diagram showing the structure of an expression generation apparatus according to an embodiment;
fig. 10 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The expression generation method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The expression generation method is applied to an expression generation system, and the expression generation system comprises: a terminal 102 and a server 104, the terminal 102 communicating with the server 104 through a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, internet of things devices, and portable wearable devices. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
The terminal 102 may detect a generated emotion event triggered in the session page, jump from the session page to an emotion edit page in response to the generated emotion event, the terminal 102 may further acquire an edit operation for the session message in the emotion edit page, process the session message according to the edit operation to generate an emotion, and the terminal 102 may further add an emotion thumbnail of the emotion to an emotion panel.
The above application environment is only an example, in some embodiments, the terminal 102 may further send the session message and the obtained editing operation to the server 104, the server 104 processes the session message according to the editing operation to generate an expression, and feeds the expression back to the terminal 102, and the terminal 102 adds the expression thumbnail of the expression to an expression panel, so that when the terminal 102 detects the triggering operation of the expression thumbnail, the terminal 102 may pull the expression corresponding to the expression thumbnail from the server 104, and display the expression as the session message in the session page.
In one embodiment, as shown in fig. 2, an expression generation method is provided, which is described by taking the application of the method to the terminal 102 in fig. 1 as an example, and includes the following steps:
s102, detecting the generated expression event triggered by the session message in the session page.
The session page is a page for displaying a session message, and may be a page for displaying session messages sent by two users or multiple users in instant messaging software, for example; the session message is a message which is sent by any user and is displayed in a session page; generating an expression event is an event that triggers the generation of an expression. In the instant messaging software, a user can express ideas and emotions through expressions; the expressions comprise static expressions and dynamic expressions, the Format of the static expressions can be JPG (Joint Photographic Experts Group) Format, and the Format of the dynamic expressions can be GIF (Graphics Interchange Format) Format; the expression in the JPG format is an animation formed by a plurality of images and the expression in the GIF format.
Specifically, the terminal detects a selected event aiming at the session message triggered by the user in the session page, displays the generated emoticon, and detects a generated emoticon aiming at the generated emoticon triggered by the user. The session message may refer to a session message sent by any user account participating in the session.
And S104, responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message.
The expression editing page is used for displaying the conversation message, editing the conversation message and generating the expression.
Specifically, the terminal responds to the generated expression event, acquires the type of the session message, and displays an expression editing page corresponding to the type of the session message. The types of session messages include: picture type, video type, and text type; and recording the expression editing page corresponding to the picture type as a first expression editing page, recording the expression editing page corresponding to the video type as a second expression editing page, and recording the expression editing page corresponding to the text type as a third expression editing page.
S106, in the expression editing page, the editing operation aiming at the conversation message is obtained, and the expression is generated after the conversation message is processed according to the editing operation.
Wherein the editing operation is an operation of processing a conversation message. The expression editing page comprises a preview area and a plurality of editing icons, the preview area is used for displaying the session messages, and in the process of editing the session messages, the session messages in editing are synchronously displayed, so that editing, namely previewing, is realized; the plurality of editing icons correspond to a plurality of editing operations.
Specifically, the terminal displays the session message in a preview area, displays a plurality of editing icons for editing operation, acquires the editing operation for the session message triggered by the user through the editing icons, processes the session message according to the triggered editing operation, displays the preview expression, and takes the currently displayed preview expression as the generated expression in response to an editing completion event triggered in an expression editing page.
In one embodiment, the emoji editing page includes an edit complete icon; in the expression editing page, acquiring an editing operation for the session message, and generating an expression after processing the session message according to the editing operation, including: in the expression editing page, acquiring editing operation aiming at the conversation message; under the condition that the editing operation aiming at the conversation message is obtained, processing the conversation message according to the obtained editing operation to obtain a preview expression, and displaying the preview expression in an expression editing page; and responding to an editing completion event triggered by the editing completion icon, and taking the preview expression displayed in the expression editing page as the generated expression. When the editing operation for the session message is not acquired, the method further comprises the following steps: and in response to an edit completion event triggered by the edit completion icon, taking the session message as the generated emoticon.
According to the expression generation method, the expression generation event triggered by the user can be directly detected in the conversation page, the conversation page is skipped to the expression editing page, the conversation message displayed in the conversation page is edited through the expression editing page to generate the expression, when the conversation message in the conversation page needs to be generated into the expression, the conversation message does not need to be stored in a local photo album of the terminal, the expression is generated through third-party software, and then the expression is added into the expression panel, so that the third-party software does not need to be used, and the instant communication software, the local photo album of the terminal and the third-party software do not need to be switched for many times in the expression generation process, so that the expression generation process of the conversation message in the conversation page is simplified, and the expression generation efficiency is improved.
In one embodiment, S102 includes:
s201, detecting a selected event triggered by a session message in a session page, responding to the selected event, and displaying and generating an emoticon.
Specifically, the selected event triggered by the session message may be an event triggered by a user's selection operation on the session message, and the selection operation may be a click operation, a press operation, a slide operation, and the like on the session message.
In one embodiment, the terminal detects click operation of a user on a session message in a session page, triggers a selected event of the session message, and displays details of the session message and generates an emoticon in the session page in response to the selected event; in response to the selected event, a download icon, more operation icons and the like can be displayed in the session page; the download icon is used for downloading the conversation message, and the operation icons are used for displaying the operation panel which comprises a plurality of operation icons.
For example, as shown in fig. 3, the session message is a picture, the terminal detects a click operation of the user on the picture in a session page, triggers a selected event of the picture, shows details of the picture in the session page in response to the selected event, and generates an emoticon.
In one embodiment, as shown in fig. 4, the terminal detects a pressing operation or a sliding operation of the user on the conversation message in the conversation page, triggers a selected event of the conversation message, and in response to the selected event, displays a menu panel in which emoticons are displayed and generated. The menu panel may also show a forward icon for forwarding the conversation message, a delete icon for deleting the conversation message, and the like.
And S202, detecting the generated expression event triggered by the generated expression icon.
Specifically, the generated emoticon event triggered by generating the emoticon may be an event triggered by a user for a click operation of generating the emoticon, for example, the generated emoticon event triggered by the user for clicking the generated emoticon triggers the generation of the emoticon.
In one embodiment, as shown in fig. 5, the conversation message includes a picture, or a video, or a text, that is, the picture, i.e., the conversation message, may be presented in the conversation page as the conversation message, and likewise, the video, or the text, i.e., the conversation message, may be presented in the conversation page as the conversation message. The conversation message is one of a picture, a video and a text.
The terminal responds to the generated expression event, acquires the format of the session message, judges that the session message comprises a picture, a video or a text according to the format of the session message, and then jumps from the session page to an expression editing page corresponding to the format of the session message. If the format of the session message is a picture format, such as a JPG format, a PNG format, or the like, determining that the session message includes a picture; if the format of the session message is a video format, such as MP4 format, MOV format, etc., then determining that the session message includes video; if the format of the conversation message is a text format, such as a TXT format, the conversation message is determined to include text.
In one embodiment, when the conversation message includes a picture, S104 includes:
S401A, calling a picture editing interface, and jumping from the conversation page to a first expression editing page corresponding to the picture editing interface.
Specifically, the picture editing interface is an application programming interface for calling an existing picture editing method, and the terminal jumps to the first expression editing page from the conversation page according to the picture editing interface.
In one embodiment, as shown in fig. 6, the first emoticon editing page displays a picture, a cropping operation icon, a text operation icon, and a smearing operation icon, and the first emoticon editing page is not limited to displaying the icons, but may also display icons of other editing operations, and the picture may be edited by the icons of other editing operations.
Corresponding to S401A, S106 includes:
S601A, acquiring at least one editing operation of a cutting operation, a text adding operation and a smearing operation aiming at the picture in the first expression editing page.
Specifically, the cutting operation is triggered by a user through a cutting operation icon in the first expression editing page, the text adding operation is triggered by the user through an text adding operation icon in the first expression editing page, and the smearing operation is triggered by the user through a smearing operation icon in the first expression editing page.
S602A, processing the picture according to at least one editing operation of the acquired cutting operation, text adding operation and smearing operation to generate an expression.
Specifically, the terminal processes the picture according to at least one editing operation of the acquired cropping operation, text adding operation and smearing operation, including but not limited to: and processing the picture according to the acquired cutting operation, processing the picture according to the acquired smearing operation, or processing the picture according to the acquired cutting operation and text adding operation, or processing the picture according to the acquired cutting operation and smearing operation.
In one embodiment, the first edit page includes an edit completion icon, and the obtaining, in the emoticon edit page, an edit operation for the session message and processing the session message according to the edit operation to generate an emoticon includes:
and acquiring editing operation aiming at the picture in the first expression editing page, processing the picture according to the acquired editing operation under the condition of acquiring the editing operation aiming at the picture, displaying a preview expression in the first expression editing page, and taking the preview expression currently displayed in the first expression editing page as a generated expression in response to an editing completion event triggered by the editing completion icon.
Specifically, an editing completion icon is displayed in a first expression editing page, a picture is displayed in the first expression page, the picture is processed according to the obtained editing operation, and a preview expression is displayed in the first expression editing page, that is, the picture in the editing process is synchronously displayed in the process of processing the picture according to the obtained editing operation, and the preview expression is the picture in the editing process; and responding to an editing completion event triggered by the editing completion icon, and taking the currently displayed preview expression as the generated expression.
In the first expression editing page, after the editing operation for the picture is acquired, the method further includes: and under the condition that the editing operation aiming at the picture is not acquired, responding to an editing completion event triggered by the editing completion icon, and taking the picture as the generated expression.
When the editing operation for the picture is not acquired in the first expression editing page and an editing completion event is detected in the first expression editing page, the picture is used as a generated expression.
In one embodiment, the first expression editing page may further display an add filter icon, an add sticker icon, an adjust picture parameter icon, and the like, and accordingly, the terminal may obtain the add filter operation, the add sticker operation, the adjust picture parameter operation, and the like for the picture in the first expression editing page.
In one embodiment, the picture is processed according to at least one editing operation of the obtained cutting operation, text adding operation and smearing operation to obtain a processed picture, the data volume of a memory occupied by the processed picture is obtained, and if the data volume is larger than a preset threshold value, the processed picture is compressed to generate an expression; and if the data volume is smaller than a preset threshold value, taking the processed picture as a generated expression. The data volume of the generated expression occupying the memory is not more than a preset threshold.
In the embodiment, when the conversation message is a picture, the conversation page can be directly jumped to the first expression editing page, and the picture is edited through the first expression editing page to generate an expression, without using third-party software, and in the process of generating the expression, multiple switching among instant messaging software, a local album of the terminal and the third-party software is not required, so that the flow of generating the expression is simplified, and the efficiency of generating the expression is improved.
In one embodiment, when the session message includes a video, S104 includes:
S401B, calling a video editing interface, and jumping from the conversation page to a second expression editing page corresponding to the video editing interface.
Specifically, the video editing interface is an application programming interface for calling an existing video editing method, and the terminal jumps from the session page to the second expression editing page according to the video editing interface. The second expression editing page displays videos, key frame extraction operation icons and format conversion operation icons.
Corresponding to S401B, S106 includes:
S601B, in the second expression editing page, acquiring an operation of extracting a key frame and an operation of converting a format for the video.
Specifically, the key frame extracting operation is triggered by the user through the key frame extracting operation icon in the second emoticon editing page, and the format conversion operation is triggered by the user through the format conversion operation icon in the second emoticon editing page.
S602B, processing the video according to the obtained key frame extraction operation and format conversion operation to generate an expression.
Specifically, the video is processed according to the obtained key frame extraction operation to obtain a key video segment, and the key video segment is processed according to the obtained format conversion operation to generate the expression.
In one implementation manner, the processing, by the terminal, the video according to the key frame extraction operation includes: the terminal displays a frame sequence of the video according to the key frame extraction operation, and responds to a plurality of extraction events aiming at the frame sequence to obtain a key video segment. The extraction events are triggered by clicking operations of a user on a plurality of video frames in the frame sequence respectively, the video frames receiving the clicking operations are used as a plurality of key video frames, and the key video segment comprises a plurality of key video frames.
In another implementation manner, the terminal calls a key frame extraction interface according to a key frame extraction operation for the video to obtain a key video segment. The key frame extraction interface may be an application programming interface.
The second expression editing page also displays an editing completion icon; and the terminal processes the key video segment according to the format conversion operation, displays the preview expression in the GIF format on the second expression editing page, responds to an editing completion event triggered by the editing completion icon, and takes the currently displayed preview expression as the generated expression.
In one embodiment, the second expression editing page is displayed with an intercepting operation icon, and the user triggers the intercepting operation through the intercepting operation icon in the second expression editing page. Before obtaining the key frame extracting operation and the format converting operation aiming at the video, the method further comprises the following steps:
and acquiring the intercepting operation aiming at the video, and processing the video according to the acquired intercepting operation to obtain the video processed by the intercepting operation.
Specifically, when the video duration is long or a user wants to generate an expression according to a part of video segments in the video, an intercepting operation icon in a second expression editing page is triggered, the terminal displays a frame sequence of the video according to the acquired intercepting operation, and the video after intercepting operation processing is obtained in response to a video start event and a video end event aiming at the frame sequence. The duration of the video subjected to the intercepting operation is not greater than the preset duration, and the preset duration can be 3 s.
The video starting event is triggered by a first click operation of a user for a frame sequence, the first click operation is an odd number of times of click operation received by the frame sequence, and a video frame receiving the first click operation in the frame sequence is used as a starting frame; the video end event is triggered by a user according to a second click operation of the frame sequence, the second click operation is an even number of click operations (excluding 0) received by the frame sequence, a video frame receiving the second click operation in the frame sequence is taken as an end frame, all video frames from a start frame to the end frame in the frame sequence are selected, and the video processed by the intercepting operation is obtained.
In one embodiment, the second emoticon editing page is displayed with an add text operation icon, and the user triggers an add text operation through the add text operation icon in the second emoticon editing page. Before generating the expression after processing the key video segment according to the obtained format conversion operation, the method further comprises the following steps:
and acquiring a text adding operation aiming at the key video segment, responding to the text adding operation to display a text box, acquiring an added text through the text box, and adding the added text into each key video frame of the key video segment to obtain the key video segment added with the text.
In one embodiment, the video is processed according to the obtained key frame extraction operation and the format conversion operation to obtain a processed picture, the data volume of a memory occupied by the processed picture is obtained, and if the data volume is larger than a preset threshold value, the processed picture is compressed to generate an expression; and if the data volume is smaller than a preset threshold value, taking the processed picture as a generated expression. The data volume of the generated expression occupying the memory is not more than a preset threshold.
In the embodiment, when the session message is a video, the session page can be directly jumped to the second expression editing page, the video is edited through the second expression editing page, and the expression in the GIF format is generated, third-party software is not needed, and multiple switching among instant messaging software, a local album of the terminal and the third-party software is not needed in the expression generating process, so that the expression generating process is simplified, and the expression generating efficiency is improved.
In one embodiment, when the conversation message includes text, S104 includes:
S401C, calling a text editing interface, and jumping from the conversation page to a third surface editing page corresponding to the text editing interface.
Specifically, the text editing interface is an application programming interface for calling an existing text editing method, the terminal jumps to a third emotion editing page from the conversation page according to the text editing interface, and the third emotion editing page displays texts, emotion template thumbnails and text editing operation icons.
Corresponding to S401C, S106 includes:
S601C, obtaining selection operation aiming at the expression template thumbnail in the third expression editing page, and synthesizing the text and the expression template corresponding to the expression template thumbnail according to the obtained selection operation to obtain candidate expressions.
Specifically, when jumping to a third emotion editing page, pulling a plurality of emotion template thumbnails from the server, and displaying the plurality of emotion template thumbnails in the third emotion editing page. The selection operation of the expression template thumbnail can be triggered by clicking the expression template thumbnail by a user, and the text and the expression template corresponding to the expression template thumbnail are synthesized according to the obtained selection operation to obtain the candidate expression.
In one embodiment, the plurality of emoticon template thumbnails include thumbnails of user avatars, which are the avatars of the user who sent the text; and when jumping to a third emotion editing page, synthesizing a thumbnail of the user head portrait and a text to obtain a candidate expression, displaying the candidate expression in the third emotion editing page, acquiring a selection operation aiming at the expression template thumbnail, and replacing the thumbnail of the user head portrait in the candidate expression by using the expression template thumbnail according to the acquired selection operation to obtain the candidate expression.
In one embodiment, the plurality of emotion template thumbnails further include a default template thumbnail, when jumping to a third emotion editing page, the default template thumbnail and the text are synthesized to obtain a candidate emotion, and the candidate emotion is displayed in the third emotion editing page; the default template thumbnail may be a single color thumbnail.
S602C, acquiring a text editing operation aiming at the text in the candidate expression, and generating the expression after processing the text in the candidate expression according to the acquired text editing operation.
Specifically, the third expression editing page further displays a text icon, the user triggers an editing event for the text through the text icon in the third expression editing page, the terminal responds to the editing event, displays a text editing box of the text, and obtains a text editing operation for the text through the text editing box.
The text editing operation comprises: at least one editing operation of a rotation operation, a zoom operation, a font conversion operation, and a move operation, the text editing box including a rotation icon; the rotation operation may be triggered by a user pressing and sliding a rotation icon of the text editing box, the zoom operation may be triggered by the user performing a two-finger sliding operation on the text editing box, the font change operation may be triggered by the user performing a click operation on the text editing box and performing a click operation on a font style thumbnail displayed by the click operation, and the move operation may be triggered by the user performing a pressing and sliding operation on the text editing box.
In one embodiment, processing a text in the candidate expression according to the obtained text editing operation to obtain a processed candidate expression, obtaining a data volume of a memory occupied by the processed candidate expression, and compressing the processed candidate expression to generate an expression if the data volume is greater than a preset threshold; and if the data volume is smaller than a preset threshold value, taking the processed candidate expression as a generated expression. The data volume of the generated expression occupying the memory is not more than a preset threshold.
In this embodiment, when the session message is a text, the session page may be directly jumped to a third emotion editing page, the text is applied to the emotion template through the third emotion editing page, and the text may be edited to generate an emotion, without using third-party software, which simplifies the flow of generating an emotion and improves the efficiency of generating an emotion.
In one embodiment, S104 includes:
s411, responding to the generated expression event, and acquiring alternative conversation messages based on a plurality of historical conversation messages in the conversation page.
The historical conversation message is the conversation message of which the sending time is earlier than the conversation message in the conversation page, and the sending time is the time when the user sends the conversation message to the conversation page, and is also the time when the conversation message is displayed in the conversation page.
In one implementation, the obtaining alternative conversation messages based on a plurality of historical conversation messages in the conversation page includes: and determining the session message with the highest frequency of occurrence in the plurality of historical session messages, and taking the session message with the highest frequency of occurrence as an alternative session message.
Under the condition that the conversation message triggering generation of the expression event is a picture or a video, the alternative conversation message is a text; determining a plurality of historical text conversation messages in the plurality of historical conversation messages, and taking the historical text conversation message with the highest occurrence frequency in the plurality of historical text conversation messages as an alternative conversation message; the text history conversation message is text and therefore the alternative conversation message is text. In actual use, the text history conversation message with the highest frequency of occurrence may be a commonly used word in the conversation page.
Under the condition that the session message triggering generation of the expression event is a text, the alternative session message is a picture or a video; determining a plurality of multimedia historical conversation messages in the plurality of historical conversation messages, and taking the multimedia historical conversation message with the highest frequency of occurrence in the plurality of multimedia historical conversation messages as an alternative conversation message; the multimedia history session message is a picture or a video, and therefore the alternative session message is a picture or a video.
In another implementation, the obtaining alternative conversation messages based on a plurality of historical conversation messages in the conversation page includes: and according to the sending time of each historical conversation message, determining the historical conversation message which is closest to the conversation message in the plurality of historical conversation messages, and taking the historical conversation message as an alternative conversation message, wherein the alternative conversation message can be any one of text, pictures and videos.
Determining a plurality of text history conversation messages of text types in the plurality of history conversation messages, determining the sending time of each history conversation message, and taking the history conversation message with the sending time closest to the sending time of the conversation message as an alternative conversation message. In actual use, the historical conversation message with the closest conversation message at the sending moment is possibly related to the conversation message, so the historical conversation message with the closest conversation message at the sending moment is taken as the alternative conversation message.
S412, skipping from the conversation interface to an expression editing page corresponding to the conversation message, and displaying the conversation message and the alternative conversation message in the expression editing page.
Specifically, the expression editing page includes: the conversation information display device comprises a preview area and an edit area, wherein the conversation information is displayed in the preview area, and the alternative conversation information is displayed in the edit area. In one embodiment, a nickname of the user sending the conversation message in the conversation page may also be presented in the edit area.
Corresponding to S411 and S412, S106 includes:
s611, in the expression editing page, editing operation aiming at the conversation message and the alternative conversation message is obtained, and the expression is generated after the conversation message and the alternative conversation message are processed according to the obtained editing operation.
Specifically, when the alternative session message is a text, the editing operation for the alternative session message includes a selection operation and a text editing operation, the terminal acquires the selection operation for the alternative session message in an expression editing page, displays the alternative session message (text) in the session message (picture or video), and acquires the text editing operation for the text in the session message in the expression editing page so as to edit the text in the session message in position, size, font, and the like.
For example, when the session message is a picture, the terminal acquires an alternative session message, where the alternative session message is: "haha", the picture is shown in the first emoticon editing page, and the alternative conversation message: the terminal acquires the selected operation of the user aiming at the 'haha', displays the 'haha' in the picture, and acquires the text editing operation of the user aiming at the 'haha' so as to edit the text of the 'haha'.
In the embodiment, the alternative conversation message is displayed in the emotion editing page, an idea is provided for generating the emotion, an unexpected effect is possibly brought to the user, and when the user needs to use the alternative conversation message to generate the emotion, the alternative conversation message can be directly displayed in the conversation message, so that the process of adding the standby conversation message is omitted, and the emotion generating efficiency is improved.
When the alternative session message is a picture, the editing operation for the alternative session message comprises: and selecting the operation and the picture editing operation, wherein the picture editing operation comprises at least one editing operation of a cropping operation and a smearing operation. The terminal obtains the selected operation aiming at the alternative conversation message in the expression editing page, the conversation message (text) is displayed in the alternative conversation message (picture), and the terminal obtains the picture editing operation aiming at the alternative conversation message in the expression editing page so as to edit the picture.
In the case that the alternative session message is a video, the editing operation for the alternative session message includes: selecting operation and video editing operation, wherein the video editing operation comprises the following steps: key frame extraction and format conversion operations. The terminal obtains the selected operation aiming at the alternative conversation message in the expression editing page, the conversation message (text) is displayed in the alternative conversation message (video), and the terminal obtains the key frame extraction operation and the format conversion operation aiming at the alternative conversation message in the expression editing page so as to edit the video.
In one embodiment, the conversation message includes a plurality of pictures, and S102 includes:
and S211, detecting the generated expression event triggered by a plurality of pictures in the conversation page.
Specifically, a selected event triggered by a plurality of pictures in a conversation page is detected, an emoticon is generated in response to the selected event display, and a generated emoticon triggered by the generated emoticon is detected. The event triggered by the multiple pictures may be an event triggered by a user's selection operation for the multiple pictures. The selection operation may be a pressing operation and a sliding operation.
The method comprises the steps that a terminal detects a pressing operation or a sliding operation of a user on one picture in a conversation page, in response to the pressing operation or the sliding operation, a generated emoticon, a selected icon of the picture and unselected icons of all other conversation messages in the conversation page are displayed in the conversation page, the terminal detects a clicking operation on the unselected icons of a plurality of other pictures in the conversation page, the unselected icons receiving the clicking operation are replaced by the selected icons, the terminal acquires the clicking operation on the generated emoticon, and the generation of emoticon events on the plurality of pictures is triggered.
And generating a plurality of pictures corresponding to the expression events, namely the picture corresponding to each selected icon in the session page. The selected icon and the unselected icon may be different colors and/or different shapes.
Corresponding to S211, S106 includes:
s621, in the first expression editing page, acquiring a combination operation for the multiple pictures, and processing the multiple pictures according to the combination operation to obtain a combined picture.
Specifically, a plurality of pictures and a combination operation icon are displayed in the first expression editing page, and the combination operation icon includes: splicing the icons and dynamically combining the icons, wherein the combining operation comprises the following steps: splicing operation and dynamic combination operation.
The user triggers the splicing operation aiming at the multiple pictures through the splicing icon in the first expression editing page, the terminal obtains the splicing operation, and the multiple pictures are spliced into a static combined picture according to the splicing operation.
The method comprises the steps that a user triggers dynamic combination operation aiming at multiple pictures through a dynamic combination icon in a first expression editing page, a terminal obtains the dynamic combination operation, the multiple pictures are arranged in a sequence from front to back at a sending moment according to the dynamic combination operation to obtain a picture sequence, the terminal obtains pressing operation and dragging operation aiming at each picture in the picture sequence, the sequence of each picture in the picture sequence is adjusted according to the pressing operation and the dragging operation, the terminal obtains display duration modification operation aiming at each picture in the picture sequence, and the display duration of each picture is adjusted according to the display duration modification operation to obtain a dynamic combination picture. And displaying the dynamic combined pictures, namely displaying a plurality of pictures according to the sequence of each picture in the picture sequence and the display duration of each picture.
For example, the plurality of pictures include two pictures, which are a first picture and a second picture, the terminal obtains a dynamic combination operation for the first picture and the second picture, and obtains a picture sequence according to the dynamic combination operation: the terminal acquires the pressing operation and the dragging operation aiming at the first picture, changes the sequence of the first picture in the picture sequence and obtains an adjusted picture sequence: a second picture, a first picture; and the terminal modifies the display time length of the second picture into 1 second according to the display time length modification operation aiming at the second picture, and modifies the display time length of the first picture into 0.5 second according to the display time length modification operation aiming at the first picture to obtain a dynamic combined picture. And displaying the combined picture, namely displaying the first picture for 0.5 second after displaying the second picture for 1 second.
And S622, acquiring editing operation aiming at the combined picture, and generating an expression after processing the combined picture according to the acquired editing operation.
Specifically, when the combined picture is a static combined picture, the editing operation for the combined picture includes: and performing cropping operation and/or text adding operation on the combined picture, wherein when the combined picture is a dynamic combined picture, the editing operation for the combined picture comprises the following steps: and performing cutting operation and/or text adding operation on each picture in the combined picture.
In one embodiment, an editing operation for the combined picture is obtained, the combined picture is processed according to the editing operation, the data volume of the processed combined picture occupying an internal memory is obtained, and if the data volume is larger than a preset threshold value, the processed combined picture is compressed to generate an expression. The data volume of the generated expression occupying the memory is not more than a preset threshold.
In the embodiment, complex and vivid expressions can be directly generated according to a plurality of pictures in the conversation page, third-party software is not needed, and multiple switching among instant messaging software, a local album of the terminal and the third-party software is not needed in the expression generation process, so that the expression generation process is simplified, and the expression generation efficiency is improved.
In one embodiment, the expression generation method further includes:
and S108, adding the expression thumbnail of the expression into an expression panel.
The emoticons can be displayed through a conversation page, the conversation page comprises emoticons corresponding to the emoticons, and when the terminal detects that the emoticons are triggered, the emoticons are displayed in the conversation page. The emoticon panel is a container for storing thumbnails of emoticons.
Specifically, when the generated expression is a static expression, the terminal may use a reduced image of the static expression as an expression thumbnail, and when the generated expression is a dynamic expression, the terminal may use a reduced image of one frame image of the dynamic expression as an expression thumbnail. And the terminal adds the generated expression thumbnail to an expression panel, and when the terminal detects the trigger operation aiming at the expression thumbnail in the expression panel, the expression corresponding to the expression thumbnail is displayed in a conversation page as a conversation message.
In one embodiment, as shown in fig. 7, the generated emoticon thumbnail is added to an emoticon panel; the emoticon panel may include a plurality of tabs, for example, a custom tab for storing thumbnails of emoticons added and collected by the user, a default tab for storing thumbnails of emoticons carried by the instant messenger, an emoticon album tab for storing thumbnails of emoticons downloaded from an emoticon store by the user, and the like. The terminal can add the generated expression thumbnail to a custom tab of the expression panel. And when the terminal detects the trigger operation aiming at the expression thumbnail in the expression panel, displaying the expression corresponding to the expression thumbnail in a conversation page as a conversation message.
In one embodiment, a user ID is acquired, and the generated expression and the user ID are stored in a personal expression library in an associated manner, so that the user can pull the generated expression from the personal expression library after logging in other terminals through the user ID, and when the other terminals detect a trigger operation for the generated expression thumbnail in an expression panel, the expression corresponding to the expression thumbnail is displayed in a session page as a session message.
In a specific embodiment, referring to fig. 8, the expression generation method includes:
a01, detecting the generation emotion event triggered by the conversation message in the conversation page;
a02, responding to the generated expression event, acquiring the format of the conversation message, and judging that the conversation message comprises a picture, a video or a text according to the format; if the session message includes a picture, entering a03, if the session message includes a video, entering a05, if the session message includes text, entering a 07;
a03, calling a picture editing interface, and jumping from the conversation page to a first expression editing page;
a04, acquiring editing operation aiming at the picture on the first expression editing page, processing the picture according to the acquired editing operation to generate an expression, and entering a 10;
a05, calling a video editing interface, and jumping from the conversation page to a second expression editing page;
a06, acquiring key frame extraction operation and format conversion operation aiming at the video on a second expression editing page; processing the video according to the obtained key frame extraction operation and format conversion operation to generate an expression, and entering a 10;
a07, calling a text editing interface, and jumping from the conversation page to a third emotion editing page;
a08, obtaining selection operation aiming at the expression template thumbnail in the third expression editing page, and obtaining candidate expressions according to the obtained selection operation;
a09, acquiring text editing operation aiming at texts in candidate expressions, processing the texts in the candidate expressions according to the acquired text editing operation to generate the expressions, and entering a 10;
a10, adding the expression thumbnail of the expression to the expression panel.
In the embodiment, the pictures, videos and texts in the conversation page can be edited into the expressions without using third-party software, and the process of editing the pictures, videos and texts in the conversation page into the expressions does not need to be switched among the instant messaging software, the local album of the terminal and the third-party software for many times, so that the flow of generating the expressions is simplified, and the efficiency of generating the expressions is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides an expression generation device for realizing the expression generation method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the method, so specific limitations in one or more embodiments of the expression generation device provided below can be referred to the limitations of the expression generation method in the foregoing, and details are not described herein again.
In one embodiment, as shown in fig. 9, there is provided an expression generating apparatus including:
the detection module is used for detecting the generated expression event triggered by the session message in the session page;
the skip module is used for responding to the generated expression event and displaying an expression editing page corresponding to the conversation message;
and the editing module is used for acquiring the editing operation aiming at the session message in the expression editing page and generating an expression after processing the session message according to the editing operation.
In one embodiment, the detection module comprises:
the first detection unit is used for detecting a selected event triggered by a session message in a session page and responding to the selected event to display and generate an emoticon;
and the second detection unit is used for detecting the generated expression event triggered by the generated expression icon.
In one embodiment, the session message includes a picture, and the skip module includes:
the first skipping unit is used for calling a picture editing interface and skipping from the conversation page to a first expression editing page corresponding to the picture editing interface;
accordingly, the editing module comprises:
a first editing unit, configured to acquire, in the first expression editing page, at least one of a cropping operation, a text adding operation, and a smearing operation for the picture; and processing the picture according to at least one editing operation of the obtained cutting operation, text adding operation and smearing operation to generate the expression.
In one embodiment, the first editing page includes an edit complete icon; the editing module comprises:
the editing unit is used for acquiring the editing operation aiming at the picture in the first expression editing page;
the first expression making unit is used for processing the picture according to the obtained editing operation under the condition that the editing operation aiming at the picture is obtained, displaying a preview expression in the first expression editing page, and taking the preview expression currently displayed in the first expression editing page as a generated expression in response to an editing completion event triggered by the editing completion icon;
and the second expression making unit is used for responding to an editing completion event triggered by the editing completion icon and taking the picture as the generated expression under the condition that the editing operation aiming at the picture is not acquired.
In one embodiment, the session message includes video, and the skip module includes:
the second skipping unit is used for calling a video editing interface and skipping from the conversation page to a second expression editing page corresponding to the video editing interface;
accordingly, the editing module comprises:
the second editing unit is used for acquiring key frame extraction operation and format conversion operation aiming at the video in the second expression editing page; and processing the video according to the obtained key frame extraction operation and format conversion operation to generate an expression.
In one embodiment, the conversation message includes text, and the skip module includes:
the third jumping unit is used for calling a text editing interface and jumping from the conversation page to a third emotion editing page corresponding to the text editing interface;
accordingly, the editing module comprises:
a third editing unit, configured to obtain, in the third emotion editing page, a selection operation for an expression template thumbnail, and synthesize the text and an expression template corresponding to the expression template thumbnail according to the obtained selection operation, so as to obtain a candidate expression; and acquiring text editing operation aiming at the text in the candidate expression, and processing the text in the candidate expression according to the acquired text editing operation to generate the expression.
In one embodiment, the skip module comprises:
a fourth jumping unit, comprising: responding to the generated expression event, and acquiring alternative conversation messages based on a plurality of historical conversation messages in the conversation page; skipping from the conversation interface to an expression editing page corresponding to the conversation message, and displaying the conversation message and the alternative conversation message in the expression editing page;
accordingly, the editing module comprises:
and the fourth editing unit is used for acquiring editing operations aiming at the session message and the alternative session message in the expression editing page, and generating an expression after processing the session message and the alternative session message according to the acquired editing operations.
In one embodiment, the fourth jumping unit includes:
and the alternative conversation message acquisition unit is used for determining the text with the highest frequency of occurrence in the plurality of historical conversation messages and taking the text with the highest frequency of occurrence as the alternative conversation message.
In one embodiment, the conversation message includes a plurality of pictures, the editing module includes:
a fifth editing unit, configured to acquire, in the first expression editing page, a combination operation for the multiple pictures, and process the multiple pictures according to the combination operation to obtain a combined picture; and acquiring editing operation aiming at the combined picture, and processing the combined picture according to the acquired editing operation to generate an expression.
In one embodiment, the emoticon editing page includes an edit completion icon, and the editing module includes: a sixth editing unit, configured to acquire, in the expression editing page, an editing operation for the session message; under the condition that the editing operation aiming at the conversation message is obtained, processing the conversation message according to the obtained editing operation to obtain a preview expression, and displaying the preview expression in the expression editing page; responding to an editing completion event triggered by the editing completion icon, and taking a preview expression displayed in the expression editing page at present as a generated expression; the method further comprises the following steps: and under the condition that the editing operation aiming at the conversation message is not acquired, responding to an editing completion event triggered by the editing completion icon, and taking the conversation message as a generated expression.
The modules in the expression generation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data of the expression generation method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an expression generation method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an expression generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. An expression generation method, characterized in that the method comprises:
detecting a generated expression event triggered by a session message in a session page;
responding to the generated expression event, and displaying an expression editing page corresponding to the conversation message;
and in the expression editing page, acquiring editing operation aiming at the conversation message, and generating an expression after processing the conversation message according to the editing operation.
2. The method of claim 1, wherein the detecting a generated emotive event triggered by a session message in a session page comprises:
detecting a selected event triggered by a session message in a session page, responding to the selected event, and displaying and generating an emoticon;
and detecting a generated expression event triggered by the generated expression icon.
3. The method of claim 1, wherein the session message comprises a picture; the displaying of the expression editing page corresponding to the conversation message includes:
calling a picture editing interface, and jumping to a first expression editing page corresponding to the picture editing interface from the conversation page;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring at least one editing operation of cutting operation, text adding operation and smearing operation aiming at the picture in the first expression editing page;
and processing the picture according to at least one editing operation of the obtained cutting operation, text adding operation and smearing operation to generate the expression.
4. The method of claim 1, wherein the session message comprises a video; the displaying of the expression editing page corresponding to the conversation message includes:
calling a video editing interface, and jumping from the conversation page to a second expression editing page corresponding to the video editing interface;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring key frame extraction operation and format conversion operation aiming at the video in the second expression editing page;
and processing the video according to the obtained key frame extraction operation and format conversion operation to generate an expression.
5. The method of claim 1, wherein the conversation message comprises text; the displaying of the expression editing page corresponding to the conversation message includes:
calling a text editing interface, and jumping to a third emotion editing page corresponding to the text editing interface from the conversation page, wherein the third emotion editing page displays an emotion template thumbnail;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring selection operation aiming at an expression template thumbnail in the third emotion editing page, and synthesizing the text and an expression template corresponding to the expression template thumbnail according to the acquired selection operation to obtain a candidate expression;
and acquiring text editing operation aiming at the text in the candidate expression, and processing the text in the candidate expression according to the acquired text editing operation to generate the expression.
6. The method of claim 1, wherein the displaying an emoticon edit page corresponding to the conversation message in response to the emoticon event generation comprises:
responding to the generated expression event, and acquiring alternative conversation messages based on a plurality of historical conversation messages in the conversation page;
skipping from the conversation interface to an expression editing page corresponding to the conversation message, and displaying the conversation message and the alternative conversation message in the expression editing page;
correspondingly, the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
and in the expression editing page, acquiring editing operation aiming at the session message and the alternative session message, and generating an expression after processing the session message and the alternative session message according to the acquired editing operation.
7. The method of any of claims 1 to 6, wherein the emoji editing page includes an edit complete icon; the obtaining, in the expression editing page, an editing operation for the session message, and generating an expression after processing the session message according to the editing operation includes:
acquiring editing operation aiming at the conversation message in the expression editing page;
under the condition that the editing operation aiming at the conversation message is obtained, processing the conversation message according to the obtained editing operation to obtain a preview expression, and displaying the preview expression in the expression editing page;
responding to an editing completion event triggered by the editing completion icon, and taking a preview expression displayed in the expression editing page at present as a generated expression;
the method further comprises the following steps:
and under the condition that the editing operation aiming at the conversation message is not acquired, responding to an editing completion event triggered by the editing completion icon, and taking the conversation message as a generated expression.
8. An expression generation apparatus, characterized in that the apparatus comprises:
the detection module is used for detecting the generated expression event triggered by the session message in the session page;
the skip module is used for responding to the generated expression event and displaying an expression editing page corresponding to the conversation message;
and the editing module is used for acquiring the editing operation aiming at the session message in the expression editing page and generating an expression after processing the session message according to the editing operation.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210359148.9A 2022-04-07 2022-04-07 Expression generation method and device, computer equipment and storage medium Pending CN114693827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210359148.9A CN114693827A (en) 2022-04-07 2022-04-07 Expression generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210359148.9A CN114693827A (en) 2022-04-07 2022-04-07 Expression generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114693827A true CN114693827A (en) 2022-07-01

Family

ID=82143781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210359148.9A Pending CN114693827A (en) 2022-04-07 2022-04-07 Expression generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114693827A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115269886A (en) * 2022-08-15 2022-11-01 北京字跳网络技术有限公司 Media content processing method, device, equipment and storage medium
CN115270734A (en) * 2022-07-29 2022-11-01 北京字跳网络技术有限公司 Message processing method, device, equipment and medium based on session

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200463A (en) * 2018-01-19 2018-06-22 上海哔哩哔哩科技有限公司 The generation system of the generation method of barrage expression packet, server and barrage expression packet
CN108255316A (en) * 2018-01-23 2018-07-06 广东欧珀移动通信有限公司 Dynamic adjusts method, electronic device and the computer readable storage medium of emoticon
CN109120866A (en) * 2018-09-27 2019-01-01 腾讯科技(深圳)有限公司 Dynamic expression generation method, device, computer readable storage medium and computer equipment
CN109472849A (en) * 2017-09-07 2019-03-15 腾讯科技(深圳)有限公司 Method, apparatus, terminal device and the storage medium of image in processing application
CN109741423A (en) * 2018-12-28 2019-05-10 北京奇艺世纪科技有限公司 Expression packet generation method and system
CN110049377A (en) * 2019-03-12 2019-07-23 北京奇艺世纪科技有限公司 Expression packet generation method, device, electronic equipment and computer readable storage medium
CN110706312A (en) * 2019-09-20 2020-01-17 北京奇艺世纪科技有限公司 Method and device for determining file of expression package and electronic equipment
CN110780955A (en) * 2019-09-05 2020-02-11 连尚(新昌)网络科技有限公司 Method and equipment for processing emoticon message
US20210365749A1 (en) * 2019-07-22 2021-11-25 Tencent Technology (Shenzhen) Company Limited Image data processing method and apparatus, electronic device, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472849A (en) * 2017-09-07 2019-03-15 腾讯科技(深圳)有限公司 Method, apparatus, terminal device and the storage medium of image in processing application
US20200186484A1 (en) * 2017-09-07 2020-06-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing image in application, terminal device and storage medium
CN108200463A (en) * 2018-01-19 2018-06-22 上海哔哩哔哩科技有限公司 The generation system of the generation method of barrage expression packet, server and barrage expression packet
CN108255316A (en) * 2018-01-23 2018-07-06 广东欧珀移动通信有限公司 Dynamic adjusts method, electronic device and the computer readable storage medium of emoticon
CN109120866A (en) * 2018-09-27 2019-01-01 腾讯科技(深圳)有限公司 Dynamic expression generation method, device, computer readable storage medium and computer equipment
CN109741423A (en) * 2018-12-28 2019-05-10 北京奇艺世纪科技有限公司 Expression packet generation method and system
CN110049377A (en) * 2019-03-12 2019-07-23 北京奇艺世纪科技有限公司 Expression packet generation method, device, electronic equipment and computer readable storage medium
US20210365749A1 (en) * 2019-07-22 2021-11-25 Tencent Technology (Shenzhen) Company Limited Image data processing method and apparatus, electronic device, and storage medium
CN110780955A (en) * 2019-09-05 2020-02-11 连尚(新昌)网络科技有限公司 Method and equipment for processing emoticon message
CN110706312A (en) * 2019-09-20 2020-01-17 北京奇艺世纪科技有限公司 Method and device for determining file of expression package and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115270734A (en) * 2022-07-29 2022-11-01 北京字跳网络技术有限公司 Message processing method, device, equipment and medium based on session
CN115269886A (en) * 2022-08-15 2022-11-01 北京字跳网络技术有限公司 Media content processing method, device, equipment and storage medium
WO2024037491A1 (en) * 2022-08-15 2024-02-22 北京字跳网络技术有限公司 Media content processing method and apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
EP3758364B1 (en) Dynamic emoticon-generating method, computer-readable storage medium and computer device
US11580155B2 (en) Display device for displaying related digital images
WO2020029526A1 (en) Method for adding special effect to video, device, terminal apparatus, and storage medium
US20040210845A1 (en) Internet presentation system
EP4333439A1 (en) Video sharing method and apparatus, device, and medium
CN114693827A (en) Expression generation method and device, computer equipment and storage medium
KR20190132360A (en) Method and device for processing multimedia resources
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
CN111935505B (en) Video cover generation method, device, equipment and storage medium
CN111970571A (en) Video production method, device, equipment and storage medium
CN108986009A (en) Generation method, device and the electronic equipment of picture
CN103207725B (en) Icon conversion method and device
CN111885298B (en) Image processing method and device
CN113553466A (en) Page display method, device, medium and computing equipment
CN111612875A (en) Dynamic image generation method and device, electronic equipment and storage medium
JP2005136599A (en) Image display apparatus
CN112202958B (en) Screenshot method and device and electronic equipment
US9396759B2 (en) Generating content data for a video file
CN114546229B (en) Information processing method, screen capturing method and electronic equipment
CN112632921B (en) Display processing method, device, terminal and storage medium for multimedia data
CN111984173B (en) Expression package generation method and device
JP6274469B1 (en) Information provision system
CN114067028A (en) Picture editing method and device
CN117395462A (en) Method and device for generating media content, electronic equipment and readable storage medium
CN113468447A (en) Document display processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination