CN113271246B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN113271246B
CN113271246B CN202010093532.XA CN202010093532A CN113271246B CN 113271246 B CN113271246 B CN 113271246B CN 202010093532 A CN202010093532 A CN 202010093532A CN 113271246 B CN113271246 B CN 113271246B
Authority
CN
China
Prior art keywords
picture
communication
original
communication party
party
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
Application number
CN202010093532.XA
Other languages
Chinese (zh)
Other versions
CN113271246A (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.)
Nail Holding Cayman Co ltd
Original Assignee
Nail Holding Cayman 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 Nail Holding Cayman Co ltd filed Critical Nail Holding Cayman Co ltd
Priority to CN202010093532.XA priority Critical patent/CN113271246B/en
Publication of CN113271246A publication Critical patent/CN113271246A/en
Application granted granted Critical
Publication of CN113271246B publication Critical patent/CN113271246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • 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/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages

Abstract

One or more embodiments of the present disclosure provide a communication method and apparatus, the method including: determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window; acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the edge of a first preset window and the edge of a second preset window; and sending the information of the turned picture to an opposite-end communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge.

Description

Communication method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
The communication application can be used for realizing communication among a plurality of users, for example, communication sessions such as single chat sessions or group chat sessions based on the communication application are established among the users, so that the communication efficiency among the users can be improved, and the communication cost can be reduced. Each user participating in the same communication session has a corresponding communication window, which can be used for displaying communication messages generated based on the communication session.
In order to distinguish the sources of the communication messages, for example, a communication message is a sent message or a received message, the communication messages from different sources are displayed in different ways in the same communication window. For example, communication messages from different sources may be displayed at different locations within the communication window. However, because there is a difference between the "sending" or "receiving" of each communication window, for example, a certain communication message belongs to a sent message in one communication window and belongs to a received message in another communication window, the positions of the same communication message in different communication windows may be different, and even the meaning of the communication message may be affected.
Disclosure of Invention
One or more embodiments of the present disclosure provide a communication method and apparatus.
To achieve the above object, one or more embodiments of the present disclosure provide the following technical solutions:
according to a first aspect of one or more embodiments of the present specification, there is provided a communication method, including:
determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an inverted picture corresponding to the original picture, wherein the inverted picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
and sending the information of the turned picture to the opposite-end communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge.
According to a second aspect of one or more embodiments of the present specification, there is provided a communication method including:
receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
and displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge.
According to a third aspect of one or more embodiments of the present specification, there is provided a communication method including:
determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content points to a second end from a first end in a preset direction;
and sending the information of the turned picture to the opposite-end communication party, wherein the turned directional content contained in the turned picture points to the first end from the second end in the preset direction.
According to a fourth aspect of one or more embodiments of the present specification, there is provided a communication method including:
receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content points to a second end from a first end in a preset direction;
and displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture points to the first end from the second end in the preset direction.
According to a fifth aspect of one or more embodiments of the present specification, there is provided a communication method including:
determining an original picture selected by a first communication party aiming at a communication session between the first communication party and a second communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
and pushing the information of the turned picture to the second communication party, wherein the turned directional content contained in the turned picture faces the other one of the first preset window edge and the second preset window edge.
According to a sixth aspect of one or more embodiments herein, there is provided a communication apparatus, comprising:
the picture determining unit is used for determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, and the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the edge of the first preset window and the edge of the second preset window;
and the image sending unit is used for sending the information of the turned image to the opposite-end communication party, and the turned directional content contained in the turned image faces to the other one of the first preset window edge and the second preset window edge.
According to a seventh aspect of one or more embodiments of the present specification, there is provided a communication apparatus, including:
the picture receiving unit is used for receiving the information of the original picture sent by the opposite-end communication party through the communication session between the local-end communication party and the opposite-end communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
and the image display unit is used for displaying the turned image in a communication window corresponding to the local communication party, and the turned directional content contained in the turned image faces to the other one of the first preset window edge and the second preset window edge.
According to an eighth aspect of one or more embodiments of the present specification, there is provided a communication apparatus including:
the picture determining unit is used for determining an original picture selected by the local communication party aiming at the communication session between the local communication party and the opposite communication party;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content points to a second end from a first end in a preset direction;
and the image sending unit is used for sending the information of the turned image to the opposite-end communication party, and the turned directional content contained in the turned image points to the first end from the second end in the preset direction.
According to a ninth aspect of one or more embodiments herein, there is provided a communication apparatus, comprising:
the picture receiving unit is used for receiving the information of the original picture sent by the opposite-end communication party through the communication session between the local-end communication party and the opposite-end communication party;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content points to a second end from a first end in a preset direction;
and the picture display unit is used for displaying the turned picture in a communication window corresponding to the local communication party, and the turned directional content contained in the turned picture points to the first end from the second end in the preset direction.
According to a tenth aspect of one or more embodiments of the present specification, there is provided a communication apparatus including:
the picture determining unit is used for determining an original picture selected by a first communication party aiming at a communication session between the first communication party and a second communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
and the image pushing unit is used for pushing the information of the turned image to the second communication party, and the turned directional content contained in the turned image faces to the other one of the first preset window edge and the second preset window edge.
According to an eleventh aspect of one or more embodiments of the present specification, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method according to any one of the first, second, third and fourth aspects by executing the executable instructions.
According to a twelfth aspect of one or more embodiments of the present specification, a computer-readable storage medium is presented, on which computer instructions are stored, which instructions, when executed by a processor, implement the steps of the method according to any one of the first, second, third and fourth aspects.
According to a thirteenth aspect of one or more embodiments herein, there is provided an electronic apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method according to the fifth aspect by executing the executable instructions.
According to a fourteenth aspect of one or more embodiments of the present specification, a computer-readable storage medium is presented, on which computer instructions are stored, which instructions, when executed by a processor, implement the steps of the method according to the fifth aspect.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an exemplary embodiment.
Fig. 2 is a schematic diagram of another communication system according to an exemplary embodiment.
Fig. 3 is a flowchart of a communication method on an electronic device side of a sender according to an exemplary embodiment.
Fig. 4 is a flowchart of a communication method on the electronic device side of a receiving party according to an exemplary embodiment.
Fig. 5 is a flowchart of another communication method on the electronic device side of the sender according to an exemplary embodiment.
Fig. 6 is a flowchart of a communication method on the electronic device side of another receiving party according to an exemplary embodiment.
Fig. 7 is a flowchart of a server-side communication method according to an exemplary embodiment.
Fig. 8 is a diagram illustrating a sender-side based messaging window according to an exemplary embodiment.
Fig. 9 is a diagram illustrating a recipient-side-based messaging window according to an exemplary embodiment.
Fig. 10 is a schematic diagram of an apparatus according to an exemplary embodiment.
Fig. 11 is a block diagram of a communication apparatus on an electronic device side of a sender according to an exemplary embodiment.
Fig. 12 is a schematic diagram of an apparatus according to an exemplary embodiment.
Fig. 13 is a block diagram of a communication device on an electronic device side of a receiving party according to an exemplary embodiment.
Fig. 14 is a schematic structural diagram of an apparatus according to an exemplary embodiment.
Fig. 15 is a block diagram of a communication apparatus on an electronic device side of another sender according to an exemplary embodiment.
Fig. 16 is a schematic structural diagram of an apparatus provided in an exemplary embodiment.
Fig. 17 is a block diagram of a communication apparatus on an electronic device side of another receiving side according to an exemplary embodiment.
Fig. 18 is a schematic diagram of an apparatus according to an exemplary embodiment.
Fig. 19 is a block diagram of a server-side communication device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims that follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the methods may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
Fig. 1 is a schematic diagram of a communication system according to an exemplary embodiment. As shown in fig. 1, the system may include a network 11 and a number of electronic devices, such as a cell phone 12, a cell phone 13, a cell phone 14, and so on.
The network 11 may include various types of wired or wireless networks. Handsets 12-14 are just one type of electronic device that a user may use. In fact, it is obvious that the user can also use electronic devices of the type such as: tablet devices, notebook computers, personal Digital Assistants (PDAs), wearable devices (such as smart glasses, smart watches, etc.), and the like, which are not limited in this specification. In the operation process, a connection (such as a P2P connection, etc.) can be directly established between a plurality of electronic devices, so that the electronic devices can directly implement a communication message transceiving operation, such as a single chat or a group chat. For example, a program of a communication application may be run on the electronic device, so that the electronic device is configured to have the identities of a server and a client of the communication application, and thus, the direct transceiving of the communication message between the plurality of electronic devices may be achieved without an additional server.
In the process of sending and receiving the communication message by the plurality of electronic devices, the electronic device serving as the sender or the electronic device serving as the receiver can realize the communication scheme based on the specification, so that the electronic device serving as the receiver can show the turned picture in the specification instead of the originally selected original picture.
Fig. 2 is a schematic diagram of a communication system according to an exemplary embodiment. As shown in fig. 2, the system may include a server 21, a network 22, a number of electronic devices such as a cell phone 23, a cell phone 24, a cell phone 25, and so on.
The server 21 may be a physical server comprising a separate host, or the server 21 may be a virtual server carried by a cluster of hosts. During operation, the server 21 may operate a server-side program of the communication application to be implemented as a server of the communication application.
The cell phones 23-25 are just one type of electronic device that a user may use. In fact, it is obvious that the user can also use electronic devices of the type such as: tablet devices, notebook computers, personal Digital Assistants (PDAs), wearable devices (e.g., smart glasses, smart watches, etc.), etc., which are not limited by one or more embodiments of the present disclosure. During operation, the electronic device may run a program on a client side of the communication application to be implemented as a client of the communication application. It should be noted that: an application program of a client of the mobile community office platform can be pre-installed on the electronic equipment, so that the client can be started and run on the electronic equipment; of course, when an online "client" such as HTML5 technology is employed, the client can be obtained and run without installing a corresponding application on the electronic device.
And the network 22 for interaction between the handsets 23-25 and the server 21 may comprise various types of wired or wireless networks. In one embodiment, the Network 22 may include the Public Switched Telephone Network (PSTN) and the Internet. Based on the network 22, the electronic devices such as the mobile phones 23 to 25 can realize the transceiving operation of communication messages, such as single chat or group chat, under the cooperation of the server 21.
In the process of sending and receiving the communication message by the plurality of electronic devices, the electronic device serving as the sender or the electronic device serving as the receiver can realize the communication scheme based on the specification, so that the electronic device serving as the receiver can show the turned picture in the specification instead of the originally selected original picture. Alternatively, in the process of sending and receiving the communication message by a plurality of electronic devices, the server 21 may participate in the process, for example, the original picture that is initially selected may be processed, so that the electronic device that is the receiving party can show the flipped picture in this specification.
The communication scheme of the present specification is described below with reference to the following examples:
fig. 3 is a flowchart of a communication method on an electronic device side of a sender according to an exemplary embodiment. As shown in fig. 3, the method applied to an electronic device (e.g. the mobile phones 11-13 shown in fig. 1, or the mobile phones 23-25 shown in fig. 2, etc.) may include the following steps:
step 302, determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window.
In an embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party can directly establish a communication connection and realize the transceiving of communication messages without the aid of a server, and the network architecture thereof is similar to the embodiment shown in fig. 1. The electronic device used by the local communication party and the opposite communication party can run a program of a certain communication application to realize a corresponding communication function, and the electronic device used by the local communication party realizes the communication scheme of the embodiment in the communication process.
In one embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party need to establish a communication connection by means of the server and implement transceiving of communication messages, and the network architecture is similar to the embodiment shown in fig. 2. The client-side program of a certain communication application can be run on the electronic equipment respectively used by the local communication party and the opposite communication party, and the server-side program of the communication application can be run on the server, so that the server can assist the local communication party and the opposite communication party to realize the communication function. In the communication interaction process between the local communication party and the opposite communication party, the electronic device used by the local communication party can implement the communication scheme of the embodiment.
In an embodiment, the communication applications may include, for example, an instant messaging application, a short message application, a mail application, and the like, which are not limited in this specification.
In an embodiment, the original picture may include various types of emoji (emoji), emoticons, photos, and the like, which is not limited in this specification. The original picture may include a still picture or a moving picture.
In an embodiment, the "home communication party" and the "opposite communication party" in this specification are different roles involved in the communication process, and even if the same user uses the same electronic device, the same user may belong to different roles due to different angles in the description. For example, in the process of using the mobile phone Pa by the user Ua and using the mobile phone Pb by the user Ub for communication, when the angle of the mobile phone Pa is, the user Ua is the home-end communication party, and the user Ub is the opposite-end communication party, and when the angle of the mobile phone Pb is, the user Ub is the home-end communication party, and the user Ua is the opposite-end communication party.
In one embodiment, there may be one or more corresponding peer-to-peer communication parties for the peer-to-peer communication party. When an opposite-end communication party exists, the communication session is a single chat session established between the local-end communication party and the opposite-end communication party, and the corresponding communication window is a single chat window. When a plurality of opposite-end communication parties exist, the communication session is a group chat session established between the local-end communication party and the plurality of opposite-end communication parties, and the corresponding communication window is a group chat window.
In one embodiment, in order to participate in the communication process, the electronic device used by each correspondent party may present a communication window corresponding to the communication session by running the program of the communication application, and each correspondent party may view the own sent communication message, the communication messages received from other correspondent parties through the corresponding communication window, and edit and send new communication messages based on the communication window.
In an embodiment, when the station is described in terms of any communication party, the any communication party is equivalent to a home communication party, and the other communication parties are equivalent to opposite communication parties, then in a communication window corresponding to the any communication party, for the purpose of, for example, conveniently distinguishing whether each communication message is from the home communication party or the opposite communication party, the communication message sent by the home communication party (i.e., the sent message) and the communication message sent by the opposite communication party (i.e., the received message) are often displayed in a differentiated manner.
In an embodiment, the aforementioned differentiated display may include arranging displays along different edges of the communication window, respectively. For example, when the different edges include the first preset window edge and the second preset window edge described above, the first preset window edge may be located on a first side of the communication window, the second preset window edge may be located on a second side opposite to the first side, specifically, for example, the first side may be a right side, the second side may be a left side (or the first side is the left side, and the second side is the right side), and for example, the first side may be an upper side, and the second side may be a lower side (or the first side is the lower side, and the second side is the upper side), and the like, which is not limited in this specification. Correspondingly, the communication messages sent by any communication party are arranged and displayed along the edge of the first preset window, which can be understood as follows: the communication message sent by any communication party is aligned along the first side, for example, when the first side is the left side, it is equivalent to that the communication message sent by any communication party realizes left alignment in the communication window; similarly, the communication messages sent by other communication parties are arranged and displayed along the edge of the second preset window, which can be understood as follows: the communication messages sent by the other communication parties are aligned along the second side, for example, when the second side is the right side, it is equivalent to that the communication messages sent by the other communication parties are aligned to the right in the communication window.
As mentioned above, when the station is described in terms of any communication party, the any communication party is equivalent to the home communication party, and the other communication parties are equivalent to the opposite communication parties, so that the communication windows of different communication parties are different from each other in terms of the "home communication party" and the "opposite communication party", and the same communication message may be displayed in different positions in different communication windows. Still take the user Ua and the mobile phone Pa used by the user Ua, the user Ub and the mobile phone Pb used by the user Ua as examples: the mobile phone Pa is used for displaying a communication window corresponding to the user Ua, and for the mobile phone Pa, the user Ua belongs to a local communication party and the user Ub belongs to an opposite communication party, so that the mobile phone Pa performs right alignment display on a communication message sent by the user Ua and performs left alignment display on a communication message sent by the user Ub in the displayed communication window; and the mobile phone Pb is used for displaying a communication window corresponding to the user Ub, and for the mobile phone Pb, the user Ub belongs to a local communication party, and the user Ua belongs to an opposite communication party, so that the mobile phone Pb performs right alignment display on a communication message sent by the user Ub in the displayed communication window, and performs left alignment display on a communication message sent by the user Ua.
Step 304, obtaining an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content faces either one of the first preset window edge and the second preset window edge.
In an embodiment, the original picture includes original directional content, and the flipped picture includes flipped directional content, and the original directional content included in the original picture is processed to be the flipped directional content, so that the original picture is processed to be the flipped picture. When the first preset window edge and the second preset window edge are opposite two side edges in the communication window, the original picture can be subjected to mirror image overturning (or other feasible manners) to obtain a corresponding overturned picture. When the first preset window edge and the second preset window edge have other relative position relationships, other processing operations may be performed on the original picture to obtain a corresponding flipped picture, which is not limited in this specification.
In one embodiment, pictures which may need to be turned are processed in advance to obtain turned pictures corresponding to the pictures; then, in step 304, a corresponding pre-generated flipped picture can be obtained from the original picture without temporary generation. Alternatively, the original picture may be processed in step 304, such as mirror-flipping the original picture, to generate a corresponding flipped picture. The processing operation for the original picture may be performed locally on the electronic device, or may be performed by an external device (such as a server or other electronic device) other than the electronic device (and then provided to the electronic device), which is not limited in this specification.
In one embodiment, the original picture is from a collection of pictures, which may be maintained, for example, at an electronic device or at a server. By identifying and processing the pictures in the picture set in advance, the pictures which may need to be turned over can be determined, and corresponding directional marks are respectively added to the pictures. Thus, for the original picture chosen above, it can be determined whether the original picture has a pre-added directional flag: if so, it may be determined that the original picture contains the original directional content based on the directional flag, otherwise, it indicates that the original picture may not contain the original directional content (which may be directly determined not to be contained, or may be further determined by other means such as the following); and acquiring a reversed picture corresponding to the original picture under the condition that the directivity mark is determined to exist.
In an embodiment, the picture content included in the original picture may be identified, and an identification result of whether the original picture includes the original directional content is obtained. And acquiring the flipped picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content. There are many ways to identify the picture content contained in the original picture, and this specification does not limit this. For example, the core picture content in the original picture (for example, the picture content located in the central area, and accordingly the background picture content of the peripheral area is excluded) may be determined according to the pixel position, etc., the features such as the outline of the core picture content may be extracted, and the extracted features may be matched according to a predefined feature recognition rule, thereby implementing the above-mentioned recognition operation. For another example, an original picture may be input into a picture recognition model, the picture recognition model is obtained by training a training sample set by using a machine learning algorithm, each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output, so that the picture recognition model obtained by training may be used to predict whether the input picture contains directional content, and thus a recognition result output by the picture recognition model may be obtained, and the recognition result is used to indicate whether the original picture contains original directional content.
In the above embodiment, for the original picture selected by the local-end communication party, the corresponding flipped picture may be automatically obtained and sent to the opposite-end communication party. In some cases, the electronic device may show a flip option for the original picture to the home-end communication party, for example, the flip option may include a virtual button shown in the communication window, and when the flip option is triggered, the electronic device may obtain a flipped picture corresponding to the original picture, otherwise, the electronic device may directly use the original picture without obtaining the flipped picture. Therefore, the local communication party can determine whether to use the original picture or the reversed picture according to the own requirements by providing the turnover option, and the use requirements of the local communication party can be better met.
In an embodiment, the turning option can be shown regardless of whether the original directional content is included in the original picture selected by the local communication party; alternatively, the electronic device may identify whether the selected original picture includes the original directional content, and show the flipping option if it is determined that the original directional content is included, otherwise, it is not required to show the flipping option.
In an embodiment, the triggering condition of the local communication party on the turning option corresponding to each picture can be recorded, and whether to acquire the turned picture or not can be automatically determined in the subsequent communication process based on the recorded data. For example, after the local communication party selects a certain original picture, if it is recorded that the local communication party has historically triggered a flip option for the original picture, the electronic device may automatically acquire the corresponding flipped picture, and does not need to show the flip option this time.
Step 306, sending the information of the flipped image to the peer communication party, wherein the flipped directional content contained in the flipped image faces the other of the first preset window edge and the second preset window edge.
In an embodiment, when the original picture includes the original directional content, the local communication party often wants to express more information by the "direction" of the original directional content in addition to the picture content included in the original picture itself, but because the communication window adopts the message display manner as described above, the display positions of the same communication message at the local communication party and the opposite communication party are different, so that although the original picture can be correctly displayed in the communication window corresponding to the communication party as the sender, the original picture cannot be correctly displayed in the communication window corresponding to the communication party as the receiver (because the position is changed), and the receiver cannot correctly reflect the information that the sender originally wants to express, even misunderstanding. In this specification, the original picture selected by the local communication party is converted into the corresponding reversed picture, and the reversed picture is sent to the opposite communication party, so that the reversed picture can be adapted to the change of the position of the opposite communication party when being displayed in the communication window corresponding to the opposite communication party, and the opposite communication party can correctly experience the information which the local communication party originally wants to express.
In an embodiment, the flipped image, instead of the original image, can be displayed in the communication windows corresponding to all the communication parties of the communication session. In another embodiment, the electronic device can send the turned picture to the opposite-end communication party on the one hand, and can show the original picture in the communication window corresponding to the local-end communication party on the other hand, so that the picture correctly expressing the 'pointing' information can be checked in the communication window corresponding to the electronic device regardless of the local-end communication party or the opposite-end communication party, thereby avoiding misunderstanding of the local-end communication party by the opposite-end communication party and misunderstanding of the information which the local-end communication party wants to express at that time when checking afterwards.
In one embodiment, in addition to presenting communication messages from different parties at different locations within the communication window, the sender's avatar may be presented near the communication message to indicate the source of each communication message. For example, in the communication window corresponding to any communication party, the avatar of the any communication party is also shown between the communication message sent by the any communication party and the edge of the first preset window, and the avatar of the other communication party is also shown between the communication message sent by the other communication party and the edge of the second preset window. Then, for the original picture containing the original directional content, the original directional content may also generate a directional relationship with the avatar of the local communication party or the opposite communication party, so as to express certain information for the communication party corresponding to the directional avatar. Therefore, the original picture containing the original directional content is processed into the corresponding reversed picture, and the reversed picture is displayed in the communication window corresponding to the opposite communication party, so that the reversed directional content contained in the reversed picture can be ensured to point to the correct head portrait in the communication window corresponding to the opposite communication party, and the correct information expression is realized.
In an embodiment, when the home-end communication party sends the information of the flipped image to the opposite-end communication party, the information of the flipped image may include an image file corresponding to the flipped image, and the opposite-end communication party may directly display the image file after receiving the image file; or the information of the turned picture may include a picture number corresponding to the turned picture, so that compared with transmitting a picture file, the data transmission amount may be greatly reduced, and after receiving the picture number, the opposite communication party may find the picture file of the corresponding turned picture based on the picture number and display the found picture file.
Fig. 4 is a flowchart of a communication method on the electronic device side of a receiving party according to an exemplary embodiment. As shown in fig. 4, the method applied to an electronic device (e.g. the mobile phones 11-13 shown in fig. 1, or the mobile phones 23-25 shown in fig. 2, etc.) may include the following steps:
step 402, receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party, wherein the communication session has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window.
In an embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party can directly establish a communication connection and realize the transceiving of communication messages without the aid of a server, and the network architecture thereof is similar to the embodiment shown in fig. 1. The electronic device used by the local communication party and the opposite communication party can run a program of a certain communication application to realize a corresponding communication function, and the electronic device used by the local communication party realizes the communication scheme of the embodiment in the communication process.
In one embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party need to establish a communication connection by means of the server and implement transceiving of communication messages, and the network architecture is similar to the embodiment shown in fig. 2. The server can assist the local communication party and the opposite communication party to realize the communication function. In the communication interaction process between the local communication party and the opposite communication party, the electronic device used by the local communication party can implement the communication scheme of the embodiment.
In an embodiment, the communication applications may include, for example, an instant messaging application, a short message application, a mail application, and the like, which are not limited in this specification.
In an embodiment, the original picture may include various types of emoji (emoji), emoticons, photos, and the like, which is not limited in this specification. The original picture may include a still picture or a moving picture.
In an embodiment, the "home communication party" and the "opposite communication party" in this specification are different roles involved in the communication process, and even if the same user uses the same electronic device, the same user may belong to different roles due to different angles in the description. For example, in the process that the user Ua uses the mobile phone Pa and the user Ub uses the mobile phone Pb to perform communication, when the mobile phone Pa is in an angle, the user Ua is a home-end communication party and the user Ub is an opposite-end communication party, and when the mobile phone Pb is in an angle, the user Ub is a home-end communication party and the user Ua is an opposite-end communication party.
In one embodiment, there may be one or more corresponding peer-to-peer communication parties for the peer-to-peer communication party. When an opposite-end communication party exists, the communication session is a single chat session established between the local-end communication party and the opposite-end communication party, and the corresponding communication window is a single chat window. When a plurality of opposite-end communication parties exist, the communication session is a group chat session established between the local-end communication party and the plurality of opposite-end communication parties, and the corresponding communication window is a group chat window.
In one embodiment, in order to participate in the communication process, the electronic device used by each correspondent party may present a communication window corresponding to the communication session by running the program of the communication application, and each correspondent party may view the own sent communication message, the communication messages received from other correspondent parties through the corresponding communication window, and edit and send new communication messages based on the communication window.
In an embodiment, when the station is described in terms of any communication party, the any communication party is equivalent to a home communication party, and the other communication parties are equivalent to opposite communication parties, then in a communication window corresponding to the any communication party, for the purpose of, for example, conveniently distinguishing whether each communication message is from the home communication party or the opposite communication party, the communication message sent by the home communication party (i.e., the sent message) and the communication message sent by the opposite communication party (i.e., the received message) are often displayed in a differentiated manner.
In one embodiment, the aforementioned distinguishing display may include arranging displays along different edges of the communication window, respectively. The different edges herein may be, for example, two opposite side edges in the communication window, for example, when the different edges include the aforementioned first preset window edge and second preset window edge, the first preset window edge may be located on a first side of the communication window, and the second preset window edge may be located on a second side opposite to the first side, specifically, for example, the first side may be a right side, the second side may be a left side (or the first side is a left side, and the second side is a right side), and for example, the first side may be an upper side, and the second side may be a lower side (or the first side is a lower side, and the second side is an upper side), and the like, which is not limited in this specification. Correspondingly, the communication messages sent by any communication party are arranged and displayed along the edge of the first preset window, which can be understood as follows: the communication message sent by any communication party is aligned along the first side, for example, when the first side is the left side, it is equivalent to that the communication message sent by any communication party realizes left alignment in the communication window; similarly, the communication messages sent by other communication parties are arranged and displayed along the edge of the second preset window, which can be understood as follows: the communication messages sent by the other communication parties are aligned along the second side, for example, when the second side is the right side, it is equivalent to that the communication messages sent by the other communication parties are aligned to the right in the communication window.
As mentioned above, when the station is described in terms of any communication party, the communication party is equivalent to the home communication party, and the other communication parties are equivalent to the opposite communication parties, so that the communication windows of different communication parties are different from each other in terms of the "home communication party" and the "opposite communication party", and the same communication message may be displayed in different positions in different communication windows. Still take the user Ua and the mobile phone Pa used by the user Ua, the user Ub and the mobile phone Pb used by the user Ua as examples: the mobile phone Pa is used for displaying a communication window corresponding to the user Ua, and for the mobile phone Pa, the user Ua belongs to a local terminal communication party and the user Ub belongs to an opposite terminal communication party, so that the mobile phone Pa performs right alignment display on communication messages sent by the user Ua and performs left alignment display on communication messages sent by the user Ub in the displayed communication window; and the mobile phone Pb is used for displaying a communication window corresponding to the user Ub, and for the mobile phone Pb, the user Ub belongs to the local communication party, and the user Ua belongs to the opposite communication party, so that the mobile phone Pb performs right alignment display on the communication message sent by the user Ub and performs left alignment display on the communication message sent by the user Ua in the displayed communication window.
Step 404, obtaining an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content faces either one of the first preset window edge and the second preset window edge.
In an embodiment, the original picture includes original directional content, and the flipped picture includes flipped directional content, and the original directional content included in the original picture is processed to be the flipped directional content, so that the original picture is processed to be the flipped picture. When the first preset window edge and the second preset window edge are opposite two side edges in the communication window, the original picture can be subjected to mirror image overturning (or other feasible manners) to obtain a corresponding overturned picture. When the first preset window edge and the second preset window edge have other relative position relationships, other processing operations may be performed on the original picture to obtain a corresponding flipped picture, which is not limited in this specification.
In one embodiment, pictures which may need to be turned are processed in advance to obtain turned pictures corresponding to the pictures; then, in step 404, a corresponding pre-generated flipped picture can be obtained from the original picture without temporary generation. Alternatively, the original picture may be processed in step 404, such as mirror-flipping the original picture to generate a corresponding flipped picture. The processing operation for the original picture may be performed locally on the electronic device, or may be performed by an external device (such as a server or other electronic device) other than the electronic device (and then provided to the electronic device), which is not limited in this specification.
In one embodiment, the original picture is from a picture collection, which may be maintained, for example, at the electronic device or at a server. By identifying and processing the pictures in the picture set in advance, the pictures which may need to be turned over can be determined, and corresponding directional marks are respectively added to the pictures. Thus, for the original picture chosen above, it can be determined whether the original picture has a pre-added directional flag: if so, it may be determined that the original picture contains the original directional content based on the directional flag, otherwise, it indicates that the original picture may not contain the original directional content (which may be directly determined not to be contained, or may be further determined by other means such as the following); and acquiring the reversed picture corresponding to the original picture under the condition that the directivity mark is determined to exist.
In an embodiment, when the home-end communication party receives the information of the original picture sent by the opposite-end communication party, the information of the original picture may include a picture file corresponding to the original picture, and the home-end communication party may perform the above-mentioned flipping operation after receiving the picture file, so as to obtain a flipped picture; or the information of the original picture may include a picture number corresponding to the original picture, so that compared with transmitting a picture file, the data transmission amount may be greatly reduced, and after receiving the picture number, the local-end communication party may find the picture file of the corresponding original picture based on the picture number, and perform the above-mentioned flipping operation on the found picture file, thereby obtaining a flipped picture, or if a picture pair consisting of the original picture and the flipped picture already exists originally, the local-end communication party may determine the picture pair according to the picture number, and directly read the flipped picture included in the picture pair without performing the flipping operation temporarily.
In an embodiment, the picture content included in the original picture may be identified, and an identification result of whether the original picture includes the original directional content is obtained. And acquiring the flipped picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content. There are many ways to identify the picture content contained in the original picture, and this specification does not limit this. For example, the core picture content in the original picture (for example, the picture content located in the central area, and accordingly the background picture content in the peripheral area is excluded) may be determined according to the pixel position, etc., the features such as the outline of the core picture content are extracted, and the extracted features are matched through a predefined feature recognition rule, thereby implementing the above-mentioned recognition operation. For another example, an original picture may be input into a picture recognition model, the picture recognition model is obtained by training a training sample set by using a machine learning algorithm, each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output, so that the picture recognition model obtained by training may be used to predict whether the input picture contains directional content, and thus a recognition result output by the picture recognition model may be obtained, and the recognition result is used to indicate whether the original picture contains original directional content.
In the above embodiment, for the original picture received by the local communication party, the corresponding flipped picture may be automatically acquired and displayed. In some cases, the electronic device may show a flip option for the original picture to the home-end communication party, for example, the flip option may include a virtual button shown in the communication window, and when the flip option is triggered, the electronic device may acquire and display a flipped picture corresponding to the original picture, otherwise, the electronic device may directly display the original picture without acquiring the flipped picture. Therefore, the local communication party can determine whether to use the original picture or the reversed picture according to the own requirements by providing the turnover option, and the use requirements of the local communication party can be better met.
In an embodiment, the turning option can be shown regardless of whether the original directional content is included in the original picture selected by the local communication party; or, the electronic device may identify whether the original directional content is contained in the selected original picture in the manner in the foregoing embodiment, and show the flipping option if it is determined that the original directional content is contained, otherwise, it is not necessary to show the flipping option.
In an embodiment, the triggering condition of the local communication party on the turning option corresponding to each picture can be recorded, and whether to acquire the turned picture or not can be automatically determined in the subsequent communication process based on the recorded data. For example, after the local communication party receives a certain original picture, if it is recorded that the local communication party has historically triggered a flip option for the original picture, the electronic device may automatically acquire and display the corresponding flipped picture without showing the flip option at this time.
And 406, displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge.
In an embodiment, when the original image includes the original directional content, the peer communication party usually wants to express more information through the "direction" of the original directional content in addition to the image content included in the original image itself, but because the communication window adopts the message display manner as described above, the display positions of the same communication message at the home communication party and the peer communication party are different, so that the original image can be correctly displayed in the communication window corresponding to the communication party as the sender, but cannot be correctly displayed in the communication window corresponding to the communication party as the receiver (because the position is changed), and the receiver cannot correctly reflect the information that the sender originally intended to express, even misunderstanding. In this specification, the original picture received by the local communication party is converted into the corresponding flipped picture, so that the flipped picture can be adapted to the change of the position of the local communication party when displayed in the communication window corresponding to the local communication party, thereby ensuring that the local communication party can correctly experience the information that the opposite communication party originally wants to express.
In an embodiment, an original picture is shown in a communication window corresponding to an opposite-end communication party as a sender, and an overturned picture is shown in a communication window corresponding to a local-end communication party as a receiver, so that the picture correctly expressing 'direction' information can be checked in the communication window corresponding to the local-end communication party and the opposite-end communication party, thereby avoiding misunderstanding of the opposite-end communication party by the local-end communication party and misunderstanding of information which the opposite-end communication party wants to express at that time when the opposite-end communication party checks afterwards.
In one embodiment, in addition to presenting communication messages from different parties at different locations within the communication window, a sender's avatar may be presented near the communication message to indicate the origin of each communication message. For example, in the communication window corresponding to any communication party, the avatar of the any communication party is also shown between the communication message sent by the any communication party and the edge of the first preset window, and the avatar of the other communication party is also shown between the communication message sent by the other communication party and the edge of the second preset window. Then, for the original picture containing the original directional content, the original directional content may also generate a directional relationship with the head portrait of the local communication party or the opposite communication party, so as to express certain information for the communication party corresponding to the pointed head portrait. Therefore, the original picture containing the original directional content is processed into the corresponding reversed picture, and the reversed picture is displayed in the communication window corresponding to the local communication party, so that the reversed directional content contained in the reversed picture can be ensured to point to the correct head portrait in the communication window corresponding to the local communication party, and the correct information expression is realized.
Fig. 5 is a flowchart of another communication method on the electronic device side of the sender according to an exemplary embodiment. As shown in fig. 5, the method applied to an electronic device (e.g., the mobile phones 11-13 shown in fig. 1, or the mobile phones 23-25 shown in fig. 2, etc.) may include the following steps:
step 502, determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party.
In an embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party can directly establish a communication connection and implement transceiving of communication messages without the aid of a server, and a network architecture thereof is similar to the embodiment shown in fig. 1. The electronic device used by the local communication party and the opposite communication party can run a program of a certain communication application to realize a corresponding communication function, and the electronic device used by the local communication party realizes the communication scheme of the embodiment in the communication process.
In one embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party need to establish a communication connection by means of the server and implement transceiving of communication messages, and the network architecture is similar to the embodiment shown in fig. 2. The server can assist the local communication party and the opposite communication party to realize the communication function. In the communication interaction process between the local communication party and the opposite communication party, the electronic device used by the local communication party can implement the communication scheme of the embodiment.
In an embodiment, the communication applications may include, for example, an instant messaging application, a short message application, a mail application, and the like, which are not limited in this specification.
In an embodiment, the original picture may include various types of emoji (emoji), emoticons, photos, and the like, which is not limited in this specification. The original picture may include a still picture or a moving picture.
In an embodiment, the "home-end communication party" and the "opposite-end communication party" in this specification are different roles involved in the communication process, and even if the same user uses the same electronic device, the same user may belong to different roles because the angle in the description is different. For example, in the process of using the mobile phone Pa by the user Ua and using the mobile phone Pb by the user Ub for communication, when the angle of the mobile phone Pa is, the user Ua is the home-end communication party, and the user Ub is the opposite-end communication party, and when the angle of the mobile phone Pb is, the user Ub is the home-end communication party, and the user Ua is the opposite-end communication party.
Step 504, obtaining an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing original directional content included in the original picture, and the original directional content points from a first end to a second end in a preset direction.
In an embodiment, the original picture includes original directional content, and the flipped picture includes flipped directional content, and the original directional content included in the original picture is processed to be the flipped directional content, so that the original picture is processed to be the flipped picture. When the preset direction is a horizontal direction, the first end and the second end may be two ends in the horizontal direction, such as a left end and a right end, and then the original directional content may be directed from the left end to the right end or from the right end to the left end. Alternatively, the predetermined direction may be a longitudinal direction, an oblique direction, or other directions.
In one embodiment, pictures which may need to be turned are processed in advance to obtain turned pictures corresponding to the pictures; then, in step 504, a corresponding pre-generated flipped picture may be obtained from the original picture, without temporary generation. Alternatively, the original picture may be processed in step 504, such as mirror-flipping the original picture, to generate a corresponding flipped picture. The processing operation for the original picture may be performed locally on the electronic device, or may be performed by an external device (such as a server or other electronic device) other than the electronic device (and then provided to the electronic device), which is not limited in this specification.
In one embodiment, the original picture is from a collection of pictures, which may be maintained, for example, at an electronic device or at a server. By identifying and processing the pictures contained in the picture set in advance, the pictures which may need to be turned over can be determined, and corresponding directional marks are respectively added to the pictures. Thus, for the original picture chosen above, it can be determined whether the original picture has a pre-added directional flag: if so, it may be determined that the original picture contains the original directional content based on the directional flag, otherwise, it indicates that the original picture may not contain the original directional content (which may be directly determined not to be contained, or may be further determined by other means such as the following); and acquiring the reversed picture corresponding to the original picture under the condition that the directivity mark is determined to exist.
In an embodiment, the picture content included in the original picture may be identified, and an identification result of whether the original picture includes the original directional content is obtained. And acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains original directional content. There are many ways to identify the picture content contained in the original picture, and this specification does not limit this. For example, the core picture content in the original picture (for example, the picture content located in the central area, and accordingly the background picture content of the peripheral area is excluded) may be determined according to the pixel position, etc., the features such as the outline of the core picture content may be extracted, and the extracted features may be matched according to a predefined feature recognition rule, thereby implementing the above-mentioned recognition operation. For another example, an original picture may be input into a picture recognition model, the picture recognition model is obtained by training a training sample set by using a machine learning algorithm, each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output, so that the picture recognition model obtained by training may be used to predict whether the input picture contains directional content, and thus a recognition result output by the picture recognition model may be obtained, and the recognition result is used to indicate whether the original picture contains original directional content.
In the above embodiment, for the original picture selected by the local communication party, the corresponding flipped picture may be automatically obtained and sent to the opposite communication party. In some cases, the electronic device may show a flip option for the original picture to the home-end communication party, for example, the flip option may include a virtual button shown in the communication window, and when the flip option is triggered, the electronic device may obtain a flipped picture corresponding to the original picture, otherwise, the electronic device may directly use the original picture without obtaining the flipped picture. Therefore, the local communication party can determine whether to use the original picture or the overturned picture according to the self requirement by providing the overturning option for the local communication party, and the use requirement of the local communication party can be better met.
In an embodiment, the turning option can be shown regardless of whether the original directional content is included in the original picture selected by the local communication party; or, the electronic device may identify whether the original directional content is contained in the selected original picture in the manner in the foregoing embodiment, and show the flipping option if it is determined that the original directional content is contained, otherwise, it is not necessary to show the flipping option.
In an embodiment, the triggering condition of the local communication party on the turning option corresponding to each picture may be recorded, and whether to acquire the turned picture is automatically determined in the subsequent communication process based on the recorded data. For example, after the local communication party selects a certain original picture, if it is recorded that the local communication party has historically triggered a flip option for the original picture, the electronic device may automatically acquire the corresponding flipped picture, and does not need to show the flip option this time.
Step 506, sending the information of the turned picture to the opposite-end communication party, wherein the turned directional content contained in the turned picture points to the first end from the second end in the preset direction.
In one embodiment, there may be one or more corresponding peer communication parties for the home communication party. When an opposite-end communication party exists, the communication session is a single chat session established between the local-end communication party and the opposite-end communication party, and the corresponding communication window is a single chat window. When a plurality of opposite-end communication parties exist, the communication session is a group chat session established between the local-end communication party and the plurality of opposite-end communication parties, and the corresponding communication window is a group chat window.
In one embodiment, in order to participate in the communication process, the electronic device used by each correspondent may present a communication window corresponding to the communication session by running the program of the communication application, and each correspondent may view the sent communication message, the received communication messages from other correspondents through the corresponding communication window, and edit and send new communication messages based on the communication window.
In an embodiment, when the station is described in terms of any communication party, the any communication party is equivalent to a local communication party, and the other communication parties are equivalent to opposite communication parties, then in a communication window corresponding to the any communication party, for the purpose of, for example, conveniently distinguishing whether each communication message is from the local communication party or the opposite communication party, the communication message sent by the local communication party (i.e., the sent message) and the communication message sent by the opposite communication party (i.e., the received message) are often displayed in a differentiated manner.
In one embodiment, the aforementioned distinguishing display may include arranging displays along different edges of the communication window, respectively. The different edges herein may be two opposite side edges in the communication window, such as a first preset window edge and a second preset window edge, where the first preset window edge may be located on a first side of the communication window, and the second preset window edge may be located on a second side opposite to the first side, specifically, for example, the first side may be a right side, the second side may be a left side (or the first side is the left side, and the second side is the right side), and for example, the first side may be an upper side, and the second side may be a lower side (or the first side is the lower side, and the second side is the upper side), and the like. Correspondingly, the communication messages sent by any communication party are arranged and displayed along the edge of the first preset window, which can be understood as follows: the communication message sent by any communication party is aligned along the first side, for example, when the first side is the left side, it is equivalent to that the communication message sent by any communication party realizes left alignment in the communication window; similarly, the communication messages sent by other communication parties are arranged and displayed along the edge of the second preset window, which can be understood as follows: the communication messages sent by the other communication parties are aligned along the second side, for example, when the second side is the right side, it is equivalent to that the communication messages sent by the other communication parties are aligned to the right in the communication window.
As mentioned above, when the station is described in terms of any communication party, the any communication party is equivalent to the home communication party, and the other communication parties are equivalent to the opposite communication parties, so that the communication windows of different communication parties are different from each other in terms of the "home communication party" and the "opposite communication party", and the same communication message may be displayed in different positions in different communication windows. Still taking the user Ua and the mobile phone Pa used by the user Ua, the user Ub and the mobile phone Pb used by the user Ub as examples: the mobile phone Pa is used for displaying a communication window corresponding to the user Ua, and for the mobile phone Pa, the user Ua belongs to a local communication party and the user Ub belongs to an opposite communication party, so that the mobile phone Pa performs right alignment display on a communication message sent by the user Ua and performs left alignment display on a communication message sent by the user Ub in the displayed communication window; and the mobile phone Pb is used for displaying a communication window corresponding to the user Ub, and for the mobile phone Pb, the user Ub belongs to the local communication party, and the user Ua belongs to the opposite communication party, so that the mobile phone Pb performs right alignment display on the communication message sent by the user Ub and performs left alignment display on the communication message sent by the user Ua in the displayed communication window.
Therefore, when the original picture contains the original directional content, the local communication party often wants to express more information by the "direction" of the original directional content in addition to the picture content contained in the original picture itself, but because the communication window adopts the message display manner as described above, the display positions of the same communication message at the local communication party and the opposite communication party are different, so that the original picture can be correctly displayed in the communication window corresponding to the communication party as the sender, but cannot be correctly displayed in the communication window corresponding to the communication party as the receiver (because the position is changed), and the receiver cannot correctly reflect the information which the sender originally wants to express, even generates misinterpretations. In this specification, the original picture selected by the local communication party is converted into the corresponding reversed picture, and the reversed picture is sent to the opposite communication party, so that the reversed picture can be adapted to the change of the position of the opposite communication party when being displayed in the communication window corresponding to the opposite communication party, and the opposite communication party can correctly experience the information which the local communication party originally wants to express.
In an embodiment, the flipped image, instead of the original image, can be displayed in the communication windows corresponding to all the communication parties of the communication session. In another embodiment, the electronic device can send the turned picture to the opposite-end communication party on the one hand, and can show the original picture in the communication window corresponding to the local-end communication party on the other hand, so that the picture correctly expressing the 'pointing' information can be checked in the communication window corresponding to the electronic device regardless of the local-end communication party or the opposite-end communication party, thereby avoiding misunderstanding of the local-end communication party by the opposite-end communication party and misunderstanding of the information which the local-end communication party wants to express at that time when checking afterwards.
In one embodiment, in addition to presenting communication messages from different parties at different locations within the communication window, the sender's avatar may be presented near the communication message to indicate the source of each communication message. For example, in the communication window corresponding to any communication party, the avatar of the any communication party is also shown between the communication message sent by the any communication party and the edge of the first preset window, and the avatar of the other communication party is also shown between the communication message sent by the other communication party and the edge of the second preset window. Then, for the original picture containing the original directional content, the original directional content may also generate a directional relationship with the head portrait of the local communication party or the opposite communication party, so as to express certain information for the communication party corresponding to the pointed head portrait. Therefore, the original picture containing the original directional content is processed into the corresponding reversed picture, and the reversed picture is displayed in the communication window corresponding to the opposite communication party, so that the reversed directional content contained in the reversed picture can be ensured to point to a correct head portrait in the communication window corresponding to the opposite communication party, and correct information expression is realized.
In an embodiment, when the local-end communication party sends the information of the turned picture to the opposite-end communication party, the information of the turned picture may include a picture file corresponding to the turned picture, and the opposite-end communication party may directly display the picture file after receiving the picture file; or the information of the turned picture may include a picture number corresponding to the turned picture, so that compared with transmitting a picture file, the data transmission amount may be greatly reduced, and after receiving the picture number, the opposite communication party may find the picture file of the corresponding turned picture based on the picture number and display the found picture file.
Fig. 6 is a flowchart of a communication method on the electronic device side of another receiving party according to an exemplary embodiment. As shown in fig. 6, the method applied to an electronic device (e.g., the mobile phones 11-13 shown in fig. 1, or the mobile phones 23-25 shown in fig. 2, etc.) may include the following steps:
step 602, receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party.
In an embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party can directly establish a communication connection and implement transceiving of communication messages without the aid of a server, and a network architecture thereof is similar to the embodiment shown in fig. 1. The electronic device used by the local communication party and the opposite communication party can run a program of a certain communication application to realize a corresponding communication function, and the electronic device used by the local communication party realizes the communication scheme of the embodiment in the communication process.
In one embodiment, the electronic device used by the local communication party and the electronic device used by the opposite communication party need to establish a communication connection by means of the server and implement transceiving of communication messages, and the network architecture is similar to the embodiment shown in fig. 2. The server can assist the local communication party and the opposite communication party to realize the communication function. In the communication interaction process between the local communication party and the opposite communication party, the electronic device used by the local communication party can implement the communication scheme of the embodiment.
In an embodiment, the communication applications may include, for example, an instant messaging application, a short message application, a mail application, and the like, which are not limited in this specification.
In an embodiment, the original picture may include various types of emoji (emoji), emoticons, photos, and the like, which is not limited in this specification. The original picture may include a still picture or a moving picture.
In an embodiment, the "home communication party" and the "opposite communication party" in this specification are different roles involved in the communication process, and even if the same user uses the same electronic device, the same user may belong to different roles due to different angles in the description. For example, in the process that the user Ua uses the mobile phone Pa and the user Ub uses the mobile phone Pb to perform communication, when the mobile phone Pa is in an angle, the user Ua is a home-end communication party and the user Ub is an opposite-end communication party, and when the mobile phone Pb is in an angle, the user Ub is a home-end communication party and the user Ua is an opposite-end communication party.
Step 604, obtaining a flipped picture corresponding to the original picture, where the flipped picture is obtained by processing original directional content included in the original picture, and the original directional content points from a first end to a second end in a preset direction.
In an embodiment, the original picture includes original directional content, and the flipped picture includes flipped directional content, and the original directional content included in the original picture is processed to be the flipped directional content, so that the original picture is processed to be the flipped picture. When the predetermined direction is the transverse direction, the first end and the second end may be two ends in the transverse direction, such as a left end and a right end, and then the original directional content may be directed from the left end to the right end or from the right end to the left end. Alternatively, the predetermined direction may be a longitudinal direction, an oblique direction, or other directions.
In one embodiment, pictures which may need to be turned over are processed in advance to obtain turned-over pictures corresponding to the pictures; then, in step 604, a corresponding pre-generated flipped picture can be obtained from the original picture without temporary generation. Alternatively, the original picture may be processed in step 604, such as mirror flipping the original picture, to generate a corresponding flipped picture. The processing operation for the original picture may be performed locally on the electronic device, or may be performed by an external device (such as a server or other electronic device) other than the electronic device (and then provided to the electronic device), which is not limited in this specification.
In one embodiment, the original picture is from a collection of pictures, which may be maintained, for example, at an electronic device or at a server. By identifying and processing the pictures contained in the picture set in advance, the pictures which may need to be turned over can be determined, and corresponding directional marks are respectively added to the pictures. Thus, for the original picture chosen above, it can be determined whether the original picture has a pre-added directional flag: if so, it may be determined that the original picture contains the original directional content based on the directional flag, otherwise, it indicates that the original picture may not contain the original directional content (which may be directly determined not to be contained, or may be further determined by other means such as the following); and acquiring the reversed picture corresponding to the original picture under the condition that the directivity mark is determined to exist.
In an embodiment, when the home-end communication party receives the information of the original picture sent by the opposite-end communication party, the information of the original picture may include a picture file corresponding to the original picture, and the home-end communication party may perform the above-mentioned flipping operation after receiving the picture file, so as to obtain a flipped picture; or the information of the original picture may include a picture number corresponding to the original picture, so that compared with transmitting a picture file, the data transmission amount may be greatly reduced, and after receiving the picture number, the local-end communication party may find the picture file of the corresponding original picture based on the picture number, and perform the above-mentioned flipping operation on the found picture file, thereby obtaining a flipped picture, or if a picture pair consisting of the original picture and the flipped picture already exists originally, the local-end communication party may determine the picture pair according to the picture number, and directly read the flipped picture included in the picture pair without performing the flipping operation temporarily.
In an embodiment, the picture content included in the original picture may be identified, and an identification result of whether the original picture includes the original directional content is obtained. And acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains original directional content. There are many ways to identify the picture content contained in the original picture, and this specification does not limit this. For example, the core picture content in the original picture (for example, the picture content located in the central area, and accordingly the background picture content of the peripheral area is excluded) may be determined according to the pixel position, etc., the features such as the outline of the core picture content may be extracted, and the extracted features may be matched according to a predefined feature recognition rule, thereby implementing the above-mentioned recognition operation. For another example, an original picture may be input into a picture recognition model, the picture recognition model is obtained by training a training sample set by using a machine learning algorithm, each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output, so that the picture recognition model obtained by training may be used to predict whether the input picture contains directional content, and thus a recognition result output by the picture recognition model may be obtained, and the recognition result is used to indicate whether the original picture contains original directional content.
In the above embodiment, for the original picture received by the local communication party, the corresponding flipped picture may be automatically acquired and displayed. In some cases, the electronic device may show a flip option for the original picture to the home-end communication party, for example, the flip option may include a virtual button shown in the communication window, and when the flip option is triggered, the electronic device may acquire and display a flipped picture corresponding to the original picture, otherwise, the electronic device may directly display the original picture without acquiring the flipped picture. Therefore, the local communication party can determine whether to use the original picture or the overturned picture according to the self requirement by providing the overturning option for the local communication party, and the use requirement of the local communication party can be better met.
In an embodiment, the turning option can be shown regardless of whether the original directional content is included in the original picture selected by the local communication party; or, the electronic device may identify whether the original directional content is contained in the selected original picture in the manner in the foregoing embodiment, and show the flipping option if it is determined that the original directional content is contained, otherwise, it is not necessary to show the flipping option.
In an embodiment, the triggering condition of the local communication party on the turning option corresponding to each picture can be recorded, and whether to acquire the turned picture or not can be automatically determined in the subsequent communication process based on the recorded data. For example, after the local communication party receives a certain original picture, if it is recorded that the local communication party has historically triggered a flip option for the original picture, the electronic device may automatically acquire and display the corresponding flipped picture without showing the flip option at this time.
And 606, displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture points to the first end from the second end in the preset direction.
In one embodiment, there may be one or more corresponding peer-to-peer communication parties for the peer-to-peer communication party. When an opposite-end communication party exists, the communication session is a single chat session established between the local-end communication party and the opposite-end communication party, and the corresponding communication window is a single chat window. When a plurality of opposite-end communication parties exist, the communication session is a group chat session established between the home-end communication party and the plurality of opposite-end communication parties, and the corresponding communication window is a group chat window.
In one embodiment, in order to participate in the communication process, the electronic device used by each correspondent party may present a communication window corresponding to the communication session by running the program of the communication application, and each correspondent party may view the own sent communication message, the communication messages received from other correspondent parties through the corresponding communication window, and edit and send new communication messages based on the communication window.
In an embodiment, when the station is described in terms of any communication party, the any communication party is equivalent to a local communication party, and the other communication parties are equivalent to opposite communication parties, then in a communication window corresponding to the any communication party, for the purpose of, for example, conveniently distinguishing whether each communication message is from the local communication party or the opposite communication party, the communication message sent by the local communication party (i.e., the sent message) and the communication message sent by the opposite communication party (i.e., the received message) are often displayed in a differentiated manner.
In an embodiment, the aforementioned differentiated display may include arranging displays along different edges of the communication window, respectively. For example, when the different edges include the first preset window edge and the second preset window edge described above, the first preset window edge may be located on a first side of the communication window, the second preset window edge may be located on a second side opposite to the first side, specifically, for example, the first side may be a right side, the second side may be a left side (or the first side is the left side, and the second side is the right side), and for example, the first side may be an upper side, and the second side may be a lower side (or the first side is the lower side, and the second side is the upper side), and the like, which is not limited in this specification. Correspondingly, the communication messages sent by any communication party are arranged and displayed along the edge of the first preset window, which can be understood as follows: the communication message sent by any communication party is aligned along the first side, for example, when the first side is the left side, it is equivalent to that the communication message sent by any communication party is left aligned in the communication window; similarly, the communication messages sent by other communication parties are arranged and displayed along the edge of the second preset window, which can be understood as follows: the communication messages sent by the other communication parties are aligned along the second side, for example, when the second side is the right side, it is equivalent to that the communication messages sent by the other communication parties are aligned to the right in the communication window.
As mentioned above, when the station is described in terms of any communication party, the any communication party is equivalent to the home communication party, and the other communication parties are equivalent to the opposite communication parties, so that the communication windows of different communication parties are different from each other in terms of the "home communication party" and the "opposite communication party", and the same communication message may be displayed in different positions in different communication windows. Still taking the user Ua and the mobile phone Pa used by the user Ua, the user Ub and the mobile phone Pb used by the user Ub as examples: the mobile phone Pa is used for displaying a communication window corresponding to the user Ua, and for the mobile phone Pa, the user Ua belongs to a local terminal communication party and the user Ub belongs to an opposite terminal communication party, so that the mobile phone Pa performs right alignment display on communication messages sent by the user Ua and performs left alignment display on communication messages sent by the user Ub in the displayed communication window; and the mobile phone Pb is used for displaying a communication window corresponding to the user Ub, and for the mobile phone Pb, the user Ub belongs to the local communication party, and the user Ua belongs to the opposite communication party, so that the mobile phone Pb performs right alignment display on the communication message sent by the user Ub and performs left alignment display on the communication message sent by the user Ua in the displayed communication window.
Therefore, when the original directional content is included in the original image, the opposite-end communication party usually wants to express more information by the "direction" of the original directional content in addition to the image content included in the original image, but because the communication window adopts the message display manner as described above, the display positions of the same communication message at the local-end communication party and the opposite-end communication party are different, so that the original image can be correctly displayed in the communication window corresponding to the communication party as the sender, but cannot be correctly displayed in the communication window corresponding to the communication party as the receiver (because the position is changed), and the receiver cannot correctly reflect the information which the sender originally wants to express, even misunderstanding occurs. In this specification, the original picture received by the local communication party is converted into the corresponding flipped picture, so that the flipped picture can be adapted to the change of the position where the local communication party is located when displayed in the communication window corresponding to the local communication party, and the local communication party can correctly experience the information that the opposite communication party originally desires to express.
In an embodiment, an original picture is shown in a communication window corresponding to an opposite-end communication party as a sender, and an overturned picture is shown in a communication window corresponding to a local-end communication party as a receiver, so that the picture correctly expressing 'pointing' information can be checked in the communication window corresponding to the local-end communication party and the opposite-end communication party, and the situation that the local-end communication party misunderstands the opposite-end communication party and the situation that the opposite-end communication party misunderstands the information which the opposite-end communication party wants to express at that time when checking afterwards can be avoided.
In one embodiment, in addition to presenting communication messages from different parties at different locations within the communication window, a sender's avatar may be presented near the communication message to indicate the origin of each communication message. For example, in the communication window corresponding to any communication party, the avatar of the any communication party is also shown between the communication message sent by the any communication party and the first preset window edge, and the avatar of the other communication party is also shown between the communication message sent by the other communication party and the second preset window edge. Then, for the original picture containing the original directional content, the original directional content may also generate a directional relationship with the head portrait of the local communication party or the opposite communication party, so as to express certain information for the communication party corresponding to the pointed head portrait. Therefore, the original picture containing the original directional content is processed into the corresponding reversed picture, and the reversed picture is displayed in the communication window corresponding to the local communication party, so that the reversed directional content contained in the reversed picture can point to the correct head portrait in the communication window corresponding to the local communication party, and correct information expression is realized.
Fig. 7 is a flowchart of a server-side communication method according to an exemplary embodiment. As shown in fig. 7, the method is applied to an electronic device (e.g., the server 21 shown in fig. 2, etc.), and may include the following steps:
step 702, determining an original picture selected by a first communication party aiming at a communication session between the first communication party and a second communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window.
In one embodiment, the electronic device used by the first communication party and the electronic device used by the second communication party need to establish a communication connection and perform transceiving of communication messages by means of a server, and the network architecture is similar to the embodiment shown in fig. 2. The electronic device used by the first communication party and the second communication party respectively can run a client-side program of a certain communication application, and the server-side program of the communication application can be run on the server, so that the server can assist the first communication party and the second communication party to realize a communication function, and the communication scheme of the embodiment is realized in the process.
In an embodiment, the communication applications may include, for example, an instant messaging application, a short message application, a mail application, and the like, which are not limited in this specification.
In an embodiment, the original picture may include various types of emoji (emoji), emoticons, photos, and the like, which is not limited in this specification. The original picture may include a still picture or a moving picture.
In an embodiment, the first communication party is a sending party, and the second communication party is a receiving party. The "sender" and "receiver" are different roles involved in the communication process. From the perspective of the first communication party, the first communication party is a home communication party, the second communication party is an opposite communication party, and from the perspective of the second communication party, the second communication party is a home communication party, and the first communication party is an opposite communication party. It can be seen that the "home communication party" and the "opposite communication party" are the same different roles involved in the communication process, and even if the same user uses the same electronic device, they may belong to different roles due to different angles in the description.
In one embodiment, only a single sender, such as the first party, may be present for a communication, but one or more recipients, such as one or more of the second parties, may be present at the same time. When a second communication party exists, the communication session is a single chat session established between the first communication party and the second communication party, and the corresponding communication window is a single chat window. When a plurality of second communication parties exist, the communication session is a group chat session established between the first communication party and the plurality of second communication parties, and the corresponding communication window is a group chat window.
In one embodiment, in order to participate in the communication process, the electronic device used by each correspondent may present a communication window corresponding to the communication session by running the program of the communication application, and each correspondent may view the sent communication message, the received communication messages from other correspondents through the corresponding communication window, and edit and send new communication messages based on the communication window.
In an embodiment, when the station is described in terms of any communication party, the any communication party is equivalent to a local communication party, and the other communication parties are equivalent to opposite communication parties, then in a communication window corresponding to the any communication party, for the purpose of, for example, conveniently distinguishing whether each communication message is from the local communication party or the opposite communication party, the communication message sent by the local communication party (i.e., the sent message) and the communication message sent by the opposite communication party (i.e., the received message) are often displayed in a differentiated manner.
In an embodiment, the aforementioned differentiated display may include arranging displays along different edges of the communication window, respectively. The different edges herein may be, for example, two opposite side edges in the communication window, for example, when the different edges include the aforementioned first preset window edge and second preset window edge, the first preset window edge may be located on a first side of the communication window, and the second preset window edge may be located on a second side opposite to the first side, specifically, for example, the first side may be a right side, the second side may be a left side (or the first side is a left side, and the second side is a right side), and for example, the first side may be an upper side, and the second side may be a lower side (or the first side is a lower side, and the second side is an upper side), and the like, which is not limited in this specification. Correspondingly, the arrangement and display of the communication messages sent by any communication party along the edge of the first preset window can be understood as follows: the communication message sent by any communication party is aligned along the first side, for example, when the first side is the left side, it is equivalent to that the communication message sent by any communication party is left aligned in the communication window; similarly, the communication messages sent by other communication parties are arranged and displayed along the edge of the second preset window, which can be understood as follows: the communication messages sent by the other communication parties are aligned along the second side, for example, when the second side is the right side, it is equivalent to that the communication messages sent by the other communication parties are aligned to the right in the communication window.
As mentioned above, when the station is described in terms of any communication party, the communication party is equivalent to the home communication party, and the other communication parties are equivalent to the opposite communication parties, so that the communication windows of different communication parties are different from each other in terms of the "home communication party" and the "opposite communication party", and the same communication message may be displayed in different positions in different communication windows. Take user Ua and its mobile Pa, user Ub and its mobile Pb as examples: the mobile phone Pa is used for displaying a communication window corresponding to the user Ua, and for the mobile phone Pa, the user Ua belongs to a local terminal communication party and the user Ub belongs to an opposite terminal communication party, so that the mobile phone Pa performs right alignment display on communication messages sent by the user Ua and performs left alignment display on communication messages sent by the user Ub in the displayed communication window; and the mobile phone Pb is used for displaying a communication window corresponding to the user Ub, and for the mobile phone Pb, the user Ub belongs to the local communication party, and the user Ua belongs to the opposite communication party, so that the mobile phone Pb performs right alignment display on the communication message sent by the user Ub and performs left alignment display on the communication message sent by the user Ua in the displayed communication window.
In an embodiment, when the original picture selected by the first communication party is determined, the picture file corresponding to the original picture sent by the first communication party may be received, or the picture number corresponding to the original picture sent by the first communication party may be received, so that compared with the transmission of the picture file, the data transmission amount may be greatly reduced, then the picture file of the original picture may be found according to the picture number, and then the picture file may be turned over to obtain the turned-over picture described below, and if a picture pair composed of the original picture and the turned-over picture already exists originally, the turned-over picture included in the picture pair may be directly read after the picture pair is determined according to the picture number, without temporarily performing the turning operation.
Step 704, obtaining an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content faces either one of the first preset window edge and the second preset window edge.
In an embodiment, the original picture includes original directional content, and the flipped picture includes flipped directional content, and the original directional content included in the original picture is processed to be the flipped directional content, so that the original picture is processed to be the flipped picture. When the first preset window edge and the second preset window edge are opposite two side edges in the communication window, the original picture can be subjected to mirror image turning (or other feasible modes) to obtain a corresponding turned picture. When the first preset window edge and the second preset window edge have other relative position relationships, other processing operations may be performed on the original picture to obtain a corresponding flipped picture, which is not limited in this specification.
In one embodiment, pictures which may need to be turned over are processed in advance to obtain turned-over pictures corresponding to the pictures; then, in step 704, a corresponding pre-generated flipped picture can be obtained from the original picture, without temporary generation. Alternatively, the original picture may be processed in step 704, such as mirror flipping the original picture, to generate a corresponding flipped picture. The processing operation for the original picture may be performed locally at the server, or may be performed by an external device (such as another server or an electronic device) other than the server (and then provided to the server), which is not limited in this specification.
In one embodiment, the original picture is from a collection of pictures, which may be maintained, for example, at a server. By identifying and processing the pictures in the picture set in advance, the pictures which may need to be turned over can be determined, and corresponding directional marks are respectively added to the pictures. Thus, for the original picture chosen above, it can be determined whether the original picture has a pre-added directional flag: if so, it can be determined that the original picture contains the original directional content based on the directional flag, otherwise it indicates that the original picture may not contain the original directional content (which can be directly identified as not contained, or can be further determined by other means such as the following); and acquiring a reversed picture corresponding to the original picture under the condition that the directivity mark is determined to exist.
In an embodiment, the picture content included in the original picture may be identified, and an identification result of whether the original picture includes the original directional content is obtained. And acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains original directional content. There are many ways to identify the picture content contained in the original picture, and this specification does not limit this. For example, the core picture content in the original picture (for example, the picture content located in the central area, and accordingly the background picture content of the peripheral area is excluded) may be determined according to the pixel position, etc., the features such as the outline of the core picture content may be extracted, and the extracted features may be matched according to a predefined feature recognition rule, thereby implementing the above-mentioned recognition operation. For another example, an original picture may be input into a picture recognition model, where the picture recognition model is obtained by training a training sample set using a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture includes original directional content as output, so that the picture recognition model obtained by training may be used to predict whether the input picture includes directional content, and thus a recognition result output by the picture recognition model may be obtained, and the recognition result is used to indicate whether the original picture includes original directional content.
In the above embodiment, for the original picture selected by the first communication party, the server may automatically obtain and send the corresponding flipped picture to the second communication party, and the electronic device used by the first communication party and the second communication party only needs to execute the messaging scheme in the related art. In some cases, the electronic device may show a flip option for the original picture to the first communication party, for example, the flip option may include a virtual button shown in the communication window, and in a case that the flip option is triggered, the electronic device may send related information to the server, so that the server obtains a flipped picture corresponding to the original picture and sends the flipped picture to the second communication party, otherwise, the server directly sends the original picture. It is thus clear that, through providing the upset option to first communication side, can make first communication side confirm to use original picture or the back picture of upset according to self demand, can laminate the user demand of first communication side better.
In an embodiment, the turning option can be shown no matter whether the original picture selected by the first communication party contains original directional content or not; or, the electronic device may identify whether the original directional content is contained in the selected original picture in the manner in the foregoing embodiment, and show the flipping option if it is determined that the original directional content is contained, otherwise, it is not necessary to show the flipping option.
In an embodiment, the electronic device may record a trigger condition of the first communication party for the flip option corresponding to each picture, and automatically determine whether to acquire the flipped picture in a subsequent communication process based on the recorded data. For example, after the first communication party selects a certain original picture, if it is recorded that the first communication party has historically triggered the flip option for the original picture, the electronic device may automatically send related information to the server, so that the server may obtain a corresponding flipped picture, and the flip option does not need to be shown at this time.
Step 706, the information of the flipped image is pushed to the second communication party, and the flipped directional content contained in the flipped image faces the other one of the first preset window edge and the second preset window edge.
In an embodiment, when the original image includes the original directional content, the first communication party usually wants to express more information through the "direction" of the original directional content in addition to the image content included in the original image itself, but because the communication window adopts the message display manner as described above, the display positions of the same communication message at the first communication party and the second communication party are different, so that although the original image can be correctly displayed in the communication window corresponding to the first communication party as the sender, the original image cannot be correctly displayed in the communication window corresponding to the second communication party as the receiver (because the position is changed), the receiver cannot correctly express the information that the sender originally wants to express, and even misunderstanding occurs. In this specification, the original picture selected by the first communication party is converted into the corresponding flipped picture, and the flipped picture is sent to the second communication party, so that the flipped picture can be adapted to the change of the position of the second communication party when displayed in the communication window corresponding to the second communication party, and the second communication party can correctly experience the information that the first communication party originally wants to express.
In an embodiment, the server obtains an original picture sent by the first communication party, replaces the original picture with an inverted picture, and sends the inverted picture to the second communication party, so that the original picture is shown in a communication window corresponding to the first communication party, and the inverted picture is shown in a communication window corresponding to the second communication party, and thus, whether the local communication party or the opposite communication party can check the picture correctly expressing the 'pointing' information in the communication window corresponding to the server, thereby avoiding misunderstanding of the first communication party by the second communication party, and misunderstanding of the information which the first communication party wants to express when checking afterwards by the first communication party.
In one embodiment, in addition to presenting communication messages from different parties at different locations within the communication window, a sender's avatar may be presented near the communication message to indicate the origin of each communication message. For example, in the communication window corresponding to any communication party, the avatar of the any communication party is also shown between the communication message sent by the any communication party and the edge of the first preset window, and the avatar of the other communication party is also shown between the communication message sent by the other communication party and the edge of the second preset window. Then, for the original picture containing the original directional content, the original directional content may also generate a directional relationship with the avatar of the first communication party or the second communication party, so as to express certain information for the communication party corresponding to the pointed avatar. Therefore, the original picture containing the original directional content is processed into the corresponding reversed picture, and the reversed picture is displayed in the communication window corresponding to the second communication party, so that the reversed directional content contained in the reversed picture can be ensured to point to the correct head portrait in the communication window corresponding to the second communication party, and the correct information expression is realized.
In an embodiment, when the information of the flipped picture is sent to the second communication party, the information of the flipped picture may include a picture file corresponding to the flipped picture, and the second communication party may directly display the flipped picture after receiving the picture file; or the information of the turned picture may include a picture number corresponding to the turned picture, so that compared with transmitting a picture file, the data transmission amount may be greatly reduced, and after receiving the picture number, the second communication party may find the picture file of the corresponding turned picture based on the picture number and display the found picture file. If the original image pair consisting of the original image and the turned image exists, the image number corresponding to the original image received by the server from the first communication party can be the same as the image number corresponding to the turned image sent by the server to the second communication party, so that the processing operation of the server is simplified, and the processing pressure of the server is reduced.
The following describes a communication scheme based on the present specification by taking a certain communication application as an example. The mobile phone used by the xiaofang user and the mobile phone used by the zhuixiao user are assumed to be respectively provided with the communication application program, so that single chat communication can be realized between the xiaofang user and the zhuizhi user according to the communication application program, and a communication scheme based on the specification is realized in the single chat communication process.
Fig. 8 is a diagram illustrating a sender-side based messaging window according to an exemplary embodiment. Here, the "sender" refers to the communication message 832 as shown in fig. 8, and the user xiaofang sends the communication message 832 to the user zhuyu, so that the user xiaofang is used as the sender and the user zhuyu is used as the receiver.
In the communication window 80 shown in fig. 8, communication messages 831 to 832 sent by the user's widget, a communication message 833 from the user's zhuoxian, and the like can be presented. To distinguish the source of the communication message, the communication messages 831 to 832 sent by the users 'xiao are sequentially arranged along the right side edge 811 of the communication window 80 (from top to bottom), which is equivalent to realizing right alignment in the communication window 80, while the communication messages 833 and the like sent by the users' zhuyu are sequentially arranged along the left side edge 812 of the communication window 80, which is equivalent to realizing left alignment in the communication window 80.
Of course, in the embodiment shown in fig. 8, the communication messages 831 to 832 are not attached to the right edge 811, the communication message 833 is not attached to the left edge 812, and actually the communication messages 831 to 832 and the like are arranged along the vertical line 811a, and the communication message 833 and the like are arranged along the vertical line 812a, while the gap between the right edge 811 and the vertical line 811a is used for displaying the head 821 of the user's small character, and the gap between the left edge 812 and the vertical line 812a is used for displaying the head 822 of the user's small character. In some scenarios, however, the headings 821-822 are not necessary, and the communication messages 831-832 can fit closely to the right edge 811 and the communication message 833 can fit closely to the left edge 812.
The communication message 832 sent by the user xiaofang is actually an emoticon for indicating the meaning of "thank you", and the emoticon contains directional content: the cartoon characters in the expression pictures are in right-to-left postures or states and are used for expressing the emotions to the left-side objects. Since the communication message and the avatar thereof sent by the user xiao fang are displayed on the opposite right side of the communication window 80, and the communication message and the avatar thereof sent by the user zhuizhu are displayed on the opposite left side of the communication window 80, the user xiao fang hopes to express a feeling to the user zhuizhu through the emoticon included in the communication message 832.
Fig. 9 is a diagram illustrating a recipient-side based messaging window according to an exemplary embodiment. As shown in fig. 9, in the communication window 90 corresponding to the user zhuchuo, each communication message is displayed in a manner opposite to that of the communication window 80: the communication window 90 includes a right edge 911 and a left edge 912, the communication message 931 sent by the user zhuyu corresponds to the communication message 833, the communication message 931, and the like sequentially arranged along the right edge 911 (actually arranged along the vertical line 911a, and the head 921 of the user zhuyu is included between the right edge 911 and the vertical line 911 a), and the communication messages 932-933 sent by the user xiaolu corresponds to the communication messages 831-832, the communication messages 932-933, and the like sequentially arranged along the left edge 912 (actually arranged along the vertical line 912a, and the head 922 of the user xiaolu is included between the left edge 912 and the vertical line 912 a).
The mobile phone used by the user with little fragrance, the mobile phone used by the user with little will, or the server for assisting the communication process may execute the technical solution of this specification, obtain the flipped expression picture corresponding to the expression picture contained in the communication message 832, and the communication message 933 displayed in the communication window 90 finally contains the flipped expression picture, and the flipped expression picture contains the flipped directional content: the cartoon character in the turned expression picture is in a posture or a expression from left to right and is used for expressing the emotional feeling to the object on the right side; and because the communication message and the head portrait sent by the Zhu xiao of the user are displayed on the relative right side of the communication window 90, the communication message and the head portrait sent by the Xiaoxiang of the user are displayed on the relative left side of the communication window 90, and the relative position relationship is completely opposite to that of the embodiment shown in fig. 8, the turned expression picture can just express the enthusiasm of the Xiaoxiang of the user to the Zhu xiao of the user, and accords with the original intention of the Xiaoxiang of the user.
Similarly, if the communication message sent by the user xiao fang in fig. 8 includes another expression picture, and the cartoon character in the another expression picture is in a posture or a spirit from left to right for expressing a certain emotion (for example, praise and the like) to the user xiao fang itself, the technical solution based on the present specification may also cause the communication window 90 corresponding to the user xiao fang to show the flipped expression picture corresponding to the another expression picture, and the cartoon character in the flipped expression picture is in a posture or a spirit from right to left for expressing the emotion of the user xiao fang to itself as well, which is not described herein again.
FIG. 10 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to fig. 10, at the hardware level, the apparatus includes a processor 1002, an internal bus 1004, a network interface 1006, a memory 1008, and a non-volatile memory 1010, although it may also include hardware required for other services. The processor 1002 reads a corresponding computer program from the nonvolatile memory 1010 into the memory 1008 and then operates to form a communication device on a logical level. Of course, besides the software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combination of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 11, in a software implementation, the communication device may include:
the picture determining unit 1101 is configured to determine an original picture selected by a local communication party for a communication session between the local communication party and an opposite communication party, where the communication session has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
a picture obtaining unit 1102, configured to obtain an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content faces either one of the first preset window edge and the second preset window edge;
a picture sending unit 1103, configured to send information of the flipped picture to the peer communication party, where flipped directional content included in the flipped picture faces the other of the first preset window edge and the second preset window edge.
Optionally, the picture obtaining unit 1102 is specifically configured to:
determining whether the original picture has a pre-added directivity mark, wherein the directivity mark indicates that the original picture contains the original directivity content;
and under the condition that the directional mark is determined to exist, acquiring a reversed picture corresponding to the original picture.
Optionally, the picture acquiring unit 1102 is specifically configured to:
identifying picture content contained in the original picture;
and acquiring an inverted picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
Optionally, the picture obtaining unit 1102 is specifically configured to:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
and acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content.
Optionally, the picture obtaining unit 1102 is specifically configured to:
showing a turning option aiming at the original picture to the home terminal communication party;
and acquiring a reversed picture corresponding to the original picture under the condition that the reversing option is triggered.
Optionally, the picture obtaining unit 1102 is specifically configured to:
acquiring a pre-generated turned picture corresponding to the original picture; alternatively, the first and second liquid crystal display panels may be,
and carrying out mirror image turning on the original picture to generate the turned picture.
Optionally, the information of the flipped picture includes: and the image file corresponding to the turned image or the image number corresponding to the turned image.
Optionally, the method further includes:
and a picture display unit 1104 for displaying the original picture in a communication window corresponding to the local communication party.
Optionally, in the communication window corresponding to any one of the communication parties, the first preset window edge is located at a first side, and the second preset window edge is located at a second side opposite to the first side;
the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the method comprises the following steps: the communication messages sent by any communication party are aligned along the first side;
the communication messages sent by the other communication parties are arranged and displayed along the edge of a second preset window, and the method comprises the following steps: and the communication messages sent by the other communication parties are aligned along the second side.
Optionally, in the communication window corresponding to the any communication party, the avatar of the any communication party is further displayed between the communication message sent by the any communication party and the first preset window edge, and the avatar of the other communication party is further displayed between the communication message sent by the other communication party and the second preset window edge.
FIG. 12 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to fig. 12, at the hardware level, the apparatus includes a processor 1202, an internal bus 1204, a network interface 1206, a memory 1208, and a non-volatile storage 1210, although other hardware required for services may be included. The processor 1202 reads a corresponding computer program from the non-volatile memory 1210 into the memory 1208 and then runs the computer program to form a communication device on a logical level. Of course, besides software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combinations of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 13, in a software implementation, the communication device may include:
the picture receiving unit 1301 receives information of an original picture sent by an opposite-end communication party through a communication session between the local-end communication party and the opposite-end communication party, wherein the communication session has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
a picture obtaining unit 1302, configured to obtain an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content faces either one of the first preset window edge and the second preset window edge;
and the picture display unit 1303 is used for displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge.
Optionally, the information of the original picture includes: and the picture file corresponding to the original picture or the picture number corresponding to the original picture.
Optionally, the picture acquiring unit 1302 is specifically configured to:
acquiring the original picture according to the information of the original picture, and turning the original picture to obtain the turned picture; alternatively, the first and second electrodes may be,
and determining a corresponding picture pair consisting of the original picture and the turned picture according to the information of the original picture, and reading the turned picture from the picture pair.
FIG. 14 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to FIG. 14, at the hardware level, the device includes a processor 1402, an internal bus 1404, a network interface 1406, a memory 1408, and a non-volatile storage 1410, although other hardware required for service may be included. The processor 1402 reads the corresponding computer program from the nonvolatile memory 1410 into the memory 1408 and then runs the computer program, thereby forming a communication device on a logical level. Of course, besides software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combinations of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 15, in a software implementation, the communication device may include:
the picture determining unit 1501 determines an original picture selected by a local communication party for a communication session between the local communication party and an opposite communication party;
a picture obtaining unit 1502 for obtaining an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing original directional content included in the original picture, and the original directional content points from a first end to a second end in a preset direction;
the picture sending unit 1503 is configured to send the information of the flipped picture to the peer communication party, where the flipped directional content included in the flipped picture is pointed to the first peer from the second peer in the preset direction.
Fig. 16 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to fig. 16, at the hardware level, the apparatus includes a processor 1602, an internal bus 1604, a network interface 1606, a memory 1608, and a nonvolatile memory 1610, but may include hardware required for other services. The processor 1602 reads a corresponding computer program from the nonvolatile memory 1610 to the memory 1608 and then runs the computer program to form a communication device on a logical level. Of course, besides the software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combination of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 17, in a software implementation, the communication device may include:
a picture receiving unit 1701 that receives information of an original picture sent by an opposite-end communication party through a communication session between the local-end communication party and the opposite-end communication party;
a picture obtaining unit 1702, configured to obtain an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing original directional content included in the original picture, and the original directional content points from a first end to a second end in a preset direction;
and the picture display unit 1703 displays the flipped picture in a communication window corresponding to the local communication party, wherein flipped directional content contained in the flipped picture points to the first end from the second end in the preset direction.
FIG. 18 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to fig. 18, at the hardware level, the device includes a processor 1802, an internal bus 1804, a network interface 1806, a memory 1808, and a nonvolatile memory 1810, although other hardware required for services may be included. The processor 1802 reads a corresponding computer program from the nonvolatile memory 1810 into the memory 1808 and then runs the computer program, thereby forming a communication device on a logical level. Of course, besides software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combinations of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 19, in a software implementation, the communication device may include:
the picture determining unit 1901 determines an original picture selected by a first communication party for a communication session between the first communication party and a second communication party, where the communication session has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
a picture obtaining unit 1902, configured to obtain an inverted picture corresponding to the original picture, where the inverted picture is obtained by processing an original directional content included in the original picture, and the original directional content is directed towards any one of the first preset window edge and the second preset window edge;
the image pushing unit 1903 is configured to push the information of the flipped image to the second communication party, where the flipped directional content of the flipped image faces the other of the first preset window edge and the second preset window edge.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises that element.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments herein. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context.
The above description is only for the purpose of illustrating the preferred embodiments of the one or more embodiments of the present disclosure, and is not intended to limit the scope of the one or more embodiments of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the one or more embodiments of the present disclosure should be included in the scope of the one or more embodiments of the present disclosure.

Claims (23)

1. A method of communication, comprising:
determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an inverted picture corresponding to the original picture, wherein the inverted picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
sending the information of the turned picture to the opposite-end communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
2. The method according to claim 1, wherein the obtaining of the flipped picture corresponding to the original picture comprises:
determining whether the original picture has a pre-added directivity mark, wherein the directivity mark indicates that the original picture contains the original directivity content;
and under the condition that the directional mark is determined to exist, acquiring a reversed picture corresponding to the original picture.
3. The method according to claim 1, wherein the obtaining of the flipped picture corresponding to the original picture comprises:
showing a turning option aiming at the original picture to the home terminal communication party;
and acquiring a reversed picture corresponding to the original picture under the condition that the reversing option is triggered.
4. The method according to claim 1, wherein the obtaining of the flipped picture corresponding to the original picture comprises:
acquiring a pre-generated turned picture corresponding to the original picture; alternatively, the first and second liquid crystal display panels may be,
and carrying out mirror image overturning on the original picture to generate the overturned picture.
5. The method of claim 1, wherein the information of the flipped picture comprises: and the image file corresponding to the turned image or the image number corresponding to the turned image.
6. The method of claim 1, further comprising:
and displaying the original picture in a communication window corresponding to the local communication party.
7. The method according to claim 1, wherein the first predetermined window edge is located at a first side and the second predetermined window edge is located at a second side opposite to the first side in the communication window corresponding to the either communication party;
the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the method comprises the following steps: the communication messages sent by any communication party are aligned along the first side;
the communication messages sent by the other communication parties are arranged and displayed along the edge of a second preset window, and the method comprises the following steps: and the communication messages sent by the other communication parties are aligned along the second side.
8. The method according to claim 1, wherein in the communication window corresponding to the any communication party, an avatar of the any communication party is further displayed between the communication message sent by the any communication party and the edge of the first preset window, and an avatar of the other communication party is further displayed between the communication message sent by the other communication party and the edge of the second preset window.
9. A method of communication, comprising:
receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
the turned picture is shown in a communication window corresponding to the local communication party, and the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring an inverted picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
10. The method of claim 9, wherein the information of the original picture comprises: and the picture file corresponding to the original picture or the picture number corresponding to the original picture.
11. The method according to claim 9, wherein the obtaining of the flipped picture corresponding to the original picture comprises:
acquiring the original picture according to the information of the original picture, and turning the original picture to obtain the turned picture; alternatively, the first and second liquid crystal display panels may be,
and determining a corresponding picture pair consisting of the original picture and the turned picture according to the information of the original picture, and reading the turned picture from the picture pair.
12. A method of communication, comprising:
determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content points to a second end from a first end in a preset direction;
sending information of the turned picture to the opposite-end communication party, wherein turned directional content contained in the turned picture points to the first end from the second end in the preset direction;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
13. A method of communication, comprising:
receiving information of an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content points to a second end from a first end in a preset direction;
displaying the turned picture in a communication window corresponding to the local communication party, wherein the turned directional content contained in the turned picture points to the first end from the second end in the preset direction;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
14. A method of communication, comprising:
determining an original picture selected by a first communication party aiming at a communication session between the first communication party and a second communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
acquiring an overturned picture corresponding to the original picture, wherein the overturned picture is obtained by processing original directional content contained in the original picture, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
pushing the information of the turned picture to the second communication party, wherein the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
15. A communication device, comprising:
the picture determining unit is used for determining an original picture selected by a local communication party aiming at a communication session between the local communication party and an opposite communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the edge of the first preset window and the edge of the second preset window;
the image sending unit is used for sending the turned image to the opposite-end communication party, and the turned directional content contained in the turned image faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring an inverted picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
16. A communication device, comprising:
the picture receiving unit is used for receiving an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party, wherein the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the first preset window edge and the second preset window edge;
the picture display unit is used for displaying the turned picture in a communication window corresponding to the home terminal communication party, and the turned directional content contained in the turned picture faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
17. A communication device, comprising:
the picture determining unit is used for determining an original picture selected by the local communication party aiming at the communication session between the local communication party and the opposite communication party;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content points to a second end from a first end in a preset direction;
the picture sending unit is used for sending the turned picture to the opposite-end communication party, and the turned directional content contained in the turned picture points to the first end from the second end in the preset direction;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring an inverted picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
18. A communication device, comprising:
the picture receiving unit is used for receiving an original picture sent by an opposite-end communication party through a communication session between a local-end communication party and the opposite-end communication party;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content points to a second end from a first end in a preset direction;
the picture display unit is used for displaying the turned picture in a communication window corresponding to the local communication party, and the turned directional content contained in the turned picture points to the first end from the second end in the preset direction;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring a reversed picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
19. A communication device, comprising:
the picture determining unit is used for determining an original picture selected by a first communication party aiming at a communication session between the first communication party and a second communication party, and the communication session respectively has corresponding communication windows at each communication party; in a communication window corresponding to any communication party, the communication messages sent by any communication party are arranged and displayed along the edge of a first preset window, and the communication messages sent by other communication parties are arranged and displayed along the edge of a second preset window;
the image acquisition unit is used for acquiring an overturned image corresponding to the original image, wherein the overturned image is obtained by processing original directional content contained in the original image, and the original directional content faces to any one of the edge of the first preset window and the edge of the second preset window;
the image pushing unit is used for pushing the turned image to the second communication party, and the turned directional content contained in the turned image faces to the other one of the first preset window edge and the second preset window edge;
the acquiring of the flipped picture corresponding to the original picture includes:
inputting the original pictures into a picture recognition model, wherein the picture recognition model is obtained by training a training sample set by adopting a machine learning algorithm, and each group of training samples in the training sample set takes a sample picture as input and takes whether the sample picture contains original directional content as output;
acquiring an identification result output by the picture identification model, wherein the identification result is used for indicating whether the original picture contains the original directional content;
and acquiring an inverted picture corresponding to the original picture under the condition that the identification result shows that the original picture contains the original directional content.
20. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of any one of claims 1-13 by executing the executable instructions.
21. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 13.
22. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of claim 14 by executing the executable instructions.
23. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of claim 14.
CN202010093532.XA 2020-02-14 2020-02-14 Communication method and device Active CN113271246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093532.XA CN113271246B (en) 2020-02-14 2020-02-14 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093532.XA CN113271246B (en) 2020-02-14 2020-02-14 Communication method and device

Publications (2)

Publication Number Publication Date
CN113271246A CN113271246A (en) 2021-08-17
CN113271246B true CN113271246B (en) 2023-03-31

Family

ID=77227254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093532.XA Active CN113271246B (en) 2020-02-14 2020-02-14 Communication method and device

Country Status (1)

Country Link
CN (1) CN113271246B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034067A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Picture display method, apparatus and system of instant messaging client
CN107181670A (en) * 2017-05-18 2017-09-19 北京小米移动软件有限公司 image processing method, device and storage medium
CN107566243A (en) * 2017-07-11 2018-01-09 阿里巴巴集团控股有限公司 A kind of picture sending method and equipment based on instant messaging
CN109542288A (en) * 2018-11-29 2019-03-29 深圳市口袋网络科技有限公司 A kind of method that information is shown, system and associated component
CN109587035A (en) * 2018-10-24 2019-04-05 北京三快在线科技有限公司 Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101850821B1 (en) * 2011-09-15 2018-04-20 엘지전자 주식회사 Mobile terminal and message display method for mobile terminal
CN108141526A (en) * 2015-10-30 2018-06-08 2Mee 有限公司 Communication system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034067A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Picture display method, apparatus and system of instant messaging client
CN107181670A (en) * 2017-05-18 2017-09-19 北京小米移动软件有限公司 image processing method, device and storage medium
CN107566243A (en) * 2017-07-11 2018-01-09 阿里巴巴集团控股有限公司 A kind of picture sending method and equipment based on instant messaging
CN109587035A (en) * 2018-10-24 2019-04-05 北京三快在线科技有限公司 Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface
CN109542288A (en) * 2018-11-29 2019-03-29 深圳市口袋网络科技有限公司 A kind of method that information is shown, system and associated component

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"3D虚拟动画即时通信系统的设计与实现";彭恒;《中国优秀硕士学位论文全文数据库信息科技辑》;20190815;全文 *

