CN109587035A - Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface - Google Patents

Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface Download PDF

Info

Publication number
CN109587035A
CN109587035A CN201811246809.7A CN201811246809A CN109587035A CN 109587035 A CN109587035 A CN 109587035A CN 201811246809 A CN201811246809 A CN 201811246809A CN 109587035 A CN109587035 A CN 109587035A
Authority
CN
China
Prior art keywords
head portrait
user
main body
display location
towards
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811246809.7A
Other languages
Chinese (zh)
Other versions
CN109587035B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811246809.7A priority Critical patent/CN109587035B/en
Publication of CN109587035A publication Critical patent/CN109587035A/en
Application granted granted Critical
Publication of CN109587035B publication Critical patent/CN109587035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Abstract

This application discloses a kind of head portrait methods of exhibiting at session interface, belong to field of computer technology, and the session information and head portrait main body direction for solving the problem of session interface user publication do not meet normal dialog habit opposite to each other.Head portrait methods of exhibiting disclosed in the present application includes: conversation message display location of the session information of acquisition user's publication in session interface, and the head portrait display location of the user corresponding with the conversation message display location;According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;Obtain head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;The user's head portrait obtained is shown in the head portrait display location.The application is by obtaining and showing that head portrait main body, towards consistent user's head portrait, so that the head portrait main body direction of the user's head portrait shown is directed toward the session information of user's publication, more meets normal dialog habit towards with the target head portrait main body.

Description

Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface
Technical field
This application involves field of computer technology, more particularly to head portrait methods of exhibiting, device, the electricity at a kind of session interface Sub- equipment and storage medium.
Background technique
Head portrait refers in application system, product or service, for showing, distinguishing the picture of different user, role, example Such as: instant communication session interface, head portrait are used to identify different spokesmans;In e-mail applications, head portrait is used to mark mails Different addressers in sequence;In the systems such as forum, blog, head portrait is used to identify different information publishers.The prior art In, head portrait is usually illustrated in the fixation position of the session information of user's output of the head portrait mark or the mail of sending, with Identify the publisher of this session information.But due to being limited by factors such as memory spaces, same application system in the prior art In system, user can only store and show the same head portrait.For example, displaying is somebody's turn to do at multiple and different session interfaces of a certain user The head portrait of user be it is identical, may cause the user publication session information display orientation and user head portrait main body direction Opposite to each other, normal dialog habit is not met.
Summary of the invention
The application provides a kind of head portrait methods of exhibiting at session interface, facilitates the session for improving session interface user publication Information and head portrait main body be not towards the problem of opposite to each other, meeting normal dialog habit.
To solve the above-mentioned problems, in a first aspect, the embodiment of the present application provides a kind of head portrait displaying side at session interface Method, comprising:
Conversation message display location of the session information of user's publication in session interface is obtained, and, with the session The head portrait display location of the corresponding user in message display position;
According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;
Obtain head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;
The user's head portrait obtained is shown in the head portrait display location.
Second aspect, the head portrait that the embodiment of the present application provides a kind of session interface show device, comprising:
Display location obtains module, shows for obtaining conversation message of the session information of user's publication in session interface Position, and, the head portrait display location of the user corresponding with the conversation message display location;
Head portrait main body is used for towards determining module according to the conversation message display location and the head portrait display location, Determine target head portrait main body direction;
Head portrait obtains module, for obtain head portrait main body towards with the target head portrait main body towards the consistent user User's head portrait;
Head portrait display module, for showing the user's head portrait obtained in the head portrait display location.
The third aspect, the embodiment of the present application also disclose a kind of electronic equipment, including memory, processor and are stored in institute The computer program that can be run on memory and on a processor is stated, the processor realizes this when executing the computer program Apply for the head portrait methods of exhibiting at session interface described in embodiment.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence, when which is executed by processor the step of the head portrait methods of exhibiting at session interface disclosed in the embodiment of the present application.
The head portrait methods of exhibiting at session interface disclosed in the embodiment of the present application, the session information by obtaining user's publication exist Conversation message display location in session interface, and, the head portrait of the user corresponding with the conversation message display location Display location;According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;It obtains Head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;In the head portrait display location Show the user's head portrait obtained, solve the session interface user that may be present publication of prior art kind session information and Head portrait main body is not towards the problem of opposite to each other, meeting normal dialog habit.The head portrait exhibition at session interface disclosed in the embodiment of the present application Show method, by obtaining and showing that head portrait main body direction uses account towards the consistent user with the target head portrait main body Picture, so that session information of the head portrait main body of the user's head portrait shown towards direction user's publication, so that the exhibition of session interface The head portrait main body direction of the user's head portrait shown is consistent with conversation message, more meets normal dialog habit, further improves user Experience.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the application Example is applied, it for those of ordinary skill in the art, without any creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the head portrait methods of exhibiting flow chart at the session interface of the embodiment of the present application one;
Fig. 2 is the head portrait and conversation message bandwagon effect schematic diagram at a session interface in the prior art;
Fig. 3 is that the head portrait main body direction of the embodiment of the present application two determines method schematic diagram;
Fig. 4 is the head portrait bandwagon effect schematic diagram at the session interface of the embodiment of the present application two;
Fig. 5 is the head portrait methods of exhibiting flow chart at the session interface of the embodiment of the present application three;
Fig. 6 is that the head portrait at the session interface of the embodiment of the present application four shows one of apparatus structure schematic diagram;
Fig. 7 is that the head portrait at the session interface of the embodiment of the present application four shows the two of apparatus structure schematic diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
Embodiment one
A kind of head portrait methods of exhibiting at session interface disclosed in the present embodiment, as shown in Figure 1, this method comprises: step 110 To step 140.
Step 110, conversation message display location of the session information of user's publication in session interface is obtained, and, with The head portrait display location of the corresponding user of the conversation message display location.
The head portrait methods of exhibiting at session interface disclosed in the embodiment of the present application, suitable for showing the session of user's publication simultaneously The application scenarios of message and user's head portrait, for example, instant messaging application, mail applications, forum page application, microblogging etc. are applied In.In general, each application can pre-define the head portrait display location of user and the display location of the conversation message of user publication is closed System.Wherein, head portrait display location is the display location of user's head portrait of the user.For example, instant messaging application shown in Fig. 2 In session interface, user's head portrait 210 of peer user is shown in the right side of session interface mirror position, peer user conversation message 220 show that in the left side of user's head portrait 210, user's head portrait 230 of this end subscriber is shown in session interface mirror position Left side, the conversation message 240 of this end subscriber show the right side of user's head portrait 230.
When it is implemented, according to the positional relationship of user's head portrait of user and the conversation message of user publication, and work as The conversation messages such as the quantity for the conversation message issued in preceding session show rule, and the session information of user's publication can be determined in meeting The conversation message display location in interface is talked about, and, the head portrait exhibition of the user corresponding with the conversation message display location Show position.In some embodiments of the present application, the conversation message display location and head portrait display location can pass through session The coordinate at interface indicates.
Step 120, according to the conversation message display location and the head portrait display location, target head portrait main body court is determined To.
In embodiments herein, head portrait main body direction refers to the instruction direction of main contents in user's head portrait.For example, When user's head portrait includes facial image, the main body of user's head portrait is oriented facial orientation;When user's head portrait include arrow, When wind vane, gesture etc. can indicate the image of the object in direction, the main body of user's head portrait is oriented arrow, wind vane Or the direction of gesture.
Further, according to the conversation message display location and the head portrait display location, target head portrait main body is determined Direction.Wherein, target head portrait main body direction is used to indicate desired head portrait main body direction.For example, when the conversation message is shown Position determines that target head portrait main body is oriented to the left at the left side of the head portrait display location;When the conversation message is shown Position determines that target head portrait main body is oriented to the right at the right side of the head portrait display location;When the conversation message is shown When position is below the head portrait display location, determine that target head portrait main body is oriented downwards;When the conversation message is shown Position determines that target head portrait main body is oriented upwards in the upper surface of described head portrait display location.
When it is implemented, determining target head portrait master according to the conversation message display location and the head portrait display location Body no longer enumerates in the present embodiment towards that can also be other directions.
Step 130, it obtains head portrait main body direction and uses account towards the consistent user with the target head portrait main body Picture.
Then, user's head portrait of the user is obtained.When it is implemented, user's head portrait of the user may be one, It may also be multiple.Each head portrait of the user may be previously provided with the attribute of head portrait main body direction, it is also possible to not set Set the attribute of head portrait main body direction.
It, can be according to institute when the head portrait (i.e. user's head portrait) of the user is previously provided with the attribute of head portrait main body direction Attribute is stated, use of the width head portrait main body towards the target head portrait main body determined with abovementioned steps towards the consistent user is selected Account picture, as the current user's head portrait to be shown of the user.When pre-set in user's head portrait according to the user Head portrait main body towards attribute, do not find with the target head portrait main body towards the consistent user user's head portrait when, can With by width user's head portrait to the user carry out image procossing (such as user's head portrait of user is overturn and/or Rotation, perspective processing) so that head portrait main body in treated user's head portrait towards and the target head portrait main body towards one It causes.
When user's head portrait of the user is not previously set the attribute of head portrait main body direction, image recognition can be passed through Technology determines the head portrait main body direction in user's head portrait.Then, if the head portrait main body direction determined by image recognition Consistent, the user's head portrait for the user that then be used directly with the target head portrait main body direction.If determined by image recognition Head portrait main body towards inconsistent, then can be carried out towards with the target head portrait main body by user's head portrait to the user Image procossing (such as overturn and/or rotate to user's head portrait of user, perspective processing), uses account so that treated Head portrait main body direction as in is with the target head portrait main body towards unanimously.
Step 140, the user's head portrait obtained is shown in the head portrait display location.
Finally, the head portrait display location in the session interface, show the head portrait main body of acquisition towards with it is described User head portrait of the target head portrait main body towards the consistent user.User's head portrait of the acquisition may be the original of user's head portrait Beginning image, it is also possible to for the user images obtained after image procossing.
The head portrait methods of exhibiting at session interface disclosed in the embodiment of the present application, the session information by obtaining user's publication exist Conversation message display location in session interface, and, the head portrait of the user corresponding with the conversation message display location Display location;According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;It obtains Head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;In the head portrait display location Show the user's head portrait obtained, solve the session interface user that may be present publication of prior art kind session information and Head portrait main body is not towards the problem of opposite to each other, meeting normal dialog habit.The head portrait exhibition at session interface disclosed in the embodiment of the present application Show method, by obtaining and showing that head portrait main body direction uses account towards the consistent user with the target head portrait main body Picture, so that session information of the head portrait main body of the user's head portrait shown towards direction user's publication, so that the exhibition of session interface The head portrait main body direction of user's head portrait of the user shown is consistent with conversation message, more meets normal dialog habit, further improves User experience.
Embodiment two
Based on embodiment one, a kind of specific embodiment of the head portrait methods of exhibiting at session interface disclosed in the present embodiment In, obtain head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user, comprising: by right User's head portrait of the user carries out image recognition, determines the corresponding head portrait main body direction of user's head portrait;If it is determined that The head portrait main body towards with the target head portrait main body towards inconsistent, then by being carried out at image to user's head portrait Reason, obtain head portrait main body towards with the target head portrait main body towards consistent user's head portrait.
In some embodiments of the present application, when user's head portrait of the user is not previously set head portrait main body towards category Property when, the head portrait main body direction that neural network model trained in advance identifies user's head portrait of user can be passed through.Specific implementation When, can by be previously provided with head portrait main body towards label head portrait picture as training sample, with off-line training head portrait master Body is towards neural network model.On line in application process, user's head portrait of user is input to the trained head portrait arrived Main body can determine the head portrait main body of user's head portrait towards probability towards neural network model.
In other embodiments of the application, when user's head portrait of the user is not previously set head portrait main body direction When attribute, the head portrait picture can be handled based on image recognition technology, determine the head portrait main body direction of user's head portrait. For example, when user's head portrait be include the picture of facial image when, image recognition is carried out by user's head portrait to the user, really Determine the corresponding head portrait main body direction of user's head portrait, comprising: face recognition is carried out by user's head portrait to the user, really Facial width positioning line segment, Pupil diameter line segment and the facial physiology central point of face in fixed user's head portrait, wherein described Pupil diameter line segment is the line segment for connecting two pupils, and the facial width positioning line segment is parallel with the Pupil diameter line segment And it is located at the line segment of face the widest part, the face physiology central point includes: place between the eyebrows, nose, procheilon;Determine the facial width Position the first midpoint of line segment and the second midpoint of the Pupil diameter line segment;According to the facial physiology central point and described the The positional relationship at one midpoint and second midpoint determines the head portrait main body direction of user's head portrait.
When it is implemented, can be determined in user's head portrait of user by Face detection in the prior art and detection technique Face location and pupil position.In general, as shown in figure 3, determine face location be one include eyebrow, human eye, nose and The rectangular area R of mouth, the width of face are the width of rectangle, can also export pupil position P after Face detection1And P2, with And including but not limited to place between the eyebrows O1, nose O2, procheilon O3Etc. characteristic points position.Further, since face is symmetrical structure, In embodiments herein, place between the eyebrows, nose, procheilon are known as facial physiology central point.
Then, the direction of the face physiology central point according to the pattern shift of user's head portrait, determines user's head portrait Corresponding head portrait main body direction.For example, first according to the pupil position P navigated to1And P2Determine Pupil diameter line segment P1P2, and By Pupil diameter line segment P1P2Midpoint P0As the second midpoint P0;According to determining human face region, in the Pupil diameter line segment A facial width positioning line segment L is defined below1L2, and the facial width is positioned into line segment L1L2Midpoint L0As the first midpoint L0.Finally, according to the facial physiology central point O1、O2And O3With the first midpoint L0With the second midpoint P0Position close System, determines the corresponding head portrait main body direction of user's head portrait.
Optionally, described to be closed according to the position at the facial physiology central point and first midpoint and second midpoint System, determines the head portrait main body direction of user's head portrait, comprising: if the face physiology central point is respectively positioned on first midpoint With the same side at second midpoint, it is determined that the corresponding head portrait main body of user's head portrait is oriented towards the facial physiology The side at first midpoint and second midpoint that central point is located at.By taking head portrait shown in Fig. 3 as an example, the face is raw Manage central point O1、O2And O3It is respectively positioned on the first midpoint L0With the second midpoint P0Right side, it is determined that user's head portrait Head portrait main body is oriented to the right.Disclosed head portrait main body determines the use comprising facial image towards the method for determination through this embodiment For the head portrait main body of account picture towards simple and effective, operand is small, more efficient.
In other embodiments of the application, if the face physiology central point is respectively positioned on first midpoint and institute State the left side at the second midpoint, it is determined that the corresponding head portrait main body of user's head portrait is oriented to the left.
It, can also be according to the facial physiology central point O in the other embodiments of the application1、O2And O3With Pupil diameter The state of the distance between line segment and human eye determines that the head portrait main body of user's head portrait is oriented upward or downward.
After the head portrait main body direction of user's head portrait of determining user, if the head portrait main body court of user's head portrait Towards unanimously, then user's head portrait of user can be directly used to determining target head portrait main body.If the user The head portrait main body of head portrait towards inconsistent, then needs to carry out image to user's head portrait towards with determining target head portrait main body Processing.Conversation message as shown in Figure 2 is shown in interface, since the conversation message 220 of peer user publication is shown in its user The left side of head portrait 210, therefore, it is necessary to show that head portrait main body is oriented user's head portrait to the left.When it is implemented, can be by right User's head portrait shown in Fig. 3 is overturn, to obtain head portrait main body towards user's head portrait to the left.
Then, user's head portrait after progress image procossing is shown at the head portrait display location at session interface.Exhibition Show that effect is as shown in Figure 4.It is used since the conversation message of the peer user publication of instant messaging application setting is shown in the opposite end The left side of user's head portrait at family, therefore, by showing that head portrait main body is oriented user's head portrait to the left, so that in visual effect more Add the message for explicitly illustrating that this conversation message is relative users publication, so that the user's of session showing interface uses account The head portrait main body direction of picture is consistent with conversation message, more meets normal dialog habit, further improves user experience.
It, can also be according to user's head portrait of known head portrait main body direction, by simple in the other embodiments of the application Picture processing generate user's head portrait of different subjects direction such as flip vertical, perspective distortion or other image processing means, The image processing means of specified head portrait main body direction are obtained in the embodiment of the present application to the head portrait by known head portrait main body direction Without limitation.
Embodiment three
With reference to Fig. 5, a kind of head portrait methods of exhibiting at session interface disclosed in the present embodiment, including step 510 is to step 550。
Step 510, the head image information inputted according to user, is arranged the head portrait main body direction of user's head portrait of the user.
In some embodiments of the present application, session of the session information for obtaining user's publication in session interface disappears Display location is ceased, and, before the head portrait display location of the user corresponding with the conversation message display location, also wrap Include: the head portrait main body direction of user's head portrait of the user is arranged in the head image information inputted according to user.
For example, when the head portrait main body direction of user's head portrait of user can not be determined by image recognition technology, alternatively, user When being unsatisfied with to the head portrait for the specified head portrait main body direction that original head portrait obtains after image procossing, user can be with active upload The head portrait of various head portrait main body directions, and the head portrait main body of each head portrait is set towards attribute.Then, system saves user and uploads Head portrait and the head portrait head portrait main body towards attribute, in case subsequent display.The head portrait that user uploads is the user of the user Head portrait.
Step 520, conversation message display location of the session information of user's publication in session interface is obtained, and, with The head portrait display location of the corresponding user of the conversation message display location.
Conversation message display location of the session information of user's publication in session interface is obtained, and, with the session The specific embodiment of the head portrait display location of the corresponding user in message display position is referring to embodiment one, and the present embodiment is not It repeats again.
Step 530, according to the conversation message display location and the head portrait display location, target head portrait main body court is determined To.
According to the conversation message display location and the head portrait display location, the specific of target head portrait main body direction is determined Embodiment is referring to embodiment one, and this embodiment is not repeated.
Step 540, it obtains head portrait main body direction and uses account towards the consistent user with the target head portrait main body Picture.
In some embodiments of the present application, obtain head portrait main body towards with the target head portrait main body towards consistent institute State user's head portrait of user, comprising: default head portrait main body direction and the target are selected from user's head portrait library of the user Head portrait main body is towards matched width user's head portrait.
It, can be with when it is implemented, when the user uploads the head portrait for being provided with the attribute of head portrait main body direction in advance According to the attribute, select a width head portrait main body towards the target head portrait main body determined with abovementioned steps towards the consistent use User's head portrait at family, as the current user's head portrait to be shown of the user.
Step 550, the user's head portrait obtained is shown in the head portrait display location.
Finally, the head portrait display location in the session interface, show the head portrait main body of acquisition towards with it is described User head portrait of the target head portrait main body towards the consistent user.
The head portrait methods of exhibiting at session interface disclosed in the embodiment of the present application, by the head image information inputted according to user, The head portrait main body of user's head portrait of the user is set towards attribute and is stored, when the session information of acquisition user's publication is in session Conversation message display location in interface, and, the head portrait of the user corresponding with the conversation message display location is shown After position, according to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;It obtains Head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;In the head portrait display location Show the user's head portrait obtained, solve the session interface user that may be present publication of prior art kind session information and Head portrait main body is not towards the problem of opposite to each other, meeting normal dialog habit.The head portrait exhibition at session interface disclosed in the embodiment of the present application Show method, by obtaining and showing that head portrait main body direction uses account towards the consistent user with the target head portrait main body Picture, so that session information of the head portrait main body of the user's head portrait shown towards direction user's publication, so that the exhibition of session interface The head portrait main body direction of the user's head portrait shown is consistent with conversation message, more meets normal dialog habit, further improves user Experience.By the way that user's head portrait of a variety of head portrait main body directions is stored in advance according to user's operation, for being carried out under corresponding scene It shows, the diversity of showing interface effect may further be promoted.
Example IV
A kind of head portrait displaying device at session interface disclosed in the present embodiment, as shown in fig. 6, described device includes:
Display location obtains module 610, for obtaining conversation message of the session information of user's publication in session interface Display location, and, the head portrait display location of the user corresponding with the conversation message display location;
Head portrait main body is towards determining module 620, for showing position according to the conversation message display location and the head portrait It sets, determines target head portrait main body direction;
Head portrait obtains module 630, for obtain head portrait main body towards with the target head portrait main body towards consistent described User's head portrait of user;
Head portrait display module 640, for showing the user's head portrait obtained in the head portrait display location.
In some embodiments of the present application, as shown in fig. 7, head portrait acquisition module 630 further comprises:
First head portrait acquisition submodule 6301, for selecting default head portrait main body court from user's head portrait library of the user To with the target head portrait main body towards matched width user's head portrait.Several are stored in advance in user's head portrait library of the user The head portrait of the user, every width head portrait are provided with head portrait main body orientation information.
In some embodiments of the present application, as shown in fig. 7, head portrait acquisition module 630 further comprises:
Second head portrait acquisition submodule 6302 is determined for carrying out image recognition by user's head portrait to the user The corresponding head portrait main body direction of user's head portrait;And
If it is determined that the head portrait main body towards with the target head portrait main body towards inconsistent, then by the use Account picture carries out image procossing, obtain head portrait main body towards with the target head portrait main body towards consistent user's head portrait.
In some embodiments of the present application, image recognition is carried out by the head portrait to the user, determines the user The corresponding head portrait main body direction of head portrait, comprising:
Face recognition is carried out by user's head portrait to the user, determines the facial width of face in user's head portrait Position line segment, Pupil diameter line segment and facial physiology central point, wherein the Pupil diameter line segment is the line for connecting two pupils Section, the facial width positioning line segment are line segment that is parallel with the Pupil diameter line segment and being located at face the widest part, the face Portion's physiology central point includes: place between the eyebrows, nose, procheilon;
Determine the first midpoint of the facial width positioning line segment and the second midpoint of the Pupil diameter line segment;
According to the positional relationship of facial the physiology central point and first midpoint and second midpoint, described in determination The head portrait main body direction of user's head portrait.
It is described according to the facial physiology central point and first midpoint and described in some embodiments of the present application The positional relationship at the second midpoint determines the head portrait main body direction of user's head portrait, comprising:
If the face physiology central point is respectively positioned on the same side at first midpoint and second midpoint, it is determined that institute It states the corresponding head portrait main body of user's head portrait and is oriented first midpoint being located at towards the facial physiology central point and institute State the side at the second midpoint.
In some embodiments of the present application, as shown in fig. 7, described device further include:
Head portrait main body is towards setup module 650, and the user of the user is arranged in head image information for being inputted according to user The head portrait main body direction of head portrait.
The head portrait at session interface disclosed in the embodiment of the present application shows device, for realizing the embodiment of the present application one and implements Each step of the head portrait methods of exhibiting at session interface described in example two, the specific embodiment of each module of device is referring to corresponding Step, details are not described herein again.
The head portrait at session interface disclosed in the embodiment of the present application shows device, and the session information by obtaining user's publication exists Conversation message display location in session interface, and, the head portrait of the user corresponding with the conversation message display location Display location;According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;It obtains Head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;In the head portrait display location Show the user's head portrait obtained, solve the session interface user that may be present publication of prior art kind session information and Head portrait main body is not towards the problem of opposite to each other, meeting normal dialog habit.The head portrait exhibition at session interface disclosed in the embodiment of the present application Showing device, by obtaining and showing that head portrait main body direction uses account towards the consistent user with the target head portrait main body Picture, so that session information of the head portrait main body of the user's head portrait shown towards direction user's publication, so that the exhibition of session interface The head portrait main body direction of user's head portrait of the user shown is consistent with conversation message, more meets normal dialog habit, further improves User experience.By the way that user's head portrait of a variety of head portrait main body directions is stored in advance according to user's operation, in corresponding scene Under be shown, the diversity of showing interface effect may further be promoted.
Correspondingly, disclosed herein as well is a kind of electronic equipment, including memory, processor and it is stored in the memory Computer program that is upper and can running on a processor, the processor are realized when executing the computer program as the application is real Apply the head portrait methods of exhibiting at session interface described in example one and embodiment two.The electronic equipment can for PC machine, mobile terminal, Personal digital assistant, tablet computer etc..
Disclosed herein as well is a kind of computer readable storage mediums, are stored thereon with computer program, which is located The step of managing the head portrait methods of exhibiting that the session interface as described in the embodiment of the present application one and embodiment two is realized when device executes.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.For Installation practice For, since it is basically similar to the method embodiment, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.
The head portrait methods of exhibiting and device at a kind of session interface provided by the present application are described in detail above, herein In apply specific case the principle and implementation of this application are described, the explanation of above example is only intended to sides Assistant solves the present processes and its core concept;At the same time, for those skilled in the art, the think of according to the application Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair The limitation of the application.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware realization.Based on such reason Solution, substantially the part that contributes to existing technology can embody above-mentioned technical proposal in the form of software products in other words Come, which may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively Method described in certain parts of a embodiment or embodiment.

Claims (11)

1. a kind of head portrait methods of exhibiting at session interface characterized by comprising
Conversation message display location of the session information of user's publication in session interface is obtained, and, with the conversation message The head portrait display location of the corresponding user of display location;
According to the conversation message display location and the head portrait display location, target head portrait main body direction is determined;
Obtain head portrait main body towards with the target head portrait main body towards user's head portrait of the consistent user;
The user's head portrait obtained is shown in the head portrait display location.
2. the method according to claim 1, wherein obtaining head portrait main body direction and the target head portrait main body court To the consistent user user's head portrait the step of, comprising:
Selected from user's head portrait library of the user default head portrait main body towards with the target head portrait main body towards matched One width user's head portrait.
3. the method according to claim 1, wherein obtaining head portrait main body direction and the target head portrait main body court To the consistent user user's head portrait the step of, comprising:
Image recognition is carried out by user's head portrait to the user, determines the corresponding head portrait main body direction of user's head portrait;
If it is determined that the head portrait main body towards with the target head portrait main body towards inconsistent, then by using account to described As carrying out image procossing, obtain head portrait main body towards with the target head portrait main body towards consistent user's head portrait.
4. according to the method described in claim 3, it is characterized in that, carrying out image knowledge by user's head portrait to the user , do not determine the corresponding head portrait main body of user's head portrait towards the step of, comprising:
Face recognition is carried out by user's head portrait to the user, determines the facial width positioning of face in user's head portrait Line segment, Pupil diameter line segment and facial physiology central point, wherein the Pupil diameter line segment is the line segment for connecting two pupils, The facial width positioning line segment is line segment that is parallel with the Pupil diameter line segment and being located at face the widest part, and the face is raw Managing central point includes: place between the eyebrows, nose, procheilon;
Determine the first midpoint of the facial width positioning line segment and the second midpoint of the Pupil diameter line segment;
According to the positional relationship of facial the physiology central point and first midpoint and second midpoint, the user is determined The head portrait main body direction of head portrait.
5. according to the method described in claim 4, it is characterized in that, described according to the facial physiology central point and described first The positional relationship at midpoint and second midpoint, determine the head portrait main body of user's head portrait towards the step of, comprising:
If the face physiology central point is respectively positioned on the same side at first midpoint and second midpoint, it is determined that the use Account is oriented first midpoint being located at towards the facial physiology central point and described the as corresponding head portrait main body The side at two midpoints.
6. method according to any one of claims 1 to 5, which is characterized in that the session information for obtaining user's publication Conversation message display location in session interface, and, the head of the user corresponding with the conversation message display location Before as the step of display location, further includes:
According to the head image information that user inputs, the head portrait main body direction of user's head portrait of the user is set.
7. a kind of head portrait at session interface shows device characterized by comprising
Display location obtains module, shows position for obtaining conversation message of the session information of user's publication in session interface It sets, and, the head portrait display location of the user corresponding with the conversation message display location;
Head portrait main body is towards determining module, for determining according to the conversation message display location and the head portrait display location Target head portrait main body direction;
Head portrait obtains module, for obtaining head portrait main body towards the use with the target head portrait main body towards the consistent user Account picture;
Head portrait display module, for showing the user's head portrait obtained in the head portrait display location.
8. device according to claim 7, which is characterized in that the head portrait obtains module and further comprises:
First head portrait acquisition submodule, for selected from user's head portrait library of the user default head portrait main body towards with it is described Target head portrait main body is towards matched width user's head portrait.
9. device according to claim 7, which is characterized in that the head portrait obtains module and further comprises:
Second head portrait acquisition submodule determines the user for carrying out image recognition by user's head portrait to the user The corresponding head portrait main body direction of head portrait;And
If it is determined that the head portrait main body towards with the target head portrait main body towards inconsistent, then by using account to described As carrying out image procossing, obtain head portrait main body towards with the target head portrait main body towards consistent user's head portrait.
10. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on a processor Computer program, which is characterized in that the processor realizes claim 1 to 6 any one when executing the computer program The head portrait methods of exhibiting at the session interface.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of head portrait methods of exhibiting at session interface described in claim 1 to 6 any one is realized when execution.
CN201811246809.7A 2018-10-24 2018-10-24 Head portrait display method and device of session interface, electronic equipment and storage medium Active CN109587035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811246809.7A CN109587035B (en) 2018-10-24 2018-10-24 Head portrait display method and device of session interface, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811246809.7A CN109587035B (en) 2018-10-24 2018-10-24 Head portrait display method and device of session interface, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109587035A true CN109587035A (en) 2019-04-05
CN109587035B CN109587035B (en) 2020-08-07

Family

ID=65920467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811246809.7A Active CN109587035B (en) 2018-10-24 2018-10-24 Head portrait display method and device of session interface, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109587035B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271246A (en) * 2020-02-14 2021-08-17 钉钉控股(开曼)有限公司 Communication method and device
CN113395201A (en) * 2021-06-10 2021-09-14 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090141047A1 (en) * 2007-11-29 2009-06-04 International Business Machines Corporation Virtual world communication display method
CN104574321A (en) * 2015-01-29 2015-04-29 京东方科技集团股份有限公司 Image correction method and device and video system
CN105920839A (en) * 2016-05-15 2016-09-07 大连文森特软件科技有限公司 Network game dialogue online editing system
CN108885795A (en) * 2016-03-31 2018-11-23 斯纳普公司 Head portrait is automated to generate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090141047A1 (en) * 2007-11-29 2009-06-04 International Business Machines Corporation Virtual world communication display method
CN104574321A (en) * 2015-01-29 2015-04-29 京东方科技集团股份有限公司 Image correction method and device and video system
CN108885795A (en) * 2016-03-31 2018-11-23 斯纳普公司 Head portrait is automated to generate
CN105920839A (en) * 2016-05-15 2016-09-07 大连文森特软件科技有限公司 Network game dialogue online editing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黑衣羽林: "仙剑4中感人对话及画面你喜欢哪张(3)", 《HTTPWWW.07073.COMXJOLXINWEN654376_3.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271246A (en) * 2020-02-14 2021-08-17 钉钉控股(开曼)有限公司 Communication method and device
CN113271246B (en) * 2020-02-14 2023-03-31 钉钉控股(开曼)有限公司 Communication method and device
CN113395201A (en) * 2021-06-10 2021-09-14 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session
CN113395201B (en) * 2021-06-10 2024-02-23 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session

Also Published As

Publication number Publication date
CN109587035B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
KR102586855B1 (en) Combining first user interface content into a second user interface
US10984226B2 (en) Method and apparatus for inputting emoticon
US11450051B2 (en) Personalized avatar real-time motion capture
US11455765B2 (en) Method and apparatus for generating virtual avatar
US11763481B2 (en) Mirror-based augmented reality experience
WO2016149579A1 (en) Emotion recognition in video conferencing
CN105447125A (en) Electronic equipment and makeup assisting method
WO2018191691A1 (en) Reactive profile portraits
CN112527115B (en) User image generation method, related device and computer program product
CN108257218A (en) Information interactive control method, device and equipment
CN109829432A (en) Method and apparatus for generating information
CN106156237B (en) Information processing method, information processing unit and user equipment
US20210304629A1 (en) Displaying augmented reality content with tutorial content
US20220207875A1 (en) Machine learning-based selection of a representative video frame within a messaging application
US11847528B2 (en) Modulated image segmentation
CN110532983A (en) Method for processing video frequency, device, medium and equipment
CN109587035A (en) Head portrait methods of exhibiting, device, electronic equipment and the storage medium at session interface
CN115796963A (en) MR content localization based on temporal-spatial relationships
WO2022204674A1 (en) True size eyewear experience in real-time
CN109949213B (en) Method and apparatus for generating image
US20230120037A1 (en) True size eyewear in real time
CN110349108A (en) Handle method, apparatus, electronic equipment and the storage medium of image
CN109816791A (en) Method and apparatus for generating information
CN113223128B (en) Method and apparatus for generating image
CN109725725A (en) The information processing method of smart-interactive terminal and smart-interactive terminal

Legal Events

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