[go: up one dir, main page]

CN105871696A - Information transmitting and receiving methods and mobile terminal - Google Patents

Information transmitting and receiving methods and mobile terminal Download PDF

Info

Publication number
CN105871696A
CN105871696A CN201610356810.XA CN201610356810A CN105871696A CN 105871696 A CN105871696 A CN 105871696A CN 201610356810 A CN201610356810 A CN 201610356810A CN 105871696 A CN105871696 A CN 105871696A
Authority
CN
China
Prior art keywords
user
information
communication message
arranged code
emotion
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.)
Granted
Application number
CN201610356810.XA
Other languages
Chinese (zh)
Other versions
CN105871696B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610356810.XA priority Critical patent/CN105871696B/en
Publication of CN105871696A publication Critical patent/CN105871696A/en
Application granted granted Critical
Publication of CN105871696B publication Critical patent/CN105871696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种信息发送方法,包括:获取用户在编辑第一通讯消息时的情绪信息,获取预先保存的、与所述情绪信息对应的预设编码,将所述预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。本发明还公开了一种信息接收方法及移动终端。本发明公开的信息发送方法和信息接收方法,操作方便,解决了因表情信息的使用所造成的通讯不便的问题。

The invention discloses a method for sending information, which includes: obtaining emotional information of a user when editing a first communication message, obtaining a pre-saved preset code corresponding to the emotional information, combining the preset code with the edited The combination of the first communication messages is sent to the receiving end as the second communication information. The invention also discloses an information receiving method and a mobile terminal. The information sending method and the information receiving method disclosed by the invention are easy to operate and solve the problem of inconvenient communication caused by the use of expression information.

Description

一种信息发送、接收方法及移动终端Method for sending and receiving information and mobile terminal

技术领域technical field

本发明涉及通信技术领域,特别地,尤其涉及一种信息发送、接收方法及移动终端。The present invention relates to the technical field of communications, and in particular, to an information sending and receiving method and a mobile terminal.

背景技术Background technique

在以短信息、即时通讯以及Email等为媒介的沟通中,通常以文本形式为主。但文本形式比较抽象和乏味,在一些形象和需要感知的信息前,就会无能为例,比如无法很好的表达情绪、肢体语言等。In the communication through the medium of short message, instant messaging and Email, etc., the form of text is usually the main form. However, the text form is relatively abstract and boring. Before some images and information that needs to be perceived, it will be incompetent as an example, such as unable to express emotions and body language well.

针对这个问题,通常是发送者在信息中加入一些表情信息(包括文本表情和图片表情),用来比喻、意像自己想要表达的形象信息。但是这种方式有很多局限,比如:To solve this problem, the sender usually adds some emoticon information (including text emoticons and picture emoticons) in the message, which is used as a metaphor and imagery to express the image information he wants to express. But this method has many limitations, such as:

1.表情信息数量太多,寻找能够与用户当前实际表情相匹配的表情信息所花费的时间长;1. There are too many emoticon information, and it takes a long time to find emoticon information that can match the user's current actual emoticon;

2.操作复杂。需要不断的在输入文字与图像中切换;2. Complicated operation. It is necessary to constantly switch between input text and images;

3.成本高。图形信息数据量大,需要占用较多的网络资源;3. High cost. Graphical information has a large amount of data and needs to occupy more network resources;

上述这些问题都为通讯沟通造成了不便。These above-mentioned problems have all caused inconvenience for communication.

发明内容Contents of the invention

本发明实施例提供了一种信息发送、接收方法及移动终端,以解决通过现有技术的通讯过程中因表情信息的使用所造成的沟通不便的问题。Embodiments of the present invention provide a method for sending and receiving information and a mobile terminal to solve the problem of inconvenient communication caused by the use of expression information in the communication process of the prior art.

第一方面,提供了一种信息发送方法,应用于发送端,所述信息发送方法包括:In the first aspect, a method for sending information is provided, which is applied to a sending end, and the method for sending information includes:

获取用户在编辑第一通讯消息时的情绪信息;Obtaining the emotional information of the user when editing the first newsletter;

获取预先保存的、与所述情绪信息对应的预设编码;Obtaining a pre-saved preset code corresponding to the emotional information;

将所述预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。Combining the preset code and the edited first communication message into second communication information and sending it to the receiving end.

第二方面,提供了一种信息接收方法,应用于接收端,所述信息接收方法包括:In a second aspect, an information receiving method is provided, which is applied to a receiving end, and the information receiving method includes:

接收发送端所发送的第二通讯消息,其中,所述第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码;receiving the second communication message sent by the sending end, wherein the second communication message includes: the first communication message edited by the sending end user and the preset code corresponding to the emotional information of the sending end user;

获取与所述预设编码对应的、用于表征情绪的反馈信息,其中所述反馈信息包括:图像、声音和振动中的一种或多种;Acquire feedback information corresponding to the preset code and used to represent emotions, where the feedback information includes: one or more of images, sounds, and vibrations;

显示所述第二通讯消息和输出所述反馈信息。displaying the second communication message and outputting the feedback information.

第三方面,提供了一种移动终端,应用于发送端,所述移动终端包括:In a third aspect, a mobile terminal is provided, which is applied to a sending end, and the mobile terminal includes:

第一获取模块,用于获取用户在编辑第一通讯消息时的情绪信息;The first obtaining module is used to obtain the emotional information of the user when editing the first communication message;

第二获取模块,用于获取预先保存的、与所述第一获取模块获取的情绪信息对应的预设编码;The second acquisition module is used to acquire the pre-saved preset code corresponding to the emotional information acquired by the first acquisition module;

发送模块,用于将所述第二获取模块获取的预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。The sending module is configured to combine the preset code acquired by the second acquiring module and the edited first communication message into second communication information and send it to the receiving end.

第四方面,提供了一种移动终端,应用于接收端,所述移动终端包括:In a fourth aspect, a mobile terminal is provided, which is applied to a receiving end, and the mobile terminal includes:

接收模块,用于接收发送端所发送的第二通讯消息,其中,所述第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码;The receiving module is configured to receive the second communication message sent by the sending end, wherein the second communication message includes: the first communication message edited by the user at the sending end and the preset code corresponding to the emotional information of the user at the sending end;

第三获取模块,用于获取与所述第三获取模块获取的预设编码对应的、用于表征情绪的反馈信息,其中所述反馈信息包括:图像、声音和振动中的一种或多种;A third acquisition module, configured to acquire feedback information corresponding to the preset code acquired by the third acquisition module and used to represent emotions, wherein the feedback information includes: one or more of images, sounds and vibrations ;

处理模块,用于显示第一通讯消息和输出所述第三获取模块获取的反馈信息。A processing module, configured to display the first communication message and output the feedback information obtained by the third obtaining module.

这样,本发明实施例中,通过获取用户在编辑第一通讯消息时的情绪信息和与该情绪信息对应的预设编码,并将该预设编码与完成编辑的第一通讯消息组合为第二通讯消息发送至接收端,而接收端在接收到第二通讯消息后,获取与预设编码对应的、用于表征情绪的反馈信息,并输出该反馈信息,从而既使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小网络资源的占用,降低成本。进一步地,本发明实施例提供的技术方案,发送端能够自动获取用户情绪,并在接收端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。In this way, in the embodiment of the present invention, by obtaining the emotional information of the user when editing the first communication message and the preset code corresponding to the emotional information, and combining the preset code with the edited first communication message into a second The communication message is sent to the receiving end, and after receiving the second communication message, the receiving end obtains the feedback information corresponding to the preset code and used to represent the emotion, and outputs the feedback information, so that the user at the sending end can accurately express Expressing the inner emotions can also make the receiving end user understand the sending end user's emotion, ensuring accurate and effective communication, and the operation is simple, which facilitates the use of expression information. In addition, what the sender sends is a code corresponding to the user's emotion, rather than a real expression image. The amount of data is small, which can reduce the occupation of network resources and reduce costs. Further, in the technical solution provided by the embodiment of the present invention, the sending end can automatically obtain the user's emotions, and feed back the user's emotions at the sending end through some information at the receiving end, so the user does not need to manually input images representing emotions, and avoids the need to input text. The tedious operation of constantly switching between images.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1表示本发明第一实施例提供的信息发送方法的流程图;Fig. 1 shows the flowchart of the information sending method provided by the first embodiment of the present invention;

图2表示本发明第二实施例提供的信息发送方法的流程图;Fig. 2 shows the flowchart of the information sending method provided by the second embodiment of the present invention;

图3表示本发明第三实施例提供的信息接收方法的流程图;Fig. 3 shows the flowchart of the information receiving method provided by the third embodiment of the present invention;

图4表示本发明第三实施例提供的信息显示界面示意图;FIG. 4 shows a schematic diagram of an information display interface provided by a third embodiment of the present invention;

图5表示本发明第四实施例提供的移动终端的框图;FIG. 5 shows a block diagram of a mobile terminal provided by a fourth embodiment of the present invention;

图6表示本发明第四实施例提供的移动终端的另一框图;Fig. 6 shows another block diagram of the mobile terminal provided by the fourth embodiment of the present invention;

图7表示本发明第五实施例提供的移动终端的框图;FIG. 7 shows a block diagram of a mobile terminal provided by a fifth embodiment of the present invention;

图8表示本发明第六实施例提供的移动终端的框图;FIG. 8 shows a block diagram of a mobile terminal provided by a sixth embodiment of the present invention;

图9表示本发明第七实施例提供的移动终端的框图。Fig. 9 shows a block diagram of a mobile terminal provided by a seventh embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

第一实施例first embodiment

本发明实施例提供了一种信息发送方法,应用于发送端。如图1所示,该信息发送方法包括:An embodiment of the present invention provides an information sending method, which is applied to a sending end. As shown in Figure 1, the information sending method includes:

S101、获取用户在编辑第一通讯消息时的情绪信息。S101. Acquire emotional information of a user when editing a first communication message.

其中,所述情绪信息为能够反映用户情绪的信息,如通过人脸识别技术获取的用户面部图像等。第一通讯消息可以是短信息、即时通讯信息、Email信息或其他类同信息等。Wherein, the emotional information is information that can reflect the user's emotion, such as the user's facial image obtained through face recognition technology. The first communication message may be a short message, an instant messaging message, an Email message or other similar messages.

其中,情绪信息的获取可以是移动终端自动获取的,也可以是用户选择性的控制获取的。若是移动终端自动获取的,则情绪信息的获取过程一般从打开消息编辑界面开始,到点击信息发送键为止,或是打开消息编辑界面后,从启动输入法开始,到退出输入法为止,再或是从打开消息编辑界面开始,到退出消息编辑界面为止。具体情况可根据实际需求设计,本发明对此不进行限制,前述内容仅用于举例说明。若情绪信息时用户选择性获取的,可以是在用户想要发送表情图像至接收端时触发。The emotion information may be acquired automatically by the mobile terminal or selectively controlled by the user. If the mobile terminal automatically acquires, the acquisition process of emotional information generally starts from opening the message editing interface until clicking the message sending button, or after opening the message editing interface, starting from starting the input method until exiting the input method, or It starts from opening the message editing interface to exiting the message editing interface. The specific situation can be designed according to actual needs, and the present invention does not limit this, and the foregoing content is only for illustration. If the emotional information is selectively acquired by the user, it may be triggered when the user wants to send an emoticon image to the receiving end.