Also Published As

Publication number Publication date
CN113271246A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US9881359B2 (en) Video communication method and system in instant communication
US10673798B2 (en) Method and system for providing notifications for group messages
CN106415664B (en) System and method for generating a user facial expression library for messaging and social networking applications
US20150229598A1 (en) Method and system of synchroning an unread message in instant communication
US8910081B2 (en) Push notifications for updating multiple dynamic icon panels
US20170091717A1 (en) Auto extraction of tasks from unstructured communications such as emails and messages
US9385981B2 (en) System and method for providing multi-modal asynchronous communication
CN109274575B (en) Message sending method and device and electronic equipment
US10200338B2 (en) Integrating communication modes in persistent conversations
CN110278140B (en) Communication method and device
WO2020187085A1 (en) Message input and display method and apparatus, electronic device and readable storage medium
US20200153769A1 (en) Communication Method and Apparatus
CN113949901A (en) Comment sharing method and device and electronic equipment
CN113271246B (en) Communication method and device
CN104144105A (en) Information transmission method, device and system
US20150319114A1 (en) Method and system for message conversation view customization
US20170091887A1 (en) Method for accessing an online account after the owner's death
US8385661B2 (en) Hand-held mobile apparatus and method of quckly displaying online community friends' images applicable thereto
CN110300214B (en) Communication method and device
CN113645320B (en) Incidence relation establishing method, data interaction method and device
CN112667916A (en) Information pushing method, social server and machine-readable storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40056841

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant