WO2019153504A1 - Group creation method and terminal thereof - Google Patents

Group creation method and terminal thereof Download PDF

Info

Publication number
WO2019153504A1
WO2019153504A1 PCT/CN2018/083287 CN2018083287W WO2019153504A1 WO 2019153504 A1 WO2019153504 A1 WO 2019153504A1 CN 2018083287 W CN2018083287 W CN 2018083287W WO 2019153504 A1 WO2019153504 A1 WO 2019153504A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
user
group
social account
account
Prior art date
Application number
PCT/CN2018/083287
Other languages
French (fr)
Chinese (zh)
Inventor
陈颖聪
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019153504A1 publication Critical patent/WO2019153504A1/en

Links

Images

Classifications

    • 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
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Definitions

  • the present application belongs to the field of information recognition technologies, and in particular, to a method for group creation and a terminal thereof.
  • the existing group creation method requires the user to manually pull the social account in the group, or manually search for the group name through each social account, and find the group to apply for joining.
  • the steps are complicated, resulting in the operation of creating the group. Less efficient. Especially in gatherings or parties, etc., the total number of accounts of Jianqun is large, which further increases the difficulty of operation, and often the situation of account missing is added.
  • the embodiment of the present application provides a group creation method and a terminal thereof, so as to solve the existing group creation method, the steps are complicated, and the operation efficiency of creating a group is low.
  • a method for group creation provided by the application includes:
  • the matching degree calculation model is specifically:
  • the S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
  • the user does not need to manually select the target account, and only the uploaded image is uploaded, the social account implicit in the photo image can be automatically determined, and the group is created according to the identified target account, thereby reducing the operation steps of the user and improving The efficiency of the group.
  • the social account implicit in the photo image can be automatically determined, and the group is created according to the identified target account, thereby reducing the operation steps of the user and improving The efficiency of the group.
  • FIG. 1 is a flowchart of an implementation of a method for group creation according to a first embodiment of the present application
  • FIG. 2 is a flowchart of a specific implementation of a method for group creation according to a second embodiment of the present application
  • FIG. 3 is a flowchart of a specific implementation of a method for group creation according to a third embodiment of the present application.
  • FIG. 4 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application.
  • FIG. 5 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application.
  • FIG. 6 is a structural block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
  • the execution entity of the process is a group-created terminal
  • the terminal device includes a smart phone, a computer device, a tablet computer, a product testing server, and the like.
  • the terminal device is a smart phone
  • the smart phone is provided with a camera module, and the user can directly collect a photo of the corresponding user of the target account of the required group by using the camera module on the terminal device, and install the image on the smart phone.
  • the application initiates a homing request.
  • FIG. 1 is a flowchart of an implementation of a method for group creation provided by a first embodiment of the present application, which is described in detail as follows:
  • a user-initiated group creation request is received; the group creation request carries a group photo.
  • the user can communicate with the terminal device provided by the present application through the user terminal, and send a group creation request to the terminal device through the communication connection, after the terminal device receives the group creation request. Then, the related operations of S101 are performed.
  • the user sends a group creation request the user may select a photo of the target user including the desired group in the local album, and generate the group creation request according to the photographed image.
  • the user can directly operate the terminal device, and start the group creation operation by clicking the group initiation button in the terminal device interface.
  • a group creation request is generated.
  • the terminal device After detecting the establishment creation request, the terminal device performs the related operation of S101.
  • the user may choose to use the common group creation mode, or the method for creating a group by using the photographed image provided by the embodiment, where the common group creation mode is to manually select the target account.
  • the terminal device prompts the user to upload a photo of the group for group creation, or starts the camera application and instructs the user to collect the group for the camera function. Create a photo of the group.
  • the terminal device When the user determines the photographed image by one of the above two methods, the terminal device generates a group creation request according to the photographed image.
  • the terminal device may identify the type of the group creation request and determine the group creation mode adopted. Specifically, if the group creation request carries the group image, the related operation of S102 is performed; if the group creation request carries the account identifier, the group is directly created according to the account identifier contained therein.
  • the photographed image is specifically a photographed image of the target user of the created group, and the terminal device can identify each target user through the photographed image, and then determine the corresponding social by the target user's face information.
  • Account the purpose of group creation.
  • a plurality of first face images included in the combined image are identified, and facial feature parameters of each of the first face images are extracted.
  • the terminal device extracts the photographed image from the group creation request
  • the first face image included in the photographed image is determined by the face recognition algorithm, and one for each first face image is created.
  • the temporary database is configured to store the facial feature parameters of the first facial image and the degree of matching with other social accounts, so as to facilitate subsequent determination of the social accounts corresponding to each of the first facial images.
  • the facial feature parameters of each first face image may include multiple types.
  • the facial feature parameters include, but are not limited to, at least one of the following: a distance between the eyes, and between the organs of the face. Relative distance, face parameter value, chromaticity of facial skin, etc.
  • the relative distance between the organs of the face may be: the distance between the tip of the nose and the mouth, the distance between the left and right ears, the width of the forehead, and the like.
  • the terminal device can acquire as many facial feature parameters as possible according to the captured angle of the captured face image, thereby improving the accuracy of the recognition.
  • each user photographs the photographed image, it is not necessarily photographed in a manner that the front face is unobstructed, and some parameters of the facial feature parameters may not be acquired, for example, only the side face of the user A is photographed in the photograph, in which In this case, the parameters such as the distance between the pupils and the left and right ears cannot be obtained, and the terminal device recognizes the face image that cannot be obtained as described above.
  • the received group creation request includes two or more photos of the group
  • the first face image included in each of the group images is identified, and the plurality of photos are included in the image.
  • the first face images belonging to the same user are merged. After the merging is completed, the facial feature parameters are extracted according to the respective first face images.
  • a face feature parameter of each of the first face images and a face feature parameter of each social account associated with the user are respectively imported into a matching degree calculation model, and the first face image is calculated.
  • a degree of matching with each of the social accounts; the matching degree calculation model is specifically:
  • the S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant.
  • the terminal device determines the social account corresponding to each first facial image, so the terminal device needs to determine to initiate before determining the social account.
  • the manner of determining the social account associated with the user may be: obtaining the buddy list of the user in the social platform, and identifying the social account included in the buddy list as the social account associated with the user.
  • the terminal device may determine the social account associated with the user based on the second degree relationship, wherein the second degree relationship includes not only the social account in the user friend list but also each social account in the friend list.
  • the social account included in the corresponding buddy list For example, if the user's buddy list includes the social account A, the social account associated with the user in the second-degree relationship includes not only the social account A but also all the social accounts included in the social account A buddy list, thereby broadening the user association.
  • the range of social accounts so the base number of the first face image matching also increases, and the accuracy of recognition increases accordingly.
  • the facial feature parameters of each social account may be stored in a database of the social network platform, and the database of the social network platform determines the user account according to the avatar uploaded by the social account, the album image, and the identity information of the user. Face feature parameters.
  • the specific process is as follows: the database selects the face image identified from the uploaded avatar and the album image according to the user's identity information, such as gender, age, height, and the like, and selects a face image that meets the above identity information. Then, according to the number of occurrences of the same face image, the face image of the social account is determined, and then the facial feature parameters corresponding thereto are obtained.
  • the terminal device calculates the matching degree between the first face image and each social account, and thus sets the facial feature parameter of the first face image to the facial feature parameter of the social account respectively associated with the user.
  • the matching degree calculation model it is emphasized that the number of facial feature parameters of the social account is matched according to the number of facial feature parameters of the first facial image.
  • the parameter format of the facial feature parameter of the first facial image is the same as the parameter format of the facial feature parameter of the social account, so the actual meaning corresponding to the facial feature parameter of the same location is the same.
  • the parameter format of the facial feature parameter of the first face image is ⁇ pitch distance, eye opening angle, nose tip and mouth distance ⁇
  • the parameter format of the facial feature parameter of the social account is also the same as the above format, so
  • the first facial feature parameter represents the interpupillary distance so that the difference between the two can be determined. In particular, when a certain parameter value of the first face image is empty, no difference calculation is performed.
  • the social account with the highest matching degree is selected as the target account corresponding to the first face image.
  • the terminal device after the terminal device calculates the matching degree between the first face image and each social account, the terminal device selects the social account with the highest matching degree as the target account corresponding to the first face image, due to social interaction.
  • the matching degree between the facial feature parameter of the account and the facial feature parameter of the first facial image is the highest, indicating that the entity user corresponding to the two has the highest probability of belonging to the same person.
  • the social account is identified as the first A target account corresponding to a face image.
  • the terminal device further compares the matching degree value with a preset effective matching degree threshold. If the highest matching value is still less than the effective matching degree threshold, the indicating A face image cannot be matched to the target account, and the target account identifying the first face image is empty; conversely, if the highest matching value is greater than or equal to the effective matching degree threshold, the target account is identified as valid.
  • the terminal device after determining the target account corresponding to each first face image, creates a group including all target accounts. Specifically, the terminal device acquires the account identifiers of the respective target accounts, and fills in the parameter values of the group members of the group into the parameter values of the group members, thereby establishing an association relationship between the group and the target account, and completing the group creation operation. .
  • a group creation method provided by the embodiment of the present application determines a first face by receiving a group creation request including a group image and identifying a first face image included in the group image.
  • the group creation method provided by the present application does not require the user to manually select the target account, and only needs to upload the photographed image, and the social account implied in the photographed image can be automatically determined and obtained according to the identification.
  • the target account creates a group, which reduces the user's operation steps and improves the efficiency of the group. Especially in the occasions of convenient photographing and large number of users, such as parties or parties, it is also possible to create a group for all users present, and avoid the addition of account omissions.
  • FIG. 2 is a flowchart showing a specific implementation of a method for group creation according to a second embodiment of the present application.
  • the method for group creation provided by this embodiment further includes S201 to S207, which are specifically described as follows:
  • a published image of the social account is acquired, and a second face image included in each of the published images is identified.
  • the step of FIG. 2 may be before S101, that is, the terminal device may determine facial feature parameters of each social account associated with the user before the user initiates the group creation request, for example, the user adds a social account. As a friend, the terminal device determines the facial feature parameter of the social account, and performs related operations of S201 to S207; and before S103, when the matching degree between the first facial image and each social account needs to be calculated, the execution map is executed. 2 operation of the embodiment.
  • the terminal device accesses a database of the social account to determine an image that has been published by the social account, and the published image includes an avatar of the social account, an album, and an image sent during the chat.
  • a weight value of the second face image included in the posted image is determined according to an album category to which the posted image belongs.
  • each of the published images corresponds to one album type
  • the album type includes, but is not limited to, an avatar album type, a space album type, a chat record album type, and the like.
  • Different album types correspond to different weight values. Because the facial feature parameters of the physical user corresponding to the social account are determined, it is necessary to locate the face image corresponding to the physical user from the plurality of face images in the published album, and different
  • the album type may have different probability of the face image of the physical user, for example, the probability of the avatar album is larger, and the corresponding weight value is also larger; and the chat record album may have many expression images or network images, so The probability that the face image of the entity user may be included is small, and the corresponding weight value is small, so that the weight value corresponding to the second album image corresponding to the different second face image is determined, and the face of the social account is effectively improved.
  • the accuracy of the characteristic parameters is provided.
  • the terminal device after identifying each published image, obtains a plurality of second face images, and calculates a similarity between each second face image, specifically, all second face images. The two and two are compared to determine the similarity between the two.
  • the calculating the similarity may be: determining a facial feature parameter of the second facial image, and determining a similarity between the two based on a difference between the facial feature parameters of the two second facial images.
  • the second face images are grouped based on the similarity to obtain a plurality of face groups; wherein the similarity between each of the second face images in each of the face groups Both are greater than the preset similarity threshold.
  • the terminal device after calculating the similarity between the respective second face images, performs a grouping operation on the second face image according to the similarity to obtain a plurality of face groups, and the same person face group represents The corresponding physical users are the same, so the similarity between the second face images included in the same personal face group is greater than the preset similarity threshold.
  • the images representing the same face can be integrated as the same object for recognition, so that the number of recognized objects is greatly reduced, and a face group includes a plurality of second persons.
  • the face image thereby improving the accuracy of the recognized face feature parameters.
  • a representative coefficient of the face group is calculated according to a weight value of each of the second face images in the face group and a number of included second face images.
  • the weight value of the second face image in the face group is larger, the probability that the face group is the face of the corresponding user of the social account is larger, and the image uploaded by the social account is generally There are many images of my own, so the number of appearances of my face image is also large. It can be seen that through the above two parameters, it is possible to determine whether a face group is a social account corresponding entity user, in this implementation. In the example, it is represented by a representative coefficient.
  • the terminal device imports the weight value of each second face image and the number of second face images included in the face group into a representative coefficient calculation model, and calculates a representative coefficient of the face group.
  • the representative coefficient calculation model is specifically:
  • P(x) is the representative coefficient of the face group
  • Q is the number of the second face image
  • G j is the weight value of the jth second face image.
  • the face group having the largest value of the representative coefficient is selected as the representative face group of the social account.
  • the terminal device selects the face group with the largest value of the representative coefficient as the representative face group of the social account. Specifically, if the number of face groups having the largest value of the representative coefficient is two or more, the face group having the largest number of second face images corresponding to the album type having the largest weight value is selected as the social account.
  • the representative face group For example, if the album type with the largest weight value is the avatar album type, the number of the second face images of the avatar album type included in each face group is counted from the plurality of face groups having the largest representative coefficient, and the avatar album type is selected. The most one face group is the representative face group of the social account.
  • a facial feature parameter of the social account corresponding user is determined according to the second facial image in the representative facial group.
  • the facial feature parameters in each second face image are extracted according to the second face image included in the representative face group. Then, through the facial feature parameters of the plurality of second face images, the facial feature parameters of the user corresponding to the social account are determined.
  • the manner of determining the facial feature parameters of the user corresponding to the social account from the facial feature parameters of the plurality of second facial images may be: taking the average value and the intermediate value from the plurality of parameter values, and not limited.
  • the published image of the social account is obtained, and the facial feature parameter of the corresponding user of the social account is determined according to the published image, and the facial feature parameter is not manually input by the social account, thereby reducing the operation difficulty of the user.
  • FIG. 3 is a flowchart of a specific implementation of a method for group creation according to a third embodiment of the present application. As shown in FIG. 3, with reference to the embodiment shown in FIG. 1 and FIG. 2, the method for group creation provided in this embodiment further includes S301 to S303, which are specifically described as follows:
  • the terminal device may obtain the location information of the current location of the user in order to determine the social account associated with the user initiated by the group establishment, and the group is required to establish a group for a party such as a party or a party.
  • the users are all in the same geographical location area, and therefore, the social accounts associated with the users can be determined by the geographic location of each user.
  • the terminal device may obtain the location information of the user by using the positioning data fed back by the positioning device of the user terminal, and may further query the location of the base station according to the identifier of the base station of the mobile network provided by the user terminal.
  • the location of the base station is identified as the location information of the user.
  • the preset effective distance is a radius centered on the location information, and the effective establishment area is determined.
  • the terminal device determines an effective group establishment area according to the location information, and the specific manner of determining the group establishment area is: centering on the location information of the user, preset The effective distance is the radius, and the effective grouping pattern is obtained, and then the area covered by the effective grouping pattern is the effective grouping area.
  • All social accounts in the active Build Area are social accounts associated with the user.
  • a social account whose current time is located in the valid group-building area is extracted from the social account library as a social account associated with the user.
  • the terminal device queries location information of each social account in the social account library, and selects all social accounts whose current location information is within the coverage of the effective establishment area as the social account associated with the user. Since all the target users who need to establish a group are generally closely gathered in the scene of the party or the queue, that is, the current time is in the venue of the party or the queue, therefore, the current location information of each social account is also in the effective group establishment area. So that you can accurately filter out the social network accounts associated with the user.
  • the social account is filtered by the location information, thereby filtering a large number of invalid social accounts, thereby improving the efficiency and accuracy of the group creation.
  • FIG. 4 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application. As shown in FIG. 4, with reference to the embodiment shown in FIG. 1 and FIG. 2, the method for group creation provided by this embodiment further includes: S401 to S403, which are specifically described as follows:
  • the terminal device may perform further screening according to the social account included in the user's buddy list, and extract the social account related to the group creation.
  • the terminal device reads the account of the user's account in the social network platform, determines the buddy list corresponding to the user account, and the account identifiers of all the social accounts included in the buddy list, and then performs the related operations of S102. .
  • a valid friend account in the buddy list is determined based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction.
  • the terminal device after determining the social account included in the buddy list of the user, acquires an interaction between the account of the user and each social account in the buddy list, where the interaction includes the number of interactions and The interaction time of the last interaction. For example, when a user needs to initiate a party or a party, the user needs to contact each social account in advance to determine the location and time of the party. In the recent period of time, the user must contact the social account that needs to be established. Corresponding interaction records are generated in the social networking platform. Therefore, the terminal device can filter out a valid friend account according to the interaction between the user account and other social accounts.
  • the specific manner of determining the valid friend account in the buddy list may be: the interaction number is greater than the preset number threshold, and the date of the last interaction time needs to be within the valid date range from the current date, and the above two conditions are met.
  • the social account is the user's valid friend account.
  • the valid buddy account is used as a social account associated with the user.
  • all the social accounts that meet the preset conditions are used as valid buddy accounts of the user, and other social accounts that meet the preset conditions are regarded as invalid buddy accounts, and the relevant buddy accounts are selected from the effective buddy accounts.
  • a social account, so a valid buddy account is used as the social account associated with the user.
  • FIG. 5 is a flowchart of a specific implementation of a method for group creation according to a fifth embodiment of the present application. As shown in FIG. 5, with reference to the embodiment shown in FIG. 1, the method for group creation provided by this embodiment further includes S501 to S503, which are specifically described as follows:
  • the address book information of the user is obtained; the address book information includes a plurality of contact information; the contact information includes a contact phone and a contact avatar.
  • the user's address book can be stored in the local memory. If the terminal device provided by the embodiment is the terminal used by the user, the terminal device can directly obtain the address book information of the user by reading the local memory. If the terminal device is not the terminal used by the user, an address book information acquisition request may be sent to the user terminal, and the address book information returned by the user terminal according to the request may be accepted. If the user's address book information is stored in the cloud database, the terminal device can be connected to the cloud server to download the user's address book information.
  • the contact information includes a plurality of contact information, and the contact phone and the contact avatar of the contact are recorded in each contact information.
  • the contact avatar may be manually uploaded by the user, or may be extracted from the published image of the social account associated with the contact phone. The manner of the extraction may be referred to the embodiment described in FIG. 2, and details are not described herein again.
  • a social account that is bound to the contact phone is used as a social account associated with the user.
  • the social network platform since each social account is bound with a contact phone, the social network platform records the correspondence between the social account and the contact phone. Therefore, the terminal device can query the social network platform bound to the contact phone from the social network platform according to the contact phone obtained in S501, and identify the social account as a social account associated with the user. If a contact phone does not have a social account bound, the social account corresponding to the contact phone is empty. If a contact phone corresponds to two or more social accounts, the plurality of social accounts that are bound to the contact phone are identified as social accounts associated with the user.
  • a facial feature parameter of the social account corresponding user is determined according to the contact avatar.
  • the contact avatar that belongs to the same contact information as the contact phone may be used as the facial feature parameter of the user corresponding to the social account. Since the contact avatar is generally a face image of the contact entity user during the setting process, the facial feature parameter of the corresponding user of the social account may be directly determined according to the contact avatar.
  • the social account associated with the user is determined by acquiring the address book information of the user, and the facial feature parameters of the user corresponding to the associated social account are improved, thereby improving the accuracy of the recognition.
  • FIG. 6 is a structural block diagram of a group-created terminal according to an embodiment of the present application. Each unit included in the group created by the group is used to execute each step in the embodiment corresponding to FIG. 1. For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown.
  • the terminal device includes:
  • a group creation request receiving unit 61 configured to receive a group creation request initiated by a user; the group creation request carries a group image;
  • the facial feature parameter extracting unit 62 is configured to identify a plurality of first facial images included in the combined image, and extract facial feature parameters of each of the first facial images;
  • the matching degree calculation unit 63 is configured to import the facial feature parameters of the corresponding facial features of the first facial image and the facial feature parameters of the corresponding social accounts associated with the user into the matching degree calculation model, and calculate the a degree of matching between a face image and each of the social accounts;
  • the matching degree calculation model is specifically:
  • the S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
  • the target account selecting unit 64 is configured to select the social account with the highest matching degree as the target account corresponding to the first face image
  • the group creating unit 65 is configured to create a group including all the target accounts.
  • the terminal device further includes:
  • a published image obtaining unit configured to acquire a published image of the social account, and identify a second face image included in each of the published images
  • a weight value determining unit configured to determine, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image
  • a similarity calculation unit configured to calculate a similarity between each of the second facial images
  • a face image grouping unit configured to group the second face images based on the similarity to obtain a plurality of face groups; wherein each of the second face images in each of the face groups The similarity between the two is greater than the preset similarity threshold;
  • a representative coefficient calculation unit configured to calculate a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images
  • a representative face group determining unit configured to select a face group having the largest value of the representative coefficient as a representative face group of the social account
  • the social account feature parameter obtaining unit is configured to determine a facial feature parameter of the social account corresponding user according to the second facial image in the representative facial group.
  • the terminal device further includes:
  • a location information obtaining unit configured to acquire location information of the user
  • An effective group establishment determining unit is configured to determine, according to the location information, a preset effective distance is a radius, and determine an effective grouping area;
  • the first associated account determining unit is configured to extract, from the social account library, a social account whose current time is located in the valid grouping area as a social account associated with the user.
  • the terminal device further includes:
  • a buddy list obtaining unit configured to acquire a buddy list of the user
  • a valid friend account obtaining unit configured to determine a valid friend account in the friend list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
  • a second associated account determining unit configured to use the valid friend account as a social account associated with the user.
  • the terminal device further includes:
  • the address book information obtaining unit is configured to obtain the address book information of the user; the address book information includes a plurality of contact information; the contact information includes a contact phone and a contact avatar;
  • a third associated account determining unit configured to use a social account that is bound to the contact phone as a social account associated with the user
  • a contact avatar extraction unit configured to determine, according to the contact avatar, a facial feature parameter of the user corresponding to the social account.
  • the terminal device provided by the embodiment of the present application can also automatically select the social account implicit in the photo image and create a group according to the identified target account by simply uploading the photo of the target without uploading the target account. Reduce the user's operating procedures and improve the efficiency of the group. Especially in the occasions of convenient photographing and large number of users, such as parties or parties, it is also possible to create a group for all users present, and avoid the addition of account omissions.
  • FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
  • the terminal device 7 of this embodiment includes a processor 70, a memory 71, and computer readable instructions 72 stored in the memory 71 and executable on the processor 70, such as group creation. program of.
  • the processor 70 when executing the computer readable instructions 72, implements the functions of the various units in the various apparatus embodiments described above, such as the functions of modules 61 through 65 shown in FIG.
  • the computer readable instructions 72 may be partitioned into one or more units, the one or more units being stored in the memory 71 and executed by the processor 70 to complete the application.
  • the one or more units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 72 in the terminal device 7.
  • the computer readable instructions 72 may be segmented into a group creation request receiving unit, a facial feature parameter extraction unit, a matching degree calculation unit, a target account selection unit, and a group creation unit, each unit having a specific function as described above.
  • the terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those illustrated, or combine some components or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the processor 70 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7.
  • the memory 71 may also be an external storage device of the terminal device 7, for example, a plug-in hard disk provided on the terminal device 7, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device.
  • the memory 71 is configured to store the computer readable instructions and other programs and data required by the terminal device.
  • the memory 71 can also be used to temporarily store data that has been output or is about to be output.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application is applicable to the technical field of information identification, and provides a group creation method and a terminal thereof. The method comprises: receiving a group creation request initiated by a user; identifying a plurality of first human facial images contained in a group photo image, and extracting a facial feature parameter of each first human facial image; respectively importing the facial feature parameter of any one of the first human facial images and a facial feature parameter of a user corresponding to each social account associated with the user into a matching degree calculation model, and calculating the matching degree between the first human facial image and each social account; selecting the social account with the highest matching degree as a target account corresponding to the first human facial image; and creating a group containing all target accounts. Through the present application, the operating steps of the user are reduced, and the group creation efficiency is improved. Especially on occasions in which group photos can be conveniently taken and the user numbers are large, such as meetings or parties, the aim of creating a group of all users present can also be achieved, and the situation of account omission is avoided.

Description

一种群组创建的方法及其终端Method for group creation and terminal thereof
本申请申明享有2018年02月07日递交的申请号为201810121711.2、名称为“一种群组创建的方法及其终端”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application claims the priority of the Chinese Patent Application No. 201101121711.2, entitled "A Method for Creating a Group and Its Terminal", which is incorporated by reference in its entirety. In this application.
技术领域Technical field
本申请属于信息识别技术领域,尤其涉及一种群组创建的方法及其终端。The present application belongs to the field of information recognition technologies, and in particular, to a method for group creation and a terminal thereof.
背景技术Background technique
随着社交应用的不断推广,用户常常利用社交应用与其他用户进行互动,而群组作为社交应用中最为重要的交互形式,如何快速创建群组则直接影响用户对于该社交应用的使用体验。With the continuous promotion of social applications, users often use social applications to interact with other users, and groups are the most important form of interaction in social applications. How to quickly create a group directly affects the user's experience with the social application.
现有的群组创建方法,需要用户手动拉取需要建立群组内的社交账户,或者通过各个社交账户手动搜索群组名称,找到该群组后申请加入,步骤复杂,导致创建群组的操作效率较低。特别在聚会或派对等场合,建群的账户总数较大,进一步增加了操作难度,经常出现账户遗漏添加的情况。The existing group creation method requires the user to manually pull the social account in the group, or manually search for the group name through each social account, and find the group to apply for joining. The steps are complicated, resulting in the operation of creating the group. Less efficient. Especially in gatherings or parties, etc., the total number of accounts of Jianqun is large, which further increases the difficulty of operation, and often the situation of account missing is added.
技术问题technical problem
有鉴于此,本申请实施例提供了一种群组创建的方法及其终端,以解决现有的群组创建的方法,步骤复杂,创建群组的操作效率低的问题。In view of this, the embodiment of the present application provides a group creation method and a terminal thereof, so as to solve the existing group creation method, the steps are complicated, and the operation efficiency of creating a group is low.
技术解决方案Technical solution
本申请提供的一种群组创建的方法,包括:A method for group creation provided by the application includes:
接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;Receiving a user-initiated group creation request; the group creation request carrying a group image;
识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;Identifying a plurality of first face images included in the combined image, and extracting facial feature parameters of each of the first face images;
将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:Importing a face feature parameter of each of the first face images and a face feature parameter of each user account associated with the user into a matching degree calculation model, and calculating the first face image and each of the The degree of matching between social accounts; the matching degree calculation model is specifically:
Figure PCTCN2018083287-appb-000001
Figure PCTCN2018083287-appb-000001
其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;Selecting the social account with the highest matching degree as the target account corresponding to the first face image;
创建包含所有所述目标账户的群组。Create a group that contains all of the target accounts.
有益效果Beneficial effect
本申请实施例无需用户手动选取目标账户,只需上传合照图像,即可自动确定该合照图像中隐含的社交账户,并根据识别得到的目标账户创建群组,减少了用户的操作步骤,提高了建群效率。特别在聚会或派对等拍摄合照较为便捷且用户数量较大的场合,也能够实现对在场的所有用户创建群组的目的,避免了账户遗漏添加的情况发生。In the embodiment of the present application, the user does not need to manually select the target account, and only the uploaded image is uploaded, the social account implicit in the photo image can be automatically determined, and the group is created according to the identified target account, thereby reducing the operation steps of the user and improving The efficiency of the group. Especially in the occasions of convenient photographing and large number of users, such as parties or parties, it is also possible to create a group for all users present, and avoid the addition of account omissions.
附图说明DRAWINGS
图1是本申请第一实施例提供的一种群组创建的方法的实现流程图;1 is a flowchart of an implementation of a method for group creation according to a first embodiment of the present application;
图2是本申请第二实施例提供的一种群组创建的方法的具体实现流程图;2 is a flowchart of a specific implementation of a method for group creation according to a second embodiment of the present application;
图3是本申请第三实施例提供的一种群组创建的方法的具体实现流程图;3 is a flowchart of a specific implementation of a method for group creation according to a third embodiment of the present application;
图4是本申请第四实施例提供的一种群组创建的方法的具体实现流程图;4 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application;
图5是本申请第四实施例提供的一种群组创建的方法的具体实现流程图;FIG. 5 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application;
图6是本申请一实施例提供的一种终端设备的结构框图;FIG. 6 is a structural block diagram of a terminal device according to an embodiment of the present application;
图7是本申请另一实施例提供的一种终端设备的示意图。FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
本发明的实施方式Embodiments of the invention
在本申请实施例中,流程的执行主体为群组创建的终端,该终端设备包括智能手机、计算机设备、平板电脑、产品测试服务器等设备。特别地,该终端设备为智能手机,该智能手机设置有摄像模块,用户可通过终端设备上的摄像模块直接采集所需建群的目标账户对应用户的合照图像,并通过安装于智能手机上的应用程序发起建群请求。图1示出了本申请第一实施例提供的群组创建的方法的实现流程图,详述如下:In the embodiment of the present application, the execution entity of the process is a group-created terminal, and the terminal device includes a smart phone, a computer device, a tablet computer, a product testing server, and the like. Specifically, the terminal device is a smart phone, and the smart phone is provided with a camera module, and the user can directly collect a photo of the corresponding user of the target account of the required group by using the camera module on the terminal device, and install the image on the smart phone. The application initiates a homing request. FIG. 1 is a flowchart of an implementation of a method for group creation provided by a first embodiment of the present application, which is described in detail as follows:
在S101中,接收用户发起的群组创建请求;所述群组创建请求携带有合照图像。In S101, a user-initiated group creation request is received; the group creation request carries a group photo.
在本实施例中,用户可通过自身的用户终端与本申请提供的终端设备进行通信连接,并通过该通信连接向终端设备发送一个群组创建请求,当终端设备接收到该群组创建请求后,则执行S101的相关操作。其中,用户在发送群组创建请求时,可在本地相册选取一幅包含所需建群的目标用户的合照图像,并根据该合照图像生成该群组创建请求。In this embodiment, the user can communicate with the terminal device provided by the present application through the user terminal, and send a group creation request to the terminal device through the communication connection, after the terminal device receives the group creation request. Then, the related operations of S101 are performed. When the user sends a group creation request, the user may select a photo of the target user including the desired group in the local album, and generate the group creation request according to the photographed image.
在本实施例中,用户可以直接操作终端设备,通过点击终端设备界面中的建群发起按钮来启动群组创建操作,当用户点击了建群发起按钮后,则会生成一个建群创建请求,终端设备在检测到该建群创建请求后,则执行S101的相关操作。当然,用户在进行群组创建之前可以选择采用普通群组创建方式,或者本实施例提供的通过合照图像创建群组的方式,其中普通群组创建方式即为手动 选取目标账户。若用户采用通过本实施例提供的方法进行群组创建,则终端设备会提示用户上传用于群组创建的合照图像,或者启动摄像应用程序并指示用户通过终端设备的摄像功能采集用于群组创建的合照图像。当用户通过上述两种方式之一确定了合照图像了,则终端设备会根据该合照图像生成一个群组创建请求。In this embodiment, the user can directly operate the terminal device, and start the group creation operation by clicking the group initiation button in the terminal device interface. When the user clicks the group initiation button, a group creation request is generated. After detecting the establishment creation request, the terminal device performs the related operation of S101. Of course, the user may choose to use the common group creation mode, or the method for creating a group by using the photographed image provided by the embodiment, where the common group creation mode is to manually select the target account. If the user performs group creation by using the method provided in this embodiment, the terminal device prompts the user to upload a photo of the group for group creation, or starts the camera application and instructs the user to collect the group for the camera function. Create a photo of the group. When the user determines the photographed image by one of the above two methods, the terminal device generates a group creation request according to the photographed image.
可选地,在本实施例中,终端设备在接收到群组创建请求后,可识别该群组创建请求的类型,确定所采用的群组创建方式。具体地,若群组创建请求中携带的是合照图像,则执行S102的相关操作;若群组创建请求中携带的是账户标识,则直接根据里面包含的账户标识创建群组。Optionally, in this embodiment, after receiving the group creation request, the terminal device may identify the type of the group creation request and determine the group creation mode adopted. Specifically, if the group creation request carries the group image, the related operation of S102 is performed; if the group creation request carries the account identifier, the group is directly created according to the account identifier contained therein.
在本实施例中,该合照图像具体为关于所创建的群组的目标用户的合照图像,终端设备可通过该合照图像识别得到各个目标用户,继而通过目标用户的人脸信息确定其对应的社交账户,实现群组创建的目的。In this embodiment, the photographed image is specifically a photographed image of the target user of the created group, and the terminal device can identify each target user through the photographed image, and then determine the corresponding social by the target user's face information. Account, the purpose of group creation.
在S102中,识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数。In S102, a plurality of first face images included in the combined image are identified, and facial feature parameters of each of the first face images are extracted.
在本实施例中,终端设备从群组创建请求中提取了合照图像后,则通过人脸识别算法确定该合照图像中包含的第一人脸图像,并为每个第一人脸图像创建一个临时数据库,用于存储该第一人脸图像的脸部特征参数,以及与其他社交账户之间的匹配度,便于后续确定每一个第一人脸图像对应的社交账户。In this embodiment, after the terminal device extracts the photographed image from the group creation request, the first face image included in the photographed image is determined by the face recognition algorithm, and one for each first face image is created. The temporary database is configured to store the facial feature parameters of the first facial image and the degree of matching with other social accounts, so as to facilitate subsequent determination of the social accounts corresponding to each of the first facial images.
在本实施例中,每个第一人脸图像的脸部特征参数可以包含多种类型,具体地,该脸部特征参数包括但不限于以下至少一种:瞳距、脸部各器官之间的相对距离、脸型参数值、脸部皮肤的色度等。其中,脸部各器官之间的相对距离可以为:鼻尖与嘴巴之间的距离、左右侧耳之间的距离、额头宽度等。终端设备可根据采集到的人脸图像的拍摄角度,获取尽可能多的脸部特征参数,从而提高识别的准确率。但是,由于每个用户拍摄该合照图像时,并不一定以正脸无遮挡的方式进行拍摄,可能脸部特征参数中部分参数无法获取,例如合照中只拍摄到用户A的侧脸,在该情况下,无法获取瞳距、左右侧耳之间的距离等参数,则终端设备将上述无法获取得到的人脸图像识别为空。In this embodiment, the facial feature parameters of each first face image may include multiple types. Specifically, the facial feature parameters include, but are not limited to, at least one of the following: a distance between the eyes, and between the organs of the face. Relative distance, face parameter value, chromaticity of facial skin, etc. The relative distance between the organs of the face may be: the distance between the tip of the nose and the mouth, the distance between the left and right ears, the width of the forehead, and the like. The terminal device can acquire as many facial feature parameters as possible according to the captured angle of the captured face image, thereby improving the accuracy of the recognition. However, since each user photographs the photographed image, it is not necessarily photographed in a manner that the front face is unobstructed, and some parameters of the facial feature parameters may not be acquired, for example, only the side face of the user A is photographed in the photograph, in which In this case, the parameters such as the distance between the pupils and the left and right ears cannot be obtained, and the terminal device recognizes the face image that cannot be obtained as described above.
可选地,在本实施例中,若接收到的群组创建请求中包含两个或以上的合照图像,则识别每一个合照图像中包含的第一人脸图像,并把多个合照图像中属于相同用户的第一人脸图像进行合并。合并完成后,根据在提取各个第一人脸图像的脸部特征参数。Optionally, in the embodiment, if the received group creation request includes two or more photos of the group, the first face image included in each of the group images is identified, and the plurality of photos are included in the image. The first face images belonging to the same user are merged. After the merging is completed, the facial feature parameters are extracted according to the respective first face images.
在S103中,将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:In S103, a face feature parameter of each of the first face images and a face feature parameter of each social account associated with the user are respectively imported into a matching degree calculation model, and the first face image is calculated. a degree of matching with each of the social accounts; the matching degree calculation model is specifically:
Figure PCTCN2018083287-appb-000002
Figure PCTCN2018083287-appb-000002
其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数。 The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant.
在本实施例中,终端设备在提取了各个第一人脸图像的脸部特征数据后,则确定各个第一人脸图像所对应的社交账户,因此终端设备在确定社交账户之前,需要确定发起建群请求的用户所关联的社交账户有哪些,以及每个社交账户对应用户的脸部特征参数。具体地,确定用户关联的社交账户的方式可以为:获取该用户在社交平台中的好友列表,将好友列表中包含的社交账户识别为该用户关联的社交账户。优选地,为了提高建群的精确度,终端设备可基于二度关系,确定该用户关联的社交账户,其中二度关系不仅包含该用户好友列表中的社交账户,还包含好友列表中各个社交账户对应的好友列表中包含的社交账户。例如,该用户的好友列表中包含社交账户A,则二度关系中用户关联的社交账户不仅包含该社交账户A,还包含社交账户A好友列表中包含的所有社交账户,从而拓宽了用户关联的社交账户的范围,因此第一人脸图像匹配的基数也增大,识别的准确率相应提高。In this embodiment, after extracting the facial feature data of each first facial image, the terminal device determines the social account corresponding to each first facial image, so the terminal device needs to determine to initiate before determining the social account. What are the social accounts associated with the users requested by the group, and the facial feature parameters of the users corresponding to each social account. Specifically, the manner of determining the social account associated with the user may be: obtaining the buddy list of the user in the social platform, and identifying the social account included in the buddy list as the social account associated with the user. Preferably, in order to improve the accuracy of the group establishment, the terminal device may determine the social account associated with the user based on the second degree relationship, wherein the second degree relationship includes not only the social account in the user friend list but also each social account in the friend list. The social account included in the corresponding buddy list. For example, if the user's buddy list includes the social account A, the social account associated with the user in the second-degree relationship includes not only the social account A but also all the social accounts included in the social account A buddy list, thereby broadening the user association. The range of social accounts, so the base number of the first face image matching also increases, and the accuracy of recognition increases accordingly.
在本实施例中,各个社交账户的脸部特征参数可存储于社交网络平台的数据库内,该社交网络平台的数据库根据社交账户上传的头像、相册图像以及用户的身份信息,确定该用户账户的脸部特征参数。具体的过程如下:该数据库根据用户的身份信息,例如性别、年龄、身高等信息,对从上传的头像以及相册图像中识别得到的人脸图像进行筛选,选取出符合上述身份信息的人脸图像,继而根据相同人脸图像出现次数的多少,确定该社交账户的人脸图像,继而得到与之对应的脸部特征参数。In this embodiment, the facial feature parameters of each social account may be stored in a database of the social network platform, and the database of the social network platform determines the user account according to the avatar uploaded by the social account, the album image, and the identity information of the user. Face feature parameters. The specific process is as follows: the database selects the face image identified from the uploaded avatar and the album image according to the user's identity information, such as gender, age, height, and the like, and selects a face image that meets the above identity information. Then, according to the number of occurrences of the same face image, the face image of the social account is determined, and then the facial feature parameters corresponding thereto are obtained.
在本实施例中,终端设备为了计算第一人脸图像与各个社交账户之间的匹配度,因此会将第一人脸图像的脸部特征参数分别与用户关联的社交账户的脸部特征参数导入到匹配度计算模型中,需要强调的是,社交账户的脸部特征参数的个数会根据第一人脸图像的脸部特征参数的个数相匹配。In this embodiment, the terminal device calculates the matching degree between the first face image and each social account, and thus sets the facial feature parameter of the first face image to the facial feature parameter of the social account respectively associated with the user. Imported into the matching degree calculation model, it is emphasized that the number of facial feature parameters of the social account is matched according to the number of facial feature parameters of the first facial image.
在本实施例中,第一人脸图像的脸部特征参数的参数格式与社交账户的脸部特征参数的参数格式是相同的,因此相同位置的脸部特征参数所对应的实际含义也是相同的。例如,第一人脸图像的脸部特征参数的参数格式为{瞳距、眼睛张开角度、鼻尖与嘴部距离},则社交账户的脸部特征参数的参数格式也与上述格式相同,因此第一个脸部特征参数均表示瞳距,从而可以确定两者之间的差异。特别地,当第一人脸图像的某个参数值为空时,则不进行差值计算。In this embodiment, the parameter format of the facial feature parameter of the first facial image is the same as the parameter format of the facial feature parameter of the social account, so the actual meaning corresponding to the facial feature parameter of the same location is the same. . For example, if the parameter format of the facial feature parameter of the first face image is {pitch distance, eye opening angle, nose tip and mouth distance}, the parameter format of the facial feature parameter of the social account is also the same as the above format, so The first facial feature parameter represents the interpupillary distance so that the difference between the two can be determined. In particular, when a certain parameter value of the first face image is empty, no difference calculation is performed.
在S104中,选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户。In S104, the social account with the highest matching degree is selected as the target account corresponding to the first face image.
在本实施例中,终端设备在计算了该第一人脸图像与各个社交账户之间的匹配度后,终端设备选取匹配度最高的社交账户作为第一人脸图像对应的目标账户,由于社交账户的脸部特征参数与第一人脸图像的脸部特征参数的匹配度最高,则表示两者所对应的实体用户属于同一人的概率最大, 在该情况下,则识别该社交账户为第一人脸图像对应的目标账户。In this embodiment, after the terminal device calculates the matching degree between the first face image and each social account, the terminal device selects the social account with the highest matching degree as the target account corresponding to the first face image, due to social interaction. The matching degree between the facial feature parameter of the account and the facial feature parameter of the first facial image is the highest, indicating that the entity user corresponding to the two has the highest probability of belonging to the same person. In this case, the social account is identified as the first A target account corresponding to a face image.
优选地,终端设备在确定了匹配度最高的社交账户后,还将该匹配度数值与预设的有效匹配度阈值进行比较,若该匹配度最高的数值仍小于有效匹配度阈值,则表示第一人脸图像无法匹配到目标账户,识别该第一人脸图像的目标账户为空;反之,若匹配度最高的数值大于或等于有效匹配度阈值,则识别该目标账户有效。Preferably, after determining the social account with the highest matching degree, the terminal device further compares the matching degree value with a preset effective matching degree threshold. If the highest matching value is still less than the effective matching degree threshold, the indicating A face image cannot be matched to the target account, and the target account identifying the first face image is empty; conversely, if the highest matching value is greater than or equal to the effective matching degree threshold, the target account is identified as valid.
在S105中,创建包含所有所述目标账户的群组。In S105, a group containing all of the target accounts is created.
在本实施例中,终端设备在确定了各个第一人脸图像对应的目标账户后,则创建一个包含所有目标账户的群组。具体地,终端设备获取各个目标账户的账户标识,并将上述各个账户标识填写如群组的群成员的参数值内,从而建立群组与目标账户之间的关联关系,完成群组创建的操作。In this embodiment, after determining the target account corresponding to each first face image, the terminal device creates a group including all target accounts. Specifically, the terminal device acquires the account identifiers of the respective target accounts, and fills in the parameter values of the group members of the group into the parameter values of the group members, thereby establishing an association relationship between the group and the target account, and completing the group creation operation. .
以上可以看出,本申请实施例提供的一种群组创建的方法通过接收一个包含合照图像的群组创建请求,并识别该合照图像中包含的第一人脸图像,确定各个第一人脸图像所对应的社交账户,并把与第一人脸图像对应的社交账户识别为目标账户,从而自动拉取目标账户创建群组。与现有的群组创建方法相比,本申请提供的群组创建方法无需用户手动选取目标账户,只需上传合照图像,即可自动确定该合照图像中隐含的社交账户,并根据识别得到的目标账户创建群组,减少了用户的操作步骤,提高了建群效率。特别在聚会或派对等拍摄合照较为便捷且用户数量较大的场合,也能够实现对在场的所有用户创建群组的目的,避免了账户遗漏添加的情况发生。As can be seen from the above, a group creation method provided by the embodiment of the present application determines a first face by receiving a group creation request including a group image and identifying a first face image included in the group image. The social account corresponding to the image, and identifying the social account corresponding to the first face image as the target account, thereby automatically pulling the target account to create the group. Compared with the existing group creation method, the group creation method provided by the present application does not require the user to manually select the target account, and only needs to upload the photographed image, and the social account implied in the photographed image can be automatically determined and obtained according to the identification. The target account creates a group, which reduces the user's operation steps and improves the efficiency of the group. Especially in the occasions of convenient photographing and large number of users, such as parties or parties, it is also possible to create a group for all users present, and avoid the addition of account omissions.
图2示出了本申请第二实施例提供的一种群组创建的方法的具体实现流程图。参见图2所示,相对于图1所述实施例,本实施例提供的一种群组创建的方法还包括S201~S207,具体详述如下:FIG. 2 is a flowchart showing a specific implementation of a method for group creation according to a second embodiment of the present application. As shown in FIG. 2, with reference to the embodiment shown in FIG. 1, the method for group creation provided by this embodiment further includes S201 to S207, which are specifically described as follows:
在S201中,获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像。In S201, a published image of the social account is acquired, and a second face image included in each of the published images is identified.
需要说明的是,图2的步骤可在S101之前,即终端设备可以在用户发起群组创建请求之前,则确定各个与其关联的社交账户的脸部特征参数,例如该用户的添加了一个社交账户为好友,终端设备则确定该社交账户的脸部特征参数,执行S201~S207的相关操作;也可以在S103之前,需要计算第一人脸图像与各个社交账户之间的匹配度时,执行图2实施例的操作。It should be noted that the step of FIG. 2 may be before S101, that is, the terminal device may determine facial feature parameters of each social account associated with the user before the user initiates the group creation request, for example, the user adds a social account. As a friend, the terminal device determines the facial feature parameter of the social account, and performs related operations of S201 to S207; and before S103, when the matching degree between the first facial image and each social account needs to be calculated, the execution map is executed. 2 operation of the embodiment.
在本实施例中,终端设备会访问该社交账户的数据库,确定该社交账户已发布的图像,该已发布图像包括该社交账户的头像、相册以及聊天过程中发送的图像。In this embodiment, the terminal device accesses a database of the social account to determine an image that has been published by the social account, and the published image includes an avatar of the social account, an album, and an image sent during the chat.
在S202中,根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值。In S202, a weight value of the second face image included in the posted image is determined according to an album category to which the posted image belongs.
在本实施例中,每个已发布图像均对应一个相册类型,该相册类型包括但不限于:头像相册类型、空间相册类型、聊天记录相册类型等。不同的相册类型对应不同的权重值,由于为了确定该社交账户对应实体用户的脸部特征参数,因此需要从已发布的相册中多个人脸图像中定位该实体用户 对应的人脸图像,而不同的相册类型可能包括实体用户的人脸图像的概率各不相同,例如头像相册的概率则较大,因而对应的权重值也较大;而聊天记录相册中可能很多事表情图像或网络图像,因此可能包括实体用户的人脸图像的概率较小,对应的权重值较小,从而根据不同的第二人脸图像所对应的相册类型,确定与之对应的权重值,有效地提高社交账户的脸部特征参数的准确性。In this embodiment, each of the published images corresponds to one album type, and the album type includes, but is not limited to, an avatar album type, a space album type, a chat record album type, and the like. Different album types correspond to different weight values. Because the facial feature parameters of the physical user corresponding to the social account are determined, it is necessary to locate the face image corresponding to the physical user from the plurality of face images in the published album, and different The album type may have different probability of the face image of the physical user, for example, the probability of the avatar album is larger, and the corresponding weight value is also larger; and the chat record album may have many expression images or network images, so The probability that the face image of the entity user may be included is small, and the corresponding weight value is small, so that the weight value corresponding to the second album image corresponding to the different second face image is determined, and the face of the social account is effectively improved. The accuracy of the characteristic parameters.
在S203中,计算各个所述第二人脸图像之间的相似度。In S203, the similarity between each of the second face images is calculated.
在本实施例中,终端设备在识别了各个已发布图像后,得到多个第二人脸图像,并计算各个第二人脸图像之间的相似度,具体地,将所有第二人脸图像两两进行比对,确定两两之间的相似度。其中,相似度的计算可以为:确定第二人脸图像的脸部特征参数,并根据两个第二人脸图像之间脸部特征参数的差值,确定上述两者之间的相似度。In this embodiment, after identifying each published image, the terminal device obtains a plurality of second face images, and calculates a similarity between each second face image, specifically, all second face images. The two and two are compared to determine the similarity between the two. The calculating the similarity may be: determining a facial feature parameter of the second facial image, and determining a similarity between the two based on a difference between the facial feature parameters of the two second facial images.
在S204中,基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值。In S204, the second face images are grouped based on the similarity to obtain a plurality of face groups; wherein the similarity between each of the second face images in each of the face groups Both are greater than the preset similarity threshold.
在本实施例中,终端设备在计算了各个第二人脸图像之间的相似度后,则根据上述相似度对第二人脸图像进行分组操作,得到多个人脸组,同一个人脸组表示其对应的实体用户是相同的,因此同一个人脸组中包含的第二人脸图像之间的相似度均大于预设的相似度阈值。In this embodiment, after calculating the similarity between the respective second face images, the terminal device performs a grouping operation on the second face image according to the similarity to obtain a plurality of face groups, and the same person face group represents The corresponding physical users are the same, so the similarity between the second face images included in the same personal face group is greater than the preset similarity threshold.
通过上述对第二人脸组的划分,则可以将表示相同人脸的图像整合作为同一个对象进行识别,从而识别的对象的数量将大大减少,并且一个人脸组中包含多个第二人脸图像,从而提高了识别得到的人脸特征参数的准确性。By dividing the second face group as described above, the images representing the same face can be integrated as the same object for recognition, so that the number of recognized objects is greatly reduced, and a face group includes a plurality of second persons. The face image, thereby improving the accuracy of the recognized face feature parameters.
在S205中,根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数。In S205, a representative coefficient of the face group is calculated according to a weight value of each of the second face images in the face group and a number of included second face images.
在本实施例中,由于人脸组中第二人脸图像的权重值越大,则表示该人脸组为该社交账户对应用户的人脸的概率越大,并且由于社交账户上传的图像一般为本人的图像较多,因而关于本人的人脸图像的出现次数也较大,可见,通过上述两个参数,可以确定一个人脸组的是否为社交账户对应实体用户的概率大小,在本实施例中用代表系数来表示。In this embodiment, since the weight value of the second face image in the face group is larger, the probability that the face group is the face of the corresponding user of the social account is larger, and the image uploaded by the social account is generally There are many images of my own, so the number of appearances of my face image is also large. It can be seen that through the above two parameters, it is possible to determine whether a face group is a social account corresponding entity user, in this implementation. In the example, it is represented by a representative coefficient.
在本实施例中,终端设备将人脸组中包含的各个第二人脸图像的权重值以及第二人脸图像的个数导入到代表系数计算模型,计算得到该人脸组的代表系数,其中该代表系数计算模型具体为:In this embodiment, the terminal device imports the weight value of each second face image and the number of second face images included in the face group into a representative coefficient calculation model, and calculates a representative coefficient of the face group. The representative coefficient calculation model is specifically:
Figure PCTCN2018083287-appb-000003
Figure PCTCN2018083287-appb-000003
其中,P(x)为人脸组的代表系数;Q为第二人脸图像的个数;G j为第j个第二人脸图像的权重值。 Where P(x) is the representative coefficient of the face group; Q is the number of the second face image; G j is the weight value of the jth second face image.
在S206中,选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组。In S206, the face group having the largest value of the representative coefficient is selected as the representative face group of the social account.
在本实施例中,终端设备在计算了各个人脸组对应的代表系数后,将选取代表系数的值最大的 人脸组,作为该社交账户的代表人脸组。特别地,若代表系数的值最大的人脸组的数量为两个或以上,则选取权重值最大的相册类型所对应的第二人脸图像的个数最多的一个人脸组,作为社交账户的代表人脸组。例如,权重值最大的相册类型为头像相册类型,则从代表系数最大的多个人脸组中,统计各个人脸组包含的头像相册类型的第二人脸图像的个数,选取包含头像相册类型最多的一个人脸组作为社交账户的代表人脸组。In this embodiment, after calculating the representative coefficient corresponding to each face group, the terminal device selects the face group with the largest value of the representative coefficient as the representative face group of the social account. Specifically, if the number of face groups having the largest value of the representative coefficient is two or more, the face group having the largest number of second face images corresponding to the album type having the largest weight value is selected as the social account. The representative face group. For example, if the album type with the largest weight value is the avatar album type, the number of the second face images of the avatar album type included in each face group is counted from the plurality of face groups having the largest representative coefficient, and the avatar album type is selected. The most one face group is the representative face group of the social account.
在S207中,根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。In S207, a facial feature parameter of the social account corresponding user is determined according to the second facial image in the representative facial group.
在本实施例中,终端设备确定了该社交账户的代表人脸组后,则根据该代表人脸组中包含的第二人脸图像,提取各个第二人脸图像中的脸部特征参数,继而通过多个第二人脸图像的脸部特征参数,确定该社交账户对应用户的脸部特征参数。其中,从多个第二人脸图像的脸部特征参数确定该社交账户对应用户的脸部特征参数的方式可以为:从多个参数值中取均值、中间值等方式,在此不一一限定。In this embodiment, after the terminal device determines the representative face group of the social account, the facial feature parameters in each second face image are extracted according to the second face image included in the representative face group. Then, through the facial feature parameters of the plurality of second face images, the facial feature parameters of the user corresponding to the social account are determined. The manner of determining the facial feature parameters of the user corresponding to the social account from the facial feature parameters of the plurality of second facial images may be: taking the average value and the intermediate value from the plurality of parameter values, and not limited.
在本申请实施例中,获取社交账户的已发布图像,并根据已发布图像确定该社交账户对应用户的脸部特征参数,无需社交账户手动输入脸部特征参数,从而减少了用户的操作难度,提高了社交账户信息采集的智能性。In the embodiment of the present application, the published image of the social account is obtained, and the facial feature parameter of the corresponding user of the social account is determined according to the published image, and the facial feature parameter is not manually input by the social account, thereby reducing the operation difficulty of the user. Improve the intelligence of social account information collection.
图3了本申请第三实施例提供的一种群组创建的方法的具体实现流程图。参见图3所示,相对于图1和图2所述实施例,本实施例提供的一种群组创建的方法中还包括S301~S303,具体详述如下:FIG. 3 is a flowchart of a specific implementation of a method for group creation according to a third embodiment of the present application. As shown in FIG. 3, with reference to the embodiment shown in FIG. 1 and FIG. 2, the method for group creation provided in this embodiment further includes S301 to S303, which are specifically described as follows:
在S301中,获取所述用户的位置信息。In S301, location information of the user is acquired.
在本实施例中,终端设备为了确定该发起建群请求用户关联的社交账户有哪些,可以获取该用户当前所在的位置信息,由于对于派对或聚会等场景下建群,各个所需建群的用户均在相同的地理位置区域内,因此,可通过各个用户的地理位置,确定该用户关联的社交账户。In this embodiment, the terminal device may obtain the location information of the current location of the user in order to determine the social account associated with the user initiated by the group establishment, and the group is required to establish a group for a party such as a party or a party. The users are all in the same geographical location area, and therefore, the social accounts associated with the users can be determined by the geographic location of each user.
在本实施例中,终端设备可通过用户的终端的定位装置反馈的定位数据,获取该用户的位置信息,还可以根据为用户的终端提供移动网络的基站的标识,查询该基站所在的位置,将基站所在位置识别为用户的位置信息。In this embodiment, the terminal device may obtain the location information of the user by using the positioning data fed back by the positioning device of the user terminal, and may further query the location of the base station according to the identifier of the base station of the mobile network provided by the user terminal. The location of the base station is identified as the location information of the user.
在S302中,以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域。In S302, the preset effective distance is a radius centered on the location information, and the effective establishment area is determined.
在本实施例中,终端设备在确定了用户所在的位置信息后,则根据该位置信息确定有效建群区域,确定该建群区域的具体方式为:以用户的位置信息为中心,预设的有效距离为半径,得到有效建群图案,继而该有效建群图形所覆盖的区域,则为有效建群区域。在该有效建群区域内的所有社交账户均为该用户关联的社交账户。In this embodiment, after determining the location information of the user, the terminal device determines an effective group establishment area according to the location information, and the specific manner of determining the group establishment area is: centering on the location information of the user, preset The effective distance is the radius, and the effective grouping pattern is obtained, and then the area covered by the effective grouping pattern is the effective grouping area. All social accounts in the active Build Area are social accounts associated with the user.
在S303中,从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述 用户关联的社交账户。In S303, a social account whose current time is located in the valid group-building area is extracted from the social account library as a social account associated with the user.
在本实施例中,终端设备查询社交账户库中各个社交账户的位置信息,并选取当前位置信息在有效建群区域覆盖范围内的所有社交账户作为该用户关联的社交账户。由于在聚会或排队的场景中,需要建群的所有目标用户一般是紧密聚集的,即当前时刻均在聚会或排队的场地内,因此,各个社交账户当前的位置信息也在有效建群区域内,从而可以精准筛选出与该用户相关的社交网络账户。In this embodiment, the terminal device queries location information of each social account in the social account library, and selects all social accounts whose current location information is within the coverage of the effective establishment area as the social account associated with the user. Since all the target users who need to establish a group are generally closely gathered in the scene of the party or the queue, that is, the current time is in the venue of the party or the queue, therefore, the current location information of each social account is also in the effective group establishment area. So that you can accurately filter out the social network accounts associated with the user.
在本申请实施例中,通过位置信息对社交账户进行筛选,从而过滤大量无效的社交账户,提高了群组创建的效率以及准确性。In the embodiment of the present application, the social account is filtered by the location information, thereby filtering a large number of invalid social accounts, thereby improving the efficiency and accuracy of the group creation.
图4了本申请第四实施例提供的一种群组创建的方法的具体实现流程图。参见图4所示,相对于图1和图2所述实施例,本实施例提供的一种群组创建的方法还包括:S401~S403,具体详述如下:FIG. 4 is a flowchart of a specific implementation of a method for group creation according to a fourth embodiment of the present application. As shown in FIG. 4, with reference to the embodiment shown in FIG. 1 and FIG. 2, the method for group creation provided by this embodiment further includes: S401 to S403, which are specifically described as follows:
在S401中,获取所述用户的好友列表。In S401, the buddy list of the user is obtained.
在本实施例中,由于发起群组创建请求时,一般是基于该用户的好友列表中的社交账户进行创建的,而并不在该用户的好友列表中的社交账户通常而言是无法将其拉取至群组内的。因此,终端设备可根据用户的好友列表中包含的社交账户,进行进一步筛选,提取出本次群组创建相关的社交账户。In this embodiment, since the group creation request is initiated, it is generally created based on the social account in the user's buddy list, and the social account that is not in the buddy list of the user is generally unable to pull it. Take it to the group. Therefore, the terminal device may perform further screening according to the social account included in the user's buddy list, and extract the social account related to the group creation.
在本实施例中,终端设备读取该用户的账户在社交网络平台的数据库,确定该用户账户对应的好友列表,以及该好友列表中包含的所有社交账户的账户标识,继而执行S102的相关操作。In this embodiment, the terminal device reads the account of the user's account in the social network platform, determines the buddy list corresponding to the user account, and the account identifiers of all the social accounts included in the buddy list, and then performs the related operations of S102. .
在S402中,基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户。In S402, a valid friend account in the buddy list is determined based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction.
在本实施例中,终端设备在确定了该用户的好友列表中包含的社交账户后,则获取该用户的账户分别与好友列表中各个社交账户之间的互动情况,该互动情况包括互动次数以及最后一次互动的互动时间。例如用户需要发起一个聚会或派对时,预先需要与各个社交账户进行联系,确定聚会的地点以及时间等信息,则在最近的一段时间内,该用户必然与需要建群的社交账户联络过,从而在社交网络平台中则会产生相应的互动记录。因而,终端设备可根据该用户账户与其他社交账户之间的互动情况,筛选出有效好友账户。In this embodiment, after determining the social account included in the buddy list of the user, the terminal device acquires an interaction between the account of the user and each social account in the buddy list, where the interaction includes the number of interactions and The interaction time of the last interaction. For example, when a user needs to initiate a party or a party, the user needs to contact each social account in advance to determine the location and time of the party. In the recent period of time, the user must contact the social account that needs to be established. Corresponding interaction records are generated in the social networking platform. Therefore, the terminal device can filter out a valid friend account according to the interaction between the user account and other social accounts.
在本实施例中,确定好友列表中的有效好友账户的具体方式可以为:互动次数大于预设次数阈值,且最后一次互动时间的日期距离当前日期需要在有效日期范围内,满足上述两个条件的社交账户则为用户的有效好友账户。In this embodiment, the specific manner of determining the valid friend account in the buddy list may be: the interaction number is greater than the preset number threshold, and the date of the last interaction time needs to be within the valid date range from the current date, and the above two conditions are met. The social account is the user's valid friend account.
在S403中,将所述有效好友账户作为与所述用户关联的社交账户。In S403, the valid buddy account is used as a social account associated with the user.
在本实施例中,将满足预设条件的所有社交账户作为用户的有效好友账户,将满足预设条件的其他社交账户作为无效好友账户,并从有效好友账户中选取出本次建群相关的社交账户,因此将有 效好友账户作为该用户关联的社交账户。In this embodiment, all the social accounts that meet the preset conditions are used as valid buddy accounts of the user, and other social accounts that meet the preset conditions are regarded as invalid buddy accounts, and the relevant buddy accounts are selected from the effective buddy accounts. A social account, so a valid buddy account is used as the social account associated with the user.
在本申请实施例中,通过对好友列表中的社交账户进行筛选,选取出与建群相关的有效好友账户,从而减少了所需匹配的社交账户的数量,并过滤了大部分无效的社交账户,提高了群组创建的效率以及准确性。In the embodiment of the present application, by filtering the social accounts in the buddy list, selecting valid buddy accounts related to the faculty, thereby reducing the number of social accounts that need to be matched, and filtering most of the invalid social accounts. Improves the efficiency and accuracy of group creation.
图5了本申请第五实施例提供的一种群组创建的方法的具体实现流程图。参见图5所示,相对于图1所述实施例,本实施例提供的一种群组创建的方法还包括S501~S503,具体详述如下:FIG. 5 is a flowchart of a specific implementation of a method for group creation according to a fifth embodiment of the present application. As shown in FIG. 5, with reference to the embodiment shown in FIG. 1, the method for group creation provided by this embodiment further includes S501 to S503, which are specifically described as follows:
在S501中,获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像。In S501, the address book information of the user is obtained; the address book information includes a plurality of contact information; the contact information includes a contact phone and a contact avatar.
在本实施例中,用户的通讯录可存储于本地存储器内,若本实施例提供的终端设备即为用户所使用的终端,则终端设备可以直接通过读取本地存储器获取该用户的通讯录信息,若该终端设备并非用户所使用的终端,可向用户的终端发送一个通讯录信息获取请求,并接受用户的终端根据该请求返回的通讯录信息。若用户的通讯录信息存储于云端数据库,则终端设备可与云端服务器相连,下载该用户的通讯录信息。In this embodiment, the user's address book can be stored in the local memory. If the terminal device provided by the embodiment is the terminal used by the user, the terminal device can directly obtain the address book information of the user by reading the local memory. If the terminal device is not the terminal used by the user, an address book information acquisition request may be sent to the user terminal, and the address book information returned by the user terminal according to the request may be accepted. If the user's address book information is stored in the cloud database, the terminal device can be connected to the cloud server to download the user's address book information.
在本实施例中,该通讯录信息中包含了多个联系人信息,并且每个联系人信息中记录了该联系人的联系电话以及联系人头像。其中,联系人头像可由用户手动上传,也可以通过该联系电话所关联的社交账户的已发布图像中进行提取,提取的方式可参考图2所述的实施例,在此不再赘述。In this embodiment, the contact information includes a plurality of contact information, and the contact phone and the contact avatar of the contact are recorded in each contact information. The contact avatar may be manually uploaded by the user, or may be extracted from the published image of the social account associated with the contact phone. The manner of the extraction may be referred to the embodiment described in FIG. 2, and details are not described herein again.
在S502中,将绑定所述联系电话的社交账户作为与所述用户关联的社交账户。In S502, a social account that is bound to the contact phone is used as a social account associated with the user.
在本实施例中,由于每个社交账户均绑定了一个联系电话,即社交网络平台中记录了社交账户与联系电话的对应关系。因此终端设备可根据在S501中获取得到的联系电话,从社交网络平台中查询绑定了该联系电话的社交账户,并将该社交账户识别为与用户关联的社交账户。若某一联系电话并无绑定的社交账户,则该联系电话对应的社交账户为空。若某一联系电话对应两个或以上的社交账户,则将绑定了该联系电话的多个社交账户均识别为用户关联的社交账户。In this embodiment, since each social account is bound with a contact phone, the social network platform records the correspondence between the social account and the contact phone. Therefore, the terminal device can query the social network platform bound to the contact phone from the social network platform according to the contact phone obtained in S501, and identify the social account as a social account associated with the user. If a contact phone does not have a social account bound, the social account corresponding to the contact phone is empty. If a contact phone corresponds to two or more social accounts, the plurality of social accounts that are bound to the contact phone are identified as social accounts associated with the user.
在S503中,根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。In S503, a facial feature parameter of the social account corresponding user is determined according to the contact avatar.
在本实施例中,确定了联系电话绑定的社交账户后,则可以将与该联系电话属于同一个联系人信息的联系人头像作为该社交账户对应用户的脸部特征参数。由于联系人头像在设置过程中一般为该联系人实体用户的人脸图像,因此可以直接根据该联系人头像确定该社交账户对应用户的脸部特征参数。In this embodiment, after the social account bound to the phone is determined, the contact avatar that belongs to the same contact information as the contact phone may be used as the facial feature parameter of the user corresponding to the social account. Since the contact avatar is generally a face image of the contact entity user during the setting process, the facial feature parameter of the corresponding user of the social account may be directly determined according to the contact avatar.
在本申请实施例中,通过获取用户的通讯录信息,确定该与该用户关联的社交账户,以及各个关联的社交账户对应用户的脸部特征参数,从而提高了识别的准确率。In the embodiment of the present application, the social account associated with the user is determined by acquiring the address book information of the user, and the facial feature parameters of the user corresponding to the associated social account are improved, thereby improving the accuracy of the recognition.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not mean that the order of execution is performed. The order of execution of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
图6示出了本申请一实施例提供的一种群组创建的终端的结构框图,该群组创建的终端包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1与图1所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。FIG. 6 is a structural block diagram of a group-created terminal according to an embodiment of the present application. Each unit included in the group created by the group is used to execute each step in the embodiment corresponding to FIG. 1. For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown.
参见图6,所述终端设备包括:Referring to FIG. 6, the terminal device includes:
群组创建请求接收单元61,用于接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;a group creation request receiving unit 61, configured to receive a group creation request initiated by a user; the group creation request carries a group image;
脸部特征参数提取单元62,用于识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;The facial feature parameter extracting unit 62 is configured to identify a plurality of first facial images included in the combined image, and extract facial feature parameters of each of the first facial images;
匹配度计算单元63,用于将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:The matching degree calculation unit 63 is configured to import the facial feature parameters of the corresponding facial features of the first facial image and the facial feature parameters of the corresponding social accounts associated with the user into the matching degree calculation model, and calculate the a degree of matching between a face image and each of the social accounts; the matching degree calculation model is specifically:
Figure PCTCN2018083287-appb-000004
Figure PCTCN2018083287-appb-000004
其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
目标账户选取单元64,用于选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;The target account selecting unit 64 is configured to select the social account with the highest matching degree as the target account corresponding to the first face image;
群组创建单元65,用于创建包含所有所述目标账户的群组。The group creating unit 65 is configured to create a group including all the target accounts.
可选地,终端设备还包括:Optionally, the terminal device further includes:
已发布图像获取单元,用于获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像;a published image obtaining unit, configured to acquire a published image of the social account, and identify a second face image included in each of the published images;
权重值确定单元,用于根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值;a weight value determining unit, configured to determine, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image;
相似度计算单元,用于计算各个所述第二人脸图像之间的相似度;a similarity calculation unit, configured to calculate a similarity between each of the second facial images;
人脸图像分组单元,用于基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值;a face image grouping unit, configured to group the second face images based on the similarity to obtain a plurality of face groups; wherein each of the second face images in each of the face groups The similarity between the two is greater than the preset similarity threshold;
代表系数计算单元,用于根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数;a representative coefficient calculation unit, configured to calculate a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images;
代表人脸组确定单元,用于选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组;a representative face group determining unit, configured to select a face group having the largest value of the representative coefficient as a representative face group of the social account;
社交账户特征参数获取单元,用于根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。The social account feature parameter obtaining unit is configured to determine a facial feature parameter of the social account corresponding user according to the second facial image in the representative facial group.
可选地,终端设备还包括:Optionally, the terminal device further includes:
位置信息获取单元,用于获取所述用户的位置信息;a location information obtaining unit, configured to acquire location information of the user;
有效建群区域确定单元,用于以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域;An effective group establishment determining unit is configured to determine, according to the location information, a preset effective distance is a radius, and determine an effective grouping area;
第一关联账户确定单元,用于从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述用户关联的社交账户。The first associated account determining unit is configured to extract, from the social account library, a social account whose current time is located in the valid grouping area as a social account associated with the user.
可选地,终端设备还包括:Optionally, the terminal device further includes:
好友列表获取单元,用于获取所述用户的好友列表;a buddy list obtaining unit, configured to acquire a buddy list of the user;
有效好友账户获取单元,用于基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户;a valid friend account obtaining unit, configured to determine a valid friend account in the friend list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
第二关联账户确定单元,用于将所述有效好友账户作为与所述用户关联的社交账户。And a second associated account determining unit, configured to use the valid friend account as a social account associated with the user.
可选地,终端设备还包括:Optionally, the terminal device further includes:
通讯录信息获取单元,用于获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像;The address book information obtaining unit is configured to obtain the address book information of the user; the address book information includes a plurality of contact information; the contact information includes a contact phone and a contact avatar;
第三关联账户确定单元,用于将绑定所述联系电话的社交账户作为与所述用户关联的社交账户;a third associated account determining unit, configured to use a social account that is bound to the contact phone as a social account associated with the user;
联系人头像提取单元,用于根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。And a contact avatar extraction unit, configured to determine, according to the contact avatar, a facial feature parameter of the user corresponding to the social account.
因此,本申请实施例提供的终端设备同样可以无需用户手动选取目标账户,只需上传合照图像,即可自动确定该合照图像中隐含的社交账户,并根据识别得到的目标账户创建群组,减少了用户的操作步骤,提高了建群效率。特别在聚会或派对等拍摄合照较为便捷且用户数量较大的场合,也能够实现对在场的所有用户创建群组的目的,避免了账户遗漏添加的情况发生。Therefore, the terminal device provided by the embodiment of the present application can also automatically select the social account implicit in the photo image and create a group according to the identified target account by simply uploading the photo of the target without uploading the target account. Reduce the user's operating procedures and improve the efficiency of the group. Especially in the occasions of convenient photographing and large number of users, such as parties or parties, it is also possible to create a group for all users present, and avoid the addition of account omissions.
图7是本申请另一实施例提供的一种终端设备的示意图。如图7所示,该实施例的终端设备7包括:处理器70、存储器71以及存储在所述存储器71中并可在所述处理器70上运行的计算机可读指令72,例如群组创建的程序。所述处理器70执行所述计算机可读指令72时实现上述各个群组创建的方法实施例中的步骤,例如图1所示的S101至S105。或者,所述处理器70执行所述计算机可读指令72时实现上述各装置实施例中各单元的功能,例如图6所示模块61至65功能。FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application. As shown in FIG. 7, the terminal device 7 of this embodiment includes a processor 70, a memory 71, and computer readable instructions 72 stored in the memory 71 and executable on the processor 70, such as group creation. program of. The steps in the method embodiment of implementing the various group creation described above when the processor 70 executes the computer readable instructions 72, such as S101 to S105 shown in FIG. Alternatively, the processor 70, when executing the computer readable instructions 72, implements the functions of the various units in the various apparatus embodiments described above, such as the functions of modules 61 through 65 shown in FIG.
示例性的,所述计算机可读指令72可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器71中,并由所述处理器70执行,以完成本申请。所述一个或多个单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令72在所述终端设备7中的执行过程。例如,所述计算机可读指令72可以被分割成群组创建请求接收单元、 脸部特征参数提取单元、匹配度计算单元、目标账户选取单元以及群组创建单元,各单元具体功能如上所述。Illustratively, the computer readable instructions 72 may be partitioned into one or more units, the one or more units being stored in the memory 71 and executed by the processor 70 to complete the application. . The one or more units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 72 in the terminal device 7. For example, the computer readable instructions 72 may be segmented into a group creation request receiving unit, a facial feature parameter extraction unit, a matching degree calculation unit, a target account selection unit, and a group creation unit, each unit having a specific function as described above.
所述终端设备7可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是终端设备7的示例,并不构成对终端设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those illustrated, or combine some components or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器70可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 70 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器71可以是所述终端设备7的内部存储单元,例如终端设备7的硬盘或内存。所述存储器71也可以是所述终端设备7的外部存储设备,例如所述终端设备7上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器71还可以既包括所述终端设备7的内部存储单元也包括外部存储设备。所述存储器71用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器71还可以用于暂时地存储已经输出或者将要输出的数据。The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, for example, a plug-in hard disk provided on the terminal device 7, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device. The memory 71 is configured to store the computer readable instructions and other programs and data required by the terminal device. The memory 71 can also be used to temporarily store data that has been output or is about to be output.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种群组创建的方法,其特征在于,包括:A method for group creation, comprising:
    接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;Receiving a user-initiated group creation request; the group creation request carrying a group image;
    识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;Identifying a plurality of first face images included in the combined image, and extracting facial feature parameters of each of the first face images;
    将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:Importing a face feature parameter of each of the first face images and a face feature parameter of each user account associated with the user into a matching degree calculation model, and calculating the first face image and each of the The degree of matching between social accounts; the matching degree calculation model is specifically:
    Figure PCTCN2018083287-appb-100001
    Figure PCTCN2018083287-appb-100001
    其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
    选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;Selecting the social account with the highest matching degree as the target account corresponding to the first face image;
    创建包含所有所述目标账户的群组。Create a group that contains all of the target accounts.
  2. 根据权利要求1所述的方法,其特征在于,所述群组创建的方法还包括:The method according to claim 1, wherein the method for group creation further comprises:
    获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像;Obtaining a published image of the social account, and identifying a second face image included in each of the published images;
    根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值;Determining, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image;
    计算各个所述第二人脸图像之间的相似度;Calculating a similarity between each of the second face images;
    基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值;And grouping the second face images according to the similarity to obtain a plurality of face groups; wherein, the similarity between each of the second face images in each of the face groups is greater than a preset Similarity threshold
    根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数;Calculating a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images;
    选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组;Selecting a face group having the largest value of the representative coefficient as a representative face group of the social account;
    根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。Determining, according to the second face image in the representative face group, a facial feature parameter of the social account corresponding user.
  3. 根据权利要求1或2所述的方法,其特征在于,所述群组创建的方法还包括:The method according to claim 1 or 2, wherein the method for group creation further comprises:
    获取所述用户的位置信息;Obtaining location information of the user;
    以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域;Centering on the location information, the preset effective distance is a radius, and determining an effective grouping area;
    从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述用户关联的社交账户。A social account whose current time is located in the valid establishment area is extracted from the social account library as a social account associated with the user.
  4. 根据权利要求1或2所述的方法,其特征在于,所述群组创建的方法还包括:The method according to claim 1 or 2, wherein the method for group creation further comprises:
    获取所述用户的好友列表;Obtaining a list of friends of the user;
    基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户;Determining a valid friend account in the buddy list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
    将所述有效好友账户作为与所述用户关联的社交账户。The valid buddy account is used as a social account associated with the user.
  5. 根据权利要求1所述的方法,其特征在于,所述群组创建的方法还包括:The method according to claim 1, wherein the method for group creation further comprises:
    获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像;Obtaining address book information of the user; the address book information includes multiple contact information; the contact information includes a contact phone and a contact avatar;
    将绑定所述联系电话的社交账户作为与所述用户关联的社交账户;The social account that is bound to the contact phone is used as a social account associated with the user;
    根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。Determining, according to the contact avatar, a facial feature parameter of the social account corresponding user.
  6. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    群组创建请求接收单元,用于接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;a group creation request receiving unit, configured to receive a group creation request initiated by a user; the group creation request carries a group image;
    脸部特征参数提取单元,用于识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;a facial feature parameter extracting unit, configured to identify a plurality of first facial images included in the combined image, and extract facial feature parameters of each of the first facial images;
    匹配度计算单元,用于将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:a matching degree calculation unit, configured to import a face feature parameter of each of the first face images and a face feature parameter of each social account associated with the user into a matching degree calculation model, and calculate the first a degree of matching between the face image and each of the social accounts; the matching degree calculation model is specifically:
    Figure PCTCN2018083287-appb-100002
    Figure PCTCN2018083287-appb-100002
    其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
    目标账户选取单元,用于选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;a target account selecting unit, configured to select the social account with the highest matching degree as a target account corresponding to the first face image;
    群组创建单元,用于创建包含所有所述目标账户的群组。A group creation unit for creating a group containing all of the target accounts.
  7. 根据权利要求6所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 6, wherein the terminal device further comprises:
    已发布图像获取单元,用于获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像;a published image obtaining unit, configured to acquire a published image of the social account, and identify a second face image included in each of the published images;
    权重值确定单元,用于根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值;a weight value determining unit, configured to determine, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image;
    相似度计算单元,用于计算各个所述第二人脸图像之间的相似度;a similarity calculation unit, configured to calculate a similarity between each of the second facial images;
    人脸图像分组单元,用于基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值;a face image grouping unit, configured to group the second face images based on the similarity to obtain a plurality of face groups; wherein each of the second face images in each of the face groups The similarity between the two is greater than the preset similarity threshold;
    代表系数计算单元,用于根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数;a representative coefficient calculation unit, configured to calculate a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images;
    代表人脸组确定单元,用于选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组;a representative face group determining unit, configured to select a face group having the largest value of the representative coefficient as a representative face group of the social account;
    社交账户特征参数获取单元,用于根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。The social account feature parameter obtaining unit is configured to determine a facial feature parameter of the social account corresponding user according to the second facial image in the representative facial group.
  8. 根据权利要求6或7所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 6 or 7, wherein the terminal device further comprises:
    位置信息获取单元,用于获取所述用户的位置信息;a location information obtaining unit, configured to acquire location information of the user;
    有效建群区域确定单元,用于以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域;An effective group establishment determining unit is configured to determine, according to the location information, a preset effective distance is a radius, and determine an effective grouping area;
    第一关联账户确定单元,用于从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述用户关联的社交账户。The first associated account determining unit is configured to extract, from the social account library, a social account whose current time is located in the valid grouping area as a social account associated with the user.
  9. 根据权利要求6或7所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 6 or 7, wherein the terminal device further comprises:
    好友列表获取单元,用于获取所述用户的好友列表;a buddy list obtaining unit, configured to acquire a buddy list of the user;
    有效好友账户获取单元,用于基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户;a valid friend account obtaining unit, configured to determine a valid friend account in the friend list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
    第二关联账户确定单元,用于将所述有效好友账户作为与所述用户关联的社交账户。And a second associated account determining unit, configured to use the valid friend account as a social account associated with the user.
  10. 根据权利要求6所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 6, wherein the terminal device further comprises:
    通讯录信息获取单元,用于获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像;The address book information obtaining unit is configured to obtain the address book information of the user; the address book information includes a plurality of contact information; the contact information includes a contact phone and a contact avatar;
    第三关联账户确定单元,用于将绑定所述联系电话的社交账户作为与所述用户关联的社交账户;a third associated account determining unit, configured to use a social account that is bound to the contact phone as a social account associated with the user;
    联系人头像提取单元,用于根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。And a contact avatar extraction unit, configured to determine, according to the contact avatar, a facial feature parameter of the user corresponding to the social account.
  11. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device, comprising: a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable The following steps are implemented when the instruction is executed:
    接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;Receiving a user-initiated group creation request; the group creation request carrying a group image;
    识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;Identifying a plurality of first face images included in the combined image, and extracting facial feature parameters of each of the first face images;
    将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:Importing a face feature parameter of each of the first face images and a face feature parameter of each user account associated with the user into a matching degree calculation model, and calculating the first face image and each of the The degree of matching between social accounts; the matching degree calculation model is specifically:
    Figure PCTCN2018083287-appb-100003
    Figure PCTCN2018083287-appb-100003
    其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
    选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;Selecting the social account with the highest matching degree as the target account corresponding to the first face image;
    创建包含所有所述目标账户的群组。Create a group that contains all of the target accounts.
  12. 根据权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The terminal device according to claim 11, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像;Obtaining a published image of the social account, and identifying a second face image included in each of the published images;
    根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值;Determining, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image;
    计算各个所述第二人脸图像之间的相似度;Calculating a similarity between each of the second face images;
    基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值;And grouping the second face images according to the similarity to obtain a plurality of face groups; wherein, the similarity between each of the second face images in each of the face groups is greater than a preset Similarity threshold
    根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数;Calculating a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images;
    选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组;Selecting a face group having the largest value of the representative coefficient as a representative face group of the social account;
    根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。Determining, according to the second face image in the representative face group, a facial feature parameter of the social account corresponding user.
  13. 根据权利要求11或12所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The terminal device according to claim 11 or 12, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述用户的位置信息;Obtaining location information of the user;
    以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域;Centering on the location information, the preset effective distance is a radius, and determining an effective grouping area;
    从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述用户关联的社交账户。A social account whose current time is located in the valid establishment area is extracted from the social account library as a social account associated with the user.
  14. 根据权利要求11或12所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:The terminal device according to claim 11 or 12, wherein the processor executes the computer readable instructions to implement the following steps:
    获取所述用户的好友列表;Obtaining a list of friends of the user;
    基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户;Determining a valid friend account in the buddy list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
    将所述有效好友账户作为与所述用户关联的社交账户。The valid buddy account is used as a social account associated with the user.
  15. 根据权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还 实现如下步骤:The terminal device according to claim 11, wherein said processor further implements the following steps when said computer readable instructions are executed:
    获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像;Obtaining address book information of the user; the address book information includes multiple contact information; the contact information includes a contact phone and a contact avatar;
    将绑定所述联系电话的社交账户作为与所述用户关联的社交账户;The social account that is bound to the contact phone is used as a social account associated with the user;
    根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。Determining, according to the contact avatar, a facial feature parameter of the social account corresponding user.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    接收用户发起的群组创建请求;所述群组创建请求携带有合照图像;Receiving a user-initiated group creation request; the group creation request carrying a group image;
    识别所述合照图像包含的多个第一人脸图像,并提取各个所述第一人脸图像的脸部特征参数;Identifying a plurality of first face images included in the combined image, and extracting facial feature parameters of each of the first face images;
    将任一所述第一人脸图像的脸部特征参数分别与所述用户关联的各个社交账户对应用户的脸部特征参数导入匹配度计算模型,计算所述第一人脸图像与各个所述社交账户之间的匹配度;所述匹配度计算模型具体为:Importing a face feature parameter of each of the first face images and a face feature parameter of each user account associated with the user into a matching degree calculation model, and calculating the first face image and each of the The degree of matching between social accounts; the matching degree calculation model is specifically:
    Figure PCTCN2018083287-appb-100004
    Figure PCTCN2018083287-appb-100004
    其中,所述S为所述第一人脸图像与所述社交账户之间的匹配度;所述n为所述第一人脸图像包含的脸部特征参数的个数;所述F i为第i个所述第一人脸图像的脸部特征参数的参数值;所述A i为第i个所述社交账户对应用户的脸部特征参数的参数值;所述e为自然常数; The S is a degree of matching between the first face image and the social account; the n is the number of facial feature parameters included in the first face image; the F i is a parameter value of a facial feature parameter of the i-th first facial image; the A i is a parameter value of a facial feature parameter of the user corresponding to the i-th social account; the e is a natural constant;
    选取所述匹配度最高的社交账户作为所述第一人脸图像对应的目标账户;Selecting the social account with the highest matching degree as the target account corresponding to the first face image;
    创建包含所有所述目标账户的群组。Create a group that contains all of the target accounts.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer readable storage medium of claim 16, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述社交账户的已发布图像,并识别各个所述已发布图像包含的第二人脸图像;Obtaining a published image of the social account, and identifying a second face image included in each of the published images;
    根据所述发布图像所属的相册类别,确定该发布图像包含的所述第二人脸图像的权重值;Determining, according to an album category to which the posted image belongs, a weight value of the second face image included in the posted image;
    计算各个所述第二人脸图像之间的相似度;Calculating a similarity between each of the second face images;
    基于所述相似度对所述第二人脸图像进行分组,得到多个人脸组;其中,每个所述人脸组中的各个所述第二人脸图像之间的相似度均大于预设的相似度阈值;And grouping the second face images according to the similarity to obtain a plurality of face groups; wherein, the similarity between each of the second face images in each of the face groups is greater than a preset Similarity threshold
    根据所述人脸组中的各个所述第二人脸图像的权重值以及包含的第二人脸图像的个数,计算所述人脸组的代表系数;Calculating a representative coefficient of the face group according to a weight value of each of the second face images in the face group and a number of included second face images;
    选取所述代表系数的值最大的人脸组作为所述社交账户的代表人脸组;Selecting a face group having the largest value of the representative coefficient as a representative face group of the social account;
    根据所述代表人脸组中的第二人脸图像确定所述社交账户对应用户的脸部特征参数。Determining, according to the second face image in the representative face group, a facial feature parameter of the social account corresponding user.
  18. 根据权利要求16或17所述的计算机可读存储介质,其特征在于,所述处理器执行所述 计算机可读指令时还实现如下步骤:The computer readable storage medium according to claim 16 or 17, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述用户的位置信息;Obtaining location information of the user;
    以所述位置信息为中心,预设的有效距离为半径,确定有效建群区域;Centering on the location information, the preset effective distance is a radius, and determining an effective grouping area;
    从社交账户库中提取当前时刻位于所述有效建群区域内的社交账户,作为与所述用户关联的社交账户。A social account whose current time is located in the valid establishment area is extracted from the social account library as a social account associated with the user.
  19. 根据权利要求16或17所述的计算机可读存储介质,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer readable storage medium according to claim 16 or 17, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述用户的好友列表;Obtaining a list of friends of the user;
    基于好友列表中的社交账户与用户的账户之间的互动次数以及最后一次互动的互动时间,确定所述好友列表中的有效好友账户;Determining a valid friend account in the buddy list based on the number of interactions between the social account in the buddy list and the user's account and the interaction time of the last interaction;
    将所述有效好友账户作为与所述用户关联的社交账户。The valid buddy account is used as a social account associated with the user.
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer readable storage medium of claim 16, wherein the processor further implements the following steps when the computer readable instructions are executed:
    获取所述用户的通讯录信息;所述通信录信息中包含多个联系人信息;所述联系人信息包含联系电话以及联系人头像;Obtaining address book information of the user; the address book information includes multiple contact information; the contact information includes a contact phone and a contact avatar;
    将绑定所述联系电话的社交账户作为与所述用户关联的社交账户;The social account that is bound to the contact phone is used as a social account associated with the user;
    根据所述联系人头像确定所述社交账户对应用户的脸部特征参数。Determining, according to the contact avatar, a facial feature parameter of the social account corresponding user.
PCT/CN2018/083287 2018-02-07 2018-04-17 Group creation method and terminal thereof WO2019153504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810121711.2A CN108512670B (en) 2018-02-07 2018-02-07 Group creation method and terminal thereof
CN201810121711.2 2018-02-07

Publications (1)

Publication Number Publication Date
WO2019153504A1 true WO2019153504A1 (en) 2019-08-15

Family

ID=63375618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083287 WO2019153504A1 (en) 2018-02-07 2018-04-17 Group creation method and terminal thereof

Country Status (2)

Country Link
CN (1) CN108512670B (en)
WO (1) WO2019153504A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628876A (en) * 2020-05-22 2020-09-04 腾讯科技(深圳)有限公司 Method and device for establishing group and computer equipment

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147535A (en) * 2018-11-06 2020-05-12 中国电信股份有限公司 Method and device for preventing Internet of things platform from repeatedly creating terminal equipment
CN111262774B (en) * 2018-11-30 2022-09-30 百度在线网络技术(北京)有限公司 Method and apparatus for transmitting information
CN110033388B (en) * 2019-03-06 2022-07-08 百度在线网络技术(北京)有限公司 Social relationship establishing method and device and server
CN110233743A (en) * 2019-05-31 2019-09-13 维沃移动通信有限公司 A kind of communication group creating method, terminal device and computer readable storage medium
CN111339811B (en) * 2019-08-27 2024-02-20 杭州海康威视系统技术有限公司 Image processing method, device, equipment and storage medium
CN110890970B (en) * 2019-11-25 2022-06-14 网易(杭州)网络有限公司 Method and device for creating group, storage medium and electronic equipment
CN111079030B (en) * 2019-12-24 2024-04-26 维沃移动通信有限公司 Group searching method and electronic equipment
CN113098756B (en) * 2021-03-25 2023-04-07 深圳市艾酷通信软件有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN115333877B (en) * 2021-04-26 2024-02-23 北京字跳网络技术有限公司 Information processing method, device, terminal and storage medium
CN113411193B (en) * 2021-06-11 2023-04-21 维沃移动通信有限公司 Message sending method, device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811286A (en) * 2012-07-27 2012-12-05 广东欧珀移动通信有限公司 Group creation method for address book
CN105740426A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Human face recognition based picture sending method and apparatus
US20160246848A1 (en) * 2013-10-14 2016-08-25 Nokia Technologies Oy Method and apparatus for identifying media files based upon contextual relationships
CN106559317A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and apparatus that account information is sent based on instant messaging
CN107154890A (en) * 2016-03-02 2017-09-12 腾讯科技(深圳)有限公司 Method, the apparatus and system of contact person is added in social networks

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120124715A (en) * 2011-05-04 2012-11-14 (주)신타지아인코퍼레이티드 Method and system for providing game service using user information
CN103401893B (en) * 2013-06-26 2017-03-01 小米科技有限责任公司 A kind of method creating user communication group, device and equipment
CN103391313B (en) * 2013-06-26 2016-12-28 小米科技有限责任公司 A kind of create the method for user communication group, device and equipment
CN104994003B (en) * 2015-06-30 2018-01-26 广东欧珀移动通信有限公司 A kind of group chat creation method, mobile terminal, server and system
CN106557742A (en) * 2016-10-24 2017-04-05 宇龙计算机通信科技(深圳)有限公司 Group sets up and management method and system
CN106791182A (en) * 2017-01-20 2017-05-31 维沃移动通信有限公司 A kind of chat method and mobile terminal based on image
CN107294742B (en) * 2017-07-01 2020-07-17 珠海格力电器股份有限公司 Method and device for creating conference group and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811286A (en) * 2012-07-27 2012-12-05 广东欧珀移动通信有限公司 Group creation method for address book
US20160246848A1 (en) * 2013-10-14 2016-08-25 Nokia Technologies Oy Method and apparatus for identifying media files based upon contextual relationships
CN106559317A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and apparatus that account information is sent based on instant messaging
CN105740426A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Human face recognition based picture sending method and apparatus
CN107154890A (en) * 2016-03-02 2017-09-12 腾讯科技(深圳)有限公司 Method, the apparatus and system of contact person is added in social networks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628876A (en) * 2020-05-22 2020-09-04 腾讯科技(深圳)有限公司 Method and device for establishing group and computer equipment
CN111628876B (en) * 2020-05-22 2023-04-14 腾讯科技(深圳)有限公司 Method and device for establishing group and computer equipment

Also Published As

Publication number Publication date
CN108512670A (en) 2018-09-07
CN108512670B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2019153504A1 (en) Group creation method and terminal thereof
JP7091504B2 (en) Methods and devices for minimizing false positives in face recognition applications
US10900772B2 (en) Apparatus and methods for facial recognition and video analytics to identify individuals in contextual video streams
US9996735B2 (en) Facial recognition
US10043059B2 (en) Assisted photo-tagging with facial recognition models
EP3063731B1 (en) Image cache for replacing portions of images
WO2019119505A1 (en) Face recognition method and device, computer device and storage medium
WO2016023336A1 (en) Method, apparatus and device for storing pictures in classified mode, and computer storage medium
WO2021027540A1 (en) Lost person information matching method and apparatus, computer device, and storage medium
JP2017531950A (en) Method and apparatus for constructing a shooting template database and providing shooting recommendation information
TW201734712A (en) Information display method, device and system
CN112199530B (en) Multi-dimensional face library picture automatic updating method, system, equipment and medium
WO2021104097A1 (en) Meme generation method and apparatus, and terminal device
WO2023173646A1 (en) Expression recognition method and apparatus
WO2020164266A1 (en) Living body detection method and system, and terminal device
JP6046501B2 (en) Feature point output device, feature point output program, feature point output method, search device, search program, and search method
WO2018028253A1 (en) Information processing method, apparatus and storage medium
KR102594093B1 (en) Dermatologic treatment recommendation system using deep learning model and method thereof
WO2021078037A1 (en) Facial skin detection method and apparatus
CA2827639C (en) Facial recognition
WO2022161235A1 (en) Identity recognition method, apparatus and device, storage medium, and computer program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18905285

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/11/2020

122 Ep: pct application non-entry in european phase

Ref document number: 18905285

Country of ref document: EP

Kind code of ref document: A1