[go: up one dir, main page]

WO2015176287A1 - Method and apparatus for communication by using text information - Google Patents

Method and apparatus for communication by using text information Download PDF

Info

Publication number
WO2015176287A1
WO2015176287A1 PCT/CN2014/078161 CN2014078161W WO2015176287A1 WO 2015176287 A1 WO2015176287 A1 WO 2015176287A1 CN 2014078161 W CN2014078161 W CN 2014078161W WO 2015176287 A1 WO2015176287 A1 WO 2015176287A1
Authority
WO
WIPO (PCT)
Prior art keywords
expression
text information
user
text
unit
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.)
Ceased
Application number
PCT/CN2014/078161
Other languages
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2014/078161 priority Critical patent/WO2015176287A1/en
Priority to CN201480001757.0A priority patent/CN104412258A/en
Publication of WO2015176287A1 publication Critical patent/WO2015176287A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for communicating text information. Background technique
  • mobile terminals are becoming more and more powerful, and the scope of use and environment are becoming more diverse.
  • mobile terminals, personal digital assistants, and personal computers are currently used in various mobile terminals.
  • kind of instant messaging software to communicate are currently used in various mobile terminals.
  • text information, voice, and pictures can be transmitted when the communication service data is transmitted.
  • the application of text information for data transmission of communication services is more common in the application of voice and pictures for communication service data transmission.
  • the text information sent is the original text information input by the user.
  • the same text information sent by the user in different scenarios may express different semantics, for example, the user sends in different emotions.
  • the same text content will express different emotions of the user.
  • the emotions may include the most basic emotional expressions such as emotions, such as "we break up”.
  • This text message is sent when the user is joking, and the expression is more happy. Emotions can be sent when the user is more serious.
  • the expression will be more sentimental emotions. Therefore, the existing way of applying text information to communicate is difficult to accurately express the user's emotions, and the accuracy of information expression is not high. Summary of the invention
  • Embodiments of the present invention provide a method and apparatus for applying text information for communication to improve the accuracy of information expression.
  • a method for applying text information for communication includes:
  • the method further includes:
  • Identifying the user's expression based on the facial image includes:
  • determining, according to the expression and the text information to be sent, the text information that is used to represent the expression includes:
  • determining, according to the expression and the text information to be sent, the text information that is used to represent the expression includes:
  • the text format of the text information to be transmitted is modified to the obtained text format, and the modified text information is sent.
  • determining, according to the expression and the text information to be sent, the text information that is used to represent the expression includes:
  • sending the emoji and the text information includes:
  • the method before determining the text information that represents the expression, the method further includes:
  • the method before acquiring the facial image of the user, the method includes:
  • Get the user's facial image including:
  • the facial image of the user is acquired by the activated imaging device.
  • the emoji includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.
  • a method for applying text information for communication includes:
  • the received text information and the emoji are displayed.
  • an apparatus for applying text information for communication comprising an acquiring unit, an identifying unit, a determining unit, and a sending unit, where
  • the acquiring unit is configured to acquire a facial image of the user
  • the identifying unit is configured to identify, according to the facial image acquired by the acquiring unit User's expression
  • the determining unit is configured to determine, according to the text information to be sent and the expression recognized by the identifying unit, text information that represents the expression;
  • the sending unit is configured to send text information that is determined by the determining unit and that represents the expression.
  • the acquiring unit is further configured to: obtain voice information of a user;
  • the identification unit is configured to:
  • the determining unit is configured to:
  • the sending unit is configured to:
  • the determining unit is configured to:
  • the recognition unit After the recognition unit identifies the user's expression, according to the mapping relationship between different expressions and different text formats, the text format corresponding to the recognized expression is obtained, and the text format of the text information to be sent is modified into the acquired location.
  • Text format corresponding to the recognized expression is obtained, and the text format of the text information to be sent is modified into the acquired location.
  • the sending unit is configured to:
  • the determining unit is configured to:
  • the recognition unit After the recognition unit recognizes the expression of the user, the emoticon used to represent the expression is invoked, and Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats, and modifying a text format of the text information to be sent into the obtained text format; the sending unit is configured to send The emoji and the modified text information.
  • the determining unit is configured to: add an emoticon to the text information; a sending unit, configured to: send text information to which the emoji is attached.
  • the determining unit is configured to:
  • the apparatus further includes a detecting unit and a starting unit, where
  • the detecting unit is configured to detect an open state of a preset open control for processing text information to be sent;
  • the initiating unit is configured to: when the detecting unit detects that the preset opening control for processing the text information to be sent is turned on, starting an imaging device for acquiring a facial image of the user; In:
  • the facial image of the user is acquired by the activated imaging device.
  • the emoticon called by the determining unit includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.
  • an apparatus for applying text information for communication comprising a receiving unit, a parsing unit, an obtaining unit, a calling unit, and a display unit, where
  • the receiving unit is configured to receive text information
  • the parsing unit is configured to parse a text format of the text information received by the receiving unit, and the acquiring unit is configured to obtain a mapping relationship between different emoticons and different text formats. Taking an expression corresponding to the text format parsed by the parsing unit;
  • the calling unit is configured to invoke an emoticon to represent the emoticon according to the expression acquired by the acquiring unit;
  • the display unit is configured to display text information received by the receiving unit and the emoticon called by the calling unit.
  • an apparatus for applying text information for communication including an input device, a transmitter, a processor, a memory, and a bus, wherein the input device, the transmitter, and the memory pass through the bus
  • the processor is connected, wherein
  • the memory is configured to store program code executed by the processor
  • the input device is configured to acquire a facial image of the user
  • the processor is configured to invoke a program stored in the memory, and a facial image acquired by the input device, identify an expression of the user according to the facial image, and determine, according to the text information to be sent and the expression Characterizing the textual information of the expression;
  • the transmitter is configured to send text information that characterizes the expression.
  • the input device is further configured to:
  • the processor is configured to: according to the facial image, identify an expression of the user: according to the facial image, identify an initial expression of the user;
  • the processor is configured to:
  • the transmitter After identifying the user's expression, calling an emoticon to characterize the expression; the transmitter, for:
  • the processor is configured to: After identifying the user's expression, obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats;
  • the transmitter is configured to:
  • the processor is configured to:
  • the transmitter After identifying the expression of the user, calling the emoticon used to represent the expression, and acquiring a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats, and transmitting the text information to be sent
  • the text format is modified to the obtained text format; the transmitter is configured to:
  • the processor is configured to:
  • the transmitter is configured to:
  • the processor is configured to:
  • the processor is configured to detect a preset state of an open control for processing text information to be sent; When the detector detects that the preset opening control for processing the text information to be sent is turned on, the camera device for acquiring the facial image of the user is activated;
  • the processor is configured to acquire a facial image of the user by using the camera device that is activated.
  • the emoticon invoked by the processor includes at least one of an emoticon image, a symbol combination, and an emoticon animation.
  • an apparatus for applying text information for communication includes an output device, a receiver, a processor, a memory, and a bus, wherein the output device, the receiver, the processor, and the memory are both Connected to the bus, wherein
  • the memory is configured to store program code executed by the processor
  • the receiver is configured to receive text information
  • the processor is configured to invoke a program stored in the memory, parse a text format of the text information received by the receiver, and acquire a mapping corresponding to the text format according to a mapping relationship between different expressions and different text formats.
  • An expression; an emoticon for characterizing the expression is invoked according to the expression;
  • the output device is configured to output text information received by the transceiver and an emoticon called by the processor.
  • the method and device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the obtained facial image of the user, and determines and sends the text representing the facial expression of the user according to the obtained user facial expression and the text information to be sent.
  • the information of the user can express the user's current emotion more accurately. Therefore, the text information of the sent user's expression can express the user's emotion through the invention, and the text information and the emotion can be combined to express the user clearly.
  • the semantics of textual information improves the accuracy of information expression.
  • FIG. 1 is a flowchart of a first method for implementing text message communication according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a second method for implementing text message communication according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a third method for implementing text information communication according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a fourth method for implementing text information communication according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a fifth method for implementing text message communication according to an embodiment of the present invention.
  • 6A is a first structural diagram of an apparatus for transmitting text information by using an embodiment of the present invention.
  • 6B is a second structural diagram of an apparatus for communicating text information according to an embodiment of the present invention.
  • FIG. 7 is a third structural diagram of an apparatus for communicating text information according to an embodiment of the present invention.
  • FIG. 8 is a fourth structural diagram of an apparatus for communicating text information by using an embodiment of the present invention.
  • FIG. 9 is a fifth structural diagram of an apparatus for communicating text information according to an embodiment of the present invention. detailed description
  • the mobile terminal can provide a function for the user to communicate with the application text information such as short message transmission, and the process of applying the text information for communication, usually the text initiator inputs the text information, and then sends the input completed text information to the target reception.
  • the communication between the sender and the receiver is implemented.
  • the embodiment of the invention provides a method for applying text information to communicate, and sending the user's emotion to the target receiver through the text information input by the message initiator, so that the target receiver can combine the emotion of the message initiator and the content of the text message. Get exactly what the message originator wants The semantics of expression.
  • FIG. 1 is a flowchart of a method for communicating text information by using an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • S101 Acquire a facial image of the user.
  • the sensor with the image collection function in the mobile terminal can be activated to collect the facial image of the user, for example, the facial image of the user can be collected by a camera disposed on the smart phone. .
  • the user may select when to obtain the facial image of the user according to the actual situation.
  • the facial image may be acquired when the user opens the text input box, or after the user completes the text information input. , to obtain facial images.
  • S102 Identify the user's expression according to the acquired facial image.
  • the facial feature information of the user can be obtained according to the facial image acquired in S102.
  • the facial feature information of the user may include information such as a lip angle, a pupil width, and a face length width.
  • the user's expression can be determined. For example, according to the obtained facial feature information such as the lip angle, the pupil width and the face length, the basic mouth opening state, the eye closing state, and the face changing state can be obtained, and then the user and the empirical model can be combined to determine the user. Expression.
  • the face image collected by the face recognition technology can be recognized by using a face recognition technology to obtain an expression of the user.
  • the specific implementation of the face recognition technology in the embodiments of the present invention may employ a face recognition technology such as an overall recognition method, a local recognition method, a deformation extraction method, a motion extraction method, a geometric feature method, or a face feature method in the prior art.
  • the bottom-up manner can be used to find representative structural features (eyes, nose, mouth, etc.) on the human face, and extract the edges, Characteristics such as brightness, deformation, texture, and color are compared with the overall features for face detection and recognition.
  • S103 Determine and transmit text information representing the expression recognized in S102 according to the text information to be transmitted and the expression recognized in S102.
  • the text information to be sent may be processed according to the text information to be sent and the user expression determined in S102, and the text information to be sent is processed into a form capable of expressing the user's expression, and the text information is processed.
  • the form is sent, that is, the text information representing the recognized expression is sent.
  • the text information to be sent in the embodiment of the present invention may be the text information directly input by the user in the text input box by using the input method, or may be the text information that is copied and pasted in the text input box, which is to be sent in the embodiment of the present invention.
  • the text information may also be text information obtained by converting the voice information, which is not limited in the embodiment of the present invention.
  • text information representing the recognized expression is determined and sent, and various manners may be flexibly selected, for example, text information that can be sent along with the user.
  • Sending some emoticons that characterize the user's expression which may be, for example, at least one of an emoticon, a combination of symbols, and an emoticon.
  • a text format representing different expressions may be preset, and after the user's expression is determined, the text format of the input text information is modified, for example, the font color or font size is modified, so that the modified text format can be expressed.
  • User's expression may be preset, and after the user's expression is determined, the text format of the input text information is modified, for example, the font color or font size is modified, so that the modified text format can be expressed.
  • the facial image of the user is obtained, and the user's expression is obtained, and according to the obtained user's expression and the text information to be sent, the text information representing the user's expression is determined and transmitted, and the user's expression can accurately express the current emotion of the user, so the present invention is
  • the sent text information representing the user's expression can express the user's emotion. Through the combination of the text information and the emotion, the semantics of the text information sent by the user can be clearly expressed, and the accuracy of the information expression can be improved.
  • the embodiment of the present invention in order to further improve the accuracy of the information expression, in addition to acquiring the facial image of the user, the embodiment of the present invention may also collect the voice information of the user, and use the voice information to identify the expression according to the facial image.
  • the specific implementation process can be as shown in Figure 2.
  • SlOla Get the face image of the user.
  • the language signals of different language tones have different structural features and distribution rules in terms of time structure, amplitude structure, fundamental frequency configuration, and formant structure.
  • a voice input device such as a microphone can be used. The voice signal of the user who inputs the text information is collected and input, and then the voice signal collected and input is applied to further improve the accuracy of the expression recognition.
  • the execution order of the SlOla and the SlOlb is in no particular order, and the SlOla may be executed first, or the SlOlb may be executed first, which is not limited in the embodiment of the present invention.
  • the process of determining the expression of the user in S102 may be implemented in the following manner:
  • S102a According to the facial image acquired in the SlOla, the initial expression of the user is recognized.
  • S102b Correct the initial expression determined in S102a according to the voice information acquired in the SlOlb, obtain the corrected expression, and use the corrected expression as the expression of the user.
  • the expression recognized by the facial image is corrected by the voice information, and the corrected expression is used as the expression of the user, which can improve the accuracy of the expression recognition and further improve the accuracy of the information expression.
  • the initial expression recognized by the user's facial image is an expression that the user is unhappy.
  • the initial expression of the recognition may be corrected by the size of the voice spoken by the user, when the user speaks the voice. When it is relatively large, the user's expression is considered to be anger. When the user's voice is relatively small, the user's expression is considered sad.
  • the execution order of SlOlb and S102a is not in any order, and S102a may be executed first, or S101b may be executed first.
  • an open control for processing whether to send the text information may be set, and the user may control whether the open information is opened or not according to an actual situation, and select whether to process the text information to be sent as capable of being characterized.
  • an open control for triggering processing of the text information may be preset in the display interface of the mobile terminal.
  • the sensor for acquiring the facial image of the user can be started, and the corresponding information is collected.
  • the sensor can be an imaging device disposed in the mobile terminal, and the camera device is The user's facial image is collected.
  • the senor activated in the embodiment of the present invention may further comprise a sound collecting device, and the voice information of the user is collected by the sound collecting device.
  • the text information representing the recognized user expression is determined and sent, which may be preferably as follows:
  • A The emoticon used to represent the recognized expression is called, and the called emoticon and the text information to be sent are sent.
  • an emoticon for characterizing an expression is first sent as an example for explanation.
  • the user A sends the text information content "we break up" to the user B as an example, and the specific implementation process is as shown in FIG. 3:
  • S202 Start an imaging device that acquires a facial image of the user A.
  • S203 The camera device collects the face image of the user A and recognizes the expression of the user A.
  • the user A is a user who is joking with the user B and is recognized by the camera device.
  • A's expression is a smiley face.
  • S204 Call an emoticon to represent the recognized expression according to the expression recognized in S203.
  • the emoticon used to represent the recognized expression in the embodiment of the present invention may include at least one of an emoticon picture, a symbol combination, and an emoticon animation.
  • the emoticons sent in the embodiment of the present invention may use different calling modes, for example, the emoticons are emoticons and emoticons.
  • the emoticons corresponding to the currently recognized emoticons may be called from the emoticon database.
  • the picture serves as the desired emoji.
  • the emoji is a symbol combination
  • the corresponding symbol can be called from the symbol database and combined into an emoji that represents the currently recognized expression.
  • the emoticon and the text information input by the user may be sent in time, or may be simultaneously sent.
  • the emoticon is preferably attached to the text information input by the user, and then the text information to which the emoticon is attached is transmitted.
  • an emoticon representing a smiley face may be added to the text information, and an emoticon indicating a smiley face may be added.
  • an emoticon ⁇ - ⁇ is added to the text information, and an emoticon is attached.
  • the text message can be expressed as "We break up, ⁇ - ⁇ ".
  • the user inputs the text information in the text input box as an example.
  • the input of the original text information is not affected, and the user may input the sentence or input after the input is completed.
  • An emoticon characterizing the emoticon is attached to the text information.
  • the user inputs the sentence or completes the input of the text information, which can be generally reflected in the duration of the user inputting the text.
  • the embodiment of the present invention can monitor the state of the user inputting the text information; and the user does not input the text information during the set time period.
  • an emoticon characterizing the recognized expression is attached.
  • the duration of the above settings can be customized by the user, for example, the duration can be set to 1.5 seconds.
  • the form of adding the emoticon in the embodiment of the present invention is not limited to the above manner.
  • the system may also perform the adding port of the emoticon after the system detects that the user submits the input completion operation.
  • the text information sent to the user ⁇ to represent the user's ⁇ expression is “we break up, ⁇ — ⁇ ”, and is not the user's original input text information “we break up”, so it is used
  • the user B can know that the user A is happy now, and then it can be known that the user A is joking.
  • embodiments of the present invention is added to the end of the text information entered by the user emoticon ⁇ - ⁇ , is a schematic illustration only, the lead that is not limited, for example, may be added at the front end of the input text information, of course,
  • the emoji can also be other emoji such as an emoticon animation.
  • the voice information of the user may be acquired by using the voice collection device, the expression determined in S203 is corrected, the corrected expression is obtained, and the corrected expression is obtained.
  • Expression as the user's expression.
  • the facial image of the user obtains the expression of the user, and the corresponding emoticon is called according to the obtained facial expression of the user, and the text information representing the emoticon is sent in the form of the emoticon and the original text information to be sent, so that the sent text information can express the user's Emotion, through the combination of text information and emotions, can more clearly express the semantics of text information sent by users and improve the accuracy of information expression.
  • Another embodiment of the present invention is described by taking a text format of a modified text information as an example.
  • the embodiment of the present invention still uses the user A to send the text information content "We break up" to the user B as an example, and the specific implementation process is as shown in FIG. 4:
  • S302 Start an imaging device that acquires facial feature information of the user A.
  • the camera device collects the face image of the user A and recognizes the expression of the user A.
  • the user A is joking with the user B, and the expression of the user A recognized by the camera device is a smiley expression.
  • S304 Obtain a text format corresponding to the recognized case according to a mapping relationship between different expressions and different text formats.
  • a mapping relationship between different expressions and different text formats is preset, for example, a happy, happy, and the like corresponds to a text format in which the font is a square body, the font color is yellow, and the font size is a fourth size; Expressions such as sadness correspond to text formats in which the font is bold, the font color is red, and the font size is number 3.
  • the text format corresponding to the recognized expression may be obtained according to the mapping relationship between the preset, different expressions and different text formats.
  • the expression of the user A recognized by the camera device is a smiley face expression
  • the text format in which the font is a square book body, the font color is yellow, and the font size is four.
  • S305 Modify the text format of the text information input by the user to the obtained text format, and send the modified text information to the user B.
  • the text format of the text information "we break up" input by the user may be modified into a text format in which the font is a square book body, the font color is yellow, and the font size is four, and then the modified text is sent. Text information.
  • the voice information of the user A may be acquired by using the voice collection device, the expression determined in S303 is corrected, the corrected expression is obtained, and the corrected expression is obtained. , as the user's expression.
  • the two methods of processing the text format by adding an emoticon and modifying the text information may be used alone or in combination.
  • the two methods may be used in combination.
  • Text information is attached to the emoji and the text format is modified.
  • the text information sent can be "We break up, ⁇ - ⁇ ", where the font is a square book body, the font color is yellow, and the font size is four.
  • the facial image of the user is recognized, and the user's expression is recognized.
  • the text format corresponding to the recognized user's expression is obtained, and the text information to be sent is modified by the corresponding text format, that is, the text input by the user
  • the text format of the information is processed into a text format capable of expressing the user's expression, so that the sent text information can express the user's emotion.
  • the method for transmitting text information by modifying the text format of the text information is described as an example of a method in which the target receiving party executes the application text information for communication.
  • the user A sends a message "We break up" to the user B, and the process of the user B receiving the text information is described.
  • the specific implementation process is as shown in FIG. 5:
  • user B receives the content of the text information sent by user A as "we break up,".
  • the text format of the text information parsed in the embodiment of the present invention is that the font is a square book body, the font color is yellow, and the font size is four.
  • S403 Acquire an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats.
  • a mapping relationship between different expressions and different text formats is preset, for example, a happy, happy, and the like corresponds to a text format in which the font is a square body, the font color is yellow, and the font size is a fourth size; Expressions such as sadness correspond to text formats in which the font is bold, the font color is red, and the font size is number 3.
  • the expression corresponding to the currently parsed text format may be obtained according to a mapping relationship between the preset and different expressions and different text formats.
  • the expression corresponding to the text format in which the font is a square font, the font color is yellow, and the font size is four, is a happy expression.
  • the emoticon used to represent the recognized expression in the embodiment of the present invention may include at least one of an emoticon, a symbol combination, and an emoticon.
  • the emoticons sent in the embodiment of the present invention may use different calling modes, for example, the emoticons are emoticons and emoticons.
  • the emoticons corresponding to the currently recognized emoticons may be called from the emoticon database.
  • the picture serves as the desired emoji.
  • the emoji is a symbol combination
  • the corresponding symbol can be called from the symbol database and combined into an emoji that represents the currently recognized expression.
  • the expression obtained in Examples S403 pleased embodiment of the present invention may call " ⁇ - ⁇ " as emoticons.
  • S405 Display the received text information and emoji.
  • the content of the message displayed on the user side of the embodiment of the present invention may be "we break up, ⁇ - ⁇ ", so the user can know that the user is joking and avoids misunderstanding.
  • the information is parsed in a text format, and according to the parsed text format, the expression of the sender of the message is obtained, and the corresponding emoticon is called according to the obtained user expression, and the corresponding emoticon is displayed, so that the sender of the message can be more accurately expressed. Expression, improve the accuracy of information expression.
  • FIG. 6A is a device for communicating text information according to an embodiment of the present invention.
  • 600 is a schematic diagram.
  • the apparatus includes an obtaining unit 601, an identifying unit 602, a determining unit 603, and a sending unit 604, where
  • the obtaining unit 601 is configured to acquire a facial image of the user.
  • the identifying unit 602 is configured to identify the expression of the user according to the facial image acquired by the obtaining unit 601.
  • the determining unit 603 is configured to determine text information that represents the expression according to the text information to be sent and the expression recognized by the identifying unit 602.
  • the sending unit 604 is configured to send the text information that is determined by the determining unit 603 to represent the expression.
  • the acquiring unit 601 is further configured to: obtain voice information of the user.
  • the identification unit 602 is configured to:
  • the corrected expression is used as the user's expression.
  • the determining unit 603 is configured to: After the recognition unit 602 recognizes the expression of the user, the emoticon used to represent the expression is called; the sending unit 604 is configured to:
  • the determining unit 603 is configured to:
  • the recognition unit 602 After the recognition unit 602 recognizes the expression of the user, according to the mapping relationship between different expressions and different text formats, the text format corresponding to the recognized expression is obtained, and the text format of the text information to be sent is modified into the acquired text format. .
  • the sending unit 604 is configured to:
  • the determining unit 603 is configured to:
  • the recognition unit 602 After the recognition unit 602 recognizes the expression of the user, the emoticon used to represent the expression is invoked, and according to the mapping relationship between the different expressions and the different text formats, the text format corresponding to the recognized expression is obtained, and the text to be sent is acquired. The text format of the information is modified to the obtained text format.
  • the sending unit 604 is configured to send the emoticon and the modified text information.
  • the determining unit 603 is configured to: add an emoticon to the text information.
  • the sending unit 604 is configured to: send the text information with the emoticon attached.
  • the determining unit 603 is configured to:
  • the device for communicating the application text information provided by the foregoing embodiment of the present invention further includes a detecting unit 605 and a starting unit 606, as shown in FIG. 6B, wherein
  • the detecting unit 605 is configured to detect an open state of the preset open control for processing the text information to be sent.
  • the starting unit 606 is configured to detect, in the detecting unit 605, the preset text to be sent When the opening control of the information processing is turned on, the image capturing device for acquiring the image of the user's face is activated.
  • the obtaining unit 601 is configured to: acquire the facial image of the user by the activated imaging device.
  • the emoticon called by the determining unit 603 includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.
  • the apparatus shown in FIG. 6A and FIG. 6B can be used to perform the method shown in FIG. 1 to FIG. 4, which is not detailed enough for the related description of the apparatus shown in FIG. 6A and FIG. 6B in the embodiment of the present invention. For reference, refer to the related description of FIG. 1 to FIG. 4, and details are not described herein again.
  • the device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.
  • the apparatus 600 for communicating by using the text information provided by the foregoing embodiment, the embodiment of the present invention further provides an apparatus 700 for applying text information for communication.
  • the apparatus includes a transmitter 701, a processor 702, and a memory 703, a bus 704, and an input device 705, wherein the transmitter 701, the memory 703, and the input device 705 are both connected to the processor 702 via a bus 704, where
  • the memory 703 is configured to store program code executed by the processor 702.
  • the input device 705 is configured to acquire a facial image of the user.
  • the input device 705 for acquiring a facial image of the user may be a camera or an image capturing device.
  • the processor 702 is configured to call the program stored in the memory 703 and the face image acquired by the input device 705, identify the user's expression according to the called facial image, and determine the text information representing the expression according to the text information and the expression to be sent.
  • the transmitter 701 is configured to send text information that represents the expression.
  • the processor 702 can be on a single chip, multiple chips, or multiple electronic components. Implementation, and can use a variety of architectures, including dedicated or embedded processors, dedicated processors and controllers.
  • the memory 703 is operatively coupled to the processor 702, including read only memory (ROM), random access memory (RAM), or a hard drive, etc., and the information may reside on a removable storage medium and loaded or installed as needed.
  • the removable storage medium includes, for example, a memory card, a floppy disk, a magnetic tape, and a network component.
  • the input device 705 may be one or more, and may be integrated with the processor 702 or the like or may be a separate peripheral device (for example, a scanner, a camera or a speaker, etc.), if the input device 705 is a peripheral device,
  • the processor 702 is connected by a wired connection (eg, a cable/port) or a wireless connection (eg, Bluetooth).
  • the input device 705 is further configured to: obtain voice information of the user; specifically, the input device 705 for acquiring user voice information may be a voice acquiring device, such as a microphone or the like.
  • the processor 702 can identify the user's expression according to the facial image as follows: according to the facial image, the initial expression of the user is recognized;
  • the corrected expression is used as the user's expression.
  • the processor 702 is configured to:
  • the emoticon used to represent the expression is called.
  • Transmitter 701 for:
  • the processor 702 is configured to:
  • Transmitter 701 for:
  • the processor 702 is configured to:
  • Transmitter 701 for:
  • the processor 702 is configured to:
  • Transmitter 701 for:
  • the processor 702 is configured to:
  • the processor 702 is configured to detect a preset state of an open control for processing the text information to be sent, where the preset is detected, When the open control for processing the text information to be sent is turned on, the input device for acquiring the facial image of the user is activated; and the facial image of the user is acquired by the activated input device.
  • the emoticon invoked by the processor 702 includes at least one of an emoticon, a combination of symbols, and an emoticon.
  • the apparatus shown in FIG. 7A and FIG. 7B can be used to perform the method shown in FIG. 1 to FIG. 4, which is not detailed enough for the related description of the apparatus shown in FIG. 7A and FIG. 7B in the embodiment of the present invention.
  • FIG. 7A and FIG. 7B For reference, refer to the related description of FIG. 1 to FIG. 4, and details are not described herein again.
  • the device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.
  • the method for performing communication based on the application text information provided in the foregoing embodiment, the embodiment of the present invention further provides an apparatus 800 for applying text information for communication. As shown in FIG. 8, the apparatus includes a receiving unit 801, a parsing unit 802, and an acquisition. a unit 803, a calling unit 804, and a display unit 805, wherein
  • the receiving unit 801 is configured to receive text information.
  • the parsing unit 802 is configured to parse the text format of the text information received by the receiving unit 801.
  • the obtaining unit 803 is configured to obtain an expression corresponding to the text format parsed by the parsing unit 802 according to a mapping relationship between different emoticons and different text formats.
  • the calling unit 804 is configured to invoke an emoticon used to represent the expression acquired by the acquiring unit 803 according to the expression acquired by the obtaining unit 803.
  • the display unit 805 is configured to display the text information received by the receiving unit 801 and the emoticon called by the calling unit 804.
  • the emoticon called by the calling unit 804 to represent the expression acquired by the obtaining unit 803 in the embodiment of the present invention includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.
  • the device shown in FIG. 8 can be used to perform the method shown in FIG. 5.
  • the related description of FIG. 5 can be referred to. , will not repeat them here.
  • the device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.
  • the device 800 for communicating by using the text information provided by the above embodiment, the embodiment of the present invention further provides a device 900 for applying text information for communication.
  • the device includes an output device 901, a receiver 902, and processing.
  • the receiver 902 is configured to receive text information.
  • the processor 903 is configured to call a program stored in the memory 904, parse the text format of the text information received by the receiver 902, and obtain an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats; An emoji used to characterize an expression.
  • the output device 901 is configured to output text information received by the receiver 902 and an emoticon called by the processor 903.
  • the processor 903 can be implemented on a single chip, a multi-chip or a plurality of electronic components, and can adopt various architectures, including a dedicated or embedded processor, a dedicated processor, and a controller.
  • the memory 904 is operatively coupled to the processor 903, including a read only memory (ROM), a random access memory (RAM), or a hard drive, etc., and the information may also reside on a removable storage medium and be loaded or installed as needed.
  • the removable storage medium includes, for example, a memory card, a floppy disk, a magnetic tape, and a network component.
  • An output device 901 is operatively coupled to the processor 903 for outputting text information received by the receiver 902 and emoticons invoked by the processor 903, and outputting various intermediate and final results of the process by the processor 903.
  • the device shown in FIG. 9 of the embodiment of the present invention can be used to perform the method shown in FIG. 5.
  • the relevant description of FIG. will not repeat them here.
  • the device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.
  • embodiments of the invention may be provided as a method, system, or Computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
  • a computer-usable storage medium including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present invention provide a method and apparatus for communication by using text information. In the present invention, a facial image of a user who is inputting text information is acquired; an emotion of the user is recognized according to the facial image; and text information that indicates the recognized emotion is determined and sent according to the emotion and the text information to be sent. By means of the present invention, the sent text information for indicating an emotion of a user can express the emotion of the user, and by combining the text information with the emotion, the semantics of the text information sent by the user can be clearly expressed, and the accuracy of information expression can be improved.

Description

应用文本信息进行通信的方法及装置 技术领域  Method and device for applying text information for communication

本发明涉及通信技术领域, 尤其涉及一种应用文本信息进行通信的方法 及装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for communicating text information. Background technique

随着通信技术的快速发展, 移动终端的功能越来越强大, 使用范围和环 境也越来越多样化, 例如目前在移动电话、 个人数字助理、 和个人电脑等移 动终端中会使用各种各样的即时通信软件进行通信。  With the rapid development of communication technologies, mobile terminals are becoming more and more powerful, and the scope of use and environment are becoming more diverse. For example, mobile terminals, personal digital assistants, and personal computers are currently used in various mobile terminals. Kind of instant messaging software to communicate.

移动终端应用即时通信软件进行通信时, 进行通信业务数据发送时可发 送文本信息、 语音和图片等。 目前应用文本信息进行通信业务数据发送, 相 对应用语音和图片进行通信业务数据发送而言, 应用更为普遍。 应用文本信 息进行通信业务数据发送过程中, 发送的文本信息是用户输入的原始文本信 息, 然而, 用户在不同情景下发送的相同文本信息, 可能会表达不同的语义, 例如用户在不同情绪下发送的相同文字内容, 会表达用户不同的情绪, 该情 绪可包括喜怒哀乐等最基本的情感表现, 例如同样是 "我们分手吧" 这个文 本信息, 在用户开玩笑时发送, 表达的是比较高兴的情绪, 可在用户比较严 肃时发送, 表达的将是比较伤感的情绪, 故现有的应用文本信息进行通信的 方式, 很难准确表达用户的情绪, 信息表达准确度不高。 发明内容  When the mobile terminal uses the instant messaging software to communicate, text information, voice, and pictures can be transmitted when the communication service data is transmitted. At present, the application of text information for data transmission of communication services is more common in the application of voice and pictures for communication service data transmission. When text information is used for communication service data transmission, the text information sent is the original text information input by the user. However, the same text information sent by the user in different scenarios may express different semantics, for example, the user sends in different emotions. The same text content will express different emotions of the user. The emotions may include the most basic emotional expressions such as emotions, such as "we break up". This text message is sent when the user is joking, and the expression is more happy. Emotions can be sent when the user is more serious. The expression will be more sentimental emotions. Therefore, the existing way of applying text information to communicate is difficult to accurately express the user's emotions, and the accuracy of information expression is not high. Summary of the invention

本发明实施例提供一种应用文本信息进行通信的方法及装置, 以提高信 息表达的准确度。  Embodiments of the present invention provide a method and apparatus for applying text information for communication to improve the accuracy of information expression.

第一方面, 提供一种应用文本信息进行通信的方法, 包括:  In a first aspect, a method for applying text information for communication includes:

获取用户的面部图像;  Obtaining a facial image of the user;

根据所述面部图像, 识别得到用户的表情;  Identifying an expression of the user according to the facial image;

根据所述表情和待发送的文本信息, 确定并发送表征所述表情的文本信 息。 Determining and transmitting a text message characterizing the expression according to the expression and text information to be sent Interest.

结合第一方面, 在第一种实现方式中, 该方法还包括:  In combination with the first aspect, in a first implementation manner, the method further includes:

获取用户的语音信息;  Obtain the voice information of the user;

根据所述面部图像, 识别得到用户的表情, 包括:  Identifying the user's expression based on the facial image includes:

根据所述面部图像, 识别得到用户的初始表情;  Identifying an initial expression of the user according to the facial image;

根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。  And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression.

结合第一方面或者第一方面的第一种实现方式, 在第二种实现方式中, 根据所述表情和待发送的文本信息, 确定并发送表征所述表情的文本信息, 包括:  With reference to the first aspect or the first implementation manner of the first aspect, in the second implementation manner, determining, according to the expression and the text information to be sent, the text information that is used to represent the expression, includes:

调用用以表征所述表情的表情符号;  Calling an emoticon to characterize the expression;

发送所述表情符号和所述待发送的文本信息。  Sending the emoticon and the text information to be sent.

结合第一方面或者第一方面的第一种实现方式, 在第三种实现方式中, 根据所述表情和待发送的文本信息, 确定并发送表征所述表情的文本信息, 包括:  With reference to the first aspect or the first implementation manner of the first aspect, in a third implementation manner, determining, according to the expression and the text information to be sent, the text information that is used to represent the expression, includes:

根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式;  Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats;

将待发送的文本信息的文本格式修改为获取的所述文本格式, 并发送修 改后的文本信息。  The text format of the text information to be transmitted is modified to the obtained text format, and the modified text information is sent.

结合第一方面或者第一方面的第一种实现方式, 在第四种实现方式中, 根据所述表情和待发送的文本信息, 确定并发送表征所述表情的文本信息, 包括:  With reference to the first aspect or the first implementation manner of the first aspect, in a fourth implementation manner, determining, according to the expression and the text information to be sent, the text information that is used to represent the expression, includes:

调用用以表征所述表情的表情符号, 以及  Calling an emoji to characterize the expression, and

根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式;  Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats;

将待发送的文本信息的文本格式修改为获取的所述文本格式, 并发送所 述表情符号和修改后的文本信息。 结合第一方面的第二种实现方式或第一方面的第四种实现方式, 在第五 种实现方式中, 发送表情符号和文本信息, 包括: Modifying a text format of the text information to be sent into the obtained text format, and transmitting the emoticon and the modified text information. In combination with the second implementation manner of the first aspect or the fourth implementation manner of the first aspect, in the fifth implementation manner, sending the emoji and the text information includes:

将表情符号, 附加到文本信息中;  Attach an emoji to the text message;

发送附加了所述表情符号的文本信息。  Sending text information to which the emoji is attached.

结合第一方面的上述任一种实现方式, 在第六种实现方式中, 确定表征 所述表情的文本信息之前, 还包括:  In combination with any of the foregoing implementation manners of the first aspect, in the sixth implementation manner, before determining the text information that represents the expression, the method further includes:

确定用户在设定时长内未输入文本信息。  Make sure the user has not entered text information for the set length of time.

结合第一方面的上述任一种实现方式, 在第七种实现方式中, 获取用户 的面部图像之前, 该方法包括:  With reference to any of the foregoing implementation manners of the first aspect, in the seventh implementation manner, before acquiring the facial image of the user, the method includes:

检测到预置的、 用以对待发送的文本信息进行处理的开启控件开启时, 启动用以获取用户面部图像的摄像装置;  When detecting that the preset opening control for processing the text information to be sent is turned on, starting the imaging device for acquiring the facial image of the user;

获取用户的面部图像, 包括:  Get the user's facial image, including:

通过启动的所述摄像装置, 获取用户的面部图像。  The facial image of the user is acquired by the activated imaging device.

结合第一方面的第二种实现方式、 第一方面的第四种实现方式、 第一方 面的第五种实现方式或者第一方面的第六种实现方式, 在第八种实现方式中, 所述表情符号包括表情图片、 符号组合和表情动画中的至少一种。  With reference to the second implementation manner of the first aspect, the fourth implementation manner of the first aspect, the fifth implementation manner of the first aspect, or the sixth implementation manner of the first aspect, in the eighth implementation manner, The emoji includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.

第二方面, 提供一种应用文本信息进行通信的方法, 包括:  In a second aspect, a method for applying text information for communication includes:

接收文本信息;  Receiving text information;

解析所述文本信息的文本格式;  Parsing the text format of the text information;

根据不同表情与不同文本格式之间的映射关系, 获取与所述文本格式对 应的表情;  Obtaining an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats;

根据所述表情, 调用用以表征所述表情的表情符号;  Decrypting an emoticon to characterize the expression according to the expression;

显示接收到的文本信息和所述表情符号。  The received text information and the emoji are displayed.

第三方面, 提供一种应用文本信息进行通信的装置, 该装置包括获取单 元、 识别单元、 确定单元和发送单元, 其中,  In a third aspect, an apparatus for applying text information for communication is provided, the apparatus comprising an acquiring unit, an identifying unit, a determining unit, and a sending unit, where

所述获取单元, 用于获取用户的面部图像;  The acquiring unit is configured to acquire a facial image of the user;

所述识别单元, 用于根据所述获取单元获取的所述面部图像, 识别得到 用户的表情; The identifying unit is configured to identify, according to the facial image acquired by the acquiring unit User's expression;

所述确定单元, 用于根据待发送的文本信息和所述识别单元识别得到的 所述表情, 确定表征所述表情的文本信息;  The determining unit is configured to determine, according to the text information to be sent and the expression recognized by the identifying unit, text information that represents the expression;

所述发送单元, 用于发送所述确定单元确定的表征所述表情的文本信息。 结合第三方面, 在第一种实现方式中, 所述获取单元, 还用于: 获取用户的语音信息;  The sending unit is configured to send text information that is determined by the determining unit and that represents the expression. With reference to the third aspect, in a first implementation, the acquiring unit is further configured to: obtain voice information of a user;

所述识别单元, 用于:  The identification unit is configured to:

根据所述面部图像, 识别得到用户的初始表情;  Identifying an initial expression of the user according to the facial image;

根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。  And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression.

结合第三方面, 或者第三方面的第一种实现方式, 在第二种实现方式中, 所述确定单元, 用于:  With reference to the third aspect, or the first implementation manner of the third aspect, in the second implementation manner, the determining unit is configured to:

在所述识别单元识别得到用户的表情后, 调用用以表征所述表情的表情 符号;  After the recognition unit recognizes the expression of the user, an emoticon for characterizing the expression is invoked;

所述发送单元, 用于:  The sending unit is configured to:

发送所述表情符号和待发送的文本信息。  Sending the emoji and text information to be sent.

结合第三方面、 或者第三方面的第一种实现方式, 在第三种实现方式中, 所述确定单元, 用于:  With reference to the third aspect, or the first implementation manner of the third aspect, in a third implementation manner, the determining unit is configured to:

在所述识别单元识别得到用户的表情后, 根据不同表情与不同文本格式 之间的映射关系, 获取与识别的表情对应的文本格式, 并将待发送的文本信 息的文本格式修改为获取的所述文本格式;  After the recognition unit identifies the user's expression, according to the mapping relationship between different expressions and different text formats, the text format corresponding to the recognized expression is obtained, and the text format of the text information to be sent is modified into the acquired location. Text format

所述发送单元, 用于:  The sending unit is configured to:

发送修改后的文本信息。  Send the modified text information.

结合第三方面、 或者第三方面的第一种实现方式, 在第四种实现方式中, 所述确定单元, 用于:  With reference to the third aspect, or the first implementation manner of the third aspect, in the fourth implementation manner, the determining unit is configured to:

在所述识别单元识别得到用户的表情后, 调用用以表征所述表情的表情 符号, 以及 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的所述文本格式; 所述发送单元, 用于发送所述表情符号和修改后的文本信息。 After the recognition unit recognizes the expression of the user, the emoticon used to represent the expression is invoked, and Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats, and modifying a text format of the text information to be sent into the obtained text format; the sending unit is configured to send The emoji and the modified text information.

结合第三方面的第二种实现方式, 或者第三方面的第四种实现方式, 在 第五种实现方式中, 所述确定单元, 用于: 将表情符号, 附加到文本信息中; 所述发送单元, 用于: 发送附加了所述表情符号的文本信息。  With the second implementation of the third aspect, or the fourth implementation manner of the third aspect, in a fifth implementation manner, the determining unit is configured to: add an emoticon to the text information; a sending unit, configured to: send text information to which the emoji is attached.

结合第三方面的上述任一种实现方式, 在第六种实现方式中, 所述确定 单元, 用于:  With reference to any one of the foregoing implementation manners of the third aspect, in a sixth implementation manner, the determining unit is configured to:

确定表征所述表情的文本信息之前, 确定用户在设定时长内未输入文本 信息。  Before determining the textual information characterizing the expression, it is determined that the user has not entered the text information for the set length of time.

结合第三方面的上述任一种实现方式, 该装置还包括检测单元和启动单 元, 其中,  In combination with any of the foregoing implementations of the third aspect, the apparatus further includes a detecting unit and a starting unit, where

所述检测单元, 用于检测预置的、 用以对待发送的文本信息进行处理的 开启控件的开启状态;  The detecting unit is configured to detect an open state of a preset open control for processing text information to be sent;

所述启动单元, 用于在所述检测单元检测到预置的、 用以对待发送的文 本信息进行处理的开启控件开启时, 启动用以获取用户面部图像的摄像装置; 所述获取单元, 用于:  The initiating unit is configured to: when the detecting unit detects that the preset opening control for processing the text information to be sent is turned on, starting an imaging device for acquiring a facial image of the user; In:

通过启动的所述摄像装置, 获取用户的面部图像。  The facial image of the user is acquired by the activated imaging device.

结合第三方面的第二种实现方式、 第三方面的第四种实现方式、 第三方 面的第五种实现方式或第三方面的第六种实现方式, 在第八种实现方式中, 所述确定单元调用的表情符号包括表情图片、 符号组合和表情动画中的至少 一种。  With reference to the second implementation manner of the third aspect, the fourth implementation manner of the third aspect, the fifth implementation manner of the third aspect, or the sixth implementation manner of the third aspect, in the eighth implementation manner, The emoticon called by the determining unit includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.

第四方面, 提供一种应用文本信息进行通信的装置, 该装置包括接收单 元、 解析单元、 获取单元、 调用单元和显示单元, 其中,  In a fourth aspect, an apparatus for applying text information for communication is provided, the apparatus comprising a receiving unit, a parsing unit, an obtaining unit, a calling unit, and a display unit, where

所述接收单元, 用于接收文本信息;  The receiving unit is configured to receive text information;

所述解析单元, 用于解析所述接收单元接收的所述文本信息的文本格式; 所述获取单元, 用于根据不同表情与不同文本格式之间的映射关系, 获 取与所述解析单元解析的所述文本格式对应的表情; The parsing unit is configured to parse a text format of the text information received by the receiving unit, and the acquiring unit is configured to obtain a mapping relationship between different emoticons and different text formats. Taking an expression corresponding to the text format parsed by the parsing unit;

所述调用单元, 用于根据所述获取单元获取的所述表情, 调用用以表征 所述表情的表情符号;  The calling unit is configured to invoke an emoticon to represent the emoticon according to the expression acquired by the acquiring unit;

所述显示单元, 用于显示所述接收单元接收到的文本信息和所述调用单 元调用的所述表情符号。  The display unit is configured to display text information received by the receiving unit and the emoticon called by the calling unit.

第五方面, 提供一种应用文本信息进行通信的装置, 包括输入设备、 发 射器、 处理器、 存储器和总线, 其中, 所述输入设备、 所述发射器、 所述存 储器均通过所述总线与所述处理器连接, 其中,  A fifth aspect, an apparatus for applying text information for communication, including an input device, a transmitter, a processor, a memory, and a bus, wherein the input device, the transmitter, and the memory pass through the bus The processor is connected, wherein

所述存储器, 用于存储所述处理器执行的程序代码;  The memory is configured to store program code executed by the processor;

所述输入设备, 用于获取用户的面部图像;  The input device is configured to acquire a facial image of the user;

所述处理器, 用于调用所述存储器存储的程序, 以及所述输入设备获取 的面部图像, 根据所述面部图像, 识别得到用户的表情, 并根据待发送的文 本信息和所述表情, 确定表征所述表情的文本信息;  The processor is configured to invoke a program stored in the memory, and a facial image acquired by the input device, identify an expression of the user according to the facial image, and determine, according to the text information to be sent and the expression Characterizing the textual information of the expression;

所述发射器, 用于发送表征所述表情的文本信息。  The transmitter is configured to send text information that characterizes the expression.

结合第五方面, 在第一种实现方式中, 所述输入设备还用于:  With reference to the fifth aspect, in a first implementation manner, the input device is further configured to:

获取用户的语音信息;  Obtain the voice information of the user;

所述处理器用于按照如下方式根据所述面部图像, 识别得到用户的表情: 根据所述面部图像, 识别得到用户的初始表情;  The processor is configured to: according to the facial image, identify an expression of the user: according to the facial image, identify an initial expression of the user;

根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。  And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression.

结合第五方面或者第五方面的第一种实现方式, 在第二种实现方式中, 所述处理器, 用于:  With reference to the fifth aspect, or the first implementation manner of the fifth aspect, in a second implementation manner, the processor is configured to:

在识别得到用户的表情后, 调用用以表征所述表情的表情符号; 所述发射器, 用于:  After identifying the user's expression, calling an emoticon to characterize the expression; the transmitter, for:

发送待发送的文本信息和所述处理器调用的所述表情符号。  Sending text information to be sent and the emoticon called by the processor.

结合第五方面或者第五方面的第一种实现方式, 在第三种实现方式中, 所述处理器, 用于: 在识别得到用户的表情后, 根据不同表情与不同文本格式之间的映射关 系, 获取与识别的表情对应的文本格式; With reference to the fifth aspect, or the first implementation manner of the fifth aspect, in a third implementation manner, the processor is configured to: After identifying the user's expression, obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats;

将待发送的文本信息的文本格式修改为获取的所述文本格式;  Modifying a text format of the text information to be sent into the obtained text format;

所述发射器, 用于:  The transmitter is configured to:

发送修改后的文本信息。  Send the modified text information.

结合第五方面, 或者第五方面的第一种实现方式, 在第四种实现方式中, 所述处理器, 用于:  With reference to the fifth aspect, or the first implementation manner of the fifth aspect, in a fourth implementation manner, the processor is configured to:

在识别得到用户的表情后, 调用用以表征所述表情的表情符号, 以及 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的所述文本格式; 所述发射器, 用于:  After identifying the expression of the user, calling the emoticon used to represent the expression, and acquiring a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats, and transmitting the text information to be sent The text format is modified to the obtained text format; the transmitter is configured to:

发送所述处理器调用的表情符号和所述处理器修改后的文本信息。  Sending an emoticon called by the processor and the modified text information of the processor.

结合第五方面的第二种实现方式, 或者第五方面的第四种实现方式, 在 第五种实现方式中, 所述处理器, 用于:  With reference to the second implementation manner of the fifth aspect, or the fourth implementation manner of the fifth aspect, in a fifth implementation manner, the processor is configured to:

将表情符号, 附加到文本信息中;  Attach an emoji to the text message;

所述发射器, 用于:  The transmitter is configured to:

发送附加了所述表情符号的文本信息。  Sending text information to which the emoji is attached.

结合第五方面的上述任一种实现方式, 在第六种实现方式中, 所述处理 器, 用于:  With reference to any of the foregoing implementation manners of the fifth aspect, in a sixth implementation manner, the processor is configured to:

确定表征所述表情的文本信息之前, 确定用户在设定时长内未输入文本 信息。  Before determining the textual information characterizing the expression, it is determined that the user has not entered the text information for the set length of time.

结合第五方面的上述任一种实现方式, 在第七种实现方式中, 所述处理 器, 用于检测预置的、 用以对待发送的文本信息进行处理的开启控件的开启 状态; 在所述检测器检测到预置的、 用以对待发送的文本信息进行处理的开 启控件开启时, 启动用以获取用户面部图像的摄像装置;  With reference to any one of the foregoing implementation manners of the fifth aspect, in a seventh implementation manner, the processor is configured to detect a preset state of an open control for processing text information to be sent; When the detector detects that the preset opening control for processing the text information to be sent is turned on, the camera device for acquiring the facial image of the user is activated;

所述处理器, 用于通过启动的所述摄像装置, 获取用户的面部图像。 结合第五方面的第二种实现方式、 第五方面的第四种实现方式、 第五方 面的第五种实现方式或者第五方面的第六种实现方式, 在第八种实现方式中, 所述处理器调用的表情符号包括表情图片、 符号组合和表情动画中的至少一 种。 The processor is configured to acquire a facial image of the user by using the camera device that is activated. Combining the second implementation manner of the fifth aspect, the fourth implementation manner of the fifth aspect, and the fifth party The fifth implementation manner of the fifth aspect, or the sixth implementation manner of the fifth aspect, in the eighth implementation manner, the emoticon invoked by the processor includes at least one of an emoticon image, a symbol combination, and an emoticon animation.

第六方面, 提供一种应用文本信息进行通信的装置, 包括输出设备、 接 收器、 处理器、 存储器和总线, 其中, 所述输出设备、 所述接收器、 所述处 理器、 所述存储器均与所述总线连接, 其中,  According to a sixth aspect, an apparatus for applying text information for communication includes an output device, a receiver, a processor, a memory, and a bus, wherein the output device, the receiver, the processor, and the memory are both Connected to the bus, wherein

所述存储器, 用于存储所述处理器执行的程序代码;  The memory is configured to store program code executed by the processor;

所述接收器, 用于接收文本信息;  The receiver is configured to receive text information;

所述处理器, 用于调用所述存储器存储的程序, 解析所述接收器接收的 所述文本信息的文本格式; 根据不同表情与不同文本格式之间的映射关系, 获取与所述文本格式对应的表情; 根据所述表情, 调用用以表征所述表情的 表情符号;  The processor is configured to invoke a program stored in the memory, parse a text format of the text information received by the receiver, and acquire a mapping corresponding to the text format according to a mapping relationship between different expressions and different text formats. An expression; an emoticon for characterizing the expression is invoked according to the expression;

所述输出设备, 用于输出所述收发器接收的文本信息和所述处理器调用 的表情符号。  The output device is configured to output text information received by the transceiver and an emoticon called by the processor.

本发明实施例提供的应用文本信息进行通信的方法及装置, 通过获取得 到的用户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文 本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准 确的表达用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信 息能够表达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达 用户发送的文本信息的语义, 提高信息表达的准确度。 附图说明  The method and device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the obtained facial image of the user, and determines and sends the text representing the facial expression of the user according to the obtained user facial expression and the text information to be sent. The information of the user can express the user's current emotion more accurately. Therefore, the text information of the sent user's expression can express the user's emotion through the invention, and the text information and the emotion can be combined to express the user clearly. The semantics of textual information improves the accuracy of information expression. DRAWINGS

图 1为本发明实施例提供的应用文本信息进行通信的第一方法实现流程 图;  FIG. 1 is a flowchart of a first method for implementing text message communication according to an embodiment of the present invention;

图 2为本发明实施例提供的应用文本信息进行通信的第二方法实现流程 图;  FIG. 2 is a flowchart of a second method for implementing text message communication according to an embodiment of the present invention;

图 3为本发明实施例提供的应用文本信息进行通信的第三方法实现流程 图; FIG. 3 is a flowchart of a third method for implementing text information communication according to an embodiment of the present invention; Figure

图 4为本发明实施例提供的应用文本信息进行通信的第四方法实现流程 图;  FIG. 4 is a flowchart of a fourth method for implementing text information communication according to an embodiment of the present invention;

图 5为本发明实施例提供的应用文本信息进行通信的第五方法实现流程 图;  FIG. 5 is a flowchart of a fifth method for implementing text message communication according to an embodiment of the present invention;

图 6 A所示为本发明实施例提供的应用文本信息进行通信的装置第一构成 图;  6A is a first structural diagram of an apparatus for transmitting text information by using an embodiment of the present invention;

图 6B所示为本发明实施例提供的应用文本信息进行通信的装置第二构成 图;  6B is a second structural diagram of an apparatus for communicating text information according to an embodiment of the present invention;

图 7所示为本发明实施例提供的应用文本信息进行通信的装置第三构成 图;  FIG. 7 is a third structural diagram of an apparatus for communicating text information according to an embodiment of the present invention;

图 8所示为本发明实施例提供的应用文本信息进行通信的装置第四构成 图;  FIG. 8 is a fourth structural diagram of an apparatus for communicating text information by using an embodiment of the present invention; FIG.

图 9所示为本发明实施例提供的应用文本信息进行通信的装置第五构成 图。 具体实施方式  FIG. 9 is a fifth structural diagram of an apparatus for communicating text information according to an embodiment of the present invention. detailed description

下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.

移动终端可为用户提供诸如短消息发送等应用文本信息进行通信的功 能, 应用文本信息进行通信的过程, 通常是由消息发起方进行文本信息的输 入, 然后将输入完成的文本信息发送给目标接收方, 进而实现发送方与接收 方之间的通信。 本发明实施例提供一种应用文本信息进行通信的方法, 通过 消息发起方输入的文本信息, 将用户的情绪发送给目标接收方, 使目标接收 方能够结合消息发起方的情绪和文本消息内容, 准确的得到消息发起方所要 表达的语义。 The mobile terminal can provide a function for the user to communicate with the application text information such as short message transmission, and the process of applying the text information for communication, usually the text initiator inputs the text information, and then sends the input completed text information to the target reception. In addition, the communication between the sender and the receiver is implemented. The embodiment of the invention provides a method for applying text information to communicate, and sending the user's emotion to the target receiver through the text information input by the message initiator, so that the target receiver can combine the emotion of the message initiator and the content of the text message. Get exactly what the message originator wants The semantics of expression.

图 1 所示为本发明实施例提供的应用文本信息进行通信的方法流程图, 如图 1所示, 该方法包括:  FIG. 1 is a flowchart of a method for communicating text information by using an embodiment of the present invention. As shown in FIG. 1, the method includes:

S101 : 获取用户的面部图像。  S101: Acquire a facial image of the user.

具体的, 本发明实施例中可启动移动终端中具有图像釆集功能的传感器, 对用户的面部图像进行釆集, 例如可通过设置在智能手机上的摄像头, 对用 户的脸部图像进行釆集。  Specifically, in the embodiment of the present invention, the sensor with the image collection function in the mobile terminal can be activated to collect the facial image of the user, for example, the facial image of the user can be collected by a camera disposed on the smart phone. .

本发明实施例中可根据实际情况, 由用户选择何时获取用户的面部图像 例如, 本发明实施例可在用户打开文本输入框的时候进行面部图像的获取, 也可在用户完成文本信息输入后, 进行面部图像的获取。  In the embodiment of the present invention, the user may select when to obtain the facial image of the user according to the actual situation. For example, in the embodiment of the present invention, the facial image may be acquired when the user opens the text input box, or after the user completes the text information input. , to obtain facial images.

S102: 根据获取的面部图像, 识别得到用户的表情。  S102: Identify the user's expression according to the acquired facial image.

本发明实施例中可根据 S102中获取的面部图像, 得到用户的面部特征信 息。 用户的面部特征信息可包括例如嘴唇角度、 瞳孔宽度和脸长宽度等信息。 根据得到的面部特征信息, 可确定用户的表情。 例如根据获取的嘴唇角度、 瞳孔宽度和脸长宽度等面部特征信息, 可得到基本的嘴巴张开状态、 眼睛睁 闭状态和脸部变化状态, 然后结合各部分的变化以及经验模型, 可确定用户 的表情。  In the embodiment of the present invention, the facial feature information of the user can be obtained according to the facial image acquired in S102. The facial feature information of the user may include information such as a lip angle, a pupil width, and a face length width. Based on the obtained facial feature information, the user's expression can be determined. For example, according to the obtained facial feature information such as the lip angle, the pupil width and the face length, the basic mouth opening state, the eye closing state, and the face changing state can be obtained, and then the user and the empirical model can be combined to determine the user. Expression.

本发明实施例中可釆用诸如人脸识别技术对釆集到的面部图像进行识 别, 得到用户的表情。 本发明实施例中人脸识别技术的具体实现可釆用现有 技术中诸如整体识别法、 局部识别法、 形变提取法、 运动提取法、 几何特征 法或者容貌特征法等人脸识别技术。  In the embodiment of the present invention, the face image collected by the face recognition technology can be recognized by using a face recognition technology to obtain an expression of the user. The specific implementation of the face recognition technology in the embodiments of the present invention may employ a face recognition technology such as an overall recognition method, a local recognition method, a deformation extraction method, a motion extraction method, a geometric feature method, or a face feature method in the prior art.

例如, 本发明实施例中釆用局部识别法进行人脸识别时, 可釆用从下向 上的方式, 寻找人脸上有代表性的结构特征(眼睛、 鼻子和嘴巴等), 并提取 边缘、 亮度、 形变、 紋理和颜色等特征, 与整体特征相比较, 进行人脸的检 测识别。  For example, in the embodiment of the present invention, when the face recognition method is used for face recognition, the bottom-up manner can be used to find representative structural features (eyes, nose, mouth, etc.) on the human face, and extract the edges, Characteristics such as brightness, deformation, texture, and color are compared with the overall features for face detection and recognition.

S103 : 根据待发送的文本信息和 S102 中识别的表情, 确定并发送表征 S102中识别的表情的文本信息。 本发明实施例中可根据待发送的文本信息和 S102中确定的用户表情, 对 待发送的文本信息进行处理, 将待发送的文本信息处理为能够表达用户表情 的形式, 并将文本信息以处理后的形式发送, 即发送表征识别的表情的文本 信息。 S103: Determine and transmit text information representing the expression recognized in S102 according to the text information to be transmitted and the expression recognized in S102. In the embodiment of the present invention, the text information to be sent may be processed according to the text information to be sent and the user expression determined in S102, and the text information to be sent is processed into a form capable of expressing the user's expression, and the text information is processed. The form is sent, that is, the text information representing the recognized expression is sent.

本发明实施例中待发送的文本信息, 可以是用户在文本输入框利用输入 法直接输入的文本信息, 也可以是通过拷贝并粘贴在文本输入框的文本信息, 当然本发明实施例中待发送的文本信息也可以是语音信息转换得到的文本信 息, 本发明实施例不做限定。  The text information to be sent in the embodiment of the present invention may be the text information directly input by the user in the text input box by using the input method, or may be the text information that is copied and pasted in the text input box, which is to be sent in the embodiment of the present invention. The text information may also be text information obtained by converting the voice information, which is not limited in the embodiment of the present invention.

可选的, 本发明实施例中根据待发送的文本信息和 S102中确定的用户表 情, 确定并发送表征识别的表情的文本信息, 可灵活选用各种方式, 例如可 随同待发送的文本信息, 发送一些表征用户表情的表情符号, 该表情符号例 如可以是表情图片、 符号组合和表情动画中的至少一种。 本发明实施例中还 可预设表征不同表情的文本格式, 在确定了用户的表情后, 修改输入的文本 信息的文本格式, 例如修改字体颜色或字体大小等, 使修改后的文本格式能 够表达用户的表情。 户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准确的表达 用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信息能够表 达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送 的文本信息的语义, 提高信息表达的准确度。  Optionally, in the embodiment of the present invention, according to the text information to be sent and the user expression determined in S102, text information representing the recognized expression is determined and sent, and various manners may be flexibly selected, for example, text information that can be sent along with the user. Sending some emoticons that characterize the user's expression, which may be, for example, at least one of an emoticon, a combination of symbols, and an emoticon. In the embodiment of the present invention, a text format representing different expressions may be preset, and after the user's expression is determined, the text format of the input text information is modified, for example, the font color or font size is modified, so that the modified text format can be expressed. User's expression. The facial image of the user is obtained, and the user's expression is obtained, and according to the obtained user's expression and the text information to be sent, the text information representing the user's expression is determined and transmitted, and the user's expression can accurately express the current emotion of the user, so the present invention is The sent text information representing the user's expression can express the user's emotion. Through the combination of the text information and the emotion, the semantics of the text information sent by the user can be clearly expressed, and the accuracy of the information expression can be improved.

可选的, 本发明实施例中为了进一步提高信息表达的准确度, 本发明实 施例中除了获取用户的面部图像外, 还可釆集用户的语音信息, 通过语音信 息对根据面部图像识别的表情进行校正, 具体的实现过程可如图 2所示。  Optionally, in the embodiment of the present invention, in order to further improve the accuracy of the information expression, in addition to acquiring the facial image of the user, the embodiment of the present invention may also collect the voice information of the user, and use the voice information to identify the expression according to the facial image. For correction, the specific implementation process can be as shown in Figure 2.

SlOla: 获取用户的面部图像。  SlOla: Get the face image of the user.

本发明实施例中获取用户面部图像的过程与上述实施例中 S101 步骤类 似, 在此不再赘述。 SlOlb: 获取用户的语音信息。 The process of obtaining the image of the user's face in the embodiment of the present invention is similar to the step S101 in the foregoing embodiment, and details are not described herein again. SlOlb: Get the user's voice information.

具体的, 不同语言声调表情的语言信号在时间构造、 振幅构造、 基频构 造和共振峰构造等特征方面也有着不同的构造特点和分布规律, 本发明实施 例中可以通过例如麦克风等声音输入设备, 对输入文本信息的用户的语音信 号进行釆集并输入, 然后应用釆集并输入的语音信号, 进一步完善表情识别 的准确性。  Specifically, the language signals of different language tones have different structural features and distribution rules in terms of time structure, amplitude structure, fundamental frequency configuration, and formant structure. In the embodiment of the present invention, a voice input device such as a microphone can be used. The voice signal of the user who inputs the text information is collected and input, and then the voice signal collected and input is applied to further improve the accuracy of the expression recognition.

需要说明的是, 本发明实施例 SlOla和 SlOlb的执行顺序不分先后, 可 先执行 SlOla, 也可先执行 SlOlb, 本发明实施例不做限定。  It should be noted that, in the embodiment of the present invention, the execution order of the SlOla and the SlOlb is in no particular order, and the SlOla may be executed first, or the SlOlb may be executed first, which is not limited in the embodiment of the present invention.

可选的, 本发明实施例中可釆用如下方式实现 S102中确定用户的表情的 过程:  Optionally, in the embodiment of the present invention, the process of determining the expression of the user in S102 may be implemented in the following manner:

S102a: 根据 SlOla中获取的面部图像, 识别得到用户的初始表情。 S102b: 根据 SlOlb中获取的语音信息, 对 S102a中确定的初始表情进行 校正, 得到校正后的表情, 并将校正后的表情, 作为用户的表情。  S102a: According to the facial image acquired in the SlOla, the initial expression of the user is recognized. S102b: Correct the initial expression determined in S102a according to the voice information acquired in the SlOlb, obtain the corrected expression, and use the corrected expression as the expression of the user.

本发明实施例中通过语音信息对根据面部图像识别的表情进行校正, 将 校正后的表情作为用户的表情, 能够完善表情识别的准确性, 进一步提高信 息表达的准确度。  In the embodiment of the present invention, the expression recognized by the facial image is corrected by the voice information, and the corrected expression is used as the expression of the user, which can improve the accuracy of the expression recognition and further improve the accuracy of the information expression.

例如, 本发明实施例中通过用户面部图像识别的初始表情为用户不高兴 的表情, 通过语音信息进行表情校正时, 可通过用户说话的声音大小, 对识 别的初始表情进行校正, 当用户说话声音比较大时, 则可认为用户的表情是 愤怒, 当用户说话声音比较小的时候, 则可认为用户的表情是悲伤。  For example, in the embodiment of the present invention, the initial expression recognized by the user's facial image is an expression that the user is unhappy. When the expression is corrected by the voice information, the initial expression of the recognition may be corrected by the size of the voice spoken by the user, when the user speaks the voice. When it is relatively large, the user's expression is considered to be anger. When the user's voice is relatively small, the user's expression is considered sad.

进一步需要说明的是, 本发明实施例中 SlOlb和 S102a的执行顺序也不 分先后, 可先执行 S102a, 也可先执行 S101b。  It should be further noted that, in the embodiment of the present invention, the execution order of SlOlb and S102a is not in any order, and S102a may be executed first, or S101b may be executed first.

S103: 确定并发送表征用户的表情的文本信息  S103: Determine and send text information that represents a user's expression

可选的, 本发明实施例中可设置是否对待发送的文本信息进行处理的开 启控件, 用户可根据实际情况通过控制该开启控件的开启与否, 选择是否将 待发送的文本信息处理为能够表征用户表情的形式。 例如, 可以在移动终端 的显示界面中, 预设用以触发对文本信息进行处理的开启控件。 在检测到预 置的、 对文本信息进行处理的开启控件开启时, 即可启动获取用户面部图像 的传感器, 进行相应信息的釆集, 例如该传感器可以是设置在移动终端中的 摄像装置, 通过该摄像装置对用户的面部图像进行釆集。 Optionally, in the embodiment of the present invention, an open control for processing whether to send the text information may be set, and the user may control whether the open information is opened or not according to an actual situation, and select whether to process the text information to be sent as capable of being characterized. The form of the user's expression. For example, an open control for triggering processing of the text information may be preset in the display interface of the mobile terminal. In the detection of the pre When the open control for processing the text information is turned on, the sensor for acquiring the facial image of the user can be started, and the corresponding information is collected. For example, the sensor can be an imaging device disposed in the mobile terminal, and the camera device is The user's facial image is collected.

当然, 本发明实施例中启动的传感器还可以包括声音釆集装置, 通过该 声音釆集装置对用户的语音信息进行釆集。  Of course, the sensor activated in the embodiment of the present invention may further comprise a sound collecting device, and the voice information of the user is collected by the sound collecting device.

本发明实施例中根据待发送的文本信息和识别到的用户表情, 确定并发 送表征识别的用户表情的文本信息, 可优选如下方式:  In the embodiment of the present invention, according to the text information to be sent and the recognized user expression, the text information representing the recognized user expression is determined and sent, which may be preferably as follows:

A: 调用用以表征识别得到的表情的表情符号, 发送调用的表情符号和待 发送的文本信息。  A: The emoticon used to represent the recognized expression is called, and the called emoticon and the text information to be sent are sent.

B: 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对 应的文本格式; 将待发送的文本信息的文本格式修改为获取的所述文本格式 , 并发送修改后的文本信息。  B: obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats; modifying a text format of the text information to be sent into the obtained text format, and transmitting the modified text information .

C: 调用用以表征所述表情的表情符号, 以及根据不同表情与不同文本格 式之间的映射关系, 获取与识别的表情对应的文本格式; 将待发送的文本信 息的文本格式修改为获取的文本格式, 并发送调用的表情符号和修改后的文 本信息。 的方法, 进行详细说明。  C: calling an emoticon for characterizing the expression, and obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats; modifying a text format of the text information to be sent to the acquired Text format, and send the called emoji and modified text information. The method is described in detail.

本发明中的一个较佳实施例, 首先以发送用以表征表情的表情符号为例 进行说明。  In a preferred embodiment of the present invention, an emoticon for characterizing an expression is first sent as an example for explanation.

本发明实施例中以用户 A向用户 B发送文本信息内容 "我们分手吧" 为 例进行说明, 具体实现过程如图 3所示:  In the embodiment of the present invention, the user A sends the text information content "we break up" to the user B as an example, and the specific implementation process is as shown in FIG. 3:

S201 : 用户 A启动对待发送的文本信息进行处理的开启控件。  S201: User A starts an open control for processing the text information to be sent.

S202: 启动获取用户 A面部图像的摄像装置。  S202: Start an imaging device that acquires a facial image of the user A.

S203: 摄像装置釆集用户 A的面部图像, 并识别用户 A的表情。  S203: The camera device collects the face image of the user A and recognizes the expression of the user A.

本发明实施例中假设用户 A是与用户 B在开玩笑, 摄像装置识别的用户 In the embodiment of the present invention, it is assumed that the user A is a user who is joking with the user B and is recognized by the camera device.

A的表情为笑脸表情。 S204: 根据 S203中识别的表情, 调用用以表征识别的表情的表情符号。 具体的, 本发明实施例中用以表征识别的表情的表情符号可包括表情图 片、 符号组合和表情动画中的至少一种。 A's expression is a smiley face. S204: Call an emoticon to represent the recognized expression according to the expression recognized in S203. Specifically, the emoticon used to represent the recognized expression in the embodiment of the present invention may include at least one of an emoticon picture, a symbol combination, and an emoticon animation.

本发明实施例中发送的表情符号不同可釆用不同的调用方式, 例如表情 符号为表情图片和表情动画, 则本发明实施例中可从表情图片数据库中调用 与当前识别的表情相对应的表情图片作为所需的表情符号。 例如表情符号为 符号组合, 则本发明实施例中则可从符号数据库中调用相应的符号, 并组合 为表征当前识别的表情的表情符号。  In the embodiment of the present invention, the emoticons sent in the embodiment of the present invention may use different calling modes, for example, the emoticons are emoticons and emoticons. In the embodiment of the present invention, the emoticons corresponding to the currently recognized emoticons may be called from the emoticon database. The picture serves as the desired emoji. For example, if the emoji is a symbol combination, in the embodiment of the present invention, the corresponding symbol can be called from the symbol database and combined into an emoji that represents the currently recognized expression.

S205: 向用户 B发送表情符号和用户输入的文本信息。  S205: Send the emoji and the text information input by the user to the user B.

具体的, 本发明实施例中表情符号和用户输入的文本信息可以分时发送, 也可同时发送。 本发明实施例中优选将表情符号附加到用户输入的文本信息 中, 然后发送附加了表情符号的文本信息。  Specifically, in the embodiment of the present invention, the emoticon and the text information input by the user may be sent in time, or may be simultaneously sent. In the embodiment of the present invention, the emoticon is preferably attached to the text information input by the user, and then the text information to which the emoticon is attached is transmitted.

本发明实施例中可在文本信息中附加表示笑脸的表情图片, 也可附加表 示笑脸的表情符号, 例如, 本发明实施例中在文本信息中附加表情符号 ΛΛ, 则附加了表情符号的文本信息可表示为 "我们分手吧, ΛΛ"。 In the embodiment of the present invention, an emoticon representing a smiley face may be added to the text information, and an emoticon indicating a smiley face may be added. For example, in the embodiment of the present invention, an emoticon Λ - Λ is added to the text information, and an emoticon is attached. The text message can be expressed as "We break up, Λ - Λ ".

本发明实施例中以用户在文本输入框中输入文本信息场景为例进行说 明, 可选的, 本发明实施例中为保证不影响原有文本信息的输入, 可在用户 输入断句或者输入完成后在文本信息中附加表征表情的表情符号。 一般的, 用户输入断句或者完成文本信息的输入, 一般可体现在用户输入文本的时长 上, 本发明实施例可监控用户输入文本信息的状态; 在监控到用户在设定时 长内未输入文本信息时, 在输入的文本信息中附加表征识别的表情的表情符 号。 上述设定的时长可由用户进行自定义, 比如可以将该时长设置为 1.5秒。  In the embodiment of the present invention, the user inputs the text information in the text input box as an example. Alternatively, in the embodiment of the present invention, the input of the original text information is not affected, and the user may input the sentence or input after the input is completed. An emoticon characterizing the emoticon is attached to the text information. Generally, the user inputs the sentence or completes the input of the text information, which can be generally reflected in the duration of the user inputting the text. The embodiment of the present invention can monitor the state of the user inputting the text information; and the user does not input the text information during the set time period. When the input text information is attached, an emoticon characterizing the recognized expression is attached. The duration of the above settings can be customized by the user, for example, the duration can be set to 1.5 seconds.

当然本发明实施例中进行表情符号添加的形式并不限于上述方式, 例如 本发明实施例中还可在系统检测到用户提交输入完成的动作后进行表情符号 的添力口。  Of course, the form of adding the emoticon in the embodiment of the present invention is not limited to the above manner. For example, in the embodiment of the present invention, the system may also perform the adding port of the emoticon after the system detects that the user submits the input completion operation.

本发明实施例中向用户 Β发送的、 表征用户 Α表情的文本信息为 "我们 分手吧, ΛΛ" , 而并不是用户 Α原始输入的文本信息 "我们分手吧", 故在用 户 B接收到该文本信息后, 可以知道用户 A现在是比较高兴的, 进而可得知 用户 A是在开玩笑。 In the embodiment of the present invention, the text information sent to the user 表征 to represent the user's Α expression is “we break up, ΛΛ ”, and is not the user's original input text information “we break up”, so it is used After receiving the text information, the user B can know that the user A is happy now, and then it can be known that the user A is joking.

需要说明的是, 本发明实施例中在用户输入的文本信息末尾添加表情符 号 ΛΛ, 仅是进行示意性说明, 并不引以为限, 例如还可以在输入的文本信息 前端添加, 当然表情符号也可以是例如表情动画等其它表情符号。 Incidentally, embodiments of the present invention is added to the end of the text information entered by the user emoticon Λ - Λ, is a schematic illustration only, the lead that is not limited, for example, may be added at the front end of the input text information, of course, The emoji can also be other emoji such as an emoticon animation.

进一步需要说明的是, 本发明实施例中在执行 S203后, 还可利用声音釆 集装置获取用户 Α的语音信息,对 S203中确定的表情进行校正,得到校正后 的表情, 并将校正后的表情, 作为用户的表情。 户面部图像, 得到用户的表情, 根据得到的用户表情调用相应的表情符号, 将表征表情的文本信息以表情符号和原始待发送的文本信息的形式进行发 送, 使得发送的文本信息能够表达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送的文本信息的语义, 提高信息表达的准确度。  It should be further noted that, after performing S203 in the embodiment of the present invention, the voice information of the user may be acquired by using the voice collection device, the expression determined in S203 is corrected, the corrected expression is obtained, and the corrected expression is obtained. Expression, as the user's expression. The facial image of the user obtains the expression of the user, and the corresponding emoticon is called according to the obtained facial expression of the user, and the text information representing the emoticon is sent in the form of the emoticon and the original text information to be sent, so that the sent text information can express the user's Emotion, through the combination of text information and emotions, can more clearly express the semantics of text information sent by users and improve the accuracy of information expression.

本发明另一实施例以修改文本信息的文本格式为例进行说明。 本发明实 施例仍以用户 A向用户 B发送文本信息内容 "我们分手吧" 为例进行说明, 具体实现过程如图 4所示:  Another embodiment of the present invention is described by taking a text format of a modified text information as an example. The embodiment of the present invention still uses the user A to send the text information content "We break up" to the user B as an example, and the specific implementation process is as shown in FIG. 4:

S301 : 用户 A启动对待发送的文本信息进行处理的开启控件。  S301: User A starts an open control for processing the text information to be sent.

S302: 启动获取用户 A面部特征信息的摄像装置。  S302: Start an imaging device that acquires facial feature information of the user A.

S303: 摄像装置釆集用户 A的面部图像, 并识别用户 A的表情。  S303: The camera device collects the face image of the user A and recognizes the expression of the user A.

本发明实施例中假设用户 A是与用户 B在开玩笑, 摄像装置识别的用户 A的表情为笑脸表情。  In the embodiment of the present invention, it is assumed that the user A is joking with the user B, and the expression of the user A recognized by the camera device is a smiley expression.

S304: 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表 情对应的文本格式。  S304: Obtain a text format corresponding to the recognized case according to a mapping relationship between different expressions and different text formats.

本发明实施例中预设不同表情与不同文本格式之间的映射关系, 例如高 兴、 愉快等表情与字体为方正书体、 字体颜色为黄色和字号大小为四号的文 本格式相对应; 愤怒、 伤心等表情与字体为黑体、 字体颜色为红色和字号大 小为三号的文本格式相对应。 本发明实施例中识别得到正在输入文本信息的用户表情后, 可根据预设 的、 不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应的文 本格式。 In the embodiment of the present invention, a mapping relationship between different expressions and different text formats is preset, for example, a happy, happy, and the like corresponds to a text format in which the font is a square body, the font color is yellow, and the font size is a fourth size; Expressions such as sadness correspond to text formats in which the font is bold, the font color is red, and the font size is number 3. After the user's expression that is inputting the text information is identified in the embodiment of the present invention, the text format corresponding to the recognized expression may be obtained according to the mapping relationship between the preset, different expressions and different text formats.

例如, 本发明实施例中摄像装置识别的用户 A的表情为笑脸表情, 则可 选择字体为方正书体、 字体颜色为黄色和字号大小为四号的文本格式。  For example, in the embodiment of the present invention, the expression of the user A recognized by the camera device is a smiley face expression, and the text format in which the font is a square book body, the font color is yellow, and the font size is four.

S305: 将用户输入的文本信息的文本格式修改为获取的文本格式, 并向 用户 B发送修改后的文本信息。  S305: Modify the text format of the text information input by the user to the obtained text format, and send the modified text information to the user B.

具体的, 本发明实施例中可将用户输入的文本信息 "我们分手吧" 的文 本格式修改为字体为方正书体、 字体颜色为黄色和字号大小为四号的文本格 式, 然后发送修改后的文本信息。  Specifically, in the embodiment of the present invention, the text format of the text information "we break up" input by the user may be modified into a text format in which the font is a square book body, the font color is yellow, and the font size is four, and then the modified text is sent. Text information.

需要说明的是, 本发明实施例中在执行 S303后, 还可利用声音釆集装置 获取用户 A的语音信息,对 S303中确定的表情进行校正,得到校正后的表情, 并将校正后的表情, 作为用户的表情。  It should be noted that, after performing S303 in the embodiment of the present invention, the voice information of the user A may be acquired by using the voice collection device, the expression determined in S303 is corrected, the corrected expression is obtained, and the corrected expression is obtained. , as the user's expression.

进一步需要说明的是, 本发明实施例上述通过附加表情符号和修改文本 信息的文本格式两种处理方式, 可以单独使用也可结合使用, 例如本发明实 施例中可将两种方式结合使用, 对文本信息附加表情符号并修改文本格式, 则发送的文本信息则可为 "我们分手吧, ΛΛ" , 其中, 字体为方正书体、 字 体颜色为黄色和字号大小为四号。 户面部图像, 识别得到用户的表情, 根据不同表情和文本格式之间的对应关 系, 得到识别的用户的表情对应的文本格式, 并对待发送的文本信息进行相 应文本格式修改, 即将用户输入的文本信息的文本格式处理为能够表达用户 的表情的文本格式, 使得发送的文本信息能够表达用户的情绪, 通过文本信 息与情绪的结合, 能够较为清楚的表达用户发送的文本信息的语义, 提高信 息表达的准确度。 It should be further noted that, in the embodiment of the present invention, the two methods of processing the text format by adding an emoticon and modifying the text information may be used alone or in combination. For example, in the embodiment of the present invention, the two methods may be used in combination. Text information is attached to the emoji and the text format is modified. The text information sent can be "We break up, Λ - Λ ", where the font is a square book body, the font color is yellow, and the font size is four. The facial image of the user is recognized, and the user's expression is recognized. According to the correspondence between the different expressions and the text format, the text format corresponding to the recognized user's expression is obtained, and the text information to be sent is modified by the corresponding text format, that is, the text input by the user The text format of the information is processed into a text format capable of expressing the user's expression, so that the sent text information can express the user's emotion. By combining the text information and the emotion, the semantics of the text information sent by the user can be clearly expressed, and the information expression can be improved. Accuracy.

本发明的再一实施例基于上述以修改文本信息的文本格式进行文本信息 发送的方法, 以目标接收方执行应用文本信息进行通信的方法为例进行说明, 本发明实施例以用户 A向用户 B发送 "我们分手吧", 用户 B接收该文本信 息的处理过程进行说明, 具体实现过程如图 5所示: In another embodiment of the present invention, the method for transmitting text information by modifying the text format of the text information is described as an example of a method in which the target receiving party executes the application text information for communication. In the embodiment of the present invention, the user A sends a message "We break up" to the user B, and the process of the user B receiving the text information is described. The specific implementation process is as shown in FIG. 5:

S401 : 用户 B接收用户 A发送的文本信息。  S401: User B receives the text information sent by User A.

本发明实施例中, 用户 B接收到用户 A发送的文本信息内容为 "我们分 手吧,,。  In the embodiment of the present invention, user B receives the content of the text information sent by user A as "we break up,".

S402: 解析接收到的文本信息的文本格式。  S402: Parse the text format of the received text information.

具体的, 本发明实施例中解析得到的文本信息的文本格式为字体为方正 书体、 字体颜色为黄色和字号大小为四号。  Specifically, the text format of the text information parsed in the embodiment of the present invention is that the font is a square book body, the font color is yellow, and the font size is four.

S403 : 根据不同表情与不同文本格式之间的映射关系, 获取与文本格式 对应的表情。  S403: Acquire an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats.

本发明实施例中预设不同表情与不同文本格式之间的映射关系, 例如高 兴、 愉快等表情与字体为方正书体、 字体颜色为黄色和字号大小为四号的文 本格式相对应; 愤怒、 伤心等表情与字体为黑体、 字体颜色为红色和字号大 小为三号的文本格式相对应。  In the embodiment of the present invention, a mapping relationship between different expressions and different text formats is preset, for example, a happy, happy, and the like corresponds to a text format in which the font is a square body, the font color is yellow, and the font size is a fourth size; Expressions such as sadness correspond to text formats in which the font is bold, the font color is red, and the font size is number 3.

本发明实施例中解析得到接收的文本信息的文本格式后, 可根据预设的、 不同表情与不同文本格式之间的映射关系, 得到与当前解析得到的文本格式 对应的表情。  After the text format of the received text information is parsed in the embodiment of the present invention, the expression corresponding to the currently parsed text format may be obtained according to a mapping relationship between the preset and different expressions and different text formats.

具体的, 本发明实施例中与字体为方正书体、 字体颜色为黄色和字号大 小为四号的文本格式对应的表情为高兴的表情。  Specifically, in the embodiment of the present invention, the expression corresponding to the text format in which the font is a square font, the font color is yellow, and the font size is four, is a happy expression.

S404: 根据表情, 调用用以表征该表情的表情符号。  S404: According to the expression, an emoticon for characterizing the expression is called.

具体的, 本发明实施例中用以表征识别的表情的表情符号可包括表情图 片、 符号组合和表情动画中的至少一种。  Specifically, the emoticon used to represent the recognized expression in the embodiment of the present invention may include at least one of an emoticon, a symbol combination, and an emoticon.

本发明实施例中发送的表情符号不同可釆用不同的调用方式, 例如表情 符号为表情图片和表情动画, 则本发明实施例中可从表情图片数据库中调用 与当前识别的表情相对应的表情图片作为所需的表情符号。 例如表情符号为 符号组合, 则本发明实施例中则可从符号数据库中调用相应的符号, 并组合 为表征当前识别的表情的表情符号。 具体的, 本发明实施例中 S403 中得到的表情为高兴, 则可调用 "ΛΛ" 作为表情符号。 In the embodiment of the present invention, the emoticons sent in the embodiment of the present invention may use different calling modes, for example, the emoticons are emoticons and emoticons. In the embodiment of the present invention, the emoticons corresponding to the currently recognized emoticons may be called from the emoticon database. The picture serves as the desired emoji. For example, if the emoji is a symbol combination, in the embodiment of the present invention, the corresponding symbol can be called from the symbol database and combined into an emoji that represents the currently recognized expression. Specifically, the expression obtained in Examples S403 pleased embodiment of the present invention, may call - Λ" as emoticons.

S405: 显示接收到的文本信息和表情符号。  S405: Display the received text information and emoji.

具体的, 本发明实施例中在用户 Β侧显示的消息内容可以为 "我们分手 吧, ΛΛ" , 故用户 Β能够得知用户 Α是在开玩笑, 避免了误会。 本信息进行文本格式解析, 并根据解析到的文本格式, 得到消息发送方的表 情, 根据得到的用户表情调用相应的表情符号, 并显示相应的表情符号, 使 进而可以较为准确的表达消息发送方的表情, 提高信息表达的准确度。 Specifically, the content of the message displayed on the user side of the embodiment of the present invention may be "we break up, Λ - Λ ", so the user can know that the user is joking and avoids misunderstanding. The information is parsed in a text format, and according to the parsed text format, the expression of the sender of the message is obtained, and the corresponding emoticon is called according to the obtained user expression, and the corresponding emoticon is displayed, so that the sender of the message can be more accurately expressed. Expression, improve the accuracy of information expression.

基于上述实施例提供的应用文本信息进行通信的方法, 本发明实施例还 提供一种应用文本信息进行通信的装置 600, 如图 6A所示为本发明实施例提 供的应用文本信息进行通信的装置 600构成示意图, 图 6A中, 该装置包括获 取单元 601、 识别单元 602、 确定单元 603和发送单元 604, 其中,  The device for communicating by using the text information provided by the above embodiment, the embodiment of the present invention further provides a device 600 for applying text information for communication, and FIG. 6A is a device for communicating text information according to an embodiment of the present invention. 600 is a schematic diagram. In FIG. 6A, the apparatus includes an obtaining unit 601, an identifying unit 602, a determining unit 603, and a sending unit 604, where

获取单元 601 , 用于获取用户的面部图像。  The obtaining unit 601 is configured to acquire a facial image of the user.

识别单元 602 , 用于根据获取单元 601获取的面部图像, 识别得到用户的 表情。  The identifying unit 602 is configured to identify the expression of the user according to the facial image acquired by the obtaining unit 601.

确定单元 603 ,用于根据待发送的文本信息和识别单元 602识别得到的表 情, 确定表征表情的文本信息。  The determining unit 603 is configured to determine text information that represents the expression according to the text information to be sent and the expression recognized by the identifying unit 602.

发送单元 604 , 用于发送确定单元 603确定的表征表情的文本信息。 本发明上述实施例提供的应用文本信息进行通信的装置, 在第一种实现 方式中, 获取单元 601 , 还用于: 获取用户的语音信息。  The sending unit 604 is configured to send the text information that is determined by the determining unit 603 to represent the expression. In the first implementation manner, the acquiring unit 601 is further configured to: obtain voice information of the user.

其中, 识别单元 602 , 用于:  The identification unit 602 is configured to:

根据面部图像, 识别得到用户的初始表情;  Identifying the initial expression of the user based on the facial image;

根据语音信息, 对初始表情进行校正, 得到校正后的表情;  Correcting the initial expression according to the voice information, and obtaining the corrected expression;

将校正后的表情, 作为用户的表情。  The corrected expression is used as the user's expression.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第二种实现 方式中, 确定单元 603 , 用于: 在识别单元 602识别得到用户的表情后, 调用用以表征表情的表情符号; 发送单元 604 , 用于: In the second implementation manner, the determining unit 603 is configured to: After the recognition unit 602 recognizes the expression of the user, the emoticon used to represent the expression is called; the sending unit 604 is configured to:

发送表情符号和待发送的文本信息。  Send emoji and text information to be sent.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第三种实现 方式中, 确定单元 603 , 用于:  In the third implementation manner, the determining unit 603 is configured to:

在识别单元 602识别得到用户的表情后, 根据不同表情与不同文本格式 之间的映射关系, 获取与识别的表情对应的文本格式, 并将待发送的文本信 息的文本格式修改为获取的文本格式。  After the recognition unit 602 recognizes the expression of the user, according to the mapping relationship between different expressions and different text formats, the text format corresponding to the recognized expression is obtained, and the text format of the text information to be sent is modified into the acquired text format. .

发送单元 604 , 用于:  The sending unit 604 is configured to:

发送修改后的文本信息。  Send the modified text information.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第四种实现 方式中, 确定单元 603 , 用于:  In the fourth implementation manner, the determining unit 603 is configured to:

在识别单元 602识别得到用户的表情后, 调用用以表征表情的表情符号, 以及根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的文本格式。  After the recognition unit 602 recognizes the expression of the user, the emoticon used to represent the expression is invoked, and according to the mapping relationship between the different expressions and the different text formats, the text format corresponding to the recognized expression is obtained, and the text to be sent is acquired. The text format of the information is modified to the obtained text format.

发送单元 604 , 用于发送表情符号和修改后的文本信息。  The sending unit 604 is configured to send the emoticon and the modified text information.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第五种实现 方式中, 确定单元 603 , 用于: 将表情符号, 附加到文本信息中。  In the fifth implementation manner, the determining unit 603 is configured to: add an emoticon to the text information.

发送单元 604 , 用于: 发送附加了表情符号的文本信息。  The sending unit 604 is configured to: send the text information with the emoticon attached.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第六种实现 方式中, 确定单元 603 , 用于:  In the sixth implementation manner, the determining unit 603 is configured to:

确定表征表情的文本信息之前, 确定用户在设定时长内未输入文本信息。 本发明上述实施例提供的应用文本信息进行通信的装置, 还包括检测单 元 605和启动单元 606 , 如图 6B所示, 其中,  Before determining the text information characterizing the expression, it is determined that the user has not entered the text information within the set length of time. The device for communicating the application text information provided by the foregoing embodiment of the present invention further includes a detecting unit 605 and a starting unit 606, as shown in FIG. 6B, wherein

检测单元 605 , 用于检测预置的、 用以对待发送的文本信息进行处理的开 启控件的开启状态。  The detecting unit 605 is configured to detect an open state of the preset open control for processing the text information to be sent.

启动单元 606 , 用于在检测单元 605检测到预置的、用以对待发送的文本 信息进行处理的开启控件开启时, 启动用以获取用户面部图像的摄像装置; 相应的, 获取单元 601 , 用于: 通过启动的摄像装置, 获取用户的面部图 像。 The starting unit 606 is configured to detect, in the detecting unit 605, the preset text to be sent When the opening control of the information processing is turned on, the image capturing device for acquiring the image of the user's face is activated. Correspondingly, the obtaining unit 601 is configured to: acquire the facial image of the user by the activated imaging device.

本发明上述实施例提供的应用文本信息进行通信的装置, 在第八种实现 方式中, 确定单元 603调用的表情符号包括表情图片、 符号组合和表情动画中 的至少一种。  In the eighth implementation manner, the emoticon called by the determining unit 603 includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.

本发明实施例图 6A和图 6B所示的装置 ,可用来执行图 1至图 4所示的方法, 对于本发明实施例中对于图 6A和图 6B所示的装置的相关描述不够详尽的地 方, 可参阅对图 1至图 4的相关描述, 在此不再赘述。  The apparatus shown in FIG. 6A and FIG. 6B can be used to perform the method shown in FIG. 1 to FIG. 4, which is not detailed enough for the related description of the apparatus shown in FIG. 6A and FIG. 6B in the embodiment of the present invention. For reference, refer to the related description of FIG. 1 to FIG. 4, and details are not described herein again.

本发明实施例提供的应用文本信息进行通信的装置, 通过获取得到的用 户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准确的表达 用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信息能够表 达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送 的文本信息的语义, 提高信息表达的准确度。  The device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.

基于上述实施例提供的应用文本信息进行通信的装置 600, 本发明实施例 还提供了一种应用文本信息进行通信的装置 700, 如图 7A所示, 该装置包括发 射器 701、处理器 702、存储器 703、总线 704和输入设备 705 ,其中,发射器 701、 存储器 703和输入设备 705均通过总线 704与处理器 702连接, 其中,  The apparatus 600 for communicating by using the text information provided by the foregoing embodiment, the embodiment of the present invention further provides an apparatus 700 for applying text information for communication. As shown in FIG. 7A, the apparatus includes a transmitter 701, a processor 702, and a memory 703, a bus 704, and an input device 705, wherein the transmitter 701, the memory 703, and the input device 705 are both connected to the processor 702 via a bus 704, where

存储器 703 , 用于存储处理器 702执行的程序代码。  The memory 703 is configured to store program code executed by the processor 702.

输入设备 705 , 用于获取用户的面部图像。 具体地, 用于获取用户面部图 像的输入设备 705可为摄像头或影像撷取装置。  The input device 705 is configured to acquire a facial image of the user. Specifically, the input device 705 for acquiring a facial image of the user may be a camera or an image capturing device.

处理器 702,用于调用存储器 703存储的程序以及输入设备 705获取的面 部图像, 根据调用的面部图像, 识别得到用户的表情, 并根据待发送的文本 信息和表情, 确定表征表情的文本信息。  The processor 702 is configured to call the program stored in the memory 703 and the face image acquired by the input device 705, identify the user's expression according to the called facial image, and determine the text information representing the expression according to the text information and the expression to be sent.

发射器 701 , 用于发送表征表情的文本信息。  The transmitter 701 is configured to send text information that represents the expression.

本发明实施例中, 处理器 702可以在单芯片、 多芯片或多个电子元件上 实现, 并可釆用多种体系结构, 包括专用或嵌入式处理器、 专用处理器和控 制器等。 In the embodiment of the present invention, the processor 702 can be on a single chip, multiple chips, or multiple electronic components. Implementation, and can use a variety of architectures, including dedicated or embedded processors, dedicated processors and controllers.

存储器 703可操作的连接到处理器 702上, 包括只读存储器(ROM )、 随 机存取存储器 (RAM )或硬盘驱动器等, 信息也可以驻留在可移动存储介质 上并在需要时加载或安装到应用文本信息进行通信的装置 600上, 可移动存 储介质包括例如存储卡、 软盘、 磁带、 以及网络组件。  The memory 703 is operatively coupled to the processor 702, including read only memory (ROM), random access memory (RAM), or a hard drive, etc., and the information may reside on a removable storage medium and loaded or installed as needed. To the device 600 for applying textual information for communication, the removable storage medium includes, for example, a memory card, a floppy disk, a magnetic tape, and a network component.

输入设备 705可以是一个或多个, 并可与处理器 702等集成在一起或者 也可以是单独的外围设备( 例如, 扫描仪、 摄像头或扬声器等), 若输入设备 705为外围设备, 则可以通过有线连接( 例如电缆 /端口)或无线连接(例如蓝 牙)连接到处理器 702。  The input device 705 may be one or more, and may be integrated with the processor 702 or the like or may be a separate peripheral device (for example, a scanner, a camera or a speaker, etc.), if the input device 705 is a peripheral device, The processor 702 is connected by a wired connection (eg, a cable/port) or a wireless connection (eg, Bluetooth).

在第一种实现方式中, 输入设备 705还用于: 获取用户的语音信息; 具 体地, 用于获取用户语音信息的输入设备 705可为语音获取装置, 例如麦克 风等。  In the first implementation, the input device 705 is further configured to: obtain voice information of the user; specifically, the input device 705 for acquiring user voice information may be a voice acquiring device, such as a microphone or the like.

处理器 702可按照如下方式根据所述面部图像, 识别得到用户的表情: 根据面部图像, 识别得到用户的初始表情;  The processor 702 can identify the user's expression according to the facial image as follows: according to the facial image, the initial expression of the user is recognized;

根据语音信息, 对初始表情进行校正, 得到校正后的表情;  Correcting the initial expression according to the voice information, and obtaining the corrected expression;

将校正后的表情, 作为用户的表情。  The corrected expression is used as the user's expression.

在第二种实现方式中, 处理器 702 , 用于:  In a second implementation, the processor 702 is configured to:

在识别得到用户的表情后, 调用用以表征表情的表情符号。  After the user's expression is recognized, the emoticon used to represent the expression is called.

发射器 701 , 用于:  Transmitter 701 for:

发送待发送的文本信息和处理器调用的表情符号。  Send the text message to be sent and the emoticon called by the processor.

在第三种实现方式中, 处理器 702 , 用于:  In a third implementation, the processor 702 is configured to:

在识别得到用户的表情后, 根据不同表情与不同文本格式之间的映射关 系, 获取与识别的表情对应的文本格式;  After identifying the user's expression, according to the mapping relationship between different expressions and different text formats, obtaining a text format corresponding to the recognized expression;

将待发送的文本信息的文本格式修改为获取的文本格式。  Modify the text format of the text information to be sent to the obtained text format.

发射器 701 , 用于:  Transmitter 701 for:

发送修改后的文本信息。 在第四种实现方式中, 处理器 702 , 用于: Send the modified text information. In a fourth implementation, the processor 702 is configured to:

在识别得到用户的表情后, 调用用以表征表情的表情符号, 以及 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的文本格式。  After recognizing the user's expression, calling the emoticon used to represent the emoticon, and obtaining a text format corresponding to the recognized emoticon according to the mapping relationship between the different emoticons and the different text formats, and texting the text information to be sent The format is modified to the text format obtained.

发射器 701 , 用于:  Transmitter 701 for:

发送处理器调用的表情符号和处理器修改后的文本信息。  Send the emoticon called by the processor and the modified text information of the processor.

在第五种实现方式中, 处理器 702 , 用于:  In a fifth implementation, the processor 702 is configured to:

将表情符号, 附加到文本信息中;  Attach an emoji to the text message;

发射器 701 , 用于:  Transmitter 701 for:

发送附加了表情符号的文本信息。  Send a text message with an emoji attached.

在第六种实现方式中, 处理器 702 , 用于:  In a sixth implementation, the processor 702 is configured to:

确定表征表情的文本信息之前, 确定用户在设定时长内未输入文本信息。 结合上述任一种实现方式, 在第七种实现方式中, 处理器 702 , 用于检测 预置的、 用以对待发送的文本信息进行处理的开启控件的开启状态; 在检测 到预置的、 用以对待发送的文本信息进行处理的开启控件开启时, 启动用以 获取用户面部图像的输入设备; 通过启动的输入设备, 获取用户的面部图像。  Before determining the text information characterizing the expression, it is determined that the user has not entered the text information within the set length of time. In combination with any of the foregoing implementation manners, in a seventh implementation manner, the processor 702 is configured to detect a preset state of an open control for processing the text information to be sent, where the preset is detected, When the open control for processing the text information to be sent is turned on, the input device for acquiring the facial image of the user is activated; and the facial image of the user is acquired by the activated input device.

在第八种实现方式中, 处理器 702调用的表情符号包括表情图片、 符号组 合和表情动画中的至少一种。  In an eighth implementation, the emoticon invoked by the processor 702 includes at least one of an emoticon, a combination of symbols, and an emoticon.

本发明实施例图 7A和图 7B所示的装置 ,可用来执行图 1至图 4所示的方法, 对于本发明实施例中对于图 7A和图 7B所示的装置的相关描述不够详尽的地 方, 可参阅对图 1至图 4的相关描述, 在此不再赘述。  The apparatus shown in FIG. 7A and FIG. 7B can be used to perform the method shown in FIG. 1 to FIG. 4, which is not detailed enough for the related description of the apparatus shown in FIG. 7A and FIG. 7B in the embodiment of the present invention. For reference, refer to the related description of FIG. 1 to FIG. 4, and details are not described herein again.

本发明实施例提供的应用文本信息进行通信的装置, 通过获取得到的用 户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准确的表达 用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信息能够表 达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送 的文本信息的语义, 提高信息表达的准确度。 基于上述实施例中提供的应用文本信息进行通信的方法, 本发明实施例 还提供一种应用文本信息进行通信的装置 800 , 如图 8所示, 该装置包括接收 单元 801、 解析单元 802、 获取单元 803、 调用单元 804和显示单元 805 , 其 中, The device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression. The method for performing communication based on the application text information provided in the foregoing embodiment, the embodiment of the present invention further provides an apparatus 800 for applying text information for communication. As shown in FIG. 8, the apparatus includes a receiving unit 801, a parsing unit 802, and an acquisition. a unit 803, a calling unit 804, and a display unit 805, wherein

接收单元 801 , 用于接收文本信息。  The receiving unit 801 is configured to receive text information.

解析单元 802 , 用于解析接收单元 801接收的文本信息的文本格式。  The parsing unit 802 is configured to parse the text format of the text information received by the receiving unit 801.

获取单元 803 , 用于根据不同表情与不同文本格式之间的映射关系, 获取 与解析单元 802解析的文本格式对应的表情。  The obtaining unit 803 is configured to obtain an expression corresponding to the text format parsed by the parsing unit 802 according to a mapping relationship between different emoticons and different text formats.

调用单元 804 , 用于根据获取单元 803获取的表情, 调用用以表征获取单 元 803获取的表情的表情符号。  The calling unit 804 is configured to invoke an emoticon used to represent the expression acquired by the acquiring unit 803 according to the expression acquired by the obtaining unit 803.

显示单元 805 , 用于显示接收单元 801接收到的文本信息和调用单元 804 调用的表情符号。  The display unit 805 is configured to display the text information received by the receiving unit 801 and the emoticon called by the calling unit 804.

本发明实施例中调用单元 804调用的用以表征获取单元 803获取的表情 的表情符号包括表情图片、 符号组合和表情动画中的至少一种。  The emoticon called by the calling unit 804 to represent the expression acquired by the obtaining unit 803 in the embodiment of the present invention includes at least one of an emoticon picture, a symbol combination, and an emoticon animation.

本发明实施例图 8所示的装置, 可用来执行图 5所示的方法, 对于本发明 实施例中对于图 8所示的装置的相关描述不够详尽的地方, 可参阅对图 5的相 关描述, 在此不再赘述。  The device shown in FIG. 8 can be used to perform the method shown in FIG. 5. For the description of the device shown in FIG. 8 in the embodiment of the present invention, the related description of FIG. 5 can be referred to. , will not repeat them here.

本发明实施例提供的应用文本信息进行通信的装置, 通过获取得到的用 户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准确的表达 用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信息能够表 达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送 的文本信息的语义, 提高信息表达的准确度。  The device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.

基于上述实施例提供的应用文本信息进行通信的装置 800 , 本发明实施例 还提供一种应用文本信息进行通信的装置 900 , 如图 9所示, 该装置包括输出 设备 901、接收器 902、处理器 903、存储器 904和总线 905 ,其中,输出设备 901、 接收器 902、 处理器 903、 存储器 904均与总线 905连接, 其中, 存储器 904, 用于存储处理器 903执行的程序代码。 The device 800 for communicating by using the text information provided by the above embodiment, the embodiment of the present invention further provides a device 900 for applying text information for communication. As shown in FIG. 9, the device includes an output device 901, a receiver 902, and processing. The device 903, the memory 904, and the bus 905, wherein the output device 901, the receiver 902, the processor 903, and the memory 904 are all connected to the bus 905, where The memory 904 is configured to store program code executed by the processor 903.

接收器 902, 用于接收文本信息。  The receiver 902 is configured to receive text information.

处理器 903 , 用于调用存储器 904存储的程序, 解析接收器 902接收的文 本信息的文本格式; 根据不同表情与不同文本格式之间的映射关系, 获取与 文本格式对应的表情; 根据表情, 调用用以表征表情的表情符号。  The processor 903 is configured to call a program stored in the memory 904, parse the text format of the text information received by the receiver 902, and obtain an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats; An emoji used to characterize an expression.

输出设备 901 ,用于输出通过接收器 902接收的文本信息和处理器 903调 用的表情符号。  The output device 901 is configured to output text information received by the receiver 902 and an emoticon called by the processor 903.

本发明实施例中, 处理器 903 可以在单芯片、 多芯片或多个电子元件上 实现, 并可釆用多种体系结构, 包括专用或嵌入式处理器、 专用处理器和控 制器等。  In the embodiment of the present invention, the processor 903 can be implemented on a single chip, a multi-chip or a plurality of electronic components, and can adopt various architectures, including a dedicated or embedded processor, a dedicated processor, and a controller.

存储器 904可操作的连接到处理器 903上, 包括只读存储器 (ROM)、 随 机存取存储器 (RAM)或硬盘驱动器等, 信息也可以驻留在可移动存储介质上 并在需要时加载或安装到应用文本信息进行通信的装置 900上, 可移动存储 介质包括例如存储卡、 软盘、 磁带、 以及网络组件。  The memory 904 is operatively coupled to the processor 903, including a read only memory (ROM), a random access memory (RAM), or a hard drive, etc., and the information may also reside on a removable storage medium and be loaded or installed as needed. To the apparatus 900 for communicating text information, the removable storage medium includes, for example, a memory card, a floppy disk, a magnetic tape, and a network component.

输出设备 901 , 可操作地连接到处理器 903 , 用于输出接收器 902接收的 文本信息和处理器 903调用的表情符号, 以及处理器 903完成上述过程的各 种中间以及最终结果的输出。  An output device 901 is operatively coupled to the processor 903 for outputting text information received by the receiver 902 and emoticons invoked by the processor 903, and outputting various intermediate and final results of the process by the processor 903.

本发明实施例图 9所示的装置, 可用来执行图 5所示的方法, 对于本发明 实施例中对于图 9所示的装置的相关描述不够详尽的地方, 可参阅对图 5的相 关描述, 在此不再赘述。  The device shown in FIG. 9 of the embodiment of the present invention can be used to perform the method shown in FIG. 5. For the description of the device shown in FIG. 9 in the embodiment of the present invention, the relevant description of FIG. , will not repeat them here.

本发明实施例提供的应用文本信息进行通信的装置, 通过获取得到的用 户面部图像, 得到用户的表情, 并根据得到的用户表情和待发送的文本信息, 确定并发送表征用户表情的文本信息, 由于用户的表情能够较为准确的表达 用户当前的情绪, 故通过本发明使得发送的表征用户表情的文本信息能够表 达用户的情绪, 通过文本信息与情绪的结合, 能够较为清楚的表达用户发送 的文本信息的语义, 提高信息表达的准确度。  The device for transmitting text by using the text information provided by the embodiment of the present invention obtains the facial expression of the user by obtaining the facial image of the user, and determines and sends the text information representing the expression of the user according to the obtained user expression and the text information to be sent. Since the user's expression can express the user's current emotion more accurately, the text information representing the user's expression can be sent to express the user's emotion through the invention, and the text sent by the user can be clearly expressed through the combination of the text information and the emotion. The semantics of information, improve the accuracy of information expression.

本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的形式。 Those skilled in the art will appreciate that embodiments of the invention may be provided as a method, system, or Computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.

本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流程 和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通 过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步 骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 脱离本发明实施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变 型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些 改动和变型在内。 Although the preferred embodiment of the invention has been described, it will be apparent to those skilled in the art that, Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and The spirit and scope of the embodiments of the present invention are departed. Thus, if the modifications and variations of the embodiments of the invention are within the scope of the claims and the equivalents thereof, the invention Changes and variants.

Claims

权 利 要 求 Rights request 1、 一种应用文本信息进行通信的方法, 其特征在于, 包括:  A method for applying text information for communication, comprising: 获取用户的面部图像;  Obtaining a facial image of the user; 根据所述面部图像, 识别得到用户的表情;  Identifying an expression of the user according to the facial image; 根据所述表情和待发送的文本信息, 确定并发送表征所述表情的文本信 息。  Based on the expression and the text information to be transmitted, text information characterizing the expression is determined and transmitted. 2、 如权利要求 1所述的方法, 其特征在于, 该方法还包括:  2. The method of claim 1, wherein the method further comprises: 获取用户的语音信息;  Obtain the voice information of the user; 根据所述面部图像, 识别得到用户的表情, 包括:  Identifying the user's expression based on the facial image includes: 根据所述面部图像, 识别得到用户的初始表情;  Identifying an initial expression of the user according to the facial image; 根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。  And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression. 3、 如权利要求 1或 2所述的方法, 其特征在于, 根据所述表情和待发送 的文本信息, 确定并发送表征所述表情的文本信息, 包括:  The method according to claim 1 or 2, wherein determining and transmitting the text information characterizing the expression according to the expression and the text information to be sent includes: 调用用以表征所述表情的表情符号;  Calling an emoticon to characterize the expression; 发送所述表情符号和所述待发送的文本信息。  Sending the emoticon and the text information to be sent. 4、 如权利要求 1或 2所述的方法, 其特征在于, 根据所述表情和待发送 的文本信息, 确定并发送表征所述表情的文本信息, 包括:  The method according to claim 1 or 2, wherein determining and transmitting the text information characterizing the expression according to the expression and the text information to be sent includes: 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式;  Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats; 将待发送的文本信息的文本格式修改为获取的所述文本格式, 并发送修 改后的文本信息。  The text format of the text information to be transmitted is modified to the obtained text format, and the modified text information is sent. 5、 如权利要求 1或 2所述的方法, 其特征在于, 根据所述表情和待发送 的文本信息, 确定并发送表征所述表情的文本信息, 包括:  The method according to claim 1 or 2, wherein determining and transmitting the text information characterizing the expression according to the expression and the text information to be sent includes: 调用用以表征所述表情的表情符号, 以及  Calling an emoji to characterize the expression, and 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式; According to the mapping relationship between different expressions and different text formats, obtaining and corresponding to the recognized expression Text format; 将待发送的文本信息的文本格式修改为获取的所述文本格式, 并发送所 述表情符号和修改后的文本信息。  The text format of the text information to be transmitted is modified to the obtained text format, and the emoticon and the modified text information are transmitted. 6、 如权利要求 1至 5任一项所述的方法, 其特征在于, 确定表征所述表 情的文本信息之前, 还包括:  The method according to any one of claims 1 to 5, characterized in that, before determining the text information characterizing the expression, the method further comprises: 确定用户在设定时长内未输入文本信息。  Make sure the user has not entered text information for the set length of time. 7、 一种应用文本信息进行通信的方法, 其特征在于, 包括:  7. A method for applying text information for communication, comprising: 接收文本信息;  Receiving text information; 解析所述文本信息的文本格式;  Parsing the text format of the text information; 根据不同表情与不同文本格式之间的映射关系, 获取与所述文本格式对 应的表情;  Obtaining an expression corresponding to the text format according to a mapping relationship between different expressions and different text formats; 根据所述表情, 调用用以表征所述表情的表情符号;  Decrypting an emoticon to characterize the expression according to the expression; 显示接收到的文本信息和所述表情符号。  The received text information and the emoji are displayed. 8、 一种应用文本信息进行通信的装置, 其特征在于, 包括获取单元、 识 别单元、 确定单元和发送单元, 其中,  A device for transmitting text information, comprising: an obtaining unit, an identifying unit, a determining unit, and a sending unit, wherein 所述获取单元, 用于获取用户的面部图像;  The acquiring unit is configured to acquire a facial image of the user; 所述识别单元, 用于根据所述获取单元获取的所述面部图像, 识别得到 用户的表情;  The identifying unit is configured to identify an expression of the user according to the facial image acquired by the acquiring unit; 所述确定单元, 用于根据待发送的文本信息和所述识别单元识别得到的 所述表情, 确定表征所述表情的文本信息;  The determining unit is configured to determine, according to the text information to be sent and the expression recognized by the identifying unit, text information that represents the expression; 所述发送单元, 用于发送所述确定单元确定的表征所述表情的文本信息。 The sending unit is configured to send text information that is determined by the determining unit and that represents the expression. 9、 如权利要求 8所述的装置, 其特征在于, 所述获取单元, 还用于: 获取用户的语音信息; The device according to claim 8, wherein the acquiring unit is further configured to: acquire voice information of the user; 所述识别单元, 用于:  The identification unit is configured to: 根据所述面部图像, 识别得到用户的初始表情;  Identifying an initial expression of the user according to the facial image; 根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。 And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression. 10、 如权利要求 8或 9所述的装置, 其特征在于, 所述确定单元, 用于: 在所述识别单元识别得到用户的表情后, 调用用以表征所述表情的表情 符号; The device according to claim 8 or 9, wherein the determining unit is configured to: after the recognition unit recognizes the expression of the user, invoke an emoticon to represent the expression; 所述发送单元, 用于:  The sending unit is configured to: 发送所述表情符号和待发送的文本信息。  Sending the emoji and text information to be sent. 11、 如权利要求 8或 9所述的装置, 其特征在于, 所述确定单元, 用于: 在所述识别单元识别得到用户的表情后, 根据不同表情与不同文本格式 之间的映射关系, 获取与识别的表情对应的文本格式, 并将待发送的文本信 息的文本格式修改为获取的所述文本格式;  The device according to claim 8 or 9, wherein the determining unit is configured to: after the recognition unit identifies the user's expression, according to a mapping relationship between different expressions and different text formats, Obtaining a text format corresponding to the recognized expression, and modifying a text format of the text information to be sent into the obtained text format; 所述发送单元, 用于:  The sending unit is configured to: 发送修改后的文本信息。  Send the modified text information. 12、 如权利要求 8或 9所述的装置, 其特征在于, 所述确定单元, 用于: 在所述识别单元识别得到用户的表情后, 调用用以表征所述表情的表情 符号, 以及  The device according to claim 8 or 9, wherein the determining unit is configured to: after the recognition unit recognizes the expression of the user, invoke an emoticon to represent the expression, and 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的所述文本格式; 所述发送单元, 用于发送所述表情符号和修改后的文本信息。  Obtaining a text format corresponding to the recognized expression according to a mapping relationship between different expressions and different text formats, and modifying a text format of the text information to be sent into the obtained text format; the sending unit is configured to send The emoji and the modified text information. 13、如权利要求 8至 12任一项所述的装置,其特征在于, 所述确定单元, 用于:  The device according to any one of claims 8 to 12, wherein the determining unit is configured to: 确定表征所述表情的文本信息之前, 确定用户在设定时长内未输入文本 信息。  Before determining the textual information characterizing the expression, it is determined that the user has not entered the text information for the set length of time. 14、 一种应用文本信息进行通信的装置, 其特征在于, 包括接收单元、 解析单元、 获取单元、 调用单元和显示单元, 其中,  14. An apparatus for applying text information for communication, comprising: a receiving unit, a parsing unit, an obtaining unit, a calling unit, and a display unit, wherein 所述接收单元, 用于接收文本信息;  The receiving unit is configured to receive text information; 所述解析单元, 用于解析所述接收单元接收的所述文本信息的文本格式; 所述获取单元, 用于根据不同表情与不同文本格式之间的映射关系, 获 取与所述解析单元解析的所述文本格式对应的表情; 所述调用单元, 用于根据所述获取单元获取的所述表情, 调用用以表征 所述表情的表情符号; The parsing unit is configured to parse a text format of the text information received by the receiving unit, and the acquiring unit is configured to obtain, according to a mapping relationship between different emoticons and different text formats, parsing with the parsing unit An expression corresponding to the text format; The calling unit is configured to invoke an emoticon to represent the expression according to the expression acquired by the acquiring unit; 所述显示单元, 用于显示所述接收单元接收到的文本信息和所述调用单 元调用的所述表情符号。  The display unit is configured to display text information received by the receiving unit and the emoticon called by the calling unit. 15、 一种应用文本信息进行通信的装置, 其特征在于, 包括输入设备、 发射器、 处理器、 存储器和总线, 其中, 所述输入设备、 所述发射器、 所述 存储器均通过所述总线与所述处理器连接, 其中,  15. An apparatus for communicating text information, comprising: an input device, a transmitter, a processor, a memory, and a bus, wherein the input device, the transmitter, and the memory pass through the bus Connected to the processor, wherein 所述存储器, 用于存储所述处理器执行的程序代码;  The memory is configured to store program code executed by the processor; 所述输入设备, 用于获取用户的面部图像;  The input device is configured to acquire a facial image of the user; 所述处理器, 用于调用所述存储器存储的程序以及所述输入设备获取的 面部图像, 根据所述面部图像, 识别得到用户的表情, 并根据待发送的文本 信息和所述表情, 确定表征所述表情的文本信息;  The processor is configured to invoke a program stored in the memory and a facial image acquired by the input device, identify an expression of the user according to the facial image, and determine a representation according to the text information to be sent and the expression Text information of the expression; 所述发射器, 用于发送表征所述表情的文本信息。  The transmitter is configured to send text information that characterizes the expression. 16、 如权利要求 15所述的装置, 其特征在于, 所述输入设备还用于: 获取用户的语音信息;  The device of claim 15, wherein the input device is further configured to: acquire voice information of the user; 所述处理器用于按照如下方式根据所述面部图像, 识别得到用户的表情: 根据所述面部图像, 识别得到用户的初始表情;  The processor is configured to: according to the facial image, identify an expression of the user: according to the facial image, identify an initial expression of the user; 根据所述语音信息, 对所述初始表情进行校正, 得到校正后的表情; 将所述校正后的表情, 作为用户的表情。  And correcting the initial expression according to the voice information to obtain a corrected expression; and using the corrected expression as a user's expression. 17、 如权利要求 15或 16所述的装置, 其特征在于, 所述处理器, 用于: 在识别得到用户的表情后, 调用用以表征所述表情的表情符号; 所述发射器, 用于:  The device according to claim 15 or 16, wherein the processor is configured to: after identifying the expression of the user, invoke an emoticon to represent the expression; In: 发送待发送的文本信息和所述处理器调用的所述表情符号。  Sending text information to be sent and the emoticon called by the processor. 18、 如权利要求 15或 16所述的装置, 其特征在于, 所述处理器, 用于: 在识别得到用户的表情后, 根据不同表情与不同文本格式之间的映射关 系, 获取与识别的表情对应的文本格式;  The device according to claim 15 or 16, wherein the processor is configured to: after identifying the user's expression, acquiring and identifying according to a mapping relationship between different expressions and different text formats The text format corresponding to the expression; 将待发送的文本信息的文本格式修改为获取的所述文本格式; 所述发射器, 用于: Modifying a text format of the text information to be sent into the obtained text format; The transmitter is configured to: 发送修改后的文本信息。  Send the modified text information. 19、 如权利要求 15或 16所述的装置, 其特征在于, 所述处理器, 用于: 在识别得到用户的表情后, 调用用以表征所述表情的表情符号, 以及 根据不同表情与不同文本格式之间的映射关系, 获取与识别的表情对应 的文本格式, 并将待发送的文本信息的文本格式修改为获取的所述文本格式; 所述发射器, 用于:  The device according to claim 15 or 16, wherein the processor is configured to: after identifying the expression of the user, invoke an emoticon to represent the expression, and different according to different expressions a mapping relationship between the text formats, obtaining a text format corresponding to the recognized expression, and modifying a text format of the text information to be sent into the obtained text format; the transmitter, configured to: 发送所述处理器调用的表情符号和所述处理器修改后的文本信息。  Sending an emoticon called by the processor and the modified text information of the processor. 20、 如权利要求 15至 19任一项所述的装置, 其特征在于, 所述处理器, 用于:  The device according to any one of claims 15 to 19, wherein the processor is configured to: 确定表征所述表情的文本信息之前, 确定用户在设定时长内未输入文本 信息。  Before determining the textual information characterizing the expression, it is determined that the user has not entered the text information for the set length of time. 21、 一种应用文本信息进行通信的装置, 其特征在于, 包括输出设备、 接收器、 处理器、 存储器和总线, 其中, 所述输出设备、 所述接收器、 所述 处理器、 所述存储器均与所述总线连接, 其中,  21. An apparatus for communicating text information, comprising: an output device, a receiver, a processor, a memory, and a bus, wherein the output device, the receiver, the processor, the memory Connected to the bus, wherein 所述存储器, 用于存储所述处理器执行的程序代码;  The memory is configured to store program code executed by the processor; 所述接收器, 用于接收文本信息;  The receiver is configured to receive text information; 所述处理器, 用于调用所述存储器存储的程序, 解析所述接收器接收的 所述文本信息的文本格式; 根据不同表情与不同文本格式之间的映射关系, 获取与所述文本格式对应的表情; 根据所述表情, 调用用以表征所述表情的 表情符号;  The processor is configured to invoke a program stored in the memory, parse a text format of the text information received by the receiver, and acquire a mapping corresponding to the text format according to a mapping relationship between different expressions and different text formats. An expression; an emoticon for characterizing the expression is invoked according to the expression; 所述输出设备, 用于输出所述接收器接收的文本信息和所述处理器调用 的表情符号。  The output device is configured to output text information received by the receiver and an emoticon called by the processor.
PCT/CN2014/078161 2014-05-22 2014-05-22 Method and apparatus for communication by using text information Ceased WO2015176287A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/078161 WO2015176287A1 (en) 2014-05-22 2014-05-22 Method and apparatus for communication by using text information
CN201480001757.0A CN104412258A (en) 2014-05-22 2014-05-22 Method and device for communication using text information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/078161 WO2015176287A1 (en) 2014-05-22 2014-05-22 Method and apparatus for communication by using text information

Publications (1)

Publication Number Publication Date
WO2015176287A1 true WO2015176287A1 (en) 2015-11-26

Family

ID=52648743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078161 Ceased WO2015176287A1 (en) 2014-05-22 2014-05-22 Method and apparatus for communication by using text information

Country Status (2)

Country Link
CN (1) CN104412258A (en)
WO (1) WO2015176287A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830917A (en) * 2018-05-29 2018-11-16 努比亚技术有限公司 A kind of information generating method, terminal and computer readable storage medium
WO2023141887A1 (en) * 2022-01-27 2023-08-03 Oppo广东移动通信有限公司 Semantic communication transmission method and terminal device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9288303B1 (en) 2014-09-18 2016-03-15 Twin Harbor Labs, LLC FaceBack—automated response capture using text messaging
KR20180068975A (en) * 2015-10-20 2018-06-22 소니 주식회사 Information processing system, and information processing method
CN105262676A (en) * 2015-10-28 2016-01-20 广东欧珀移动通信有限公司 Method and apparatus for transmitting message in instant messaging
CN105549841A (en) * 2015-12-02 2016-05-04 小天才科技有限公司 Voice interaction method, device and equipment
CN105871696B (en) * 2016-05-25 2020-02-18 维沃移动通信有限公司 A kind of information sending and receiving method and mobile terminal
CN106021599A (en) * 2016-06-08 2016-10-12 维沃移动通信有限公司 Emotion icon recommending method and mobile terminal
WO2018023578A1 (en) * 2016-08-04 2018-02-08 薄冰 Method for sending emoticon according to gesture, and emoticon system
CN108377418B (en) * 2018-02-06 2021-06-18 北京奇虎科技有限公司 A kind of video annotation processing method and device
CN108521369B (en) * 2018-04-03 2021-03-09 平安科技(深圳)有限公司 Information transmission method, receiving terminal device and sending terminal device
CN109361814A (en) * 2018-09-25 2019-02-19 联想(北京)有限公司 A kind of control method and electronic equipment
CN110166844B (en) * 2019-04-12 2022-05-31 北京搜狗科技发展有限公司 Data processing method and device for data processing
CN110597384A (en) * 2019-08-23 2019-12-20 苏州佳世达光电有限公司 Information communication method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110294525A1 (en) * 2010-05-25 2011-12-01 Sony Ericsson Mobile Communications Ab Text enhancement
US20120182211A1 (en) * 2011-01-14 2012-07-19 Research In Motion Limited Device and method of conveying emotion in a messaging application
CN103975322A (en) * 2011-11-16 2014-08-06 N·S·苏库普 A method for presenting emotion in text messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006330958A (en) * 2005-05-25 2006-12-07 Oki Electric Ind Co Ltd Image composition apparatus, communication terminal and image communication system using the apparatus, and chat server in the system
CN102955569B (en) * 2012-10-18 2016-03-23 北京天宇朗通通信设备股份有限公司 The method of Text Input and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110294525A1 (en) * 2010-05-25 2011-12-01 Sony Ericsson Mobile Communications Ab Text enhancement
US20120182211A1 (en) * 2011-01-14 2012-07-19 Research In Motion Limited Device and method of conveying emotion in a messaging application
CN103975322A (en) * 2011-11-16 2014-08-06 N·S·苏库普 A method for presenting emotion in text messages

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830917A (en) * 2018-05-29 2018-11-16 努比亚技术有限公司 A kind of information generating method, terminal and computer readable storage medium
CN108830917B (en) * 2018-05-29 2023-04-18 努比亚技术有限公司 Information generation method, terminal and computer readable storage medium
WO2023141887A1 (en) * 2022-01-27 2023-08-03 Oppo广东移动通信有限公司 Semantic communication transmission method and terminal device

Also Published As

Publication number Publication date
CN104412258A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
WO2015176287A1 (en) Method and apparatus for communication by using text information
CN112331193B (en) Voice interaction method and related device
CN110730952B (en) Method and system for handling audio communications over a network
EP2175647B1 (en) Apparatus and method for providing emotion expression service in mobile communication terminal
CN112154431B (en) Human-computer interaction method and electronic device
US9742710B2 (en) Mood information processing method and apparatus
US10270736B2 (en) Account adding method, terminal, server, and computer storage medium
KR101771071B1 (en) Communication method, client, and terminal
EP3122002A1 (en) Apparatus and method for reproducung handwritten message by using handwriting data
US9172795B1 (en) Phone call context setting
WO2019141084A1 (en) Virtual image-based video call method and device
CN105472771A (en) Wireless connection method and device
KR20150009186A (en) Method for operating an conversation service based on messenger, An user interface and An electronic device supporting the same
CN106128478A (en) Voice broadcast method and device
WO2018094911A1 (en) Multimedia file sharing method and terminal device
CN107910006A (en) Audio recognition method, device and multiple source speech differentiation identifying system
CN107872555A (en) Call recording method, device, terminal equipment and computer-readable storage medium
CN107483736A (en) Message processing method and device for instant messaging application program
CN108270661B (en) Information reply method, device and equipment
CN106547850A (en) Expression annotation method and device
CN106486117A (en) A kind of sharing files method and device
CN112863511B (en) Signal processing method, device and storage medium
JP2015060380A (en) Information terminal and information processing system
CN114093352A (en) Interactive method, device, electronic device and storage medium
CN118535286A (en) Operation sharing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14892659

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14892659

Country of ref document: EP

Kind code of ref document: A1