S102、获取预先保存的、与情绪信息对应的预设编码。S102. Obtain a pre-saved preset code corresponding to the emotion information.

其中,发送端的移动终端中,预先保存有与情绪信息对应的编码。例如,若情绪信息反映的用户情绪为笑,则对应该情绪的编码可以设置为“A”,若情绪信息还能反映出笑的程度,则可对笑的程度进行编码,如微笑对应的编码为“001”,大笑的编码为“002”,综上,与该情绪信息对应的编码则为“A001”或“A002”。上述提到的编码可根据实际需求设计,本发明实施例对此不进行限制。Wherein, the mobile terminal at the sending end stores codes corresponding to the emotion information in advance. For example, if the user's emotion reflected by the emotional information is laughter, the code corresponding to the emotion can be set to "A". If the emotional information can also reflect the degree of laughter, the degree of laughter can be coded, such as the code corresponding to is "001", and the code for laughing is "002". In summary, the code corresponding to the emotional information is "A001" or "A002". The aforementioned encoding may be designed according to actual requirements, which is not limited in this embodiment of the present invention.

S103、将预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。S103. Combine the preset code and the edited first communication message into second communication information and send it to the receiving end.

其中,在完成第一通讯消息的编辑后,将预设编码和完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。接收端在接收到第二通讯信息时,对第二通讯信息进行解析,解析出预设编码,并查找与该预设编码对应的用于表征情绪的反馈信息,该反馈信息中可包括:声音、图像以及振动中的一种或多种,以此用来反映出用户情绪。在查找到该反馈信息后进行输出,例如显示图像、播放声音或控制手机振动等。Wherein, after the editing of the first communication message is completed, the preset code and the edited first communication message are combined into the second communication information and sent to the receiving end. When the receiving end receives the second communication information, it analyzes the second communication information, parses out the preset code, and searches for the feedback information corresponding to the preset code for representing emotions. The feedback information may include: sound One or more of , images, and vibrations are used to reflect user emotions. Output after finding the feedback information, such as displaying an image, playing a sound, or controlling the vibration of the mobile phone.

综上,本发明实施例提供的信息发送方法,既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小对网络资源的占用,降低成本。进一步地,本发明实施例提供的技术方案,发送端能够自动获取用户情绪,并在接收端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。To sum up, the information sending method provided by the embodiment of the present invention can not only enable the user at the sending end to accurately express inner emotions, but also enable the user at the receiving end to clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and is easy to operate , which facilitates the use of emoticon information. In addition, what the sender sends is a code corresponding to the user's emotions, rather than real emoticon images. The amount of data is small, which can reduce the occupation of network resources and reduce costs. Further, in the technical solution provided by the embodiment of the present invention, the sending end can automatically obtain the user's emotions, and feed back the user's emotions at the sending end through some information at the receiving end, so the user does not need to manually input images representing emotions, and avoids the need to input text. The tedious operation of constantly switching between images.

第二实施例second embodiment

本发明实施例提供了一种信息发送方法,应用于发送端。如图2所示,该信息发送方法包括:An embodiment of the present invention provides an information sending method, which is applied to a sending end. As shown in Figure 2, the information sending method includes:

S201、采集用户在编辑第一通讯消息时的面部图像,然后进入203。S201. Collect the facial image of the user when editing the first communication message, and then go to S203.

其中,可通过移动终端的前置摄像头进行人脸识别,采集用户的面部图像。Among them, the face recognition can be performed through the front camera of the mobile terminal, and the user's face image can be collected.

在采集用户的面部图像前,可先判断当前环境是否可以进行正常识别。例如通过检测环境光线值是否大于或等于预设值,若大于或等于预设值,则获取用户在编辑第一通讯消息时的面部图像。其中,预设值为环境光线值处于光照强度适宜的一个数值,一般环境光线值大于或等于80lux即满足人脸识别要求。若环境光线值小于预设值,则可保持1min/次的频率,循环进行环境光识别。其中,可通过设置在移动终端上的光线传感器检测当前的环境光线值。Before collecting the user's facial image, it can be judged whether the current environment can be recognized normally. For example, by detecting whether the ambient light value is greater than or equal to the preset value, if it is greater than or equal to the preset value, the facial image of the user when editing the first communication message is obtained. Wherein, the default value is a value where the ambient light value is at a suitable light intensity, and generally the ambient light value is greater than or equal to 80 lux to meet the face recognition requirements. If the ambient light value is less than the preset value, the frequency of 1min/time can be maintained, and the ambient light recognition can be performed in a loop. Wherein, the current ambient light value can be detected by a light sensor arranged on the mobile terminal.

S202、获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,然后进入S204。S202. Obtain the pressing force value of the user's pressing force on the screen of the mobile terminal when editing the first communication message, and then proceed to S204.

其中,人在不同的情绪下,对屏幕的按压力度会有所不同,且同一种情绪的不同程度下,对屏幕的按压力度也会有所不同。因此,通过获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,可以进一步确定用户情绪的程度,以丰富用户情绪的表达。Wherein, people press the screen differently in different emotions, and the same emotion presses the screen differently in different degrees. Therefore, by acquiring the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, the degree of the user's emotion can be further determined, so as to enrich the expression of the user's emotion.

S203、根据面部图像,确定用于代表用户情绪的第一预设编码,然后进入S205。S203. According to the facial image, determine the first preset code used to represent the user's emotion, and then go to S205.

其中,可根据人脸识别技术,确定面部图像的人脸特征,根据人脸特征,确定用于代表用户情绪第一预设编码。其中,第一预设编码可根据实际需求设计,如,用户情绪为笑,则对应笑情绪的编码可以设置为“A”;用户情绪为怒,则对怒情绪的编码可以设置为“B”。Wherein, according to the face recognition technology, the facial features of the facial image can be determined, and according to the facial features, the first preset code used to represent the user's emotion can be determined. Wherein, the first preset code can be designed according to actual needs. For example, if the user’s emotion is laughing, the code corresponding to the laughing emotion can be set to “A”; .

其中,人在不同的情绪下,脸部会有不同的特征,因此通过对人脸特征进行分析,可识别用户情绪,例如,若人脸特征为笑肌明显拉伸、口轮匝肌拉伸、嘴角上扬、嘴唇张开等,则可认为用户为笑;若人脸特征在为降眉肌收缩、眉头皮肤产生褶皱等,则可认为用户情绪为怒。Among them, people have different facial features under different emotions. Therefore, by analyzing the facial features, the user's emotions can be identified. , the corners of the mouth are raised, and the lips are open, etc., it can be considered that the user is smiling; if the facial features are the constriction of the protruding muscle, wrinkles on the brow skin, etc., the user's emotion can be considered as anger.

进一步地,由于用户在编辑第一通讯消息时可能会产生不同的情绪,为提高确定情绪的准确性,本发明实施例可采集用户在编辑第一通讯消息时的一个或多个面部图像,然后识别每一面部图像对应的用户情绪,并记录每种用户情绪出现的次数,最后将出现次数最多的用户情绪对应的编码作为第一预设编码。其中,在通过前置摄像头进行人脸识别时,可保持3s/次的识别频率。Further, since the user may have different emotions when editing the first communication message, in order to improve the accuracy of determining the emotion, the embodiment of the present invention may collect one or more facial images of the user when editing the first communication message, and then Identify the user emotion corresponding to each facial image, and record the number of occurrences of each user emotion, and finally use the code corresponding to the user emotion with the largest number of occurrences as the first preset code. Among them, when performing face recognition through the front camera, the recognition frequency can be maintained at 3s/time.

S204、根据按压力度值,确定用于代表用户情绪的程度等级的第二预设编码,然后进入S205。S204. According to the pressure value, determine a second preset code used to represent the level of the user's emotion, and then proceed to S205.

其中,第二预设编码可根据实际需求设计,如,若用户情绪为笑情绪中的微笑,则对应微笑的编码可以设置为“001”;若用户情绪为笑情绪中的大笑,则对应微笑的编码可以设置为“002”。Wherein, the second preset code can be designed according to actual needs. For example, if the user’s emotion is a smile in a laughing emotion, the code corresponding to a smile can be set to “001”; if the user’s emotion is a big laugh in a laughing emotion, the corresponding The code of smile can be set as "002".

其中,根据按压力度值,确定用于代表用户情绪的程度等级的第二预设编码的实现过程可参考如下步骤:Wherein, according to the pressure value, the implementation process of determining the second preset code used to represent the level of the user's emotion can refer to the following steps:

步骤一、计算用户在编辑第一通讯消息时对移动终端屏幕的平均按压力度值。Step 1. Calculating the average pressing force value of the user on the screen of the mobile terminal when editing the first communication message.

也就是,记录在编辑第一通讯消息时,移动终端屏幕所受到的每一次按压力度值,并实时计算平均按压力度值。That is, when the first communication message is edited, each pressing pressure value received by the screen of the mobile terminal is recorded, and an average pressing pressure value is calculated in real time.

步骤二、计算平均按压力度值与总平均按压力度值的比值。Step 2, calculating the ratio of the average pressing pressure value to the total average pressing pressure value.

其中,总平均按压力度值为用户对移动终端的整个使用过程中,移动终端屏幕所受到的按压力的平均按压力度值。这里所述的用户对移动终端的整个使用过程可以理解为从移动终端屏幕受到第一次按压开始,到用户完成第一通讯消息的编辑为止。移动终端屏幕受到的按压次数越多,越可能趋近一比较的数值。Wherein, the total average pressing force value is an average pressing force value of the pressing force received by the screen of the mobile terminal during the entire use process of the mobile terminal by the user. The entire process of using the mobile terminal by the user described here can be understood as starting from the first press on the screen of the mobile terminal until the user finishes editing the first communication message. The more times the screen of the mobile terminal is pressed, the more likely it is to approach a comparative value.

步骤三、根据计算得到的比值,确定第二预设编码。Step 3: Determine the second preset code according to the calculated ratio.

根据平均按压力度值与总平均按压力度值的比值,可确定用于代表用户情绪程度等级的第二预设编码。例如,当比值处于[0.9,1.1)区间时(也可表示为百分数90%~110%,以下类同),在此之前确定用户情绪为笑,则可确定笑的程度等级为微笑;若比值处于[0.75,1.9)或[1.1,1.25)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为欢笑,若比值处于[0.5,0.75)或[1.25,1.5)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为大笑;若比值处于(0,0.5)或[1.5,+∞)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为狂笑。或是,当比值处于[0.9,1.1)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为生气;若比值处于[0.75,1.9)或[1.1,1.25)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为恼怒,若比值处于[0.5,0.75)或[1.25,1.5)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为大怒;若比值处于(0,0.5)或[1.5,+∞)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为狂怒。需要说明的是,前述所列举内容,仅用于举例说明,并非是对本发明实施例的具体限定,比值区间可根据实际情况进行调整和设置。According to the ratio of the average pressing pressure value to the total average pressing pressure value, the second preset code used to represent the level of the user's emotional level may be determined. For example, when the ratio is in the interval [0.9, 1.1) (it can also be expressed as a percentage of 90% to 110%, similar to the following), if the user’s emotion is determined to be laughing before then, the degree of laughter can be determined to be a smile; if the ratio When it is in the [0.75, 1.9) or [1.1, 1.25) interval, if the user’s emotion is determined to be laughing before then, it can be determined that the degree of laughter is laughter. If the ratio is in the [0.5, 0.75) or [1.25, 1.5) interval , if the user’s emotion is determined to be laughing before then, the degree of laughter can be determined as a big laugh; if the ratio is in the interval (0, 0.5) or [1.5, +∞), if the user’s emotion is determined to be laughing before then, it can be determined Determine the level of laughter as maniacal laughter. Or, when the ratio is in the [0.9, 1.1) interval, if the user’s emotion is determined to be angry before, the degree of anger can be determined to be angry; if the ratio is in the [0.75, 1.9) or [1.1, 1.25) interval, If it is determined that the user's emotion is angry before then, the degree of anger can be determined as annoyed. If the ratio is in the interval [0.5, 0.75) or [1.25, 1.5), if the user's emotion is determined to be angry before then, the degree of anger can be determined. The degree of anger is furious; if the ratio is in the range of (0, 0.5) or [1.5, +∞), and the user’s emotion is determined to be angry before then, the degree of anger can be determined to be furious. It should be noted that the aforementioned content is only for illustration, and is not intended to specifically limit the embodiment of the present invention, and the ratio interval can be adjusted and set according to actual conditions.

当然可以理解的是,也可计算总平均按压力度值与平均按压力度值的比值,还可以是平均按压力度值减去总平均按压力度值之后的数值与总平均按压力度值的比值(也可以理解为平均按压力度值大于总平均按压力度值的百分比)等,具体情形可根据需求设计。其中,比值的形式可以是小数、分数或百分数等。Of course, it can be understood that the ratio of the total average pressing pressure value to the average pressing pressure value can also be calculated, or the value of the average pressing pressure value minus the total average pressing pressure value and the ratio of the total average pressing pressure value (also can be It is understood that the average pressing pressure value is greater than the percentage of the total average pressing pressure value), etc., and specific situations can be designed according to requirements. Wherein, the ratio may be in the form of decimals, fractions or percentages.

S205、将第一预设编码和第二预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。S205. Combine the first preset code, the second preset code, and the edited first communication message into second communication information and send it to the receiving end.

优选地,将第一预设编码和第二预设编码以不可见字段形式发送至接收端,也就是以用户不可见形式进行发送,避免对用户编辑的信息内容的显示产生干扰。Preferably, the first preset code and the second preset code are sent to the receiving end in the form of invisible fields, that is, in a form invisible to the user, so as to avoid interference with the display of the information content edited by the user.

其中,如表1所示,可在移动终端中预先保存一情绪对照表,方便信息的查询和调用,该情绪对照表中包括:基本情绪(如笑、怒等)及其对应的编码和人脸特征,不同按压力度所对应的情绪程度及其编码和反馈信息,以及基本情绪与每一不同情绪程度共同的编码,需要说明的是,表1中的内容仅用于举例说明,并非是对本发明实施例的具体限定。Among them, as shown in Table 1, an emotion comparison table can be pre-stored in the mobile terminal to facilitate the query and call of information. The emotion comparison table includes: basic emotions (such as laughter, anger, etc.) Face features, emotional degrees corresponding to different pressure levels and their coding and feedback information, as well as basic emotions and common coding of each different emotional degree. It should be noted that the content in Table 1 is only for illustration, not for this Specific limitations of the embodiments of the invention.

表1Table 1

综上所述,本发明实施例提供的信息发送方法,既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小网络资源的占用,降低成本。且本发明实施例提供的技术方案,发送端能够自动获取用户情绪,并在接收端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。进一步地,本发明实施例充分利用移动终端设备自带的元器件来采集用户的情绪信息,减小对移动终端硬件上改进,降低研发成本。In summary, the information sending method provided by the embodiment of the present invention can not only enable the user at the sending end to accurately express inner emotions, but also enable the user at the receiving end to clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and The operation is simple, which facilitates the use of expression information. In addition, what the sender sends is a code corresponding to the user's emotion, rather than a real expression image. The amount of data is small, which can reduce the occupation of network resources and reduce costs. Moreover, in the technical solution provided by the embodiment of the present invention, the sending end can automatically obtain the user's emotion, and feed back the user's emotion at the sending end through some information at the receiving end. The tedious operation of constantly switching between. Furthermore, the embodiments of the present invention make full use of the components of the mobile terminal equipment to collect the user's emotional information, reduce the improvement of the mobile terminal hardware, and reduce the research and development costs.

第三实施例third embodiment

本发明实施例提供了一种信息接收方法,应用于接收端。如图3所示,该信息接收方法包括:An embodiment of the present invention provides an information receiving method, which is applied to a receiving end. As shown in Figure 3, the information receiving method includes:

S301、接收发送端所发送的第二通讯消息。S301. Receive a second communication message sent by a sending end.

其中,所述第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码。Wherein, the second communication message includes: the first communication message edited by the user at the sending end and a preset code corresponding to the emotional information of the user at the sending end.

其中,第一通讯消息可以是短信息、即时通讯信息、Email信息或其他类同信息等。Wherein, the first communication message may be a short message, an instant messaging message, an Email message or other similar messages.

其中,所述情绪信息为能够反映用户情绪的信息,如通过人脸识别技术获取的用户面部图像,根据人脸特征,可确定用户情绪;又如对移动终端屏幕的按压力度值,由于人在不同的情绪下,对屏幕的按压力度会有所不同,且同一种情绪的不同程度下,对屏幕的按压力度也会有所不同。因此,通过获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,可以进一步确定用户情绪的程度,以丰富用户情绪的表达。Wherein, the emotional information is information that can reflect the user's emotion, such as the user's facial image obtained through face recognition technology, according to the facial features, the user's emotion can be determined; Under different emotions, the pressure on the screen will be different, and under different degrees of the same emotion, the pressure on the screen will also be different. Therefore, by acquiring the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, the degree of the user's emotion can be further determined, so as to enrich the expression of the user's emotion.

其中,发送端的移动终端中,预先保存有与情绪信息对应的编码(即预设编码)。例如,若情绪信息反映的用户情绪为笑,则对应该情绪的编码可以设置为“A”,若情绪信息还能反映出笑的程度,则可对笑的程度进行编码,如微笑对应的编码为“001”,大笑的编码为“002”,综上,与该情绪信息对应的编码则为“A001”或“A002”。在发送端发送第一通讯消息时,同时将该预设编码发送至接收端。其中,上述提到的编码可根据实际需求设计,本发明实施例对此不进行限制。Wherein, in the mobile terminal at the sending end, a code corresponding to the emotion information (that is, a preset code) is stored in advance. For example, if the user's emotion reflected by the emotional information is laughter, the code corresponding to the emotion can be set to "A". If the emotional information can also reflect the degree of laughter, the degree of laughter can be coded, such as the code corresponding to is "001", and the code for laughing is "002". In summary, the code corresponding to the emotional information is "A001" or "A002". When the sending end sends the first communication message, the preset code is simultaneously sent to the receiving end. Wherein, the aforementioned encoding may be designed according to actual requirements, which is not limited in this embodiment of the present invention.

S302、获取与预设编码对应的、用于表征情绪的反馈信息。S302. Obtain feedback information corresponding to the preset code and used to represent the emotion.

其中,所述反馈信息包括:图像、声音和振动中的一种或多种,以此用来反映用户的情绪。例如,通过欢快的图像内容,示意用户高兴的情绪;通过爽朗的笑声,示意用户愉快的心情;通过振动,示意用户生气的程度等。其中,前述图像、声音和振动可单独使用,也可组合使用,具体情况,可根据实际需求设计。此外,图像、声音以及振动的种类和数量可根据实际需求设计,可以理解的是图像、声音以及振动的种类和数量越多,越能够准确表达出用户的情绪,越有利于进行准确有效的沟通。Wherein, the feedback information includes: one or more of images, sounds and vibrations, so as to reflect the emotions of the user. For example, the joyful image content is used to indicate the user's happy mood; the hearty laughter is used to indicate the user's happy mood; the vibration is used to indicate the user's anger level, etc. Wherein, the aforementioned image, sound and vibration can be used alone or in combination, and can be designed according to actual needs in specific situations. In addition, the types and quantities of images, sounds, and vibrations can be designed according to actual needs. It is understood that the more types and quantities of images, sounds, and vibrations, the more accurately the user's emotions can be expressed, and the more accurate and effective communication is. .

其中,反馈信息为预先保存在接收端的移动终端中的,这样接收端只需接收发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码即可,而不必再接收数据量较大的表情图像等,减小了对网络资源的占用,降低了成本。Among them, the feedback information is pre-stored in the mobile terminal of the receiving end, so that the receiving end only needs to receive the first communication message edited by the user at the sending end and the preset code corresponding to the emotional information of the user at the sending end, without having to receive Emoticon images with a large amount of data, etc., reduce the occupation of network resources and reduce costs.

S303、显示第一通讯消息和输出反馈信息。S303. Display the first communication message and output feedback information.

在查找到与预设编码对应的反馈信息后,输出该反馈信息和在接收端的屏幕上显示第一通讯消息。其中,对反馈消息的输出可包括:显示图像、播放声音和控制移动终端振动中的一种或多种。如图5所示的界面,在接收端除了显示发送端用户编辑的第一通讯消息“哈哈哈,你真搞笑”,还显示与发送端用户情绪对应的图像(图4中的动画形象),并播放相应的笑声(图4中的音频图标表示在播放声音)。After finding the feedback information corresponding to the preset code, the feedback information is output and the first communication message is displayed on the screen of the receiving end. Wherein, outputting the feedback message may include: one or more of displaying images, playing sounds and controlling vibration of the mobile terminal. In the interface shown in Figure 5, in addition to displaying the first communication message "Hahaha, you are so funny" edited by the user at the sending end, the receiving end also displays an image corresponding to the user's emotion at the sending end (animated image in Figure 4), And play the corresponding laughter (the audio icon in Figure 4 indicates that the sound is being played).

其中,接收端接收到的预设编码为不可见字段,避免对发送端用户编辑的信息内容的显示产生干扰。Wherein, the preset code received by the receiving end is an invisible field, so as to avoid interference with the display of the information content edited by the user at the sending end.

本发明实施例中,移动终端中可预先保存如第一实施例中的表1所示的情绪对照表,方便信息的查找和调用。In the embodiment of the present invention, the emotion comparison table shown in Table 1 in the first embodiment may be pre-stored in the mobile terminal to facilitate information search and call.

综上所述,本发明实施例提供的信息接收方法,通过接收发送端发送的与情绪信息对应的预设编码,并查找与预设编码对应的能够反馈发送端用户情绪的信息,从而既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,接收端接收的是与发送端的用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小对网络资源的占用,降低成本。To sum up, the information receiving method provided by the embodiment of the present invention, by receiving the preset code corresponding to the emotional information sent by the sending end, and searching for the information corresponding to the preset code that can feed back the user's emotion at the sending end, can both The user at the sending end can accurately express the inner emotions, and the user at the receiving end can clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and the operation is simple, which facilitates the use of expression information. In addition, what the receiving end receives is a code corresponding to the user's emotions at the sending end, rather than the real expression image, and the amount of data is small, which can reduce the occupation of network resources and reduce costs.

第四实施例Fourth embodiment

本发明实施例提供了一种移动终端,应用于发送端。如图5所示,该移动终端包括:An embodiment of the present invention provides a mobile terminal, which is applied to a sending end. As shown in Figure 5, the mobile terminal includes:

第一获取模块501,用于获取用户在编辑第一通讯消息时的情绪信息。The first acquiring module 501 is configured to acquire emotional information of the user when editing the first communication message.

其中,所述情绪信息为能够反映用户情绪的信息,如通过人脸识别技术获取的用户面部图像等。第一通讯消息可以是短信息、即时通讯信息、Email信息或其他类同信息等。Wherein, the emotional information is information that can reflect the user's emotion, such as the user's facial image obtained through face recognition technology. The first communication message may be a short message, an instant messaging message, an Email message or other similar messages.

其中,情绪信息的获取可以是第一获取模块501自动获取的,也可以是用户选择性的控制获取的。若是第一获取模块501自动获取的,则情绪信息的获取过程一般从打开消息编辑界面开始,到点击信息发送键为止,或是打开消息编辑界面后,从启动输入法开始,到退出输入法为止,再或是从打开消息编辑界面开始,到退出消息编辑界面为止。具体情况可根据实际需求设计,本发明对此不进行限制,前述内容仅用于举例说明。若情绪信息时用户选择性获取的,可以是在用户想要发送表情图像至接收端时触发。The emotional information may be acquired automatically by the first acquiring module 501, or may be acquired selectively by the user. If the first acquisition module 501 automatically acquires, then the acquisition process of emotional information generally begins from opening the message editing interface until clicking the message sending button, or after opening the message editing interface, starting from starting the input method until exiting the input method , or from opening the message editing interface to exiting the message editing interface. The specific situation can be designed according to actual needs, and the present invention does not limit this, and the foregoing content is only for illustration. If the emotional information is selectively acquired by the user, it may be triggered when the user wants to send an emoticon image to the receiving end.

第二获取模块502,用于获取预先保存的、与第一获取模块501获取的情绪信息对应的预设编码。The second obtaining module 502 is configured to obtain a pre-saved preset code corresponding to the emotional information obtained by the first obtaining module 501 .

其中,发送端的移动终端中,预先保存有与情绪信息对应的编码。例如,若情绪信息反映的用户情绪为笑,则对应该情绪的编码可以设置为“A”,若情绪信息还能反映出笑的程度,则可对笑的程度进行编码,如微笑对应的编码为“001”,大笑的编码为“002”,综上,与该情绪信息对应的编码则为“A001”或“A002”。上述提到的编码可根据实际需求设计,本发明实施例对此不进行限制。Wherein, the mobile terminal at the sending end stores codes corresponding to the emotion information in advance. For example, if the user's emotion reflected by the emotional information is laughter, the code corresponding to the emotion can be set to "A". If the emotional information can also reflect the degree of laughter, the degree of laughter can be coded, such as the code corresponding to is "001", and the code for laughing is "002". In summary, the code corresponding to the emotional information is "A001" or "A002". The aforementioned encoding may be designed according to actual requirements, which is not limited in this embodiment of the present invention.

发送模块503,用于将第二获取模块502获取的预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。The sending module 503 is configured to combine the preset code obtained by the second obtaining module 502 and the edited first communication message into second communication information and send it to the receiving end.

其中,在完成第一通讯消息的编辑后,将预设编码和完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。接收端在接收到第二通讯信息时,对第二通讯信息进行解析,解析出预设编码,并查找与该预设编码对应的用于表征情绪的反馈信息,该反馈信息中可包括:声音、图像以及振动中的一种或多种,以此用来反映出用户情绪。在查找到该反馈信息后进行展示,例如显示图像、播放声音或控制手机振动等。Wherein, after the editing of the first communication message is completed, the preset code and the edited first communication message are combined into the second communication information and sent to the receiving end. When the receiving end receives the second communication information, it analyzes the second communication information, parses out the preset code, and searches for the feedback information corresponding to the preset code for representing emotions. The feedback information may include: sound One or more of , images, and vibrations are used to reflect user emotions. After finding the feedback information, display it, such as displaying an image, playing a sound, or controlling the vibration of the mobile phone.

综上,本发明实施例提供的移动终端,既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端的移动终端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小对网络资源的占用,降低成本。进一步地,本发明实施例提供的移动终端能够自动获取用户情绪,而接收端的移动终端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。To sum up, the mobile terminal provided by the embodiment of the present invention can not only enable the user at the sending end to accurately express inner emotions, but also enable the user at the receiving end to clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and is easy to operate. It facilitates the use of emoticon information. In addition, the mobile terminal at the sending end sends a code corresponding to the user's emotion instead of a real expression image, and the amount of data is small, which can reduce the occupation of network resources and reduce costs. Furthermore, the mobile terminal provided by the embodiment of the present invention can automatically obtain the user's emotion, and the mobile terminal at the receiving end feeds back the user's emotion at the sending end through some information, so the user does not need to manually input images representing emotions, avoiding the need to input text and images. The tedious operation of constantly switching between.

进一步地,如图6所示,第一获取模块501包括:Further, as shown in Figure 6, the first acquisition module 501 includes:

采集单元5011,用于采集用户在编辑第一通讯消息时的面部图像。The collection unit 5011 is configured to collect the facial image of the user when editing the first communication message.

其中,可通过移动终端的前置摄像头进行人脸识别,采集用户的面部图像。Among them, the face recognition can be performed through the front camera of the mobile terminal, and the user's face image can be collected.

在采集用户的面部图像前,可先判断当前环境是否可以进行正常识别。例如通过检测环境光线值是否大于或等于预设值,若大于或等于预设值,则获取用户在编辑第一通讯消息时的面部图像。其中,预设值为环境光线值处于光照强度适宜的一个数值,一般环境光线值大于或等于80lux即满足人脸识别要求。若环境光线值小于预设值,则可保持1min/次的频率,循环进行环境光识别。其中,可通过设置在移动终端上的光线传感器检测当前的环境光线值。Before collecting the user's facial image, it can be judged whether the current environment can be recognized normally. For example, by detecting whether the ambient light value is greater than or equal to the preset value, if it is greater than or equal to the preset value, the facial image of the user when editing the first communication message is obtained. Wherein, the default value is a value where the ambient light value is at a suitable light intensity, and generally the ambient light value is greater than or equal to 80 lux to meet the face recognition requirements. If the ambient light value is less than the preset value, the frequency of 1min/time can be maintained, and the ambient light recognition can be performed in a loop. Wherein, the current ambient light value can be detected by a light sensor arranged on the mobile terminal.

相应的,如图6所示,第二获取模块502包括:Correspondingly, as shown in FIG. 6, the second obtaining module 502 includes:

第一确定单元5021,用于根据采集单元5011采集的面部图像,确定用于代表用户情绪的第一预设编码。The first determining unit 5021 is configured to determine a first preset code representing the user's emotion according to the facial image collected by the collecting unit 5011.

其中,可根据人脸识别技术,确定面部图像的人脸特征,根据人脸特征,确定用于代表用户情绪第一预设编码。其中,第一预设编码可根据实际需求设计,如,用户情绪为笑,则对应笑情绪的编码可以设置为“A”;用户情绪为怒,则对怒情绪的编码可以设置为“B”。Wherein, according to the face recognition technology, the facial features of the facial image can be determined, and according to the facial features, the first preset code used to represent the user's emotion can be determined. Wherein, the first preset code can be designed according to actual needs. For example, if the user’s emotion is laughing, the code corresponding to the laughing emotion can be set to “A”; .

其中,人在不同的情绪下,脸部会有不同的特征,因此通过对人脸特征进行分析,可识别用户情绪,例如,若人脸特征为笑肌明显拉伸、口轮匝肌拉伸、嘴角上扬、嘴唇张开等,则可认为用户为笑;若人脸特征在为降眉肌收缩、眉头皮肤产生褶皱等,则可认为用户情绪为怒。Among them, people have different facial features under different emotions. Therefore, by analyzing the facial features, the user's emotions can be identified. , the corners of the mouth are raised, and the lips are open, etc., it can be considered that the user is smiling; if the facial features are the constriction of the protruding muscle, wrinkles on the brow skin, etc., the user's emotion can be considered as anger.

进一步地,如图6所示,第一获取模块501还包括:Further, as shown in FIG. 6, the first obtaining module 501 also includes:

获取单元5012,用于获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值。The acquiring unit 5012 is configured to acquire the pressing force value of the screen of the mobile terminal when the user is editing the first communication message.

其中,人在不同的情绪下,对屏幕的按压力度会有所不同,且同一种情绪的不同程度下,对屏幕的按压力度也会有所不同。因此,通过获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,可以进一步确定用户情绪的程度,以丰富用户情绪的表达。Wherein, people press the screen differently in different emotions, and the same emotion presses the screen differently in different degrees. Therefore, by acquiring the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, the degree of the user's emotion can be further determined, so as to enrich the expression of the user's emotion.

相应的,第二获取模块502还包括:Correspondingly, the second obtaining module 502 also includes:

第二确定单元5022,用于根据获取单元5012获取的按压力度值,确定用于代表用户情绪的程度等级的第二预设编码。The second determining unit 5022 is configured to determine a second preset code used to represent the level of the user's emotion according to the pressing force value obtained by the obtaining unit 5012 .

其中,第二预设编码可根据实际需求设计,如,若用户情绪为笑情绪中的微笑,则对应微笑的编码可以设置为“001”;若用户情绪为笑情绪中的大笑,则对应微笑的编码可以设置为“002”。Wherein, the second preset code can be designed according to actual needs. For example, if the user’s emotion is a smile in a laughing emotion, the code corresponding to a smile can be set to “001”; if the user’s emotion is a big laugh in a laughing emotion, the corresponding The code of smile can be set as "002".

其中,如图6所示,发送模块503包括:Wherein, as shown in Figure 6, the sending module 503 includes:

第一发送单元5031,用于将第一确定单元5021确定的第一预设编码和第二确定单元5022确定的第二预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。The first sending unit 5031 is configured to combine the first preset code determined by the first determining unit 5021 and the second preset code determined by the second determining unit 5022 with the edited first communication message as second communication information and send it to Receiving end.

其中,第一预设编码和第二预设编码以不可见字段形式发送至接收端,也就是以用户不可见形式进行发送,避免对用户编辑的信息内容的显示产生干扰。Wherein, the first preset code and the second preset code are sent to the receiving end in the form of an invisible field, that is, sent in a form invisible to the user, so as to avoid interference with the display of the information content edited by the user.

进一步地,如图6所示,第一确定单元5021包括:Further, as shown in FIG. 6, the first determination unit 5021 includes:

第一确定子单元50211,用于确定面部图像的人脸特征。The first determining subunit 50211 is used to determine the facial features of the facial image.

第二确定子单元50212,用于根据第一确定子单元50211确定的人脸特征,确定第一预设编码。The second determining subunit 50212 is configured to determine the first preset code according to the facial features determined by the first determining subunit 50211.

其中,人在不同的情绪下,脸部会有不同的特征,因此通过对人脸特征进行分析,可识别用户情绪,例如,若人脸特征为笑肌明显拉伸、口轮匝肌拉伸、嘴角上扬、嘴唇张开等,则可认为用户为笑;若人脸特征在为降眉肌收缩、眉头皮肤产生褶皱等,则可认为用户情绪为怒。Among them, people have different facial features under different emotions. Therefore, by analyzing the facial features, the user's emotions can be identified. , the corners of the mouth are raised, and the lips are open, etc., it can be considered that the user is smiling; if the facial features are the constriction of the protruding muscle, wrinkles on the brow skin, etc., the user's emotion can be considered as anger.

进一步地,如图6所示,采集单元5011包括:Further, as shown in Figure 6, the acquisition unit 5011 includes:

检测子单元50111,用于检测环境光线值是否大于或等于预设值。The detection subunit 50111 is used to detect whether the ambient light value is greater than or equal to a preset value.

第一采集子单元50112,用于当检测子单元50111检测到的环境光线值大于或等于预设值时,采集用户在编辑第一通讯消息时的面部图像。The first collecting sub-unit 50112 is configured to collect the facial image of the user when editing the first communication message when the ambient light value detected by the detecting sub-unit 50111 is greater than or equal to a preset value.

其中,在采集用户的面部图像前,可先判断当前环境是否可以进行正常识别。例如通过检测环境光线值是否大于或等于预设值,若大于或等于预设值,则获取用户在编辑第一通讯消息时的面部图像。其中,预设值为环境光线值处于光照强度适宜的一个数值,一般环境光线值大于或等于80lux即满足人脸识别要求。若环境光线值小于预设值,则可保持1min/次的频率循环进行环境光识别。其中,可通过设置在移动终端上的光线传感器检测当前的环境光线值。Wherein, before collecting the facial image of the user, it may first be judged whether the current environment can be recognized normally. For example, by detecting whether the ambient light value is greater than or equal to the preset value, if it is greater than or equal to the preset value, the facial image of the user when editing the first communication message is obtained. Wherein, the default value is a value where the ambient light value is at a suitable light intensity, and generally the ambient light value is greater than or equal to 80 lux to meet the face recognition requirements. If the ambient light value is less than the preset value, the frequency cycle of 1min/time can be maintained for ambient light recognition. Wherein, the current ambient light value can be detected by a light sensor arranged on the mobile terminal.

进一步地,如图6所示,第二确定单元5022包括:Further, as shown in FIG. 6, the second determining unit 5022 includes:

第一计算子单元50221,用于计算用户在编辑第一通讯消息时对移动终端屏幕的平均按压力度值。The first calculation subunit 50221 is used to calculate the average pressing force value of the user on the screen of the mobile terminal when editing the first communication message.

也就是,第一计算子单元50221记录在编辑第一通讯消息时,移动终端屏幕所受到的每一次按压力度值,并实时计算平均按压力度值。That is to say, the first calculating subunit 50221 records each pressing pressure value received by the screen of the mobile terminal when editing the first communication message, and calculates the average pressing pressure value in real time.

第二计算子单元50222,用于计算第一计算子单元50221计算得到的平均按压力度值与总平均按压力度值的比值。The second calculating subunit 50222 is configured to calculate the ratio of the average pressing pressure calculated by the first calculating subunit 50221 to the total average pressing pressure.

其中,总平均按压力度值为用户对移动终端的整个使用过程中,移动终端屏幕所受到的按压力的平均按压力度值。这里所述的用户对移动终端的整个使用过程可以理解为从移动终端屏幕受到第一次按压开始,到用户完成第一通讯消息的编辑为止。移动终端屏幕受到的按压次数越多,越可能趋近一比较的数值。Wherein, the total average pressing force value is an average pressing force value of the pressing force received by the screen of the mobile terminal during the entire use process of the mobile terminal by the user. The entire process of using the mobile terminal by the user described here can be understood as starting from the first press on the screen of the mobile terminal until the user finishes editing the first communication message. The more times the screen of the mobile terminal is pressed, the more likely it is to approach a comparative value.

第三确定子单元50223,用于根据第二计算子单元50222计算得到的比值,确定第二预设编码。The third determination subunit 50223 is configured to determine the second preset code according to the ratio calculated by the second calculation subunit 50222 .

根据平均按压力度值与总平均按压力度值的比值,可确定用于代表用户情绪程度等级的第二预设编码。例如,当比值处于[0.9,1.1)区间时(也可表示为百分数90%~110%,以下类同),在此之前确定用户情绪为笑,则可确定笑的程度等级为微笑;若比值处于[0.75,1.9)或[1.1,1.25)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为欢笑,若比值处于[0.5,0.75)或[1.25,1.5)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为大笑;若比值处于(0,0.5)或[1.5,+∞)区间时,在此之前确定用户情绪为笑,则可确定笑的程度等级为狂笑。或是,当比值处于[0.9,1.1)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为生气;若比值处于[0.75,1.9)或[1.1,1.25)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为恼怒,若比值处于[0.5,0.75)或[1.25,1.5)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为大怒;若比值处于(0,0.5)或[1.5,+∞)区间时,在此之前确定用户情绪为怒,则可确定怒的程度等级为狂怒。需要说明的是,前述所列举内容,仅用于举例说明,并非是对本发明实施例的具体限定,比值区间可根据实际情况进行调整和设置。According to the ratio of the average pressing pressure value to the total average pressing pressure value, the second preset code used to represent the level of the user's emotional level may be determined. For example, when the ratio is in the interval [0.9, 1.1) (it can also be expressed as a percentage of 90% to 110%, similar to the following), if the user’s emotion is determined to be laughing before then, the degree of laughter can be determined to be a smile; if the ratio When it is in the [0.75, 1.9) or [1.1, 1.25) interval, if the user’s emotion is determined to be laughing before then, it can be determined that the degree of laughter is laughter. If the ratio is in the [0.5, 0.75) or [1.25, 1.5) interval , if the user’s emotion is determined to be laughing before then, the degree of laughter can be determined as a big laugh; if the ratio is in the interval (0, 0.5) or [1.5, +∞), if the user’s emotion is determined to be laughing before then, it can be determined Determine the level of laughter as maniacal laughter. Or, when the ratio is in the [0.9, 1.1) interval, if the user’s emotion is determined to be angry before, the degree of anger can be determined to be angry; if the ratio is in the [0.75, 1.9) or [1.1, 1.25) interval, If it is determined that the user's emotion is angry before then, the degree of anger can be determined as annoyed. If the ratio is in the interval [0.5, 0.75) or [1.25, 1.5), if the user's emotion is determined to be angry before then, the degree of anger can be determined. The degree of anger is furious; if the ratio is in the range of (0, 0.5) or [1.5, +∞), and the user’s emotion is determined to be angry before then, the degree of anger can be determined to be furious. It should be noted that the aforementioned content is only for illustration, and is not intended to specifically limit the embodiment of the present invention, and the ratio interval can be adjusted and set according to actual conditions.

当然可以理解的是,也可计算总平均按压力度值与平均按压力度值的比值,还可以是平均按压力度值减去总平均按压力度值之后的数值与总平均按压力度值的比值(也可以理解为平均按压力度值大于总平均按压力度值的百分比)等,具体情形可根据需求设计。其中,比值的形式可以是小数、分数或百分数等。Of course, it can be understood that the ratio of the total average pressing pressure value to the average pressing pressure value can also be calculated, or the value of the average pressing pressure value minus the total average pressing pressure value and the ratio of the total average pressing pressure value (also can be It is understood that the average pressing pressure value is greater than the percentage of the total average pressing pressure value), etc., and specific situations can be designed according to requirements. Wherein, the ratio may be in the form of decimals, fractions or percentages.

进一步地,如图6所示,采集单元5011包括:Further, as shown in Figure 6, the acquisition unit 5011 includes:

第二采集子单元50113,用于采集用户在编辑第一通讯消息时的一个或多个面部图像。The second collection subunit 50113 is used to collect one or more facial images of the user when editing the first communication message.

其中,第一确定单元5021包括:Wherein, the first determination unit 5021 includes:

识别子单元50213,用于识别第二采集子单元50113采集的每一面部图像对应的用户情绪,并记录每种用户情绪出现的次数。The identifying subunit 50213 is configured to identify the user emotion corresponding to each facial image collected by the second collecting subunit 50113, and record the number of occurrences of each user emotion.

处理子单元50214,用于将识别子单元50213记录的出现次数最多的用户情绪对应的编码作为第一预设编码。The processing subunit 50214 is configured to use the code corresponding to the user emotion recorded by the identification subunit 50213 with the largest number of occurrences as the first preset code.

其中,由于用户在编辑第一通讯消息时可能会产生不同的情绪,为提高确定情绪的准确性,本发明实施例可采集用户在编辑第一通讯消息时的一个或多个面部图像,然后识别每一面部图像对应的用户情绪,并记录每种用户情绪出现的次数,最后将出现次数最多的用户情绪对应的编码作为第一预设编码。其中,在通过前置摄像头进行人脸识别时,可保持3s/次的识别频率。Among them, since the user may have different emotions when editing the first communication message, in order to improve the accuracy of determining the emotion, the embodiment of the present invention can collect one or more facial images of the user when editing the first communication message, and then identify The user emotion corresponding to each facial image, and record the number of occurrences of each user emotion, and finally use the code corresponding to the user emotion with the largest number of occurrences as the first preset code. Among them, when performing face recognition through the front camera, the recognition frequency can be maintained at 3s/time.

进一步地,如图6所示,发送模块503包括:Further, as shown in Figure 6, the sending module 503 includes:

第二发送单元5032,用于将预设编码以不可见字段形式发送至接收端。The second sending unit 5032 is configured to send the preset code to the receiving end in the form of an invisible field.

本发明实施例中,移动终端中可预先保存如第一实施例中的表1所示的情绪对照表,方便信息的查找和调用。In the embodiment of the present invention, the emotion comparison table shown in Table 1 in the first embodiment may be pre-stored in the mobile terminal to facilitate information search and call.

综上所述,本发明实施例提供的移动终端,既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端的移动终端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小网络资源的占用,降低成本。且本发明实施例提供的移动终端能够自动获取用户情绪,而接收端的移动终端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。进一步地,本发明实施例充分利用移动终端设备自带的元器件,来采集用户的情绪信息,减小对移动终端硬件上改进,降低研发成本。To sum up, the mobile terminal provided by the embodiment of the present invention can not only enable the user at the sending end to accurately express inner emotions, but also enable the user at the receiving end to clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and the operation Simple and convenient to use expression information. In addition, the mobile terminal at the sending end sends a code corresponding to the user's emotion instead of a real expression image, and the amount of data is small, which can reduce the occupation of network resources and reduce costs. Moreover, the mobile terminal provided by the embodiment of the present invention can automatically obtain the user's emotion, and the mobile terminal at the receiving end feeds back the user's emotion at the sending end through some information, so the user does not need to manually input an image representing the emotion, and avoids the gap between the input text and the image. The tedious operation of constantly switching. Furthermore, the embodiments of the present invention make full use of the components of the mobile terminal equipment to collect the user's emotional information, reduce the improvement of the mobile terminal hardware, and reduce the research and development costs.

第五实施例fifth embodiment

本发明实施例提供了一种移动终端,应用于接收端。如图7所示,该移动终端包括:An embodiment of the present invention provides a mobile terminal, which is applied to a receiving end. As shown in Figure 7, the mobile terminal includes:

接收模块701,用于接收发送端所发送的第二通讯消息。The receiving module 701 is configured to receive the second communication message sent by the sending end.

其中,所述第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码。Wherein, the second communication message includes: the first communication message edited by the user at the sending end and a preset code corresponding to the emotional information of the user at the sending end.

其中,第一通讯消息可以是短信息、即时通讯信息、Email信息或其他类同信息等。Wherein, the first communication message may be a short message, an instant messaging message, an Email message or other similar messages.

其中,所述情绪信息为能够反映用户情绪的信息,如通过人脸识别技术获取的用户面部图像,根据人脸特征,可确定用户情绪;又如对移动终端屏幕的按压力度值,由于人在不同的情绪下,对屏幕的按压力度会有所不同,且同一种情绪的不同程度下,对屏幕的按压力度也会有所不同。因此,通过获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,可以进一步确定用户情绪的程度,以丰富用户情绪的表达。Wherein, the emotional information is information that can reflect the user's emotion, such as the user's facial image obtained through face recognition technology, according to the facial features, the user's emotion can be determined; Under different emotions, the pressure on the screen will be different, and under different degrees of the same emotion, the pressure on the screen will also be different. Therefore, by acquiring the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, the degree of the user's emotion can be further determined, so as to enrich the expression of the user's emotion.

其中,发送端的移动终端中,预先保存有与情绪信息对应的编码(即预设编码)。例如,若情绪信息反映的用户情绪为笑,则对应该情绪的编码可以设置为“A”,若情绪信息还能反映出笑的程度,则可对笑的程度进行编码,如微笑对应的编码为“001”,大笑的编码为“002”,综上,与该情绪信息对应的编码则为“A001”或“A002”。在发送端发送第一通讯消息时,同时将该预设编码发送至接收端。其中,上述提到的编码可根据实际需求设计,本发明实施例对此不进行限制。Wherein, in the mobile terminal at the sending end, a code corresponding to the emotion information (that is, a preset code) is stored in advance. For example, if the user's emotion reflected by the emotional information is laughter, the code corresponding to the emotion can be set to "A". If the emotional information can also reflect the degree of laughter, the degree of laughter can be coded, such as the code corresponding to is "001", and the code for laughing is "002". In summary, the code corresponding to the emotional information is "A001" or "A002". When the sending end sends the first communication message, the preset code is simultaneously sent to the receiving end. Wherein, the aforementioned encoding may be designed according to actual requirements, which is not limited in this embodiment of the present invention.

第三获取模块702,用于获取与预设编码对应的、用于表征情绪的反馈信息。The third acquiring module 702 is configured to acquire the feedback information corresponding to the preset code and used to represent the emotion.

其中反馈信息包括:图像、声音和振动中的一种或多种,以此用来反映用户的情绪。例如,通过欢快的图像内容,示意用户高兴的情绪;通过爽朗的笑声,示意用户愉快的心情;通过振动,示意用户生气的程度等。其中,前述图像、声音和振动可单独使用,也可组合使用,具体情况,可根据实际需求设计。此外,图像、声音以及振动的种类和数量可根据实际需求设计,可以理解的是图像、声音以及振动的种类和数量越多,越能够准确表达出用户的情绪,越有利于进行准确有效的沟通。The feedback information includes: one or more of images, sounds and vibrations, so as to reflect the emotions of the user. For example, the joyful image content is used to indicate the user's happy mood; the hearty laughter is used to indicate the user's happy mood; the vibration is used to indicate the user's anger level, etc. Wherein, the aforementioned image, sound and vibration can be used alone or in combination, and can be designed according to actual needs in specific situations. In addition, the types and quantities of images, sounds, and vibrations can be designed according to actual needs. It is understood that the more types and quantities of images, sounds, and vibrations, the more accurately the user's emotions can be expressed, and the more accurate and effective communication is. .

其中,反馈信息为预先保存在接收端的移动终端中的,这样接收端只需接收发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码即可,而不必再接收数据量较大的表情图像等,减小了对网络资源的占用,降低了成本。Among them, the feedback information is pre-stored in the mobile terminal of the receiving end, so that the receiving end only needs to receive the first communication message edited by the user at the sending end and the preset code corresponding to the emotional information of the user at the sending end, without having to receive Emoticon images with a large amount of data, etc., reduce the occupation of network resources and reduce costs.

处理模块703,用于显示第一通讯消息和输出第三获取模块702获取的反馈信息。The processing module 703 is configured to display the first communication message and output the feedback information obtained by the third obtaining module 702 .

在查找到与预设编码对应的反馈信息后,输出该反馈信息和在接收端的屏幕上显示第一通讯消息。其中,对反馈消息的输出可包括:显示图像、播放声音和控制移动终端振动中的一种或多种。如图4所示的界面,在接收端除了显示发送端用户编辑的第一通讯消息“哈哈哈,你真搞笑”,还显示与发送端用户情绪对应的图像(图4中的动画形象),并播放相应的笑声(图4中的音频图标表示在播放声音)。After finding the feedback information corresponding to the preset code, the feedback information is output and the first communication message is displayed on the screen of the receiving end. Wherein, outputting the feedback message may include: one or more of displaying images, playing sounds and controlling vibration of the mobile terminal. In the interface shown in Figure 4, in addition to displaying the first communication message "Hahaha, you are so funny" edited by the user at the sending end, the receiving end also displays an image corresponding to the emotion of the user at the sending end (animated image in Figure 4), And play the corresponding laughter (the audio icon in Figure 4 indicates that the sound is being played).

其中,接收端接收到的预设编码为不可见字段,避免对发送端用户编辑的信息内容的显示产生干扰。Wherein, the preset code received by the receiving end is an invisible field, so as to avoid interference with the display of the information content edited by the user at the sending end.

进一步地,第三获取模块802具体用于:获取预先保存的、与预设编码对应的反馈信息。Further, the third acquiring module 802 is specifically configured to: acquire pre-saved feedback information corresponding to the preset encoding.

本发明实施例中,移动终端中可预先保存如第一实施例中的表1所示的情绪对照表,方便信息的查找和调用。In the embodiment of the present invention, the emotion comparison table shown in Table 1 in the first embodiment may be pre-stored in the mobile terminal to facilitate information search and call.

综上所述,本发明实施例提供的移动终端,通过接收发送端发送的与情绪信息对应的预设编码,并查找与预设编码对应的能够反馈发送端用户情绪的信息,从而既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,接收端接收的是与发送端的用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小对网络资源的占用,降低成本。To sum up, the mobile terminal provided by the embodiment of the present invention can not only make The user at the sending end can accurately express the inner emotions, and the user at the receiving end can also clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and the operation is simple, which facilitates the use of expression information. In addition, what the receiving end receives is a code corresponding to the user's emotions at the sending end, rather than the real expression image, and the amount of data is small, which can reduce the occupation of network resources and reduce costs.

第六实施例Sixth embodiment

图8是本发明另一个实施例的移动终端的框图。图8所示的移动终端800包括:至少一个处理器801、存储器802、至少一个网络接口804和其他用户接口803。移动终端800中的各个组件通过总线系统805耦合在一起。可理解,总线系统805用于实现这些组件之间的连接通信。总线系统805除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统805。FIG. 8 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 800 shown in FIG. 8 includes: at least one processor 801 , a memory 802 , at least one network interface 804 and other user interfaces 803 . Various components in the mobile terminal 800 are coupled together through a bus system 805 . It can be understood that the bus system 805 is used to realize connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 805 in FIG. 8 for clarity of illustration.

其中,用户接口803可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball))、触感板或者触摸屏等。Wherein, the user interface 803 may include a display, a keyboard or a pointing device (for example, a mouse, a trackball (trackball)), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 602 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). Memory 602 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器802存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统8021和应用程序8022。In some implementations, the memory 802 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 8021 and an application program 8022 .

其中,操作系统8021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序8022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序8022中。Among them, the operating system 8021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 8022 .

在本发明实施例中,通过调用存储器802存储的程序或指令,具体的,可以是应用程序8022中存储的程序或指令,处理器801用于获取用户在编辑第一通讯消息时的情绪信息,以及预先保存的、与情绪信息对应的预设编码,将预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。In the embodiment of the present invention, the processor 801 is configured to obtain the user's emotional information when editing the first communication message by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, And the pre-saved preset code corresponding to the emotional information, combining the preset code with the edited first communication message as the second communication message and sending it to the receiving end.

上述本发明实施例揭示的方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801 . The processor 801 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 801 or instructions in the form of software. The above-mentioned processor 801 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSPD evice,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPD device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器801还用于:采集用户在编辑第一通讯消息时的面部图像,根据面部图像,确定用于代表用户情绪的第一预设编码。Optionally, the processor 801 is further configured to: collect a facial image of the user when editing the first communication message, and determine a first preset code representing the user's emotion according to the facial image.

可选地,处理器801还用于:获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,根据按压力度值,确定用于代表用户情绪的程度等级的第二预设编码。Optionally, the processor 801 is further configured to: acquire the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, and determine the second preset code used to represent the level of the user's emotion according to the pressure value.

可选地,处理器801还用于:将第一预设编码和第二预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。Optionally, the processor 801 is further configured to: combine the first preset code, the second preset code, and the edited first communication message into second communication information and send it to the receiving end.

可选地,处理器801还用于:确定面部图像的人脸特征,根据人脸特征,确定第一预设编码。Optionally, the processor 801 is further configured to: determine facial features of the facial image, and determine a first preset code according to the facial features.

可选地,处理器801还用于:检测环境光线值是否大于或等于预设值,若大于或等于预设值,则采集用户在编辑第一通讯消息时的面部图像。Optionally, the processor 801 is further configured to: detect whether the ambient light value is greater than or equal to a preset value, and if greater than or equal to the preset value, collect a facial image of the user when editing the first communication message.

可选地,处理器801还用于:计算用户在编辑第一通讯消息时对移动终端屏幕的平均按压力度值,以及平均按压力度值与总平均按压力度值的比值,根据计算得到的比值,确定第二预设编码。Optionally, the processor 801 is further configured to: calculate the average pressing force value of the user on the screen of the mobile terminal when editing the first communication message, and the ratio of the average pressing force value to the total average pressing force value. According to the calculated ratio, Determine the second preset code.

可选地,处理器801还用于:采集用户在编辑第一通讯消息时的一个或多个面部图像,识别每一面部图像对应的用户情绪,并记录每种用户情绪出现的次数,将出现次数最多的用户情绪对应的编码作为第一预设编码。Optionally, the processor 801 is further configured to: collect one or more facial images of the user when editing the first communication message, identify the user emotion corresponding to each facial image, and record the number of occurrences of each user emotion. The code corresponding to the user emotion with the largest number of times is used as the first preset code.

可选地,处理器801还用于:将预设编码以不可见字段形式发送至接收端。Optionally, the processor 801 is further configured to: send the preset code to the receiving end in the form of an invisible field.

在本发明的另一实施例中处理器801用于接收发送端所发送的第二通讯消息,其中,第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码;获取与预设编码对应的、用于表征情绪的反馈信息,其中反馈信息包括:图像、声音和振动中的一种或多种;显示第一通讯消息和输出反馈信息。In another embodiment of the present invention, the processor 801 is configured to receive the second communication message sent by the sending end, wherein the second communication message includes: the first communication message edited by the sending end user and the emotion with the sending end user The preset code corresponding to the information; obtain the feedback information corresponding to the preset code and used to represent the emotion, wherein the feedback information includes: one or more of images, sounds and vibrations; display the first communication message and output the feedback information .

可选地,处理器801还用于:获取预先保存的、与预设编码对应的反馈信息。Optionally, the processor 801 is further configured to: acquire pre-saved feedback information corresponding to the preset encoding.

移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.

综上所述,本发明实施例提供的移动终端,既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小网络资源的占用,降低成本。且本发明实施例提供移动终端能够自动获取用户情绪,而接收端的移动终端通过一些信息反馈发送端用户的情绪,因此不需用户手动输入表示情绪的图像,避免了在输入文字与图像之间不断切换的繁琐操作。进一步地,本发明实施例充分利用移动终端设备自带的元器件,来采集用户的情绪信息,减小对移动终端硬件上改进,降低研发成本。To sum up, the mobile terminal provided by the embodiment of the present invention can not only enable the user at the sending end to accurately express inner emotions, but also enable the user at the receiving end to clarify the emotions of the user at the sending end, ensuring accurate and effective communication, and the operation Simple and convenient to use expression information. In addition, what the sender sends is a code corresponding to the user's emotion, rather than a real expression image. The amount of data is small, which can reduce the occupation of network resources and reduce costs. Moreover, the embodiment of the present invention provides that the mobile terminal can automatically obtain the user's emotion, and the mobile terminal at the receiving end feeds back the user's emotion at the sending end through some information, so the user does not need to manually input an image representing the emotion, and avoids the continuous input between the input text and the image. The tedious operation of switching. Furthermore, the embodiments of the present invention make full use of the components of the mobile terminal equipment to collect the user's emotional information, reduce the improvement of the mobile terminal hardware, and reduce the research and development costs.

第七实施例Seventh embodiment

图9是本发明另一个实施例的移动终端的结构示意图。具体地,图9中的移动终端900可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)或车载电脑等。Fig. 9 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 900 in FIG. 9 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图9中的移动终端900包括射频(Radio Frequency,RF)电路901、存储器902、输入单元903、显示单元904、处理器906、音频电路907、WiFi(Wireless Fidelity)模块908和电源909。The mobile terminal 900 in FIG. 9 includes a radio frequency (Radio Frequency, RF) circuit 901, a memory 902, an input unit 903, a display unit 904, a processor 906, an audio circuit 907, a WiFi (Wireless Fidelity) module 908 and a power supply 909.

其中,输入单元903可用于接收用户输入的数字或字符信息,以及产生与移动终端900的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元903可以包括触控面板9031。触控面板9031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9031上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板9031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器906,并能接收处理器906发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9031。除了触控面板9031,输入单元903还可以包括其他输入设备9032,其他输入设备9032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 903 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 900 . Specifically, in this embodiment of the present invention, the input unit 903 may include a touch panel 9031 . The touch panel 9031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's operation on the touch panel 9031 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 9031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 906, and can receive and execute commands sent by the processor 906. In addition, the touch panel 9031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 9031, the input unit 903 may also include other input devices 9032, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元904可用于显示由用户输入的信息或提供给用户的信息以及移动终端900的各种菜单界面。显示单元904可包括显示面板9041,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9041。Wherein, the display unit 904 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 900 . The display unit 904 may include a display panel 9041. Optionally, the display panel 9041 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板9031可以覆盖显示面板9041,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器906以确定触摸事件的类型,随后处理器906根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 9031 can cover the display panel 9041 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 906 to determine the type of the touch event, and then the processor 906 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器906是移动终端900的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器9021内的软件程序和/或模块,以及调用存储在第二存储器9022内的数据,执行移动终端900的各种功能和处理数据,从而对移动终端900进行整体监控。可选的,处理器906可包括一个或多个处理单元。Wherein the processor 906 is the control center of the mobile terminal 900, which uses various interfaces and lines to connect various parts of the entire mobile phone, and runs or executes software programs and/or modules stored in the first memory 9021, and calls stored in the second The data in the memory 9022 executes various functions of the mobile terminal 900 and processes data, so as to monitor the mobile terminal 900 as a whole. Optionally, the processor 906 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器9021内的软件程序和/或模块和/或该第二存储器9022内的数据,处理器906用于获取用户在编辑第一通讯消息时的情绪信息,获取预先保存的、与情绪信息对应的预设编码,将预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。In this embodiment of the present invention, the processor 906 is used to obtain the user's information when editing the first communication message by calling the software program and/or module stored in the first memory 9021 and/or the data in the second memory 9022. For emotional information, obtain a pre-saved preset code corresponding to the emotional information, combine the preset code and the edited first communication message into second communication information and send it to the receiving end.

可选地,处理器906还用于:采集用户在编辑第一通讯消息时的面部图像,根据面部图像,确定用于代表用户情绪的第一预设编码。Optionally, the processor 906 is further configured to: collect a facial image of the user when editing the first communication message, and determine a first preset code representing the user's emotion according to the facial image.

可选地,处理器906还用于:获取用户在编辑第一通讯消息时对移动终端屏幕的按压力度值,根据按压力度值,确定用于代表用户情绪的程度等级的第二预设编码。Optionally, the processor 906 is further configured to: acquire the pressure value of the user's pressure on the screen of the mobile terminal when editing the first communication message, and determine the second preset code used to represent the level of the user's emotion according to the pressure value.

可选地,处理器906还用于:将第一预设编码和第二预设编码与完成编辑的第一通讯消息组合为第二通讯信息发送至接收端。Optionally, the processor 906 is further configured to: combine the first preset code, the second preset code, and the edited first communication message into second communication information and send it to the receiving end.

可选地,处理器906还用于:确定面部图像的人脸特征,根据人脸特征,确定第一预设编码。Optionally, the processor 906 is further configured to: determine facial features of the facial image, and determine a first preset code according to the facial features.

可选地,处理器906还用于:检测环境光线值是否大于或等于预设值,若大于或等于预设值,则采集用户在编辑第一通讯消息时的面部图像。Optionally, the processor 906 is further configured to: detect whether the ambient light value is greater than or equal to a preset value, and if greater than or equal to the preset value, collect a facial image of the user when editing the first communication message.

可选地,处理器906还用于:计算用户在编辑第一通讯消息时对移动终端屏幕的平均按压力度值,以及平均按压力度值与总平均按压力度值的比值,根据计算得到的比值,确定第二预设编码。Optionally, the processor 906 is further configured to: calculate the average pressing force value of the user on the screen of the mobile terminal when editing the first communication message, and the ratio of the average pressing force value to the total average pressing force value. According to the calculated ratio, Determine the second preset code.

可选地,处理器906还用于:采集用户在编辑第一通讯消息时的一个或多个面部图像,识别每一面部图像对应的用户情绪,并记录每种用户情绪出现的次数,将出现次数最多的用户情绪对应的编码作为第一预设编码。Optionally, the processor 906 is further configured to: collect one or more facial images of the user when editing the first communication message, identify the user emotion corresponding to each facial image, and record the number of occurrences of each user emotion. The code corresponding to the user emotion with the largest number of times is used as the first preset code.

可选地,处理器906还用于:将预设编码以不可见字段形式发送至接收端。Optionally, the processor 906 is further configured to: send the preset code to the receiving end in the form of an invisible field.

在本发明的另一实施例中处理器901用于接收发送端所发送的第二通讯消息,其中,第二通讯消息中包括:发送端用户编辑的第一通讯消息和与发送端用户的情绪信息对应的预设编码;获取与预设编码对应的、用于表征情绪的反馈信息,其中反馈信息包括:图像、声音和振动中的一种或多种;并输出该反馈信息;显示单元904用于显示第一通讯消息。In another embodiment of the present invention, the processor 901 is configured to receive the second communication message sent by the sending end, wherein the second communication message includes: the first communication message edited by the sending end user and the emotion with the sending end user The preset code corresponding to the information; obtain the feedback information corresponding to the preset code and used to represent the emotion, wherein the feedback information includes: one or more of images, sounds and vibrations; and output the feedback information; display unit 904 Used to display the first communication message.

可选地,处理器901还用于:获取预先保存的、与预设编码对应的反馈信息。Optionally, the processor 901 is further configured to: acquire pre-saved feedback information corresponding to the preset encoding.

可见,本发明实施例提供的移动终端,通过接收发送端发送的与情绪信息对应的预设编码,并查找与预设编码对应的能够反馈发送端用户情绪的信息,从而既能够使发送端用户准确的表达出内心的情绪,也能使接收端用户明确发送端用户的情绪,保证了准确有效的沟通,且操作简单,方便了表情信息的使用。此外,发送端发送的是与用户情绪对应的一种编码,而非真正的表情图像,数据量较小,能够减小网络资源的占用,降低成本。且本发明实施例充分利用移动终端设备自带的元器件,来采集用户的情绪信息,减小对移动终端硬件上改进,降低研发成本。It can be seen that the mobile terminal provided by the embodiment of the present invention can not only make the user of the sending end Accurately expressing the inner emotions can also enable the user at the receiving end to clarify the emotion of the user at the sending end, ensuring accurate and effective communication, and the operation is simple, which facilitates the use of expression information. In addition, what the sender sends is a code corresponding to the user's emotion, rather than a real expression image. The amount of data is small, which can reduce the occupation of network resources and reduce costs. Moreover, the embodiment of the present invention makes full use of the components of the mobile terminal equipment to collect the user's emotional information, reducing the improvement of the mobile terminal hardware and reducing the research and development costs.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。What has been described above is a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, some improvements and modifications can also be made without departing from the principles described in the present invention. within the scope of protection of the invention.

Claims (20)

1. a method for sending information, is applied to transmitting terminal, it is characterised in that described method for sending information includes:
Obtain user's emotional information when editing the first communication message;
Obtain the pre-arranged code corresponding with described emotional information pre-saved;
Described pre-arranged code and the first communication message completing editor are combined as the second communication information send to receiving terminal.
Method for sending information the most according to claim 1, it is characterised in that described acquisition user disappears in editor's the first communication The step of emotional information during breath includes:
Gather user's face-image when editing the first communication message;
Wherein, the step of the pre-arranged code corresponding with described emotional information that described acquisition pre-saves includes:
According to described face-image, determine the first pre-arranged code for representing user emotion.
Method for sending information the most according to claim 2, it is characterised in that described acquisition user disappears in editor's the first communication The step of emotional information during breath also includes:
Obtain user edit the first communication message time to mobile terminal screen by surging value;
Wherein, the step of the pre-arranged code corresponding with described emotional information that described acquisition pre-saves includes:
According to described by surging value, determine the second pre-arranged code of intensity grade for representing user emotion;
Wherein, described by described pre-arranged code and complete editor the first communication message be combined as second communication information send to connecing The step of receiving end includes:
With the first communication message completing editor, described first pre-arranged code and described second pre-arranged code are combined as second lead to News information sends to receiving terminal.
Method for sending information the most according to claim 2, it is characterised in that described according to described face-image, determines use The step of the first pre-arranged code that Yu represents user emotion includes:
Determine the face characteristic of described face-image;
According to described face characteristic, determine described first pre-arranged code.
Method for sending information the most according to claim 2, it is characterised in that described collection user disappears in editor's the first communication The step of face-image during breath includes:
Whether detection ambient light value is more than or equal to preset value;
If more than or equal to preset value, then gather user's face-image when editing the first communication message.
Method for sending information the most according to claim 3, it is characterised in that press surging value described in described basis, determine Include for representing the step of the second pre-arranged code of the intensity grade of user emotion:
Calculate user, when editing the first communication message, the average of mobile terminal screen is pressed surging value;
Calculating described surging value and the overall average of averagely press by the ratio of surging value, wherein, described overall average presses surging value During the user's whole use to mobile terminal, it is average by surging value that mobile terminal screen is pressed;
According to calculated ratio, determine described second pre-arranged code.
Method for sending information the most according to claim 2, it is characterised in that described collection user disappears in editor's the first communication The step of face-image during breath includes:
Gather the user's one or more face-images when editing the first communication message;
Wherein, described according to described face-image, determine that the step of the first pre-arranged code for representing user emotion includes:
Identify the user emotion that each described face-image is corresponding, and record the number of times that every kind of user emotion occurs;
Will appear from coding corresponding to the most user emotion of number of times as the first pre-arranged code.
Method for sending information the most according to claim 1, it is characterised in that described transmission by described pre-arranged code extremely receives The step of end includes:
Described pre-arranged code is sent to receiving terminal with invisible field form.
9. a message receiving method, is applied to receiving terminal, it is characterised in that described message receiving method includes:
The second communication message that receiving end/sending end is sent, wherein, described second communication message includes: transmitting terminal user edit The first communication message and the pre-arranged code corresponding with the emotional information of transmitting terminal user;
Obtaining corresponding with described pre-arranged code, to be used for characterizing mood feedback information, wherein said feedback information includes: figure One or more in picture, sound and vibration;
Show described first communication message and export described feedback information.
Message receiving method the most according to claim 9, it is characterised in that described acquisition is corresponding with described pre-arranged code , include for the step of the feedback information that characterizes mood:
Obtain the feedback information corresponding with described pre-arranged code pre-saved.
11. 1 kinds of mobile terminals, are applied to transmitting terminal, it is characterised in that described mobile terminal includes:
First acquisition module, for obtaining user's emotional information when editing the first communication message;
Second acquisition module, for obtaining corresponding pre-of emotional information obtained with described first acquisition module pre-saved If coding;
Sending module, for the pre-arranged code obtained by described second acquisition module and the first communication message combination completing editor It is that the second communication information sends to receiving terminal.
12. mobile terminals according to claim 11, it is characterised in that described first acquisition module includes:
Collecting unit, for gathering user's face-image when editing the first communication message;
Wherein, described second acquisition module includes:
First determines unit, for the described face-image gathered according to described collecting unit, determines for representing user emotion The first pre-arranged code.
13. mobile terminals according to claim 12, it is characterised in that described first acquisition module also includes:
Acquiring unit, for obtain user edit the first communication message time to mobile terminal screen by surging value;
Wherein, described second acquisition module also includes:
Second determines unit, for according to described acquiring unit obtain described in by surging value, determine for representing user's feelings Second pre-arranged code of the intensity grade of thread;
Wherein, described sending module includes:
By described first, first transmitting element, for determining that the first pre-arranged code and described second that unit determines determines that unit is true The second fixed pre-arranged code and the first communication message completing editor are combined as the second communication information and send to receiving terminal.
14. mobile terminals according to claim 12, it is characterised in that described first determines that unit includes:
First determines subelement, for determining the face characteristic of described face-image;
Second determines subelement, for determining, according to described first, the face characteristic that subelement determines, determines that described first presets Coding.
15. mobile terminals according to claim 12, it is characterised in that described collecting unit includes:
Detection sub-unit, is used for whether detecting ambient light value more than or equal to preset value;
First gathers subelement, is used for when the ambient light value that described detection sub-unit detects is more than or equal to preset value, Gather user's face-image when editing the first communication message.
16. mobile terminals according to claim 13, it is characterised in that described second determines that unit includes:
First computation subunit, for calculating user average by pressure to mobile terminal screen when editing the first communication message Angle value;
Second computation subunit, is used for calculating described first computation subunit calculated average by surging value and overall average By the ratio of surging value, wherein, during described overall average is the user's whole use to mobile terminal by surging value, move It is average by surging value that dynamic terminal screen is pressed;
3rd determines subelement, for according to the described second calculated ratio of computation subunit, determines that described second presets Coding.
17. mobile terminals according to claim 12, it is characterised in that described collecting unit includes:
Second gathers subelement, for gathering the user's one or more face-images when editing the first communication message;
Wherein, described first determines that unit includes:
Identify subelement, for identifying user's feelings that each described face-image of described second collection subelement collection is corresponding Thread, and record the number of times that every kind of user emotion occurs;
Process subelement, for using coding corresponding for user emotions most for the occurrence number of described identification subelement record as First pre-arranged code.
18. mobile terminals according to claim 11, it is characterised in that described sending module specifically for: by described pre- Send to receiving terminal with invisible field form if encoding.
19. 1 kinds of mobile terminals, are applied to receiving terminal, it is characterised in that described mobile terminal includes:
Receiver module, the second communication message sent for receiving end/sending end, wherein, described second communication message includes: The first communication message that transmitting terminal user edits and the pre-arranged code corresponding with the emotional information of transmitting terminal user;
3rd acquisition module, for obtaining corresponding with described pre-arranged code, to be used for characterizing mood feedback information, wherein said Feedback information includes: one or more in image, sound and vibration;
Processing module, the feedback information obtained for described 3rd acquisition module of display the first communication message and output.
20. mobile terminals according to claim 19, it is characterised in that described 3rd acquisition module includes:
Second transmitting element, for obtaining the feedback information corresponding with described pre-arranged code pre-saved.
CN201610356810.XA 2016-05-25 2016-05-25 A kind of information sending and receiving method and mobile terminal Active CN105871696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610356810.XA CN105871696B (en) 2016-05-25 2016-05-25 A kind of information sending and receiving method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610356810.XA CN105871696B (en) 2016-05-25 2016-05-25 A kind of information sending and receiving method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105871696A true CN105871696A (en) 2016-08-17
CN105871696B CN105871696B (en) 2020-02-18

Family

ID=56642271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610356810.XA Active CN105871696B (en) 2016-05-25 2016-05-25 A kind of information sending and receiving method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105871696B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161215A (en) * 2016-08-31 2016-11-23 维沃移动通信有限公司 A kind of method for sending information and mobile terminal
CN106599204A (en) * 2016-12-15 2017-04-26 广州酷狗计算机科技有限公司 Method and device for recommending multimedia content
WO2018119924A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Method and device for adjusting user mood
CN110069991A (en) * 2019-03-18 2019-07-30 深圳壹账通智能科技有限公司 Feedback information determines method, apparatus, electronic equipment and storage medium
CN111200552A (en) * 2018-11-16 2020-05-26 腾讯科技(深圳)有限公司 Instant communication method and device, equipment and storage medium thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662546A (en) * 2009-09-16 2010-03-03 中兴通讯股份有限公司 Method of monitoring mood and device thereof
CN101976450A (en) * 2010-11-02 2011-02-16 北京航空航天大学 Asymmetric human face expression coding method
CN102323919A (en) * 2011-08-12 2012-01-18 百度在线网络技术(北京)有限公司 Method for displaying input information based on user mood indication information and equipment
CN104239515A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 Mood information implementation method and system
CN104412258A (en) * 2014-05-22 2015-03-11 华为技术有限公司 Method and device utilizing text information to communicate
CN104753766A (en) * 2015-03-02 2015-07-01 小米科技有限责任公司 Expression sending method and device
US20150324348A1 (en) * 2014-05-09 2015-11-12 Lenovo (Singapore) Pte, Ltd. Associating an image that corresponds to a mood
CN105227765A (en) * 2015-09-10 2016-01-06 三星电子(中国)研发中心 Interactive approach in communication process and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662546A (en) * 2009-09-16 2010-03-03 中兴通讯股份有限公司 Method of monitoring mood and device thereof
CN101976450A (en) * 2010-11-02 2011-02-16 北京航空航天大学 Asymmetric human face expression coding method
CN102323919A (en) * 2011-08-12 2012-01-18 百度在线网络技术(北京)有限公司 Method for displaying input information based on user mood indication information and equipment
US20150324348A1 (en) * 2014-05-09 2015-11-12 Lenovo (Singapore) Pte, Ltd. Associating an image that corresponds to a mood
CN104412258A (en) * 2014-05-22 2015-03-11 华为技术有限公司 Method and device utilizing text information to communicate
CN104239515A (en) * 2014-09-16 2014-12-24 广东欧珀移动通信有限公司 Mood information implementation method and system
CN104753766A (en) * 2015-03-02 2015-07-01 小米科技有限责任公司 Expression sending method and device
CN105227765A (en) * 2015-09-10 2016-01-06 三星电子(中国)研发中心 Interactive approach in communication process and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161215A (en) * 2016-08-31 2016-11-23 维沃移动通信有限公司 A kind of method for sending information and mobile terminal
CN106599204A (en) * 2016-12-15 2017-04-26 广州酷狗计算机科技有限公司 Method and device for recommending multimedia content
WO2018119924A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Method and device for adjusting user mood
US11291796B2 (en) 2016-12-29 2022-04-05 Huawei Technologies Co., Ltd Method and apparatus for adjusting user emotion
CN111200552A (en) * 2018-11-16 2020-05-26 腾讯科技(深圳)有限公司 Instant communication method and device, equipment and storage medium thereof
CN111200552B (en) * 2018-11-16 2022-05-13 腾讯科技(深圳)有限公司 Instant communication method and device, equipment and storage medium thereof
CN110069991A (en) * 2019-03-18 2019-07-30 深圳壹账通智能科技有限公司 Feedback information determines method, apparatus, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105871696B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN107124352B (en) A voice information processing method and mobile terminal
CN106357927A (en) Playing control method and mobile terminal
CN106020613A (en) Operation method and mobile terminal for unread messages
CN107678644A (en) A kind of image processing method and mobile terminal
CN106341538B (en) A method for pushing lyrics posters and a mobile terminal
CN105871696B (en) A kind of information sending and receiving method and mobile terminal
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN106777329A (en) The processing method and mobile terminal of a kind of image information
CN107423351A (en) A kind of information processing method and electronic equipment
CN107479818A (en) A kind of information interacting method and mobile terminal
CN106454456A (en) Video playing control method and mobile terminal
CN106952235A (en) Image processing method and mobile terminal
CN106341608A (en) Emotion based shooting method and mobile terminal
CN106446180A (en) A song recognition method and mobile terminal
CN106412282A (en) Real-time message voice prompting method and mobile terminal
CN107145238A (en) A kind of method for sending information and electronic equipment
CN106210231A (en) A kind of method of information processing and mobile terminal
CN107105342A (en) A kind of video playing control method and mobile terminal
CN107483441A (en) A communication method and mobile terminal
CN106126535A (en) The processing method of a kind of text and terminal
CN106385508A (en) Information display method and mobile terminal
CN106375862B (en) A method, device and terminal for acquiring GIF pictures
CN108710521A (en) A kind of note generation method and terminal device
CN107613102A (en) A conversation information input method and mobile terminal
CN106973154A (en) A kind of reminding method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant