CN107527072A - Determine method and device, the electronic equipment of similar head portrait - Google Patents

Determine method and device, the electronic equipment of similar head portrait Download PDF

Info

Publication number
CN107527072A
CN107527072A CN201710769259.6A CN201710769259A CN107527072A CN 107527072 A CN107527072 A CN 107527072A CN 201710769259 A CN201710769259 A CN 201710769259A CN 107527072 A CN107527072 A CN 107527072A
Authority
CN
China
Prior art keywords
head portrait
user
active user
similar
value
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
CN201710769259.6A
Other languages
Chinese (zh)
Other versions
CN107527072B (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710769259.6A priority Critical patent/CN107527072B/en
Publication of CN107527072A publication Critical patent/CN107527072A/en
Application granted granted Critical
Publication of CN107527072B publication Critical patent/CN107527072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure is directed to a kind of method and device for determining similar head portrait, electronic equipment.This method includes:The first head portrait comparison information of active user is generated according to the first head portrait of active user;The second head portrait generation of at least one other user corresponds to the second head portrait comparison information of the second head portrait of at least one other user in group according to where active user;Based on the first head portrait comparison information and the second head portrait comparison information, the similar value between the second head portrait of at least one other user in the first head portrait and group of active user is determined;If the similar value more than or equal to predetermined threshold value in similar value be present, correspond to the second head portrait of other users above or equal to the similar value of predetermined threshold value and be defined as the head portrait similar to the head portrait of active user.The embodiment of the present disclosure can find head portrait similar to the first head portrait of active user within group, facilitate user to find same or similar head portrait, lift experience during user's group chat.

Description

Determine method and device, the electronic equipment of similar head portrait
Technical field
This disclosure relates to technical field of data processing, more particularly to a kind of method and device for determining similar head portrait, electronics Equipment.
Background technology
With developing rapidly for network, group chat turns into a kind of important work, life and entertainment way.In group chat When, it may appear that the user that head portrait repeats, cause to puzzle to other users.For example, in a group, if user A and user B Head portrait is identical, then user A speech may be mistaken as user B speech., it is necessary to pass through mesh by user in correlation technique The mode of survey finds the head portrait similar to its, and user needs manually to change head portrait, can cause inconvenience to the user.
The content of the invention
The disclosure provides a kind of method and device for determining similar head portrait, electronic equipment, to solve in correlation technique not Foot.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for determining similar head portrait, methods described include:
The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
The second head portrait generation corresponding at least one of at least one other user according to where the active user in group Second head portrait comparison information of the second head portrait of individual other users;
Based on the first head portrait comparison information and the second head portrait comparison information, the first of the active user is determined Similar value in head portrait and the group between the second head portrait of at least one other user;
If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the predetermined threshold value Similar value correspond to the second head portrait of the other users and be defined as the head portrait similar to the first head portrait of the active user.
Alternatively, the first head portrait comparison information of the active user is generated according to the first head portrait of active user, including:
First head portrait progress gray processing is obtained into the i.e. described current use of the first gray value vectors of first head portrait The first head portrait comparison information at family;
Or
The same color extracted from first head portrait in each pixel obtains the first color value vector of first head portrait The first head portrait comparison information of i.e. described active user.
Alternatively, the second head portrait of at least one other user according to where the active user in group generates corresponding Second head portrait comparison information of the second head portrait of at least one other user, including:
For each second head portrait, second head portrait progress gray processing is obtained into the second gray value of second head portrait Vector is the second head portrait comparison information of the user;Or
For each second head portrait, the same color in each pixel is extracted from second head portrait, obtains described second Second color value vector of picture is the second head portrait comparison information of the other users;The color extracted in second head portrait with The color extracted in first head portrait is identical.
Alternatively, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user, including:
For each user at least one other user in the group, determine the first head portrait comparison information and The cosine value of second head portrait comparison information of the second head portrait of each user;The first head portrait comparison information is the first ash Angle value vector or the first color value vector;The second head portrait comparison information is the second gray value vectors or the second color value Vector;
Second head portrait and the first head portrait of the active user corresponding to each user are determined based on the cosine value Between similar value.
Alternatively, the similar value above or equal to the predetermined threshold value correspond to user the second head portrait be defined as with After the similar head portrait of the first head portrait of the active user, methods described also includes:
Generate prompting message;The prompting message is used to prompt to exist in the group first with the active user The similar user of head portrait.
Alternatively, the similar value above or equal to the predetermined threshold value corresponds to the second head portrait of the other users It is defined as after the head portrait similar to the first head portrait of the active user, methods described also includes:
In response to the first instruction of the active user, show and specify an at least frame head picture in picture library;The specified picture library Including default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, is wrapped in the history picture library Include active user's once used head portrait;
In response to the second instruction of the active user on the interactive interface of the specified picture library, by the active user The first head portrait be replaced by it is described second instruction corresponding to head portrait.
Alternatively, the similar value above or equal to the predetermined threshold value corresponds to the second head portrait of the other users It is defined as after the head portrait similar to the first head portrait of the active user, methods described also includes:
The first head portrait of the active user is replaced by specified image;The specified image is to specify the frame in picture library Head portrait;The specified picture library includes default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, The history picture library includes active user's once used head portrait.
Alternatively, methods described also includes:
After determining that chat terminates in the group, first head portrait is replaced by corresponding head portrait when adding group.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device for determining similar head portrait, described device include:
First generation module, the first head portrait for generating the active user according to the first head portrait of active user compare Information;
Second generation module, second at least one other user according to where the active user in group As the second head portrait comparison information of the second head portrait of the corresponding at least one other user of generation;
Similar value determining module, for based on the first head portrait comparison information and the second head portrait comparison information, really Similar value in the first head portrait of the fixed active user and the group between the second head portrait of at least one other user;
Similar head portrait determining module, in the similar value exist more than or equal to predetermined threshold value similar value when, Correspond to the second head portrait of the other users above or equal to the similar value of the predetermined threshold value and be defined as and described current use The similar head portrait of first head portrait at family.
Alternatively, first generation module includes:
First gray shade unit, for being the active user by first head portrait progress gray value vectors of gray processing first The first head portrait comparison information;
Or;
First color cell, first head portrait is obtained for extracting the same color in each pixel from first head portrait The first color value vector be the active user the first head portrait comparison information.
Alternatively, second generation module includes:
Second gray shade unit, for for each second head portrait, second head portrait to be carried out into the gray value of gray processing second Vector is the second head portrait comparison information of the user;
Or
Second color cell, for for each second head portrait, the same face in each pixel to be extracted from second head portrait Color, obtain the second head portrait comparison information of the i.e. described other users of the second color value vector of second head portrait;Described second The color extracted in head portrait is identical with the color extracted in the first head portrait.
Alternatively, the similar value determining module includes:
Cosine value determining unit, for for each user in other users in the group, determining described first As the cosine value of comparison information and the second head portrait comparison information of the second head portrait of each user;First head portrait compares Information is the first gray value vectors or the first color value vector;The second head portrait comparison information be the second gray value vectors or The color value of person second vector;
Similar value determining unit, for based on the cosine value determine the second head portrait corresponding to each user with it is described Similar value between the first head portrait of active user.
Alternatively, described device also includes:
3rd generation module, for determining first with the active user be present in the similar head portrait determining module As generating prompting message during similar head portrait;The prompting message is used to prompt to exist and the active user in the group The similar user of the first head portrait.
Alternatively, described device also includes:
First respond module, for the first instruction in response to the active user, show and specify an at least frame in picture library Head portrait;The specified picture library includes default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, The history picture library includes active user's once used head portrait;
Second respond module, for referring on the interactive interface of the specified picture library in response to the second of the active user Order, the first head portrait of the active user is replaced by head portrait corresponding to second instruction.
Alternatively, described device also includes:First head portrait changes module, for being determined in the similar head portrait determining module The first head portrait of the active user is replaced by specified figure during in the presence of the head portrait similar to the first head portrait of the active user Picture;The specified image is to specify the frame head picture in picture library;The specified picture library includes default picture library or history picture library;It is described Default picture library includes the previously selected head portrait of multiframe, and the history picture library includes active user's once used head portrait.
Alternatively, described device also includes:Second head portrait changes module, for terminating it is determined that being chatted in the group Afterwards, first head portrait is replaced by corresponding head portrait when adding group.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electronic equipment, the electronic equipment include:
Display screen;
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured as:
The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
The second head portrait generation corresponding at least one of at least one other user according to where the active user in group Second head portrait comparison information of the second head portrait of individual other users;
Based on the first head portrait comparison information and the second head portrait comparison information, the first of the active user is determined Similar value in head portrait and the group between the second head portrait of at least one other user;
If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the predetermined threshold value Similar value correspond to the second head portrait of the other users and be defined as the head portrait similar to the first head portrait of the active user.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating Machine program, some computer instructions is stored with the computer-readable recording medium, the computer instruction enters when being performed The following processing of row:
The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
The second head portrait generation corresponding at least one of at least one other user according to where the active user in group Second head portrait comparison information of the second head portrait of individual other users;
Based on the first head portrait comparison information and the second head portrait comparison information, the first of the active user is determined Similar value in head portrait and the group between the second head portrait of at least one other user;
If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the predetermined threshold value Similar value correspond to the second head portrait of the other users and be defined as the head portrait similar to the first head portrait of the active user.
The technical scheme provided by this disclosed embodiment can include the following benefits:
It can be seen that the embodiment of the present disclosure is it can be found that head portrait similar to the first head portrait of active user within group, convenient User has found same or similar head portrait, lifts experience during user's group chat.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment;
Fig. 2 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to another exemplary embodiment;
Fig. 3 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to further example embodiment;
Fig. 4 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment;
Fig. 5 is the application scenarios schematic diagram of method shown in Fig. 4;
Fig. 6 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment;
Fig. 7 (a)~Fig. 7 (e) is the application scenarios schematic diagram of method shown in Fig. 6;
Fig. 8 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment;
Fig. 9 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment;
Figure 10 is a kind of block diagram of the device of the similar head portrait of determination according to an exemplary embodiment;
Figure 11 is a kind of block diagram of the device of the similar head portrait of determination according to another exemplary embodiment;
Figure 12 is a kind of block diagram of the device of the similar head portrait of determination according to further example embodiment;
Figure 13 is a kind of block diagram of the device of the similar head portrait of determination according to further example embodiment;
Figure 14 is a kind of block diagram of the device of the similar head portrait of determination according to further example embodiment;
Figure 15 is a kind of block diagram of the device of the similar head portrait of determination according to further example embodiment;
Figure 16 is the block diagram of a kind of electronic equipment according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The consistent device example of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment.This is true The method of fixed similar head portrait can be applied on terminal device or personal computer, for example, by installed in terminal device Either application program or software are realized on personal computer.The terminal device can be smart mobile phone, tablet personal computer etc..Ginseng See Fig. 1, the method for the similar head portrait of the determination includes:
Step 101, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Active user is that will add the user of group in the disclosure, or have been added to group and it needs to be determined that in group With the presence or absence of the user of same or similar head portrait.For example, the user for group will be added, when application adds group The method that embodiment of the present disclosure offer is provided.And for example, for having added group it needs to be determined that with the presence or absence of identical in group Or the user of similar head portrait, trigger button, user can be set at the group chat picture or individual subscriber picture in group Click on the method that the trigger button can then trigger embodiment of the present disclosure offer.
The first head portrait comparison information generates according to the parameter of the first head portrait in the disclosure, for characterizing the spy of first head portrait Sign and for determining in first head portrait and subsequent embodiment similarity between the second head portrait.First head portrait comparison information can be with Be the first head portrait the first gray value vectors or the first head portrait the first color value vector or the first brightness value to Amount.Parameter can include gray value, RGB color value of the first head portrait etc. in the present embodiment.By quantifying to above-mentioned parameter, Obtain correspond to first head portrait quantify after matrix, the matrix can be the first gray value vectors, the first color value vector or Person's the first brightness value vector etc..That is the first head portrait obtains the first head portrait comparison information after quantifying.
Step 102, the second head portrait generation pair of at least one other user according to where the active user in group Answer the second head portrait comparison information of the second head portrait of at least one other user.
The group that group will add for active user in the disclosure, or the group having been added to.It will be appreciated that this Group generally includes predetermined number user, i.e. active user and multiple other users in open.Such as group can include 500 Individual user, active user and 499 other users.In certain disclosure group can also be active user including 2 users with One other users.In the present embodiment the second head portrait comparison information according to the parameter of the second head portrait generate, for characterize this second The feature of head portrait and for determining in second head portrait and subsequent embodiment similarity between the first head portrait.Join in the present embodiment Number can include gray value, RGB color value of the second head portrait etc..In one embodiment, the second head portrait comparison information can be group The second gray value vectors, the second color value vector or the second brightness value vector of second head portrait of interior each other users.
It will be appreciated that step 101 and step 102 can exchange in the embodiment of the present disclosure, or perform simultaneously, the disclosure Embodiment is not construed as limiting.
Step 103, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
In the present embodiment, the first head portrait comparison information is the first gray value vectors or the first color value vector;Second As comparison information is the second gray value vectors or the second color value vector.Now, the first head portrait comparison information with each the Two head portrait comparison informations can determine a similar value, so, when having at least one other user in group, it may be determined that extremely A few similar value.
Certainly, the first head portrait comparison information is the first gray value vectors and the first color value vector, and the second head portrait compares letter Cease for the second gray value vectors and the second color value vector, it is determined that needing first to judge the first head portrait comparison information before similar value Whether belong to same type of vector with the second head portrait comparison information, for example, the first head portrait comparison information be the first gray value to Amount, then it is the second gray value vectors to need the second head portrait comparison information, otherwise can not carry out similar value calculating.It will be appreciated that Similar value is used to characterize the similarity degree between the first head portrait comparison information and the second head portrait comparison information in the disclosure.
Step 104, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Predetermined threshold value can determine two head portrait phases for characterizing other users in active user and group in the present embodiment Like or identical similar value.Such as when similar value is more than or equal to predetermined threshold value, other use in active user and group Family can determine that two head portraits are identical when visual, when less than predetermined threshold value, when other users are visual in active user and group Two head portrait differences can be determined.Therefore, predetermined threshold value can be configured according to concrete scene in the present embodiment, and the disclosure is real Example is applied to be not construed as limiting.
It can be seen that the embodiment of the present disclosure is it can be found that head portrait similar to the head portrait of active user first within group, convenient to use Family finds same or similar head portrait, occurs the situation that can not determine which user's speech when avoiding the occurrence of group chat, so as to carry Rise experience during user's group chat.
Fig. 2 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to another exemplary embodiment.Ginseng See Fig. 2, the method for the similar head portrait of the determination, including:
Step 201, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 201 is consistent with principle with the specific method of step 101, and the correlation that refer to Fig. 1 and step 101 is described in detail Content, here is omitted.
Step 202, first head portrait progress gray processing is obtained into the first gray level image of first head portrait.
The first head portrait progress gray processing is obtained into the first gray level image of first head portrait in the present embodiment.Such as by One head portrait carries out gray processing, and each pixel in the first head portrait can be become to 0-255 gray value, so available first head portrait The first gray level image.
In the embodiment of the disclosure one, it is assumed that the first head portrait includes 9 pixels, and carrying out gray processing to first head portrait obtains the One gray level image is:
Step 203, it is the of the active user into first gray value vectors by first greyscale image transitions One head portrait comparison information.
In the present embodiment, by the first greyscale image transitions into the first gray value vectors, such as by the every of the first gray level image Row pixel is inserted in gray value vectors successively, and the length of the gray value vectors is the product of the length and width of the first gray level image.
Gone on to say with the example in step 202, be into the first gray scale vector by the first greyscale image transitions in the disclosure:
A=[1,231,132;4,22,100;255,200,189].
Step 202 and step 203 can be merged in the embodiment of the present disclosure, omit the process for obtaining the first gray level image, Will first head portrait carry out the first gray level image that gray processing directly obtains the first head portrait.Calculating step can so be simplified Suddenly, computational efficiency is improved.
Step 204, for each second head portrait:Second head portrait progress gray processing is obtained into the second ash of second head portrait Spend image.
In the embodiment of the disclosure one, it is assumed that each second head portrait includes 9 pixels, and ash is carried out to one of them second head portrait Degreeization obtains the second gray level image:
Step 205, it is the second head portrait ratio of the user into second gray value vectors by second greyscale image transitions Compared with information.
Gone on to say with the example in step 204, be into the second gray scale vector by the second greyscale image transitions in the disclosure:
B=[5,204,125;41,88,90;208,155,178].
Step 204 and step 205 can be merged in the embodiment of the present disclosure, omit the process for obtaining the second gray level image, Will second head portrait carry out the second gray level image that gray processing directly obtains the second head portrait.Calculating step can so be simplified Suddenly, computational efficiency is improved.
It is suitable with step 204 and 205 combination it will be appreciated that step 202 and 203 combination in the embodiment of the present disclosure Sequence can exchange, or perform the embodiment of the present disclosure simultaneously and be not construed as limiting.
Step 206, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
In one embodiment, for each user in other users in group, determine that the first head portrait comparison information is every with this The cosine value of second head portrait comparison information of the second head portrait of individual user.Each user couple is determined based on cosine value in the present embodiment The similar value between the second head portrait and the first head portrait of active user is answered, so as to obtain at least one similar value.
For example, an optional other users out of group, then calculate the first head portrait comparison information corresponding to active user With the cosine value of the second head portrait comparison information of the other users.With the first head portrait of example in step 101 neutralization procedure 102 Exemplified by comparison information A and the second head portrait comparison information B, both cosine value cos < A, B > are:
It will be appreciated that with cosine value cos < A, B > increase, the first head portrait comparison information and the second head portrait compare Information is closer, i.e. the first head portrait of active user and the second head portrait of the other users is more similar.
Step 207, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The second head portrait that the similar value of predetermined threshold value corresponds to user is defined as the head portrait similar to the first head portrait of the active user.
In practical application, if the similar value of two head portraits exceedes certain threshold value, user can be made to feel that two heads seem phase With, i.e., head portrait is easily confused.In the embodiment of the disclosure one by the way of predetermined threshold value, it seems no phase to determine two heads Seemingly.Correspondingly, when the similar value more than or equal to predetermined threshold value at least one similar value be present, above or equal to default threshold The second head portrait that the similar value of value corresponds to user is defined as the head portrait similar to active user's head portrait.In practical application, threshold is preset Value can be configured according to concrete scene, such as when number is more, and the predetermined threshold value can be set smaller such as 0.8, Prevent multiple similar head portraits.Or it is fewer in number in group, then the predetermined threshold value can be set larger, and such as 0.9, this Even if sample head portrait similar value is less than 0.9, user can also tell in time.Those skilled in the art can be adjusted, The present embodiment is not construed as limiting.
It can be seen that the embodiment of the present disclosure utilizes ash by the way that the first head portrait and the second head portrait are converted into gray value vectors respectively Angle value vector calculates the similarity of the first head portrait and the second head portrait, and can not only reduce amount of calculation can also improve computational accuracy, And it can be found that head portrait similar to the head portrait of active user first within group, facilitates user to find same or similar head Picture, occurs the situation that can not determine which user's speech when avoiding the occurrence of group chat, so as to lift experience during user's group chat.
Fig. 3 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to further example embodiment.Ginseng See Fig. 3, the method for the similar head portrait of the determination includes:
Step 301, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 301 is consistent with principle with the specific method of step 201, and the correlation that refer to Fig. 2 and step 201 is described in detail Content, here is omitted.
Step 302, the same color in each pixel is extracted from first head portrait, obtains the first face of first head portrait Color image;
Under normal circumstances, the first head portrait is coloured image, and each pixel includes tri- kinds of red R, green G and blue B colors, Same color in each pixel, such as red R, green G or blue B can be provided in the present embodiment from the first head portrait, this Sample can obtain the first color image of the same color of a frame.So, the first head portrait can be characterized in the first color image of guarantee While, follow-up amount of calculation is reduced, lifts computational efficiency.
The quantized values of each color can utilize the acquisition methods in correlation technique to realize in the present embodiment, not make herein in detail Describe in detail bright.
Step 303, first color image is converted into the of the i.e. described active user of first color value vector One head portrait comparison information.
First color image is converted into the first head portrait ratio of the i.e. described active user of the first color value vector Compared with information.It will be appreciated that each pixel all carried out quantization in the first color image, the first color value vector is converted into Process may be referred to step 203, will not be repeated here.
Step 302 and step 303 can be merged in the embodiment of the present disclosure, omit the process for obtaining the first color image, The first color image of the first head portrait is directly obtained according to the data of the same color of the first head portrait.Calculating can so be simplified Step, improve computational efficiency.
Step 304, for each second head portrait:The same color in each pixel is extracted from second head portrait, obtains institute State the second color image of the second head portrait;The color extracted in second head portrait is identical with the color extracted in the first head portrait.
In the embodiment of the disclosure one, for each second head portrait, its second color image is obtained according to second head portrait Process may be referred to step 204, will not be repeated here.
Step 305, second color image is converted into the second color value vector i.e. the second of the other users Head portrait comparison information.
In the embodiment of the disclosure one, the second color value vector is converted into according to the second color image in the present embodiment Process may be referred to step 205, will not be repeated here.
Step 304 and step 305 can be merged in the embodiment of the present disclosure, omit the process for obtaining the second color image, The second color image of the second head portrait is directly obtained according to the data of the same color of the second head portrait.Calculating can so be simplified Step, improve computational efficiency.
It is suitable with step 304 and 305 combination it will be appreciated that step 302 and 303 combination in the embodiment of the present disclosure Sequence can exchange, or perform the embodiment of the present disclosure simultaneously and be not construed as limiting.
Step 306, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
Step 306 is consistent with principle with the specific method of step 206, and the correlation that refer to Fig. 2 and step 206 is described in detail Content, here is omitted.
Step 307, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Step 307 is consistent with principle with the specific method of step 207, and the correlation that refer to Fig. 2 and step 207 is described in detail Content, here is omitted.
It can be seen that the embodiment of the present disclosure utilizes face by the way that the first head portrait and the second head portrait are converted into color value vector respectively Colour vector calculates the similarity of the first head portrait and the second head portrait, it is possible to reduce amount of calculation can also improve computational accuracy, can It is quick to find head portrait similar to the head portrait of active user first within group, lift experience during user's group chat.
Fig. 4 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment, and Fig. 5 is The application scenarios schematic diagram of method shown in Fig. 4.Referring to Fig. 4, the method for the similar head portrait of the determination includes:
Step 401, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 401 is consistent with principle with the specific method of step 101, and the correlation that refer to Fig. 1 and step 101 is described in detail Content, here is omitted.
Step 402, the second head portrait generation pair of at least one other user according to where the active user in group Answer the second head portrait comparison information of the second head portrait of at least one other user.
Step 402 is consistent with principle with the specific method of step 102, and the correlation that refer to Fig. 1 and step 102 is described in detail Content, here is omitted.
Step 403, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
Step 403 is consistent with principle with the specific method of step 103, and the correlation that refer to Fig. 1 and step 103 is described in detail Content, here is omitted.
Step 404, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Step 404 is consistent with principle with the specific method of step 104, and the correlation that refer to Fig. 1 and step 104 is described in detail Content, here is omitted.
Step 405, prompting message is generated.The head with the active user in the group be present in prompting message prompting As similar user.
It by generating prompting message in the embodiment of the disclosure one, can understand other users in active user or group Have that head portrait is similar or identical user in group.In an application scenarios of the disclosure, as shown in figure 5, will add When entering during group or group chat similar head portrait occur, determine there is similar head portrait using using step 401~step 404 Afterwards, prompting message is generated in message box 501, such as " it was found that the user of similar or identical head portrait, it is noted that identification is timely Change head portrait ", by the prompting message, active user or other users can be made to be paid close attention in group chat similar Head portrait can distinguish active user or other users, and reduction occurs which other users and active user in group do not know The probability of user's speech, so as to lift group chat experience.
Fig. 6 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment.Referring to Fig. 6, the method for the similar head portrait of the determination include:
Step 601, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 601 is consistent with principle with the specific method of step 101, and the correlation that refer to Fig. 1 and step 101 is described in detail Content, here is omitted.
Step 602, the second head portrait generation pair of at least one other user according to where the active user in group Answer the second head portrait comparison information of the second head portrait of at least one other user.
Step 602 is consistent with principle with the specific method of step 102, and the correlation that refer to Fig. 1 and step 102 is described in detail Content, here is omitted.
Step 603, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
Step 603 is consistent with principle with the specific method of step 103, and the correlation that refer to Fig. 1 and step 103 is described in detail Content, here is omitted.
Step 604, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Step 604 is consistent with principle with the specific method of step 104, and the correlation that refer to Fig. 1 and step 104 is described in detail Content, here is omitted.
Step 605, in response to the first instruction of active user, show and specify an at least frame head picture in picture library;Wherein specify Picture library includes default picture library or history picture library;Default picture library includes the previously selected head portrait of multiframe, and history picture library includes working as Preceding user once used head portrait.
Step 606, in response to the second instruction of active user on the interactive interface for specifying picture library, by the head of active user The head portrait as corresponding to being replaced by the second instruction.
In an application scenarios of the disclosure, as shown in Fig. 7 (a)~Fig. 7 (e) (totally 5 width figure), added in active user To after group XX-Team, if the active user is needed to check within group XX-Team with the presence or absence of head portrait is identical or phase As other users, then " increase " button 701 shown in Fig. 7 (a) obtain the interface shown in Fig. 7 (b) after being triggered, now " increase " button 701 is changed into the Close button, and " head portrait phase occurs in the bottom of the Close button 701 (lower section in Fig. 7 (b)) Like determination " button 702.After " the similar determination of head portrait " button 702 is triggered, each step of method shown in Fig. 1 is performed, and true During fixed similar to active user's head portrait head portrait similar to active user, display bullet frame 703, the bullet frame 703 includes text (for example, it was discovered that the user of similar or identical head portrait, if change head portrait) and button are (for example, button "Yes" and/or button "No").Then further according to the trigger action of active user, it is determined whether the head portrait of active user is changed, including:
When button "No" is triggered, not more like head portrait.Or it is triggered (equivalent to the first instruction) in button "Yes" When, in response to the trigger action, show and specify an at least frame head picture, Fig. 7 (e) in picture library to show multiple image.Used currently A family selection triggering wherein frame head as when, such as the head portrait 705 among Fig. 7 (e), there is button in the interactive interface for specifying image "Yes" and/or button "No", finally, after active user selects trigger button "Yes", the head portrait of active user is replaced by selected The head portrait 705 selected.After if active user selects trigger button "No", active user can reselect head portrait, until determining Untill head portrait, after active user selects trigger button "Yes", the head portrait of active user is replaced by selected head portrait 705.
In the present embodiment, active user can actively change head portrait, and so as to avoid the occurrence of, head portrait is similar or identical feelings Condition, lifting user group chat experience.In practical application, because the hobby of each user is different, therefore active user's active is guided more Head portrait is changed, the sense of participation of active user can be lifted, lifts the experience of group chat.
Fig. 8 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment.Referring to Fig. 8, the method for the similar head portrait of the determination include:
Step 801, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 801 is consistent with principle with the specific method of step 101, and the correlation that refer to Fig. 1 and step 101 is described in detail Content, here is omitted.
Step 802, the second head portrait generation pair of at least one other user according to where the active user in group Answer the second head portrait comparison information of the second head portrait of at least one other user.
Step 802 is consistent with principle with the specific method of step 102, and the correlation that refer to Fig. 1 and step 102 is described in detail Content, here is omitted.
Step 803, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
Step 803 is consistent with principle with the specific method of step 103, and the correlation that refer to Fig. 1 and step 103 is described in detail Content, here is omitted.
Step 804, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Step 804 is consistent with principle with the specific method of step 104, and the correlation that refer to Fig. 1 and step 104 is described in detail Content, here is omitted.
Step 805, the head portrait of active user is replaced by specified image.
It is to specify the frame head picture in picture library that image is specified in the embodiment of the disclosure one, in the disclosure.Wherein specify picture library Including default picture library or history picture library;Default picture library includes the previously selected head portrait of multiframe, and history picture library includes current use Family once used head portrait.
It can be seen that in the present embodiment after it is determined that similar head portrait be present, specified during the head portrait of active user is changed automatically A frame head picture in picture library, head portrait is changed manually without active user, save user time, lifting user group chat experience.
Fig. 9 is a kind of schematic flow sheet of the method for the similar head portrait of determination according to an exemplary embodiment.Referring to Fig. 9, the method for the similar head portrait of the determination include:
Step 901, the first head portrait comparison information of the active user is generated according to the first head portrait of active user.
Step 901 is consistent with principle with the specific method of step 101, and the correlation that refer to Fig. 1 and step 101 is described in detail Content, here is omitted.
Step 902, the second head portrait generation pair of at least one other user according to where the active user in group Answer the second head portrait comparison information of the second head portrait of at least one other user.
Step 902 is consistent with principle with the specific method of step 102, and the correlation that refer to Fig. 1 and step 102 is described in detail Content, here is omitted.
Step 903, based on the first head portrait comparison information and the second head portrait comparison information, the current use is determined Similar value in first head portrait at family and the group between the second head portrait of at least one other user.
Step 903 is consistent with principle with the specific method of step 103, and the correlation that refer to Fig. 1 and step 103 is described in detail Content, here is omitted.
Step 904, if the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to described The similar value of predetermined threshold value correspond to the other users the second head portrait be defined as it is similar to the first head portrait of the active user Head portrait.
Step 904 is consistent with principle with the specific method of step 104, and the correlation that refer to Fig. 1 and step 104 is described in detail Content, here is omitted.
Step 905, first head portrait is replaced by corresponding head portrait when adding group.
In the present embodiment, by changing head portrait automatically, active user can be replaced by and add corresponding head portrait when in group, Lift group chat experience.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device for determining similar head portrait, it is as shown in Figure 10, described Device includes:
First generation module 1001, for generating the first head portrait of the active user according to the first head portrait of active user Comparison information;
Second generation module 1002, for the according at least one other user in group where the active user Second head portrait comparison information of the second head portrait of the corresponding at least one other user of two head portraits generation;
Similar value determining module 1003, for based on the first head portrait comparison information compared with second head portrait letter Breath, is determined similar between the first head portrait of the active user and the second head portrait of at least one other user in the group Value;
Similar head portrait determining module 1004, for the similar value more than or equal to predetermined threshold value in the similar value be present When, above or equal to the predetermined threshold value similar value correspond to the other users the second head portrait be defined as with it is described current The similar head portrait of the first head portrait of user.
Alternatively, first generation module 1001 includes:
First gray shade unit, for being the active user by first head portrait progress gray value vectors of gray processing first The first head portrait comparison information;
Or;
First color cell, first head portrait is obtained for extracting the same color in each pixel from first head portrait The first color value vector be the active user the first head portrait comparison information.
Alternatively, second generation module 1002 includes:
Second gray shade unit, for for each second head portrait, by second head portrait carry out the gray value of gray processing second to Amount is the second head portrait comparison information of the user;
Or
Second color cell, for for each second head portrait, the same face in each pixel to be extracted from second head portrait Color, obtain the second color value vector i.e. the second head portrait comparison information of the other users of second head portrait;Described second The color extracted as in is identical with the color extracted in the first head portrait.
In the embodiment of the disclosure one, as shown in figure 11, the similar value determining module includes:
Cosine value determining unit 1101, for for each user in other users in the group, determining described The cosine value of second head portrait comparison information of the second head portrait of one head portrait comparison information and each user;The first head portrait ratio It is the first gray value vectors or the first color value vector compared with information;The second head portrait comparison information is the second gray value vectors Or second color value vector;
Similar value determining unit 1102, for determining the second head portrait and institute corresponding to each user based on the cosine value State the similar value between the first head portrait of active user.
In the embodiment of the disclosure one, as shown in figure 12, described device includes the first generation module 1201, the second generation module 1202, similar value determining module 1203 and similar head portrait determining module 1204, each module corresponds respectively to Figure 10 in the present embodiment In the first generation module 1001, the second generation module 1002, similar value determining module 1003 and similar head portrait determining module 1004, it will not be repeated here.In addition, described device also includes:
3rd generation module 1205, for determining to exist the with the active user in the similar head portrait determining module Prompting message is generated during the similar head portrait of one head portrait;The prompting message be used to prompt existing in the group with it is described current The similar user of the first head portrait of user.
In the embodiment of the disclosure one, as shown in figure 13, described device also includes:
First respond module 1301, for the first instruction in response to the active user, show and specify in picture library at least One frame head picture;The specified picture library includes default picture library or history picture library;It is previously selected that the default picture library includes multiframe Head portrait, the history picture library include active user's once used head portrait;
Second respond module 1302, on the interactive interface of the specified picture library in response to the of the active user Two instructions, the first head portrait of the active user is replaced by head portrait corresponding to second instruction.
In the embodiment of the disclosure one, as shown in figure 14, described device includes the first generation module 1401, the second generation module 1402, similar value determining module 1403 and similar head portrait determining module 1404, each module corresponds respectively to Figure 10 in the present embodiment In the first generation module 1001, the second generation module 1002, similar value determining module 1003 and similar head portrait determining module 1004, it will not be repeated here.Described device also includes:First head portrait changes module 1405, for being determined in the similar head portrait Module changes the first head portrait of the active user when determining to exist the head portrait similar to the first head portrait of the active user To specify image;The specified image is to specify the frame head picture in picture library;The specified picture library includes default picture library or history Picture library;The default picture library includes the previously selected head portrait of multiframe, and it is once used that the history picture library includes active user Head portrait.
In the embodiment of the disclosure one, as shown in figure 15, described device also includes:Second head portrait changes module 1501, is used for After it is determined that chat terminates in the group, first head portrait is replaced by corresponding head portrait when adding group.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating Machine program, some computer instructions is stored with the computer-readable recording medium, the computer instruction enters when being performed The following processing of row:
The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
The second head portrait generation corresponding at least one of at least one other user according to where the active user in group Second head portrait comparison information of the second head portrait of individual other users;
Based on the first head portrait comparison information and the second head portrait comparison information, the first of the active user is determined Similar value in head portrait and the group between the second head portrait of at least one other user;
If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the predetermined threshold value Similar value correspond to the second head portrait of the other users and be defined as the head portrait similar to the first head portrait of the active user.
Figure 16 is the block diagram of a kind of electronic equipment according to an exemplary embodiment.For example, electronic equipment 1600 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, it is good for Body equipment, personal digital assistant etc..
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is used for:
The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
The second head portrait generation corresponding at least one of at least one other user according to where the active user in group Second head portrait comparison information of the second head portrait of individual other users;
Based on the first head portrait comparison information and the second head portrait comparison information, the first of the active user is determined Similar value in head portrait and the group between the second head portrait of at least one other user;
If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the predetermined threshold value Similar value correspond to the second head portrait of the other users and be defined as the head portrait similar to the first head portrait of the active user.
Reference picture 16, electronic equipment 1600 can include following one or more assemblies:Processing component 1602, memory 1604, power supply module 1606, multimedia groupware 1608, audio-frequency assembly 1610, the interface 1612 of input/output (I/O), sensor Component 1614, and communication component 1616.
The integrated operation of the usual control device 1600 of processing component 1602, such as communicated with display, call, data, The operation that camera operation and record operation are associated.Processing component 1602 can include one or more processors 1620 to perform Instruction.In addition, processing component 1602 can include one or more modules, it is easy between processing component 1602 and other assemblies Interaction.For example, processing component 1602 can include multi-media module, with facilitate multimedia groupware 1608 and processing component 1602 it Between interaction.
Memory 1604 is configured as storing various types of data to support the operation in device 1600.These data Example includes being used for the instruction of any application program or method operated on device 1600, contact data, telephone book data, Message, picture, video etc..Memory 1604 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1606 provides electric power for the various assemblies of device 1600.Power supply module 1606 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1600.
Multimedia groupware 1608 is included in the screen of one output interface of offer between described device 1600 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more Media component 1608 includes a front camera and/or rear camera.When device 1600 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1610 is configured as output and/or input audio signal.For example, audio-frequency assembly 1610 includes a wheat Gram wind (MIC), when device 1600 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 1604 or via communication Component 1616 is sent.In certain embodiments, audio-frequency assembly 1610 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1612 provide interface between processing component 1602 and peripheral interface module, and peripheral interface module can be with It is keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and locking Button.
Sensor cluster 1614 includes one or more sensors, and the state for providing various aspects for device 1600 is commented Estimate.For example, sensor cluster 1614 can detect opening/closed mode of device 1600, the relative positioning of component, such as institute The display and keypad that component is device 1600 are stated, sensor cluster 1614 can be with detection means 1600 or device 1,600 1 The position of individual component changes, the existence or non-existence that user contacts with device 1600, the orientation of device 1600 or acceleration/deceleration and dress Put 1600 temperature change.Sensor cluster 1614 can include proximity transducer, be configured in no any physics The presence of object nearby is detected during contact.Sensor cluster 1614 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1614 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1616 is configured to facilitate the communication of wired or wireless way between device 1600 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1600.It is exemplary at one In embodiment, communication component 1616 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1616 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1600 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1604 of instruction, instruct and can be performed by the processor 1620 of device 1600 in the disclosure.Non- face for example, described When property computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light data Storage device etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (18)

  1. A kind of 1. method for determining similar head portrait, it is characterised in that methods described includes:
    The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
    According to the generation of the second head portrait of at least one other user in group where the active user it is corresponding it is at least one its Second head portrait comparison information of the second head portrait of his user;
    Based on the first head portrait comparison information and the second head portrait comparison information, the first head portrait of the active user is determined Similar value between the second head portrait of at least one other user in the group;
    If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the phase of the predetermined threshold value The second head portrait that the other users are corresponded to like value is defined as the head portrait similar to the first head portrait of the active user.
  2. 2. according to the method for claim 1, it is characterised in that according to the first head portrait of active user generation current use The first head portrait comparison information at family, including:
    First head portrait progress gray processing is obtained to the i.e. described active user's of the first gray value vectors of first head portrait First head portrait comparison information;
    Or
    The same color extracted from first head portrait in each pixel obtains the first color value vector i.e. institute of first head portrait State the first head portrait comparison information of active user.
  3. 3. according to the method for claim 1, it is characterised in that at least one in group according to where the active user Second head portrait comparison information of the second head portrait of the corresponding at least one other user of the second head portrait generation of other users, including:
    For each second head portrait, second head portrait progress gray processing is obtained into the second gray value vectors of second head portrait The second head portrait comparison information of i.e. described user;
    Or
    For each second head portrait, the same color in each pixel is extracted from second head portrait, obtains second head portrait Second color value vector is the second head portrait comparison information of the other users;The color and first extracted in second head portrait The color extracted in head portrait is identical.
  4. 4. according to the method in claim 2 or 3, it is characterised in that based on the first head portrait comparison information and described the Two head portrait comparison informations, determine second of the first head portrait of the active user and at least one other user in the group Similar value as between, including:
    For each user at least one other user in the group, the first head portrait comparison information and described is determined The cosine value of second head portrait comparison information of the second head portrait of each user;The first head portrait comparison information is the first gray value Vector or the first color value vector;The second head portrait comparison information be the second gray value vectors or the second color value to Amount;
    Determined based on the cosine value corresponding to each user between the second head portrait and the first head portrait of the active user Similar value.
  5. 5. according to the method for claim 1, it is characterised in that the similar value above or equal to the predetermined threshold value Second head portrait of the corresponding other users is defined as after the head portrait similar to the first head portrait of the active user, the side Method also includes:
    Generate prompting message;The prompting message is used to prompt the first head portrait for having with the active user in the group Similar user.
  6. 6. according to the method for claim 1, it is characterised in that the similar value above or equal to the predetermined threshold value Second head portrait of the corresponding other users is defined as after the head portrait similar to the first head portrait of the active user, the side Method also includes:
    In response to the first instruction of the active user, show and specify an at least frame head picture in picture library;The specified picture library includes Default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, and the history picture library includes working as Preceding user once used head portrait;
    In response to the second instruction of the active user on the interactive interface of the specified picture library, by the of the active user One head portrait is replaced by head portrait corresponding to second instruction.
  7. 7. according to the method for claim 1, it is characterised in that the similar value above or equal to the predetermined threshold value Second head portrait of the corresponding other users is defined as after the head portrait similar to the first head portrait of the active user, the side Method also includes:
    The first head portrait of the active user is replaced by specified image;The specified image is to specify the frame head in picture library Picture;The specified picture library includes default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, institute Stating history picture library includes active user's once used head portrait.
  8. 8. according to the method for claim 1, it is characterised in that methods described also includes:
    After determining that chat terminates in the group, first head portrait is replaced by corresponding head portrait when adding group.
  9. 9. a kind of device for determining similar head portrait, it is characterised in that described device includes:
    First generation module, the first head portrait for generating the active user according to the first head portrait of active user compare letter Breath;
    Second generation module, the second head portrait at least one other user according to where the active user in group are given birth to Into the second head portrait comparison information of the second head portrait of corresponding at least one other user;
    Similar value determining module, for based on the first head portrait comparison information and the second head portrait comparison information, determining institute State the similar value between the second head portrait of at least one other user in the first head portrait and the group of active user;
    Similar head portrait determining module, will be big during for the similar value more than or equal to predetermined threshold value in the similar value be present Correspond to the second head portrait of the other users and be defined as with the active user's in or equal to the similar value of the predetermined threshold value The similar head portrait of first head portrait.
  10. 10. device according to claim 9, it is characterised in that first generation module includes:
    First gray shade unit, for being the of the active user by first head portrait progress gray value vectors of gray processing first One head portrait comparison information;
    Or;
    First color cell, the same color for being extracted from first head portrait in each pixel obtain the of first head portrait One color value vector is the first head portrait comparison information of the active user.
  11. 11. device according to claim 9, it is characterised in that second generation module includes:
    Second gray shade unit, for for each second head portrait, second head portrait to be carried out into the gray value vectors of gray processing second The second head portrait comparison information of i.e. described user;
    Or
    Second color cell, for for each second head portrait, extracting the same color in each pixel from second head portrait, obtaining The second color value vector to second head portrait is the second head portrait comparison information of the other users;In second head portrait The color of extraction is identical with the color extracted in the first head portrait.
  12. 12. device according to claim 9, it is characterised in that the similar value determining module includes:
    Cosine value determining unit, for for each user in other users in the group, determining the first head portrait ratio Compared with the cosine value of information and the second head portrait comparison information of the second head portrait of each user;The first head portrait comparison information For the first gray value vectors or the first color value vector;The second head portrait comparison information is the second gray value vectors or the Second colors value vector;
    Similar value determining unit, for based on the cosine value determine the second head portrait corresponding to each user with it is described current Similar value between the first head portrait of user.
  13. 13. device according to claim 9, it is characterised in that described device also includes:
    3rd generation module, for the first head portrait phase for determining to have with the active user in the similar head portrait determining module As head portrait when generate prompting message;The prompting message is used to prompt to exist in the group the with the active user The similar user of one head portrait.
  14. 14. device according to claim 9, it is characterised in that described device also includes:
    First respond module, for the first instruction in response to the active user, show and specify an at least frame head picture in picture library; The specified picture library includes default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, described History picture library includes active user's once used head portrait;
    Second respond module, for being instructed on the interactive interface of the specified picture library in response to the second of the active user, The first head portrait of the active user is replaced by head portrait corresponding to second instruction.
  15. 15. device according to claim 9, it is characterised in that described device also includes:First head portrait changes module, uses Described it will work as in when the similar head portrait determining module determines to exist the head portrait similar to the first head portrait of the active user The first head portrait of preceding user is replaced by specified image;The specified image is to specify the frame head picture in picture library;The specified figure Storehouse includes default picture library or history picture library;The default picture library includes the previously selected head portrait of multiframe, in the history picture library Including active user's once used head portrait.
  16. 16. device according to claim 9, it is characterised in that described device also includes:Second head portrait changes module, uses In after it is determined that chat terminates in the group, first head portrait is replaced by corresponding head portrait when adding group.
  17. 17. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
    Display screen;
    Processor;
    For storing the memory of the processor-executable instruction;
    Wherein, the processor is configured as:
    The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
    According to the generation of the second head portrait of at least one other user in group where the active user it is corresponding it is at least one its Second head portrait comparison information of the second head portrait of his user;
    Based on the first head portrait comparison information and the second head portrait comparison information, the first head portrait of the active user is determined Similar value between the second head portrait of at least one other user in the group;
    If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the phase of the predetermined threshold value The second head portrait that the other users are corresponded to like value is defined as the head portrait similar to the first head portrait of the active user.
  18. 18. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that described computer-readable Some computer instructions are stored with storage medium, the computer instruction is handled as follows when being performed:
    The first head portrait comparison information of the active user is generated according to the first head portrait of active user;
    According to the generation of the second head portrait of at least one other user in group where the active user it is corresponding it is at least one its Second head portrait comparison information of the second head portrait of his user;
    Based on the first head portrait comparison information and the second head portrait comparison information, the first head portrait of the active user is determined Similar value between the second head portrait of at least one other user in the group;
    If the similar value more than or equal to predetermined threshold value in the similar value be present, above or equal to the phase of the predetermined threshold value The second head portrait that the other users are corresponded to like value is defined as the head portrait similar to the first head portrait of the active user.
CN201710769259.6A 2017-08-31 2017-08-31 Method and device for determining similar head portrait and electronic equipment Active CN107527072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710769259.6A CN107527072B (en) 2017-08-31 2017-08-31 Method and device for determining similar head portrait and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710769259.6A CN107527072B (en) 2017-08-31 2017-08-31 Method and device for determining similar head portrait and electronic equipment

Publications (2)

Publication Number Publication Date
CN107527072A true CN107527072A (en) 2017-12-29
CN107527072B CN107527072B (en) 2020-07-03

Family

ID=60683113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710769259.6A Active CN107527072B (en) 2017-08-31 2017-08-31 Method and device for determining similar head portrait and electronic equipment

Country Status (1)

Country Link
CN (1) CN107527072B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005193A (en) * 2018-09-03 2018-12-14 湖北文理学院 Alarming method for power, device and electric terminal
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
WO2019242543A1 (en) * 2018-06-21 2019-12-26 钉钉控股(开曼)有限公司 Method and apparatus for generating group avatar

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355534A (en) * 2011-11-01 2012-02-15 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and contact information recommendation method
CN102378005A (en) * 2010-08-10 2012-03-14 索尼公司 Moving image processing apparatus, moving image processing method, and program
CN103020198A (en) * 2012-11-30 2013-04-03 杭州易尊数字科技有限公司 Method for searching target in video
CN104519401A (en) * 2013-09-30 2015-04-15 华为技术有限公司 Video division point acquiring method and equipment
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN105100193A (en) * 2015-05-26 2015-11-25 小米科技有限责任公司 Cloud business card recommendation method and device
US20160148362A1 (en) * 2014-11-26 2016-05-26 Adobe Systems Incorporated Content aware fill based on similar images
CN106960211A (en) * 2016-01-11 2017-07-18 北京陌上花科技有限公司 Key frame acquisition methods and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378005A (en) * 2010-08-10 2012-03-14 索尼公司 Moving image processing apparatus, moving image processing method, and program
CN102355534A (en) * 2011-11-01 2012-02-15 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and contact information recommendation method
CN103020198A (en) * 2012-11-30 2013-04-03 杭州易尊数字科技有限公司 Method for searching target in video
CN104519401A (en) * 2013-09-30 2015-04-15 华为技术有限公司 Video division point acquiring method and equipment
US20160148362A1 (en) * 2014-11-26 2016-05-26 Adobe Systems Incorporated Content aware fill based on similar images
CN104951500A (en) * 2015-04-24 2015-09-30 小米科技有限责任公司 Head portrait display method, head portrait display device and terminal
CN105100193A (en) * 2015-05-26 2015-11-25 小米科技有限责任公司 Cloud business card recommendation method and device
CN106960211A (en) * 2016-01-11 2017-07-18 北京陌上花科技有限公司 Key frame acquisition methods and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHIHHSIEN KUNG ET AL.: "Investiqation of the Image Quality Assessment using Neural Networks and Structure Similarty", 《PROCEEDINGS OF THE INTERNATIONAL SYMPOSIUM ON COMPUTER SCIENCE》 *
张升: "SNS在线身份信息对用户信任评定的影响", 《中国优秀硕士学问论文全文数据库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019242543A1 (en) * 2018-06-21 2019-12-26 钉钉控股(开曼)有限公司 Method and apparatus for generating group avatar
CN110634168A (en) * 2018-06-21 2019-12-31 钉钉控股(开曼)有限公司 Method and device for generating group head portrait
CN110634168B (en) * 2018-06-21 2023-09-12 钉钉控股(开曼)有限公司 Method and device for generating cluster head portraits
CN109005193A (en) * 2018-09-03 2018-12-14 湖北文理学院 Alarming method for power, device and electric terminal
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
CN109388456B (en) * 2018-09-20 2021-12-07 维沃移动通信有限公司 Head portrait selection method and mobile terminal

Also Published As

Publication number Publication date
CN107527072B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2020093837A1 (en) Method for detecting key points in human skeleton, apparatus, electronic device, and storage medium
CN104517268B (en) Adjust the method and device of brightness of image
EP3506628A1 (en) Terminal and server for providing video call service
CN105095881B (en) Face recognition method, face recognition device and terminal
US20160027191A1 (en) Method and device for adjusting skin color
CN105760884B (en) The recognition methods of picture type and device
US20170032725A1 (en) Method, device, and computer-readable medium for setting color gamut mode
CN105513067B (en) A kind of Approach for detecting image sharpness and device
CN108986019A (en) Method for regulating skin color and device, electronic equipment, machine readable storage medium
CN107992182A (en) The method and apparatus of display interface image
WO2022077970A1 (en) Method and apparatus for adding special effects
CN104867112B (en) Photo processing method and device
CN107025441B (en) Skin color detection method and device
CN105183755B (en) A kind of display methods and device of picture
CN105957037A (en) Image enhancing method and image enhancing device
CN107426489A (en) Processing method, device and terminal during shooting image
CN105528765A (en) Method and device for processing image
CN112188091B (en) Face information identification method and device, electronic equipment and storage medium
CN107527072A (en) Determine method and device, the electronic equipment of similar head portrait
CN111984347A (en) Interaction processing method, device, equipment and storage medium
CN113920465A (en) Method and device for identifying film trailer, electronic equipment and storage medium
CN106210446B (en) Saturation degree Enhancement Method and device
CN109145878B (en) Image extraction method and device
US10846513B2 (en) Method, device and storage medium for processing picture
CN107507128A (en) Image processing method and equipment

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