CN112230833B - Expression image processing method, sending device, receiving device, and server - Google Patents
Expression image processing method, sending device, receiving device, and server Download PDFInfo
- Publication number
- CN112230833B CN112230833B CN202011126877.7A CN202011126877A CN112230833B CN 112230833 B CN112230833 B CN 112230833B CN 202011126877 A CN202011126877 A CN 202011126877A CN 112230833 B CN112230833 B CN 112230833B
- Authority
- CN
- China
- Prior art keywords
- image
- expression image
- expression
- emoticon
- characters
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-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)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明总体说来涉及通信领域,更具体地讲,涉及一种表情图像处理方法、发送装置、接收装置以及服务器。The present invention generally relates to the field of communications, and more particularly, to an expression image processing method, a sending device, a receiving device, and a server.
背景技术Background technique
在聊天软件中,发送表情可以比发送纯文字更加声情并茂的表达感受,深受大家喜爱。In chat software, sending emoticons can express feelings more emotionally than plain text, and is deeply loved by everyone.
然而,细究会发现,对话界面中显示的表情方向时常是反的。However, on closer inspection, the direction of the expressions displayed in the dialogue interface is often reversed.
例如,图1是示出现有的聊天对话框中的表情显示方式的示意图,如图1中所示,联系人发来的表情位于左侧,每个表情都是向着左边,与右侧发送方的表情没有彼此面对,没有“对话”的互动氛围。For example, FIG. 1 is a schematic diagram showing the way of displaying expressions in the existing chat dialog box. As shown in FIG. 1 , the expressions sent by the contact are on the left side, and each expression is directed to the left, which is different from the sender on the right side. The expressions do not face each other, and there is no interactive atmosphere of "dialogue".
表情方向虽不影响主要信息的传递,但降低了对话的亲切感,影响用户体验。Although the expression direction does not affect the transmission of the main information, it reduces the intimacy of the dialogue and affects the user experience.
发明内容SUMMARY OF THE INVENTION
本发明的示例性实施例在于提供一种表情图像处理方法及相应的装置,以解决现有技术存在的由于收发表情显示方向的不匹配而导致的亲切感降低,用户体验差的技术问题。Exemplary embodiments of the present invention provide an expression image processing method and a corresponding device to solve the technical problems in the prior art that the intimacy is reduced and the user experience is poor due to the mismatch of the display directions of the sending and receiving expressions.
根据本发明的一方面,提供一种表情图像处理方法,该表情图像处理方法包括:响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像,向会话接收方发送与第一表情图像对应的第二表情图像,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to an aspect of the present invention, there is provided an expression image processing method, the expression image processing method comprising: in response to a first operation of the first expression image by a user, displaying the first expression image in a conversation area of a first conversation window, Send a second emoticon image corresponding to the first emoticon image to the conversation recipient, so that the second emoticon image is displayed in the conversation area of the second conversation window of the conversation recipient, wherein the first emoticon image and the second emoticon image have Image subject with the same content but opposite orientation.
可选地,向会话接收方发送与第一表情图像对应的第二表情图像的步骤可包括根据第一表情图像从本地表情库或服务器中获取第二表情图像。Optionally, the step of sending a second emoticon image corresponding to the first emoticon image to the session recipient may include acquiring the second emoticon image from a local emoticon database or a server according to the first emoticon image.
可选地,向会话接收方发送与第一表情图像对应的第二表情图像的步骤可包括将第一表情图像转换为第二表情图像。Optionally, the step of sending a second emoticon image corresponding to the first emoticon image to the conversation recipient may include converting the first emoticon image into a second emoticon image.
可选地,将第一表情图像转换为第二表情图像的步骤可包括:响应于用户对转换控件的第二操作而将第一表情图像转换为第二表情图像。Optionally, the step of converting the first emoticon image into the second emoticon image may include: converting the first emoticon image into the second emoticon image in response to the user's second operation on the converting control.
可选地,将第一表情图像转换为第二表情图像的步骤可包括:响应于获得的第一表情图像的方向属性而将第一表情图像转换为与第二会话窗口显示表情图像的位置相匹配的第二表情图像。Optionally, the step of converting the first facial expression image to the second facial expression image may include: in response to the obtained orientation attribute of the first facial expression image, converting the first facial expression image to a position corresponding to the position where the facial expression image is displayed in the second conversation window. The matching second emoticon image.
可选地,第一表情图像和第二表情图像还可包括文字,将第一表情图像转换为第二表情图像的步骤可包括镜像转换第一表情图像的图像主体并移动第一表情图像中的文字以使移动前后的文字相对于图像主体的相对位置关系保持不变。Optionally, the first expression image and the second expression image may further include text, and the step of converting the first expression image to the second expression image may include mirror-transforming the image body of the first expression image and moving the image body in the first expression image. Text so that the relative positional relationship between the text before and after the movement relative to the main image remains unchanged.
根据本发明的另一方面,提供一种表情图像处理方法,该表情图像处理方法包括:响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像,向会话接收方或服务器发送第一表情图像以及将第一表情图像转换为第二表情图像的转换标志,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, an expression image processing method is provided, the expression image processing method comprising: in response to a first operation by a user on the first expression image, displaying the first expression image in a conversation area of a first conversation window , sending the first emoticon image and the conversion flag for converting the first emoticon image into the second emoticon image to the conversation recipient or the server, so that the second emoticon image is displayed in the conversation area of the second conversation window of the conversation recipient, wherein , the first expression image and the second expression image have image bodies with the same content but opposite directions.
根据本发明的另一方面,提供一种表情图像处理方法,该表情图像处理方法包括:从会话发送方接收第一表情图像和转换标志;从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像,向会话接收方发送第二表情图像,或者向会话接收方转发第一表情图像和转换标志两者;其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, there is provided an expression image processing method, the expression image processing method comprising: receiving a first expression image and a conversion flag from a conversation sender; acquiring a second expression corresponding to the first expression image from an expression library The image either converts the first expression image into a second expression image based on the conversion mark, sends the second expression image to the conversation receiver, or forwards both the first expression image and the conversion mark to the conversation receiver; The second facial expression image has image bodies with the same content but opposite directions.
根据本发明的另一方面,提供一种表情图像处理方法,该表情图像处理方法包括:接收第一表情图像和转换标志;从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像;在会话接收方的第二会话窗口的会话区域中显示第二表情图像;其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, an expression image processing method is provided. The expression image processing method includes: receiving a first expression image and a conversion flag; acquiring a second expression image corresponding to the first expression image from an expression database or converting The sign converts the first expression image into the second expression image; displays the second expression image in the conversation area of the second conversation window of the conversation receiver; wherein the first expression image and the second expression image have the same content but opposite directions Image subject.
根据本发明的另一方面,提供一种表情图像处理方法,该表情图像处理方法包括:接收第一表情图像和转换标志;响应于转换标志向服务器发送请求第二表情图像的请求信号;从服务器接收与第一表情图像对应的第二表情图像;在会话接收方的第二会话窗口的会话区域中显示第二表情图像,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, an expression image processing method is provided, the expression image processing method comprising: receiving a first expression image and a conversion mark; sending a request signal for a second expression image to a server in response to the conversion mark; Receive a second emoticon image corresponding to the first emoticon image; display the second emoticon image in the conversation area of the second conversation window of the conversation recipient, wherein the first emoticon image and the second emoticon image have the same content but opposite directions Image subject.
根据本发明的另一方面,提供一种表情图像发送装置,该表情图像发送装置包括:显示单元,响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像,发送单元,向会话接收方发送与第一表情图像对应的第二表情图像,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, there is provided an expression image sending device, the expression image sending device comprising: a display unit for displaying a first expression image in a conversation area of a first conversation window in response to a user's first operation on the first expression image an emoticon image, the sending unit sends a second emoticon image corresponding to the first emoticon image to the conversation recipient, so that the second emoticon image is displayed in the conversation area of the second conversation window of the conversation recipient, wherein the first emoticon image is The image and the second facial expression image have image bodies with the same content but opposite directions.
可选地,表情图像发送装置还可包括适配单元,适配单元被配置为根据第一表情图像从本地表情库或服务器获取第二表情图像。Optionally, the expression image sending apparatus may further include an adaptation unit, and the adaptation unit is configured to acquire the second expression image from the local expression database or the server according to the first expression image.
可选地,表情图像发送装置还可包括适配单元,适配单元被配置为将第一表情图像转换为第二表情图像。Optionally, the expression image sending apparatus may further include an adaptation unit configured to convert the first expression image into the second expression image.
可选地,表情图像发送装置还可包括适配单元,适配单元被配置为:响应于用户对转换控件的第二操作而将第一表情图像转换为第二表情图像。Optionally, the expression image sending apparatus may further include an adapting unit, and the adapting unit is configured to convert the first expression image into the second expression image in response to the user's second operation on the conversion control.
可选地,第一表情图像和第二表情图像还可包括文字,适配单元可被进一步配置为:响应于获得的第一表情图像的方向属性而将第一表情图像转换为与第二会话窗口显示表情图像的位置相匹配的第二表情图像。Optionally, the first facial expression image and the second facial expression image may further include text, and the adaptation unit may be further configured to: in response to the obtained orientation attribute of the first facial expression image, convert the first facial expression image into a conversation with the second facial expression image. The window displays the second emoticon image that matches the position of the emoticon image.
可选地,适配单元可被进一步配置为镜像转换第一表情图像的图像主体并移动第一表情图像中的文字以使移动前后的文字相对于图像主体的相对位置关系保持不变。Optionally, the adaptation unit may be further configured to mirror-transform the image body of the first facial expression image and move the text in the first facial expression image so that the relative positional relationship of the text with respect to the image body before and after the movement remains unchanged.
根据本发明的另一方面,提供一种服务器,该服务器包括:接收单元,从表情图像发送装置接收第一表情图像和转换标志;适配单元,从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像;发送单元,向会话接收方发送第二表情图像或者向会话接收方转发第一表情图像和转换标志两者,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, there is provided a server, the server comprising: a receiving unit for receiving a first expression image and a conversion flag from an expression image sending device; an adaptation unit for acquiring a first expression image corresponding to the first expression image from an expression library The second expression image or the first expression image is converted into the second expression image based on the conversion mark; the sending unit sends the second expression image to the conversation receiver or forwards both the first expression image and the conversion mark to the conversation receiver, wherein the first expression image is The first expression image and the second expression image have image bodies with the same content but opposite directions.
根据本发明的另一方面,提供一种表情图像接收装置,该表情图像接收装置包括:接收单元,从接收第一表情图像和转换标志;适配单元,从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像;显示单元,在会话接收方的第二会话窗口的会话区域中显示第二表情图像;其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, there is provided an expression image receiving device, the expression image receiving device comprising: a receiving unit for receiving a first expression image and a conversion flag; an adaptation unit for acquiring from an expression library corresponding to the first expression image The second emoticon image or the first emoticon image is converted into a second emoticon image based on the conversion flag; the display unit displays the second emoticon image in the conversation area of the second conversation window of the conversation recipient; wherein, the first emoticon image and The second facial expression image has image bodies with the same content but opposite directions.
根据本发明的另一方面,提供一种表情图像接收装置,该表情图像接收装置可包括:第一接收单元,接收第一表情图像和转换标志;发送单元,响应于转换标志向服务器发送请求第二表情图像的请求信号;第二接收单元,从服务器接收与第一表情图像对应的第二表情图像;显示单元,在第二会话窗口的会话区域中显示第二表情图像,其中,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。According to another aspect of the present invention, an expression image receiving device is provided, the expression image receiving device may include: a first receiving unit for receiving a first expression image and a conversion mark; a sending unit for sending a request to a server in response to the conversion mark Two request signals for emoticon images; a second receiving unit, receiving a second emoticon image corresponding to the first emoticon image from the server; a display unit, displaying the second emoticon image in the conversation area of the second conversation window, wherein the first emoticon image is The image and the second facial expression image have image bodies with the same content but opposite directions.
根据本发明的实施例,通过调整表情图像的显示方向,从而创造更和谐友善的聊天体验。According to the embodiment of the present invention, a more harmonious and friendly chat experience is created by adjusting the display direction of the expression image.
附图说明Description of drawings
通过下面结合示例性地示出实施例的附图进行的描述,本发明示例性实施例的上述和其他目的和特点将会变得更加清楚,其中:The above and other objects and features of the exemplary embodiments of the present invention will become more apparent from the following description in conjunction with the accompanying drawings that exemplarily illustrate the embodiments, in which:
图1是示出现有的聊天对话框中的表情显示方式的示意图。FIG. 1 is a schematic diagram illustrating an expression display manner in a conventional chat dialog.
图2A是示出根据本发明的第一实施例的表情图像处理方法的流程图;FIG. 2A is a flow chart illustrating an expression image processing method according to the first embodiment of the present invention;
图2B是示出根据本发明的第一实施例的表情图像处理方法处理后的表情图像;Fig. 2B shows the expression image processed by the expression image processing method according to the first embodiment of the present invention;
图2C是示出根据本发明的第一实施例的表情图像处理方法处理后的表情图像;Fig. 2C shows the expression image processed by the expression image processing method according to the first embodiment of the present invention;
图3是示出根据本发明的第二实施例的表情图像处理方法的流程图;FIG. 3 is a flowchart illustrating an expression image processing method according to a second embodiment of the present invention;
图4是示出根据本发明的第三实施例的表情图像处理方法的流程图;FIG. 4 is a flow chart illustrating an expression image processing method according to a third embodiment of the present invention;
图5是示出根据本发明的第四实施例的表情图像处理方法的流程图;FIG. 5 is a flow chart illustrating an expression image processing method according to a fourth embodiment of the present invention;
图6是示出根据本发明的第五实施例的表情图像处理方法的流程图;FIG. 6 is a flow chart illustrating an expression image processing method according to a fifth embodiment of the present invention;
图7A和图7B是示出根据本发明的第一实施例的表情图像发送装置的框图;7A and 7B are block diagrams showing an expression image transmitting apparatus according to the first embodiment of the present invention;
图8是示出根据本发明的第一实施例的表情图像接收装置的框图;8 is a block diagram showing an expression image receiving apparatus according to the first embodiment of the present invention;
图9是示出根据本发明的第二实施例的表情图像接收装置的框图;9 is a block diagram showing an expression image receiving apparatus according to a second embodiment of the present invention;
图10是示出根据本发明的实施例的服务器的框图。10 is a block diagram illustrating a server according to an embodiment of the present invention.
具体实施方式Detailed ways
现将详细参照本发明的实施例,所述实施例的示例在附图中示出,其中,相同的标号始终指的是相同的部件。以下将通过参照附图来说明所述实施例,以便解释本发明。Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below in order to explain the present invention by referring to the figures.
在本发明的实施例中,表情图像可以是表情图片(静态/动态)等,表情图像中的可以表达情绪、传递信息的图文可统称为表情元素。In the embodiment of the present invention, the expression image may be an expression picture (static/dynamic), etc., and the pictures and texts in the expression image that can express emotions and transmit information may be collectively referred to as expression elements.
表情图像可由制作方制作,或者可由转换生成等,制作方在制作表情图像时,制作方可以赋予每个表情图像以方向属性(通过每个表情图像的方向属性值体现)。发行后,使用方可下载到含有方向属性的表情图像,可直接使用该表情图像的方向属性值,无需再对表情图像的方向和元素等进行单独的识别。The expression image can be produced by the producer, or can be generated by conversion, etc. When the producer produces the expression image, the producer can assign each expression image an orientation attribute (represented by the orientation attribute value of each expression image). After the release, the user can download the expression image containing the orientation attribute, and can directly use the orientation attribute value of the expression image, without the need to separately identify the orientation and elements of the expression image.
表情图像的方向属性的存储可具有两种方式,表情图像一般为图片格式,图片可具有显式的用户可见的属性以及隐藏属性2种。The direction attribute of the expression image can be stored in two ways. The expression image is generally in a picture format, and the picture can have two types: an explicit user-visible attribute and a hidden attribute.
方向属性可存于图片的显式属性中,该属性可以是使用现有图片属性中的某一个,或者根据本发明的实施例新增一个专用属性,对用户可见。The direction attribute can be stored in the explicit attribute of the picture, and the attribute can be one of the existing picture attributes, or a dedicated attribute is added according to the embodiment of the present invention, which is visible to the user.
例如,在图片的某一个属性上添加方向值,譬如为offline status的属性赋值为left(向左),由此表示当前表情图像具有向左的方向属性。又或者可以创建新的属性orientation(定向),用于专门表示表情图像中的表情的方向。For example, a direction value is added to a certain attribute of the image, for example, the attribute of offline status is assigned as left (leftward), thereby indicating that the current expression image has a leftward direction attribute. Alternatively, a new attribute orientation can be created to specifically represent the orientation of the expression in the expression image.
方向属性也可存于图片隐藏属性。不同图片有自己的编码格式,根据图片的编码格式,可以在图片的隐藏属性中追加方向属性。在图片展示时,可通过解析图片的隐藏属性,获得方向属性。下面将对结合本发明的优选实施例进行详细描述。Orientation properties can also be stored in the image hidden properties. Different pictures have their own encoding format. According to the encoding format of the picture, the direction attribute can be added to the hidden attribute of the picture. When the image is displayed, the direction attribute can be obtained by parsing the hidden attribute of the image. The preferred embodiments of the present invention will be described in detail below.
图2A是示出根据本发明的第一实施例的表情图像处理方法的流程图。FIG. 2A is a flowchart illustrating an expression image processing method according to the first embodiment of the present invention.
根据本发明的第一实施例的表情处理方法可包括步骤S101和步骤S102。The expression processing method according to the first embodiment of the present invention may include step S101 and step S102.
在步骤S101,响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像。In step S101, in response to the user's first operation on the first facial expression image, the first facial expression image is displayed in the conversation area of the first conversation window.
这里,对第一表情图像的第一操作可包括用于选择第一表情图像的操作(例如,触摸)等,例如,在触摸屏上直接触摸第一表情图像。第一会话窗口可以是会话发送方显示的会话窗口,或者不限于发送方或接收方的群聊窗口。Here, the first operation on the first expression image may include an operation (eg, touch) for selecting the first expression image, etc., for example, directly touching the first expression image on the touch screen. The first conversation window may be a conversation window displayed by a conversation sender, or not limited to a group chat window of the sender or the recipient.
在步骤S102,向会话接收方发送与第一表情图像对应的第二表情图像,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像。In step S102, a second emoticon image corresponding to the first emoticon image is sent to the conversation recipient, so that the second emoticon image is displayed in the conversation area of the second conversation window of the conversation recipient.
这里,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。作为示例,第一表情图像与第二表情图像中的图像主体可成镜像关系,第二表情图像可通过翻转第一表情图像获得,例如,第二表情图像的图像主体可通过翻转第一表情图像的图像主体获得。Here, the first expression image and the second expression image have image bodies with the same content but opposite directions. As an example, the first expression image and the image subject in the second expression image may be in a mirror image relationship, and the second expression image may be obtained by flipping the first expression image. For example, the image subject of the second expression image may be obtained by flipping the first expression image. The subject of the image is obtained.
图2B是示出根据本发明的第一实施例的表情图像处理方法处理后的表情图像,图2C是示出根据本发明的第一实施例的表情图像处理方法处理后的表情图像。2B shows an expression image processed by the expression image processing method according to the first embodiment of the present invention, and FIG. 2C shows an expression image processed by the expression image processing method according to the first embodiment of the present invention.
如图2B,左侧的图像可以为第一表情图像,右侧的图像可以为第二表情图像,第一表情图像和第二表情图像的图像主体中的元素可相同,但第一表情图像和第二表情图像的方向相反。图像主体可以至少包括表情图像中的便于识别表情图像的方向的图像元素。As shown in FIG. 2B , the image on the left may be the first expression image, and the image on the right may be the second expression image. The elements in the image bodies of the first expression image and the second expression image may be the same, but the first expression image and the second expression image may have the same elements. The direction of the second expression image is reversed. The image body may include at least an image element in the expression image that facilitates identification of the direction of the expression image.
如上所示,第一表情图像的方向可通过其方向属性确定,第一表情图像的方向也可通过识别第一表情图像中的拟人化的特征元素确定。As shown above, the orientation of the first facial expression image can be determined by its directional attribute, and the orientation of the first facial expression image can also be determined by identifying anthropomorphic feature elements in the first facial expression image.
例如,可以对表情图像中的眼、耳、口、鼻、四肢等拟人化的特征元素进行识别,在判定消息中含有特征元素之后,进一步判断特征元素获得表情的方向属性,譬如:头部/肢体的偏转角度(譬如四肢、双耳的比例差距)、运动方向的倾向性(譬如身体倾斜、动图多帧图片中主体的位置改变方向等)、眼神的偏移方向(眼珠靠左/右)等。For example, anthropomorphic feature elements such as eyes, ears, mouth, nose, and limbs in an expression image can be identified, and after determining that the message contains feature elements, the feature elements can be further judged to obtain the direction attribute of the expression, such as: head/ The deflection angle of the limbs (such as the proportional difference between the limbs and ears), the tendency of the movement direction (such as the body tilt, the position of the subject in the multi-frame picture of the moving picture changes direction, etc.), the offset direction of the eyes (the eyes are left/right )Wait.
至此,表情元素可被判定是否具有方向属性,例如有向左的方向属性,或者向右的方向属性,或者无方向性等。So far, the expression element can be determined whether it has a direction attribute, for example, it has a left direction attribute, or a right direction attribute, or has no direction.
作为示例,向会话接收方发送与第一表情图像对应的第二表情图像的步骤S102可包括根据第一表情图像从本地表情库或服务器中获取第二表情图像。即,第二表情图像可以是原本就存在于本地表情库或服务器的表情图像,例如,制作方在制作表情图像时便可制作具有两种或更多种方向属性的表情图像或者原本已将第一表情图像转换成第二表情图像,并且第二表情图像被存储在本地表情库或服务器中,或者以云的形式存储。As an example, the step S102 of sending the second emoticon image corresponding to the first emoticon image to the session recipient may include acquiring the second emoticon image from a local emoticon database or a server according to the first emoticon image. That is, the second emoticon image may be an emoticon image originally existing in the local emoticon database or server. For example, the producer can create an emoticon image with two or more directional attributes when creating an emoticon image, or the first emoticon image has been originally An emoticon image is converted into a second emoticon image, and the second emoticon image is stored in a local emoticon library or server, or stored in the form of a cloud.
当发送方的用户选择第一表情图像时,能够增加亲切感、增强用户体验的第二表情图像可被发送给接收方。When the user of the sender selects the first emoticon image, the second emoticon image capable of increasing intimacy and enhancing user experience can be sent to the receiver.
作为示例,根据第一表情图像可以包括基于第一表情图像的方向属性是否与将要显示表情图像的位置信息(在会话窗口中的显示位置信息)相匹配。可以在第一表情图像与会话窗口中的表情图像显示位置不匹配的情况下,向会话接收方发送第二表情图像,或者在会话窗口中显示第二表情图像。As an example, according to the first expression image may include whether the orientation attribute of the first expression image matches the position information (display position information in the conversation window) where the expression image is to be displayed. In the case where the first emoticon image does not match the display position of the emoticon image in the conversation window, the second emoticon image may be sent to the conversation recipient, or the second emoticon image may be displayed in the conversation window.
第二表情图像(新的表情图像或转换后的表情图像)和第一表情图像(原表情图像)可用链式或者罗列式的方式同时存储在客户端(例如,发送方)/服务器端、云端的设备上。The second emoticon image (new emoticon image or converted emoticon image) and the first emoticon image (original emoticon image) can be stored in the client (for example, the sender)/server, cloud at the same time in a chain or list format. on the device.
链式存储方式是指新表情图像与原表情图像以属性作为区分、以地址链作为连接,一起存在于设备中。一个为显式存储(用户可以看到它),其余为隐式存储(用户看不到它)。可将原表情图像资源显式存储,或者适合发送方的表情资源显式存储。The chain storage method means that the new emoticon image and the original emoticon image are distinguished by attributes and connected by the address chain, and exist together in the device. One is explicitly stored (the user can see it) and the rest are implicitly stored (the user cannot see it). The original emoticon image resource can be explicitly stored, or the emoticon resource suitable for the sender can be explicitly stored.
罗列式的存储是指将各个方向的表情图像同时陈列在表情管理栏中,均对用户可见。Listed storage refers to the simultaneous display of expression images in all directions in the expression management column, which are all visible to the user.
再者,可对有多个方向属性或资源的表情图像,仅显示一个方向的表情资源,且在该显示的表情资源上添加特殊的标志。当用户在表情管理栏中点击该资源时,罗列展开显示所有方向的表情,供用户二次选择。Furthermore, for an emoticon image with multiple directional attributes or resources, only one directional emoticon resource can be displayed, and a special logo can be added to the displayed emoticon resource. When the user clicks the resource in the expression management bar, the expressions in all directions will be listed and expanded for the user to select again.
可选地,可通过改变方向属性值更换用户可见的表情图图像资源。例如,当前用户可见资源的方向属性为向右,不可见资源为向左。改变可见资源的方向属性为向左时,实际上并不是真的改变可见资源的方向属性,而是将向左的资源变为对用户可见,向右的资源变为不可见。如此,在后续显示时,可根据显示的需要,改变图片属性值,即可达到显示不同方向表情的需求。Optionally, the user-visible emoticon image resource can be replaced by changing the value of the orientation attribute. For example, the direction property of the current user-visible resource is right, and the invisible resource is left. When changing the direction property of the visible resource to the left, it does not actually change the direction property of the visible resource, but changes the resource to the left to be visible to the user and the resource to the right to be invisible. In this way, in the subsequent display, the image attribute value can be changed according to the needs of the display, so as to meet the needs of displaying expressions in different directions.
作为示例,表情图像的方向可以为向左或向右,但本发明的实施例不限于此,表情图像的方向可具有除了向左或向右之外的其他方向。As an example, the direction of the expression image may be left or right, but embodiments of the present invention are not limited thereto, and the direction of the expression image may have other directions than left or right.
向会话接收方发送与第一表情图像对应的第二表情图像的步骤S102可包括将第一表情图像转换为第二表情图像。The step S102 of sending the second emoticon image corresponding to the first emoticon image to the conversation recipient may include converting the first emoticon image into the second emoticon image.
将第一表情图像转换为第二表情图像的步骤可包括:响应于用户对转换控件的第二操作而将第一表情图像转换为第二表情图像。The converting the first emoticon image into the second emoticon image may include converting the first emoticon image into the second emoticon image in response to a second operation of the conversion control by the user.
这里的转换控件可以为软件虚拟按钮,第二操作包括但不限于对转换控件的直接触摸。The conversion control here may be a software virtual button, and the second operation includes, but is not limited to, direct touch on the conversion control.
将第一表情图像转换为第二表情图像的步骤包括:响应于获得的第一表情图像的方向属性而将第一表情图像转换为与第二会话窗口显示表情图像的位置相匹配的第二表情图像。The step of converting the first facial expression image into the second facial expression image includes: in response to the obtained orientation attribute of the first facial expression image, converting the first facial expression image into a second facial expression matching the position where the facial expression image is displayed in the second conversation window image.
例如,如果获得的第一表情图像的方向属性为向左并且第二会话窗口显示表情图像的位置为屏幕左侧,那么可以将具有向左的方向属性的第一表情图像转换为具有向右方向属性的第二表情图像。For example, if the obtained orientation attribute of the first emoticon image is left and the position where the emoticon image is displayed in the second session window is the left side of the screen, then the first emoticon image with the orientation attribute of the left can be converted to have the right orientation The attribute's second emoji image.
作为示例,可通过镜像转换第一表情图像的图像主体将第一表情图像转换为第二表情图像。As an example, the first expression image may be converted into the second expression image by mirror-transforming the image body of the first expression image.
当第一表情图像包括文字时,可镜像转换第一表情图像的图像主体并移动第一表情图像中的文字以使移动前后的文字相对于图像主体的相对位置关系保持不变,从而获得第二表情图像。When the first facial expression image includes text, the image body of the first facial expression image can be mirror-transformed and the text in the first facial expression image can be moved so that the relative positional relationship between the text before and after the movement relative to the image body remains unchanged, so as to obtain the second facial expression image. Emoji image.
根据本发明的实施例,可通过光学字符识别(OCR)技术识别文字内容和/或文本框的位置,例如将第一表情图像转换为第二表情图像的步骤可包括如下步骤:According to an embodiment of the present invention, the text content and/or the position of the text box can be recognized by optical character recognition (OCR) technology. For example, the step of converting the first expression image into the second expression image may include the following steps:
a.由OCR技术识别出文字所在的文本框的位置及文字内容;a. The position of the text box where the text is located and the text content are identified by OCR technology;
b.向文本框位置填充背景色,遮挡文本框;b. Fill the background color to the text box position to cover the text box;
c.翻转已遮挡了文字的表情图像;c. Flip the expression image that has blocked the text;
d.计算翻转后的文本框的新位置;d. Calculate the new position of the flipped text box;
e.在翻转后的文本框的新位置放置a中识别出的文字内容。e. Place the text content identified in a in the new position of the flipped text box.
作为示例,将第一表情图像转换为第二表情图像的步骤也可包括如下步骤:As an example, the step of converting the first expression image into the second expression image may also include the following steps:
A.由OCR技术识别出文字所在的文本框的位置;A. The position of the text box where the text is identified by OCR technology;
B.分割文本框与图像区域;B. Split the text box and the image area;
C.翻转图像区域;C. Flip the image area;
D.移动文本框。D. Move the text box.
如图2C所示,调整后的第二表情图像可具有文字“嘿嘿”,这里的第二表情图像可以是经过上述转换后的第二表情图像,也可以是从服务器或本地表情库获得的第二表情图像。As shown in FIG. 2C , the adjusted second emoticon image may have the text "hehe", and the second emoticon image here may be the second emoticon image after the above conversion, or the first emoticon image obtained from the server or the local emoticon database. Two emoji images.
图3是示出根据本发明的第二实施例的表情图像处理方法的流程图。FIG. 3 is a flowchart illustrating an expression image processing method according to a second embodiment of the present invention.
与第一实施例的表情图像处理方法不同,第二实施例的表情图像处理方法可包括向会话接收方或服务器发送原表情图像以及相应的转换标志。Different from the expression image processing method of the first embodiment, the expression image processing method of the second embodiment may include sending the original expression image and the corresponding conversion flag to the conversation recipient or the server.
具体地,根据本发明的第二实施例的表情图像处理方法可包括S301和S302。Specifically, the expression image processing method according to the second embodiment of the present invention may include S301 and S302.
在步骤S301,响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像,In step S301, in response to the user's first operation on the first expression image, the first expression image is displayed in the conversation area of the first conversation window,
在步骤S302,向会话接收方或服务器发送第一表情图像以及将第一表情图像转换为第二表情图像的转换标志,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像。这里,第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。In step S302, send the first emoticon image and the conversion flag for converting the first emoticon image into the second emoticon image to the conversation recipient or the server, so that the second emoticon is displayed in the conversation area of the second conversation window of the conversation recipient image. Here, the first expression image and the second expression image have image bodies with the same content but opposite directions.
关于表情图像的定义、表情图像的存储、方向或方向属性的获得、添加和显示等均可如上所述,这里不再赘述。另外,需要说明的是,本发明针对各个附图、特征或术语的描述在不明显矛盾的情况下,可彼此相互适用,不受限制。The definition of the expression image, the storage of the expression image, the acquisition, addition and display of the direction or the direction attribute, etc. can all be as described above, and will not be repeated here. In addition, it should be noted that the descriptions of the various drawings, features or terms in the present invention can be mutually applicable to each other and are not limited unless they are obviously contradictory.
这里的转换标志可以用于表示或指示需要将第一表情图像转换为第二表情图像,会话发送方仅发送第一表情图像及转换标志,具体的转换可由服务器或会话接收方执行。下面将对由至少可由服务器执行的表情图像处理方法进行描述。The conversion flag here can be used to indicate or indicate that the first facial expression image needs to be converted into the second facial expression image. The session sender only sends the first facial expression image and the conversion flag, and the specific conversion can be performed by the server or the session receiver. An expression image processing method executable by at least a server will be described below.
图4是示出根据本发明的第三实施例的表情图像处理方法的流程图。FIG. 4 is a flowchart illustrating an expression image processing method according to a third embodiment of the present invention.
如图4所示,根据本发明的第三实施例的表情图像处理方法可包括步骤S401和步骤S402。As shown in FIG. 4 , the expression image processing method according to the third embodiment of the present invention may include steps S401 and S402.
在步骤S401,从会话发送方接收第一表情图像和转换标志。In step S401, the first emoticon image and the transition flag are received from the conversation sender.
在步骤S402,从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像,向会话接收方发送第二表情图像,或者向会话接收方转发第一表情图像和转换标志两者。In step S402, obtain a second emoticon image corresponding to the first emoticon image from the emoticon library or convert the first emoticon image into a second emoticon image based on the conversion flag, and send the second emoticon image to the conversation receiver, or send the conversation receiver to the second emoticon image. Both the first emoticon image and the transition logo are forwarded.
换言之,当服务器执行根据本发明的第三实施例的表情图像处理方法时,可以自己执行表情图像的转换和发送,也可以作为中继器,仅转发第一表情图像和转换标志。下面将对由至少可由表情图像接收方执行的表情图像处理方法进行描述。In other words, when the server executes the expression image processing method according to the third embodiment of the present invention, it can perform the conversion and transmission of the expression image by itself, and can also act as a repeater to forward only the first expression image and the conversion mark. The following will describe an expression image processing method executable by at least an expression image recipient.
图5是示出根据本发明的第四实施例的表情图像处理方法的流程图。FIG. 5 is a flowchart illustrating an expression image processing method according to a fourth embodiment of the present invention.
根据本发明的第四实施例的表情图像处理方法可包括步骤S501、步骤S502和步骤S503。The expression image processing method according to the fourth embodiment of the present invention may include step S501, step S502 and step S503.
在步骤S501,从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像。这里的表情库可以是接收方的本地表情库。In step S501, a second expression image corresponding to the first expression image is obtained from an expression library, or the first expression image is converted into a second expression image based on the conversion flag. The expression library here can be the local expression library of the receiver.
在步骤S502,响应于转换标志向服务器发送请求第二表情图像的请求信号。In step S502, a request signal for requesting a second emoticon image is sent to the server in response to the conversion flag.
换言之,根据本发明的第四实施例的表情图像接收装置自身不执行表情转换,并且至少第一次不从本地表情库获得第二表情图像,而是请求服务器提供第二表情图像,服务器可以从其本地表情库或云端获得第二表情图像;当然,服务器也可以继续请求会话发送方提供第二表情图像,进而转发第二表情图像;作为示例,服务器也可以响应于会话接收方的请求而将第一表情图像转换为第二表情图像,并将第二表情图像发送到会话接收方。In other words, the expression image receiving apparatus according to the fourth embodiment of the present invention does not perform expression conversion itself, and at least for the first time does not obtain the second expression image from the local expression database, but requests the server to provide the second expression image, and the server can obtain the second expression image from the server. Its local expression library or the cloud obtains the second expression image; of course, the server can also continue to request the session sender to provide the second expression image, and then forward the second expression image; The first emoticon image is converted into a second emoticon image, and the second emoticon image is sent to the conversation recipient.
具体的转换方法可利用如上所述的OCR技术,这里不再赘述。另外,如上所述的转换方法可由会话接收方(例如,表情图像接收装置)、会话发送方(例如,表情图像发送装置)和服务器等执行。The specific conversion method can use the OCR technology as described above, and details are not described here. In addition, the conversion method as described above may be performed by a conversation receiver (eg, an expression image receiving apparatus), a conversation sender (eg, an expression image transmitting apparatus), a server, and the like.
在步骤S503,在会话接收方的第二会话窗口的会话区域中显示第二表情图像。这里的第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。In step S503, a second emoticon image is displayed in the conversation area of the second conversation window of the conversation recipient. Here, the first expression image and the second expression image have image bodies with the same content but opposite directions.
图6是示出根据本发明的第五实施例的表情图像处理方法的流程图。FIG. 6 is a flowchart illustrating an expression image processing method according to a fifth embodiment of the present invention.
第五实施例的表情图像处理方法可包括:步骤S601、步骤S602、步骤S603和步骤S604。The facial expression image processing method of the fifth embodiment may include: step S601, step S602, step S603 and step S604.
在步骤S601,接收第一表情图像和转换标志,如上所述,可从会话发送方或服务器接收第一表情图像和转换标志,也可以从服务器接收表情图像和转换标志。In step S601, the first facial expression image and the conversion flag are received. As described above, the first facial expression image and the conversion flag may be received from the conversation sender or the server, and the facial expression image and the conversion flag may also be received from the server.
在步骤S602,响应于转换标志向服务器发送请求第二表情图像的请求信号。In step S602, a request signal for requesting a second emoticon image is sent to the server in response to the conversion flag.
在步骤S603,从服务器接收与第一表情图像对应的第二表情图像,类似地,根据本发明的第五实施例的表情图像处理方法请求服务器提供第二表情图像,服务器可以从其本地表情库或云端获得第二表情图像;当然,服务器也可以继续请求会话发送方提供第二表情图像,进而转发第二表情图像;作为示例,服务器也可以响应于会话接收方的请求而将第一表情图像转换为第二表情图像,并可以将第二表情图像发送到会话接收方。In step S603, a second emoticon image corresponding to the first emoticon image is received from the server. Similarly, the emoticon image processing method according to the fifth embodiment of the present invention requests the server to provide the second emoticon image, and the server can obtain the second emoticon image from its local emoticon database. or the cloud to obtain the second emoticon image; of course, the server can also continue to request the session sender to provide the second emoticon image, and then forward the second emoticon image; Converted to a second emoticon image, and can send the second emoticon image to the conversation recipient.
在步骤S604,在会话接收方的第二会话窗口的会话区域中显示第二表情图像,这里的第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。In step S604, a second facial expression image is displayed in the conversation area of the second conversation window of the conversation recipient, where the first facial expression image and the second facial expression image have image bodies with the same content but opposite directions.
作为示例,根据本发明的第一实施例至第五实施例的表情图像处理方法可包括判断第一表情图像是否与会话窗口中的表情图像显示位置相匹配,并且可以在第一表情图像与会话窗口中的表情图像显示位置不匹配的情况下,向会话接收方发送第二表情图像,或者在会话窗口中显示第二表情图像。As an example, the expression image processing methods according to the first to fifth embodiments of the present invention may include judging whether the first expression image matches the display position of the expression image in the conversation window, and may If the display positions of the emoticon images in the window do not match, the second emoticon image is sent to the conversation receiver, or the second emoticon image is displayed in the conversation window.
作为示例,制作方制作的表情图像可通常具有特定方向属性(例如,向左)且会话接收方接收的表情图像通常显示在左侧,因此,可以在用户选择第一表情图像之后,直接向会话接收方发送与第一表情图像对应的第二表情图像,或者使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像,从而增强会话亲切感,增强用户体验。下面对根据本发明的实施例的表情图像发送装置进行描述。根据本发明的实施例的表情图像发送装置或表情图像接收装置可以是诸如电话(例如,智能手机)、可穿戴装置(例如,智能手表)、笔记本电脑、台式电脑等电子装置。As an example, the emoticon image made by the producer may usually have a specific orientation attribute (eg, to the left) and the emoticon image received by the conversation receiver is usually displayed on the left side. Therefore, after the user selects the first emoticon image, the conversation can be directed to the conversation directly. The receiver sends a second emoticon image corresponding to the first emoticon image, or causes the second emoticon image to be displayed in the conversation area of the second conversation window of the conversation recipient, thereby enhancing the intimacy of the conversation and enhancing the user experience. The expression image transmitting apparatus according to the embodiment of the present invention will be described below. The expression image transmitting device or the expression image receiving device according to the embodiment of the present invention may be an electronic device such as a telephone (eg, a smart phone), a wearable device (eg, a smart watch), a notebook computer, a desktop computer, and the like.
图7A和图7B是示出根据本发明的第一实施例的表情图像发送装置的框图。7A and 7B are block diagrams showing an expression image transmitting apparatus according to the first embodiment of the present invention.
如图7A所示,第一实施例的表情图像发送装置700可包括显示单元701和发送单元702。As shown in FIG. 7A , the expression
显示单元710可以响应于用户对第一表情图像的第一操作,在第一会话窗口的会话区域中显示第一表情图像。The display unit 710 may display the first emoticon image in the conversation area of the first conversation window in response to the user's first operation on the first emoticon image.
发送单元702可向会话接收方发送与第一表情图像对应的第二表情图像,以使得在会话接收方的第二会话窗口的会话区域中显示第二表情图像,这里的第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。The sending
如图7B所示,第一实施例的图像发送装置还可包括适配单元703,适配单元可根据第一表情图像从本地表情库或服务器获取第二表情图像。适配单元703可基于第一表情图像的方向属性是否与将要显示表情图像的位置信息相匹配,例如,适配单元703可以在第一表情图像与会话窗口中的表情图像显示位置不匹配的情况下,向会话接收方发送第二表情图像,或者在会话窗口中显示第二表情图像。As shown in FIG. 7B , the image sending apparatus of the first embodiment may further include an
适配单元703也可以将第一表情图像转换为第二表情图像。例如,适配单元703可以响应于用户对转换控件的第二操作而将第一表情图像转换为第二表情图像。The
再者,适配单元703可以响应于获得的第一表情图像的方向属性而将第一表情图像转换为与第二会话窗口显示表情图像的位置相匹配的第二表情图像。当第一表情图像和第二表情图像包括文字时,适配单元703可以镜像转换第一表情图像的图像主体并移动第一表情图像中的文字以使移动前后的文字相对于图像主体的相对位置关系保持不变。适配单元703执行的具体步骤可如上a~e或A~D所述。Furthermore, the
图8是示出根据本发明的第一实施例的表情图像接收装置的框图。8 is a block diagram showing an expression image receiving apparatus according to the first embodiment of the present invention.
根据本发明的第一实施例的表情图像接收装置800可包括接收单元801、适配单元802和显示单元803。The expression
接收单元801可从接收第一表情图像和转换标志。可选地,接收单元可以从服务器或表情图像发送装置接收第一表情图像和转换标志,也可以从服务器接收第一表情图像和转换标志。这里的转换标志如上所述,这里不再赘述。The receiving
适配单元802可以从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像,这里的表情库这里是本地表情库,也可以以云形式存储表情图像的表情库。The
显示单元803可以在会话接收方的第二会话窗口的会话区域中显示第二表情图像,这里的第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。The
图9是示出根据本发明的第二实施例的表情图像接收装置的框图。9 is a block diagram showing an expression image receiving apparatus according to a second embodiment of the present invention.
根据本发明的第二实施例的表情图像接收装置900可包括第一接收单元901、发送单元902、第二接收单元903和显示单元904。The expression
第一接收单元901可以接收第一表情图像和转换标志,可选地,第一接收单元901可以从服务器或者表情图像发送装置接收第一表情图像和转换标志。The
发送单元902可以响应于转换标志向服务器发送请求第二表情图像的请求信号,即,第二实施例的表情图像接收装置至少初次不从本地表情库获得第二表情图像,至少第一次不将第一表情图像转换为第二表情图像,而是请求服务器提供第二表情图像。The sending
第二接收单元902可以从服务器接收与第一表情图像对应的第二表情图像,第一接收单元901和第二接收单元902也可以为同一接收单元,或者为同一接收单元的两个部分,或者为不同的接收单元。The
显示单元904可以在第二会话窗口的会话区域中显示第二表情图像,这里的第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。The
根据本发明的实施例的表情图像发送装置和表情图像接收装置中的显示单元可以包括显示器,该显示器可包括触摸屏。The display unit in the expression image transmitting apparatus and the expression image receiving apparatus according to the embodiment of the present invention may include a display, and the display may include a touch screen.
图10是示出根据本发明的实施例的服务器的框图。10 is a block diagram illustrating a server according to an embodiment of the present invention.
根据本发明的实施例的服务器1000可包括接收单元1001、适配单元1002和发送单元1003。The
接收单元1001可从表情图像发送装置接收第一表情图像和转换标志。The receiving
适配单元1002可以从表情库获取与第一表情图像对应的第二表情图像或者基于转换标志将第一表情图像转换为第二表情图像,如上所述,这里的表情库可以包括本地表情库或者以云形式存储表情图像的表情库。The
发送单元1003可以向会话接收方发送第二表情图像或者向会话接收方转发第一表情图像和转换标志两者,这里第一表情图像与第二表情图像具有内容相同但方向相反的图像主体。The sending
当表情图像接收装置接收到第一表情图像和转换标志时,表情图像接收装置可以将第一表情图像转换为第二表情图像。When the expression image receiving apparatus receives the first expression image and the conversion flag, the expression image receiving apparatus may convert the first expression image into the second expression image.
根据本公开的实施例的术语“单元”指的是但不限于软件、硬件和固件或它们的任意组合的一个单位。The term 'unit' according to an embodiment of the present disclosure refers to, but is not limited to, a unit of software, hardware and firmware or any combination thereof.
术语“单元”可以与术语“模块”、“逻辑”、“逻辑块”、“部件”或“电路”互换使用。术语“单元”可表示部件的最小单位或其一部分。术语“单元”可以是执行部件的一部分或至少一个功能的最小单元。单元可被机械地或电子地实现。例如,模块可以包括已知或为某些操作而被开发的专用集成电路(ASIC)芯片、现场可编程门阵列(FPGA)和可编程逻辑装置中的至少一个。The term "unit" may be used interchangeably with the terms "module", "logic", "logical block", "component" or "circuit". The term "unit" may refer to the smallest unit of a component or a portion thereof. The term "unit" may be the smallest unit that performs part of a component or at least one function. The unit may be implemented mechanically or electronically. For example, a module may include at least one of an application specific integrated circuit (ASIC) chip, a field programmable gate array (FPGA), and a programmable logic device known or developed for certain operations.
根据本公开的各个实施例,所述装置(例如模块或它们的功能)或方法可以通过存储在计算机可读存储介质中的计算机程序指令来实现。在该指令被处理器执行的情况下,处理器可以执行对应于该指令的功能。该计算机可读存储介质可以是存储器。编程模块的至少一部分可以由处理器实现(例如,执行)。编程模块的至少一部分可以包括用于执行至少一个功能的模块、程序、例程、指令集和过程。According to various embodiments of the present disclosure, the apparatuses (eg, modules or their functions) or methods may be implemented by computer program instructions stored in a computer-readable storage medium. Where the instructions are executed by a processor, the processor may perform functions corresponding to the instructions. The computer-readable storage medium may be a memory. At least a portion of a programming module may be implemented (eg, executed) by a processor. At least a portion of a programming module may include modules, programs, routines, sets of instructions, and processes for performing at least one function.
所述计算机可读存储介质包括诸如软盘和磁带的磁介质、光介质(包括光盘(CD)ROM和DVD ROM)、诸如软式光盘的磁光介质、设计用于存储和执行程序命令的诸如ROM、RAM的硬件装置以及闪速存储器。所述程序命令包括由计算机使用解释器可执行的语言代码以及由编译器产生的机器语言代码。上述的硬件装置可以通过用于执行本公开的各个实施例的操作的一个或更多个软件模块来实现。The computer-readable storage media include magnetic media such as floppy disks and magnetic tapes, optical media (including compact disk (CD) ROM and DVD ROM), magneto-optical media such as floppy disks, and ROMs designed to store and execute program commands. , RAM hardware devices and flash memory. The program commands include language code executable by the computer using an interpreter and machine language code generated by a compiler. The above-described hardware devices may be implemented by one or more software modules for performing operations of various embodiments of the present disclosure.
本公开的单元、模块或编程模块可以包括在省略一些部件或添加其它部件的情况下前述部件中的至少一个。所述单元、编程模块或者其它部件的操作可以顺序执行、并行执行、循环执行或试探执行。此外,一些操作可以以不同的顺序执行、可被省略或用其他操作进行扩展。A unit, module or programming module of the present disclosure may include at least one of the foregoing components with some components omitted or other components added. The operations of the units, programming modules, or other components may be performed sequentially, in parallel, in a loop, or heuristically. Additionally, some operations may be performed in a different order, omitted, or extended with other operations.
根据本发明的实施例的表情图像处理方法及相应的装置可提高聊天亲切感,增强用户体验。The facial expression image processing method and the corresponding device according to the embodiments of the present invention can improve chat intimacy and enhance user experience.
虽然本公开的各个实施例已经使用特定术语进行描述,但是说明书和附图被视为是说明性而非限制性的意义以帮助理解本公开。在不脱离本公开更宽的精神和范围的前提下,显而易见地,本领域技术人员可做出各种修改和改变(例如,可以组合不同实施例中的不同特征)。因此,本公开的范围不是由具体实施方式和实施例进行限定,而是由权利要求及其等同物进行限定。While various embodiments of the present disclosure have been described using specific terminology, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense to assist in an understanding of the present disclosure. It will be apparent that various modifications and changes may be made by those skilled in the art (eg, different features in different embodiments may be combined) without departing from the broader spirit and scope of this disclosure. Accordingly, the scope of the present disclosure should be defined not by the specific embodiments and examples, but by the claims and their equivalents.
Claims (27)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011126877.7A CN112230833B (en) | 2020-10-20 | 2020-10-20 | Expression image processing method, sending device, receiving device, and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011126877.7A CN112230833B (en) | 2020-10-20 | 2020-10-20 | Expression image processing method, sending device, receiving device, and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112230833A CN112230833A (en) | 2021-01-15 |
| CN112230833B true CN112230833B (en) | 2022-07-22 |
Family
ID=74118291
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011126877.7A Active CN112230833B (en) | 2020-10-20 | 2020-10-20 | Expression image processing method, sending device, receiving device, and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112230833B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1783792A (en) * | 2004-11-01 | 2006-06-07 | 微软公司 | Dynamic content change notification |
| CN1842005A (en) * | 2005-03-28 | 2006-10-04 | 腾讯科技(深圳)有限公司 | A method for realizing graphic message presentation |
| CN101327375A (en) * | 2007-06-19 | 2008-12-24 | 株式会社理光 | Information processing device, information processing method and information processing component |
| CN101420393A (en) * | 2008-12-10 | 2009-04-29 | 腾讯科技(深圳)有限公司 | Method for implementing expression edition based on instant messaging and terminal based on instant message |
| CN103180818A (en) * | 2010-10-27 | 2013-06-26 | 谷歌公司 | Animated page flip |
| CN109542288A (en) * | 2018-11-29 | 2019-03-29 | 深圳市口袋网络科技有限公司 | A kind of method that information is shown, system and associated component |
| CN110705557A (en) * | 2019-09-25 | 2020-01-17 | 广州视源电子科技股份有限公司 | Image recognition method, device, storage medium and processor |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107707452B (en) * | 2017-09-12 | 2021-03-30 | 创新先进技术有限公司 | Information display method and device for expressions and electronic equipment |
| CN108174266A (en) * | 2017-12-20 | 2018-06-15 | 五八有限公司 | Method, apparatus, terminal and the server that animation plays |
| CN110427512B (en) * | 2019-07-30 | 2021-01-22 | 北京达佳互联信息技术有限公司 | Expression pattern sending method and device, electronic equipment and storage medium |
-
2020
- 2020-10-20 CN CN202011126877.7A patent/CN112230833B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1783792A (en) * | 2004-11-01 | 2006-06-07 | 微软公司 | Dynamic content change notification |
| CN1842005A (en) * | 2005-03-28 | 2006-10-04 | 腾讯科技(深圳)有限公司 | A method for realizing graphic message presentation |
| CN101327375A (en) * | 2007-06-19 | 2008-12-24 | 株式会社理光 | Information processing device, information processing method and information processing component |
| CN101420393A (en) * | 2008-12-10 | 2009-04-29 | 腾讯科技(深圳)有限公司 | Method for implementing expression edition based on instant messaging and terminal based on instant message |
| CN103180818A (en) * | 2010-10-27 | 2013-06-26 | 谷歌公司 | Animated page flip |
| CN109542288A (en) * | 2018-11-29 | 2019-03-29 | 深圳市口袋网络科技有限公司 | A kind of method that information is shown, system and associated component |
| CN110705557A (en) * | 2019-09-25 | 2020-01-17 | 广州视源电子科技股份有限公司 | Image recognition method, device, storage medium and processor |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112230833A (en) | 2021-01-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110458918B (en) | Method and device for outputting information | |
| US10521500B2 (en) | Image processing device and image processing method for creating a PDF file including stroke data in a text format | |
| US10091003B2 (en) | Mobile signature embedded in desktop workflow | |
| US8099462B2 (en) | Method of displaying interactive effects in web camera communication | |
| CN108400925B (en) | Instant messaging message reminding method and instant messaging client | |
| US11871147B2 (en) | Adjusting participant gaze in video conferences | |
| US20170364484A1 (en) | Enhanced text metadata system and methods for using the same | |
| US8881231B2 (en) | Automatically performing an action upon a login | |
| US20140208213A1 (en) | Synchronization of contextual templates in a customized web conference presentation | |
| US20210266276A1 (en) | Name label display method and apparatus | |
| US9247206B2 (en) | Information processing device, information processing system, and information processing method | |
| WO2023061480A1 (en) | Comment sharing method and apparatus, and electronic device | |
| CN111783508A (en) | Method and apparatus for processing images | |
| CN105379236A (en) | User experience paradigm shift | |
| US10691880B2 (en) | Ink in an electronic document | |
| US20170329752A1 (en) | Cross-device document transactions | |
| JP6286836B2 (en) | Projection system, projection apparatus, projection method, and projection program | |
| US11531805B1 (en) | Message composition and customization in a user handwriting style | |
| CN112230833B (en) | Expression image processing method, sending device, receiving device, and server | |
| CN112328088B (en) | Image presentation method and device | |
| WO2018214776A1 (en) | Emoji processing method, computer equipment and storage medium | |
| CN109947526B (en) | Method and apparatus for outputting information | |
| CN101641684A (en) | Enabling routing of data on a network based on a portion of data accessed from a non-network enabled device | |
| US12147723B2 (en) | Non-transitory tangible storage device, subtitle display processing device, and server | |
| CN106055416B (en) | Method and device for data cross-application transfer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |