WO2020177286A1 - 社交关系的建立方法、装置及服务器 - Google Patents

社交关系的建立方法、装置及服务器 Download PDF

Info

Publication number
WO2020177286A1
WO2020177286A1 PCT/CN2019/103961 CN2019103961W WO2020177286A1 WO 2020177286 A1 WO2020177286 A1 WO 2020177286A1 CN 2019103961 W CN2019103961 W CN 2019103961W WO 2020177286 A1 WO2020177286 A1 WO 2020177286A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
users
group photo
identifier
social relationship
Prior art date
Application number
PCT/CN2019/103961
Other languages
English (en)
French (fr)
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 WO2020177286A1 publication Critical patent/WO2020177286A1/zh

Links

Images

Classifications

    • 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Definitions

  • the embodiments of the present application relate to the field of Internet technology, and in particular, to a method, device, and server for establishing a social relationship.
  • the embodiments of the present application provide a method, a device, and a server for establishing a social relationship.
  • the social relationship of a first user is established based on the first group photo of the first user, thereby expanding the social circle of the first user.
  • an embodiment of the present application provides a method for establishing a social relationship, which is applied to a server, and includes:
  • the identity of the first user and the first database perform face recognition on each user in the first group photo to obtain the identity of at least one second user, wherein the first database stores different users logos and avatars of different users;
  • the identification of at least one third user is determined, and the third user is among the second users who have not established a social relationship with the first user user;
  • the identifier of each third user is sent to the first terminal, so that the first terminal establishes a social relationship between the first user and each third user.
  • the performing face recognition on each user in the first group photo according to the identity of the first user and the first database to obtain the identity of at least one second user includes:
  • the avatar of the first user determine the faces of other users except the face of the first user among the faces corresponding to each user;
  • the similarity between the faces of the remaining users and the avatars of the users in the first database is obtained, and the avatars of the users whose similarity meets the preset conditions are determined.
  • the identifier serves as the identifier of the second user.
  • the method further includes:
  • the identifiers of each of the second users determine the identifier of the fourth user, and the fourth user is at least part of the second users;
  • the identifier of the fifth user is sent to the first terminal, so that the first terminal establishes a social relationship between the first user and the fifth user.
  • a preset area is identified in the first group photo, and the preset area includes one or more of the second users;
  • the determining the identity of the fourth user among the identities of the second users includes:
  • the acquiring the identifier of the fifth user who has a social relationship with the fourth user includes:
  • face recognition is performed on each user in the second group photo according to the identification of the fourth user and the first database to obtain the identification of the fifth user.
  • the method further includes:
  • the identifier of the first user is sent to a second terminal corresponding to each of the third users, so that the second terminal establishes a social relationship between the third user and the first user.
  • the method further includes:
  • the identifier of the first user is sent to a third terminal corresponding to each of the fifth users, so that the third terminal establishes a social relationship between the fifth user and the first user.
  • an embodiment of the present application provides an apparatus for establishing a social relationship, which is applied to a server, and includes:
  • the first obtaining module is configured to obtain the first group photo and the identity of the first user sent by the first terminal corresponding to the first user;
  • the second acquisition module is configured to perform face recognition on each user in the first group photo according to the identifier of the first user and the first database, and acquire the identifier of at least one second user, wherein the first user A database stores the identities of different users and the avatars of different users;
  • the second acquisition module is further configured to determine the identity of at least one third user based on the identity of each second user and the current social relationship of the first user, and the third user is a member of the second user. A user who has established a social relationship with the first user;
  • the sending module is configured to send the identity of each of the third users to the first terminal, so that the first terminal establishes a social relationship between the first user and each of the third users.
  • the second obtaining module is specifically configured to:
  • the avatar of the first user determine the faces of other users except the face of the first user among the faces corresponding to each user;
  • the similarity between the faces of the remaining users and the avatars of the users in the first database is obtained, and the avatars of the users whose similarity meets the preset conditions are determined.
  • the identifier serves as the identifier of the second user.
  • the device further includes: a third acquisition module, configured to:
  • the identifiers of each of the second users determine the identifier of the fourth user, and the fourth user is at least part of the second users;
  • the identifier of the fifth user is sent to the first terminal, so that the first terminal establishes a social relationship between the first user and the fifth user.
  • a preset area is identified in the first group photo, and the preset area includes one or more of the second users;
  • the third acquisition module is specifically used for:
  • the third obtaining module is specifically configured to:
  • face recognition is performed on each user in the second group photo according to the identification of the fourth user and the first database to obtain the identification of the fifth user.
  • the sending module is also used to:
  • the identifier of the first user is sent to a second terminal corresponding to each of the third users, so that the second terminal establishes a social relationship between the third user and the first user.
  • the sending module is also used to:
  • the identifier of the first user is sent to a third terminal corresponding to each of the fifth users, so that the third terminal establishes a social relationship between the fifth user and the first user.
  • an embodiment of the present application provides a server, including: at least one processor and a memory;
  • the memory stores computer execution instructions
  • the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method according to any one of the first aspect.
  • an embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions.
  • the processor executes the computer-executable instructions, the computer-readable The method described in the item.
  • the method, device, and server for establishing a social relationship provided by the embodiments of the present application.
  • the server obtains the first group photo and the identity of the first user sent by the first terminal corresponding to the first user, and according to the identity of the first user and
  • the first database performs face recognition on each user in the first group photo, obtains the identification of at least one second user, and determines at least one according to the identification of each second user and the current social relationship of the first user
  • the identity of the third user sending the identity of each of the third users to the first terminal, so that the first terminal establishes the social relationship between the first user and each of the third users;
  • the first group photo of the first user includes the strong connection and/or weak connection of the first user.
  • Figure 1 is a schematic diagram of a scenario to which an embodiment of the application is applicable
  • FIG. 2 is a schematic flowchart of an embodiment of a method for establishing a social relationship provided by an embodiment of the application
  • FIG. 3 is a flowchart of another embodiment of the method for establishing a social relationship provided by an embodiment of the application
  • FIG. 4 is a schematic flowchart of a method for obtaining an identifier of a fifth user who has a social relationship with a fourth user according to an embodiment of the application;
  • FIG. 5 is a schematic flowchart of another embodiment of a method for establishing a social relationship provided by an embodiment of this application;
  • FIG. 6 is a schematic diagram of an interface for uploading a group photo of a terminal according to an embodiment of the application
  • FIG. 7 is a schematic structural diagram of an embodiment of an apparatus for establishing a social relationship provided by an embodiment of this application.
  • FIG. 8 is a schematic structural diagram of another embodiment of an apparatus for establishing a social relationship according to an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of a server provided by an embodiment of the application.
  • the user’s personal relationship is usually hidden in the group photo.
  • the social relationship between the first user and each second user is divided into two types ,
  • the first is: the first user and the second user have a strong connection relationship, for example: the first user and the second user are relatives and friends, the first user is very familiar with the second user;
  • the second is: first The user and the second user have a weak connection relationship, that is, the first user is not very familiar with the second user.
  • the embodiments of the present application provide a method, device, and server for establishing a social network.
  • the first user By performing face recognition on each user in the first group photo of the first user, the first user’s first group photo is realized based on the first group photo.
  • FIG. 1 is a schematic diagram of the applicable scenario of the embodiment of the present application. As shown in FIG. 1, it includes a server and at least one terminal. Among them, the server and each terminal are connected through the Internet or the mobile Internet.
  • the server is a social network server
  • the server runs a social network server
  • the terminal runs a social network client. Users can interact with the server through the client to achieve the establishment of social relationships.
  • the social network in this embodiment refers to a network used to manage relationships between people in a broad sense.
  • the method for establishing social relationships provided in this embodiment can be applied to any existing social network, and can also be applied to future possibilities.
  • the method for establishing a social network may be executed by the server in FIG. 1, specifically, it may be set in the server in FIG. 1 in the form of software and/or hardware.
  • FIG. 2 is a schematic flowchart of an embodiment of a method for establishing a social relationship provided by an embodiment of the application.
  • the method in this embodiment may be executed by the server in FIG. 1.
  • the method of this embodiment includes:
  • S201 Acquire a first group photo and an identifier of the first user sent by the first terminal corresponding to the first user.
  • the client of the social network runs on the first terminal, and the server of the social network runs on the server.
  • the first user uploads the first group photo of himself and others to the client, and then the client sends the identification of the first user and the first group photo to the server.
  • the embodiment of the present application does not specifically limit the format of the first group photo, and it may be a group photo in any format.
  • the group photo may be a group photo of two users, or a group photo of multiple users.
  • the embodiment of the present application does not specifically limit the number of users in the group photo.
  • S202 Perform face recognition on each user in the first group photo according to the identity of the first user and the first database, and obtain the identity of at least one second user, wherein the first database stores Identification of different users and avatars of different users.
  • the identification of each second user is obtained by matching the face of each user in the first group photo with the first database.
  • the identifier of the user may be any identifier used to characterize the user, including but not limited to: name, account number, nickname, etc.
  • the first database stores the identities of different users and the avatars of different users.
  • the first database may be a registered user database of a social network, which is used to store the registration information of all registered users, including but not limited to: name, nickname, account number, avatar, etc.
  • the first database is a registered user database of a social network
  • the user that can be identified from the first database is called the second user. That is, the second user is part or all of the remaining users in the first group photo except the first user.
  • the process of performing face recognition on each user in the first group photo according to the first database may have multiple implementation manners, and only one optional implementation manner will be described in detail below.
  • the identification of the first user and the first database determine the avatar of the first user; perform face detection on the first group photo to obtain the corresponding face of each user; according to the first user
  • the avatar of each user determines the faces of the remaining users except the face of the first user from the faces corresponding to each user; for each of the faces of the remaining users, obtain the faces of the remaining users and
  • the identifier of the user corresponding to the avatar whose similarity meets a preset condition is used as the identifier of the second user.
  • various existing algorithms and models can be used to implement the process of face detection on the first group photo.
  • the existing face detection can use template matching model, skin color model, Active Appearance Model (AAM), Support Vector Machine (SVM) model, Adaboost model, etc., their detection accuracy and speed Each is different.
  • AAM Active Appearance Model
  • SVM Support Vector Machine
  • Adaboost model Adaboost model
  • the face detection in this embodiment is not limited to the above-mentioned technology, and can be implemented by using other various algorithms and models as needed.
  • the process of recognizing the face is essentially a process of extracting features from the face, and calculating the similarity of the extracted features, and matching the facial features through machine learning algorithms.
  • the extraction of facial feature data includes template-based feature extraction, algebraic method-based feature extraction, elastic matching method-based feature extraction, neural network-based feature extraction, and wavelet multi-resolution feature extraction.
  • facial feature data such as principal component analysis (PCA) and so on.
  • PCA principal component analysis
  • the facial feature extraction in this embodiment is not limited to the above-mentioned technology, and various algorithms and models can be used to implement it according to actual needs.
  • S203 Determine the identity of at least one third user according to the identity of each second user and the current social relationship of the first user, where the third user is one of the second users that has not established a social relationship with the first user Relationship users.
  • the second user who has not established a social relationship with the first user is referred to as the third user.
  • S204 Send the identity of each third user to the first terminal, so that the first terminal establishes a social relationship between the first user and each third user.
  • the server sends the identity of each third user to the first terminal corresponding to the first user, and the first terminal establishes the social interaction between the first user and each third user. relationship.
  • the first terminal may provide the first user with a list including all third users, and the user can select some or all of them according to his needs and wishes. Build social relationships.
  • the manner in which the first terminal establishes the social relationship between the first user and the third user may be for the first terminal to add the third user as a friend of the first user, or for the first terminal to add the third user
  • the user is added to the follow user list of the first user, of course, it may also be in other ways of social relations, which is not specifically limited in the embodiment of the present application.
  • the first user can learn the status of the third user, information shared by the third user, and other information in a timely manner.
  • the method of this embodiment may further include:
  • the identifier of the first user is sent to a second terminal corresponding to each of the third users, so that the second terminal establishes a social relationship between the third user and the first user.
  • the identification of the first user may also be sent to the second terminal corresponding to the third user, so that the second terminal establishes the relationship between the third user and the first user. Therefore, this embodiment also implements the expansion of the social relationship of the third user based on the first group photo of the first user.
  • the following example illustrates the implementation process of this embodiment. It is assumed that the first user is user A, and user A sends a first group photo to the server through the first terminal, where the first group photo is user A, user B, user C, A group photo of user D, assuming that all the above-mentioned users have registered in the social network. After performing face recognition on each user in the first group photo according to the first database, the identification of the second user (user B, user C, user D) can be obtained. Assuming that user A and user D have established a social relationship, the identities of the third user determined by S203 are the identities of user B and user C.
  • the server sends the identities of the user B and the user C to the first terminal, and the first terminal establishes the social relationship between the user A and the user B, and the social relationship between the user A and the user C.
  • the server can also send the identity of user A to the terminal corresponding to user B and the terminal corresponding to user C, so that the terminal corresponding to user B establishes the social relationship between user B and user A, and the terminal corresponding to user C establishes the user The social relationship between C and user A.
  • the server obtains the first group photo sent by the first terminal corresponding to the first user and the identification of the first user, and according to the identification of the first user and the first database, Perform face recognition on each user in the first group photo, obtain the identity of at least one second user, and determine the identity of at least one third user based on the identity of each second user and the current social relationship of the first user Identification, sending the identification of each of the third users to the first terminal, so that the first terminal establishes the social relationship between the first user and each of the third users;
  • the first group photo includes the strong connection and/or weak connection of the first user.
  • the embodiment shown in FIG. 2 realizes the face recognition of each user in the first group photo according to the first database, obtains the second user who can be identified, and determines that the second user is the same as the first user.
  • the third user who has not yet established a social relationship expands the social circle of the first user by establishing a social relationship between the first user and the third user.
  • the social relationship of the first user can be further mined according to the social relationship of the second user.
  • the first user is user A
  • user A sends the first group photo to the server through the first terminal
  • the first group photo is user A, user B, user C, A group photo of user D.
  • the identification of the second user is obtained according to the embodiment shown in FIG. 2, this embodiment can be based on all or part of user B, user C, and user D
  • the social relationship of user A is further explored.
  • FIG. 3 is an example flow diagram of another embodiment of a method for establishing a social relationship provided by an embodiment of the application. As shown in FIG. 3, the method of this embodiment includes:
  • S301 Determine the identity of the fourth user among the identities of the second users, and the fourth users are at least part of the second users.
  • the social relationships of the first user are further mined based on the social relationships of all the second users in the first group photo; in another optional implementation manner, according to the A part of the social relationship of the second user in a group photo further explores the social relationship of the first user.
  • the second user on which the social relationship of the first user is further mined is called the fourth user, that is, the fourth user is all or part of the second user.
  • An application scenario corresponding to this embodiment may be that the server performs face recognition on each user in the first group photo, and after obtaining the identity of each second user, the server automatically determines the identity of the fourth user according to the identity of each second user .
  • S302 Acquire an identifier of a fifth user who has a social relationship with the fourth user.
  • the identity of the fifth user may be obtained according to the current social relationship of the fourth user, for example: obtaining the friend list of the fourth user, or following the user list, and comparing the fourth user’s friends or the following user As the fifth user.
  • a user who has taken a photo with the fourth user may be regarded as the fifth user by performing face recognition on a photo taken with the fourth user.
  • Fig. 4 is a schematic flow chart of a method for obtaining the identity of a fifth user who has a social relationship with a fourth user according to an embodiment of the application, as shown in Fig. 4, including:
  • S3021 Acquire at least one second group photo in the second database according to the identifier of the fourth user, where the second group photo is a group photo of the fourth user and the fifth user.
  • the second database may be a group photo database on the server side, in which all group photo photos uploaded by different users are stored. Specifically, the second database stores different group photos and the identifications of users included in each group photo.
  • each group photo in the second database The storage process of each group photo in the second database will be briefly described below in conjunction with the embodiment shown in FIG. 2.
  • the server performs face recognition on each user in the first group photo according to the first database, and after obtaining the identification of the second user, establishes the first group photo and the first user And the association relationship between the identification of each second user and the identification of each second user, and then the first group photo is stored in the second database.
  • At least one second group photo is obtained from the second database according to the identification of the fourth user, where the second group photo is a group photo containing the fourth user.
  • the second group photo is Users other than the fourth user become the fifth user.
  • S3022 For each second group photo, perform face recognition on each user in the second group photo according to the identification of the fourth user and the first database, and obtain the fifth user's Logo.
  • each second group photo is identified to obtain the identifier of the fifth user in the second group photo. It can be understood that the specific implementation is similar to S202 in the embodiment shown in FIG. 2, and will not be repeated here.
  • S303 Send the identifier of the fifth user to the first terminal, so that the first terminal establishes a social relationship between the first user and the fifth user.
  • S303 is similar to that of S204, and will not be repeated here.
  • S304 Send the identity of the first user to a third terminal corresponding to each of the fifth users, so that the third terminal establishes a social relationship between the fifth user and the first user.
  • the first user can also be recommended to the third terminal corresponding to the fifth user, so that the third terminal establishes the social relationship between the fifth user and the first user, so as to expand the social relationship of the fifth user .
  • FIG 5 is a schematic flow chart of another embodiment of the method for establishing social relationships provided by the embodiments of the application.
  • This embodiment is similar to the embodiment shown in Figure 3, and is based on some or all of the social relationship pairs in the second user.
  • the social relationship of the first user is further explored.
  • An application scenario corresponding to this embodiment is: when the first user uploads the first group photo to the client of the social network through the first terminal, he also specifies a preset area in the first group photo, where the preset area One or more of the second users are included.
  • the preset area is used to instruct to mine the social relationship of the first user according to the social relationship of each user in the preset area.
  • the method of this embodiment includes:
  • S501 Determine the identity of the fourth user according to the identity of each of the second users in a preset area, where the preset area is the area identified in the first group photo, and the preset area includes the second user. One or more of the users.
  • S502 Obtain an identifier of a fifth user who has a social relationship with the fourth user.
  • S503 Send the identifier of the fifth user to the first terminal, so that the first terminal establishes a social relationship between the first user and the fifth user.
  • S504 Send the identifier of the first user to a third terminal corresponding to each of the fifth users, so that the third terminal establishes a social relationship between the fifth user and the first user.
  • this embodiment is similar to the embodiment shown in FIG. 3, and details are not described herein again.
  • the difference is that when determining the fourth user among the second users, the fourth user is determined according to the second users included in the preset area designated by the user.
  • Fig. 6 is a schematic diagram of an interface for uploading a group photo of a terminal according to an embodiment of the application.
  • the user can select a preset group photo in the first terminal to upload to the client.
  • the user can mark the preset area of the group photo when uploading the group photo, as shown by the dashed box in FIG. 6.
  • the marking method of the preset area is not specifically limited, the preset area may be marked in any shape, and the preset area may be one or more.
  • Figure 6 shows only an optional example.
  • the preset area is a rectangular frame. The user can drag the rectangular frame to move the position of the rectangular frame. The user can also drag the boundary line of the rectangular frame. To modify the size of the rectangular box.
  • the preset area When the user uploads the group photo, if the preset area is marked, when the terminal sends the first group photo to the server, the preset area will also be sent to the server at the same time, so that the server executes the method shown in Figure 5; if the user does not If the preset area is marked, the server executes the method shown in Figure 3.
  • FIG. 7 is a schematic structural diagram of an embodiment of an apparatus for establishing a social relationship provided by an embodiment of this application.
  • the apparatus 700 for establishing a social relationship provided by this embodiment includes: a first obtaining module 701, a second Obtaining module 702 and sending module 703.
  • the first obtaining module 701 is configured to obtain the first group photo sent by the first terminal corresponding to the first user and the identification of the first user;
  • the second obtaining module 702 is configured to perform face recognition on each user in the first group photo according to the identity of the first user and the first database, and obtain the identity of at least one second user, wherein the The identities of different users and the avatars of different users are stored in the first database;
  • the second obtaining module 702 is further configured to determine the identity of at least one third user according to the identity of each second user and the current social relationship of the first user, and the third user is among the second users Users who have not established a social relationship with the first user;
  • the sending module 703 is configured to send the identity of each of the third users to the first terminal, so that the first terminal establishes a social relationship between the first user and each of the third users.
  • the device provided in this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2, and its implementation principles and technical effects are similar, and will not be repeated here.
  • FIG. 8 is a schematic structural diagram of another embodiment of an apparatus for establishing a social relationship provided by an embodiment of this application. Based on the embodiment shown in FIG. 7, the apparatus 700 for establishing a social relationship provided in this embodiment may further include: The third acquisition module 704.
  • the second obtaining module 702 is specifically configured to:
  • the avatar of the first user determine the faces of other users except the face of the first user among the faces corresponding to each user;
  • the similarity between the faces of the remaining users and the avatars of the users in the first database is obtained, and the avatars of the users whose similarity meets the preset conditions are determined.
  • the identifier serves as the identifier of the second user.
  • the third obtaining module 704 is configured to:
  • the identifiers of each of the second users determine the identifier of the fourth user, and the fourth user is at least part of the second users;
  • the identifier of the fifth user is sent to the first terminal, so that the first terminal establishes a social relationship between the first user and the fifth user.
  • a preset area is identified in the first group photo, and the preset area includes one or more of the second users;
  • the third obtaining module 704 is specifically configured to:
  • the third obtaining module 704 is specifically configured to:
  • face recognition is performed on each user in the second group photo according to the identification of the fourth user and the first database to obtain the identification of the fifth user.
  • the sending module 703 is further configured to:
  • the identifier of the first user is sent to a second terminal corresponding to each of the third users, so that the second terminal establishes a social relationship between the third user and the first user.
  • the sending module 703 is further configured to:
  • the identifier of the first user is sent to a third terminal corresponding to each of the fifth users, so that the third terminal establishes a social relationship between the fifth user and the first user.
  • the device provided in this embodiment can be used to implement the technical solutions of any of the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
  • FIG. 9 is a schematic structural diagram of a server provided in an embodiment of this application.
  • the server 900 provided in this embodiment includes: at least one processor 901 and a memory 902. Among them, the processor 901 and the memory 902 are connected through a bus 903.
  • At least one processor 901 executes a computer-executable instruction stored in the memory 902, so that at least one processor 901 executes the method for establishing a social relationship in any of the foregoing method embodiments.
  • the processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors or digital signal processors (English: Digital Signal Processor, referred to as DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as ASIC), etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
  • the bus can be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the buses in the drawings of this application are not limited to only one bus or one type of bus.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the social relationship in any of the above method embodiments is realized The establishment method.
  • the above-mentioned computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable and removable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable and removable Programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • a readable storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
  • An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and can write information to the readable storage medium.
  • the readable storage medium may also be an integral part of the processor.
  • the processor and the readable storage medium may be located in Application Specific Integrated Circuits (ASIC for short).
  • ASIC Application Specific Integrated Circuits
  • the processor and the readable storage medium may also exist as discrete components in the device.
  • a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

Abstract

一种社交关系的建立方法、装置及服务器,服务器获取第一用户对应的第一终端发送的第一合影照片和第一用户的标识,根据第一用户的标识和第一数据库,对第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,根据各第二用户的标识以及第一用户的当前社交关系,确定至少一个第三用户的标识,将各第三用户的标识发送给第一终端,以使第一终端建立第一用户与各第三用户之间的社交关系;由于第一用户的第一合影照片中包括了第一用户的强连接和/或弱连接关系,通过利用第一数据库对第一合影照片中的各用户进行识别,实现了根据第一合影照片进行第一用户的社交关系的挖掘,从而充分扩大第一用户的社交圈。

Description

社交关系的建立方法、装置及服务器
本申请要求于2019年03月06日提交中国专利局、申请号为2019101663298、申请名称为“社交关系的建立方法、装置及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及互联网技术领域,尤其涉及一种社交关系的建立方法、装置及服务器。
背景技术
社交网络的出现极大的丰富了人们的社交圈,人们可以通过社交网络分享更多的信息和资源。每个用户在社交网络中可以拥有自己的好友,社交网络中的好友对于用户而言是一种人脉资源,通过社交网络中的好友,用户可以获取更多的资源,因此,用户希望充分挖掘自己在社交网络中的好友数量。
现有的社交网络,用户通过搜索其他人的账号或者姓名来关注对方,这就需要用户知道他人的账号或姓名是什么,才能进行关注。
但是,互联网时代,人与人之间的社交关系分为两类:强连接和弱连接。对于强连接的社交关系,例如:亲朋好友,容易的获知他们的账号或者姓名,因此,在现有的社交网络中强连接的社交关系容易建立;而对于弱连接的社交关系,例如:不怎么熟悉的人,不容易获知他们的账号或姓名,因此,现有的社交网络,无法充分利用弱连接的社交关系来扩大用户的社交圈。
发明内容
本申请实施例提供一种社交关系的建立方法、装置及服务器,根据第一用户的第一合影照片进行第一用户的社交关系的建立,扩大了第一用户的社交圈。
第一方面,本申请实施例提供一种社交关系的建立方法,应用于服务器,包括:
获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识;
根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像;
根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户;
将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
可选的,所述根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,包括:
根据所述第一用户的标识和所述第一数据库,确定所述第一用户的头像;
对所述第一合影照片进行人脸检测,得到各用户对应的人脸;
根据所述第一用户的头像,在各用户对应的人脸中确定除所述第一用户的人脸之外的其余用户的人脸;
针对每个所述其余用户的人脸,获取所述其余用户的人脸与所述第一数据库中的各用户的头像之间的相似度,将相似度满足预设条件的头像对应的用户的标识作为所述第二用户的标识。
可选的,,所述获取至少一个第二用户的标识之后,还包括:
在各所述第二用户的标识中,确定第四用户的标识,所述第四用户为所述第二用户中的至少部分;
获取与所述第四用户具有社交关系的第五用户的标识;
将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
可选的,所述第一合影照片中标识有预设区域,所述预设区域中包括所述第二用户中的一个或者多个;
所述在各所述第二用户的标识中,确定第四用户的标识,包括:
根据所述预设区域中的各所述第二用户的标识,确定第四用户的标识。
可选的,所述获取与所述第四用户具有社交关系的第五用户的标识,包括:
根据所述第四用户的标识,在第二数据库中获取至少一个第二合影照片,所述第二合影照片为所述第四用户与第五用户的合影;
针对每个所述第二合影照片,根据所述第四用户的标识和所述第一数据库,对所述第二合影照片中的各用户进行人脸识别,获取所述第五用户的标识。
可选的,所述确定至少一个第三用户的标识之后,还包括:
将所述第一用户的标识发送给各所述第三用户对应的第二终端,以使所述第二终端建立所述第三用户与所述第一用户之间的社交关系。
可选的,所述获取与所述第四用户具有社交关系的第五用户的标识之后,还包括:
将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
第二方面,本申请实施例提供一种社交关系的建立装置,应用于服务器,包括:
第一获取模块,用于获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识;
第二获取模块,用于根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像;
所述第二获取模块,还用于根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户;
发送模块,用于将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
可选的,所述第二获取模块具体用于:
根据所述第一用户的标识和所述第一数据库,确定所述第一用户的头像;
对所述第一合影照片进行人脸检测,得到各用户对应的人脸;
根据所述第一用户的头像,在各用户对应的人脸中确定除所述第一用户的人脸之外的其余用户的人脸;
针对每个所述其余用户的人脸,获取所述其余用户的人脸与所述第一数据库中的各用户的头像之间的相似度,将相似度满足预设条件的头像对应的用户的标识作为所述第二用户的标识。
可选的,所述装置还包括:第三获取模块,用于:
在各所述第二用户的标识中,确定第四用户的标识,所述第四用户为所述第二用户中的至少部分;
获取与所述第四用户具有社交关系的第五用户的标识;
将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
可选的,所述第一合影照片中标识有预设区域,所述预设区域中包括所述第二用户中的一个或者多个;
所述第三获取模块具体用于:
根据所述预设区域中的各所述第二用户的标识,确定第四用户的标识。
可选的,所述第三获取模块具体用于:
根据所述第四用户的标识,在第二数据库中获取至少一个第二合影照片,所述第二合影照片为所述第四用户与第五用户的合影;
针对每个所述第二合影照片,根据所述第四用户的标识和所述第一数据库,对所述第二合影照片中的各用户进行人脸识别,获取所述第五用户的标识。
可选的,所述发送模块还用于:
将所述第一用户的标识发送给各所述第三用户对应的第二终端,以使所述第二终端建立所述第三用户与所述第一用户之间的社交关系。
可选的,所述发送模块还用于:
将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
第三方面,本申请实施例提供一种服务器,包括:至少一个处理器和存储器;
所述存储器存储计算机执行指令;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第一方面任一项所述的方法。
第四方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面任一项所述的方法。
本申请实施例提供的社交关系的建立方法、装置及服务器,服务器获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识,根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二 用户的标识,根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系;由于第一用户的第一合影照片中包括了第一用户的强连接和/或弱连接的关系,通过利用第一数据库对第一合影照片中的各用户进行识别,实现了根据第一合影照片进行第一用户的社交关系的挖掘,从而充分扩大第一用户的社交圈。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例所适用的场景示意图;
图2为本申请实施例提供的社交关系的建立方法一种实施例的流程示意图;
图3为本申请实施例提供的社交关系的建立方法另一种实施例的流程示例图;
图4为本申请实施例提供的获取与第四用户具有社交关系的第五用户的标识的方法流程示意图;
图5为本申请实施例提供的社交关系的建立方法再一种实施例的流程示意图;
图6为本申请实施例提供的终端上传合影照片的界面示意图;
图7为本申请实施例提供的社交关系的建立装置一种实施例的结构示意图;
图8为本申请实施例提供的社交关系的建立装置另一种实施例的结构示意图;
图9为本申请实施例提供的服务器的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
如前所述,现有的社交网络,用户通过搜索其他人的账号或者姓名来关注对方,这就需要用户知道他人的账号或姓名是什么,才能进行关注。但是,互联网时代,人与人之间的社交关系分为两类:强连接和弱连接。对于强连接的社交关系,例如:亲朋好友,容易的获知他们的账号或者姓名,因此,在现有的社交网络中强连接的社交 关系容易建立;而对于弱连接的社交关系,例如:不怎么熟悉的人,不容易获知他们的账号或姓名,因此,现有的社交网络,无法充分利用弱连接的社交关系来扩大用户的社交圈。
发明人发现,合影照片中通常隐藏了用户的人脉关系,具体的,第一用户与至少一个第二用户进行合影的情况下,第一用户与各第二用户之间的社交关系分为两种,第一种为:第一用户与第二用户之间具有强连接关系,例如:第一用户与第二用户为亲朋好友,第一用户对第二用户非常熟悉;第二种为:第一用户与第二用户具有弱连接关系,即第一用户对第二用户并不怎么熟悉。
因此,本申请实施例提供一种社交网络的建立方法、装置及服务器,通过对第一用户的第一合影照片中的各用户进行人脸识别,实现了根据第一合影照片进行第一用户的社交关系的挖掘,从而充分扩大第一用户的社交圈。
下面结合图1详细描述本申请实施例所适用的场景,图1为本申请实施例所适用的场景示意图,如图1所示,包括:服务器和至少一个终端。其中,服务器与各终端之间通过互联网或者移动互联网连接。一种可能的场景中,服务器为社交网络的服务器,服务器中运行社交网络的服务端,终端中运行社交网络的客户端。用户可以通过客户端与服务器进行交互,实现社交关系的建立。
本实施例中的社交网络是指广义上的用于管理人与人之间关系的网络,本实施例提供的社交关系的建立方法可适用现有的任一社交网络,还可适用于未来可能出现的社交网络。
本实施例提供的社交网络的建立方法可以由图1中的服务器执行,具体的,可以以软件和/或硬件的形式设置于图1的服务器中。
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图2为本申请实施例提供的社交关系的建立方法一种实施例的流程示意图,本实施例的方法可以由图1中的服务器执行。如图2所示,本实施例的方法,包括:
S201:获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识。
具体的,第一终端上运行有社交网络的客户端,服务器中运行社交网络的服务端。第一用户将自己与他人的第一合影照片上传到客户端,然后客户端将第一用户的标识以及所述第一合影照片发送给服务端。
需要说明的是,本申请实施例对于第一合影照片的格式不作具体限定,可以是任意格式的合影照片。另外,合影照片可以是两个用户的合影,还可以是多个用户的合影,本申请实施例对于合影照片中的用户数量不作具体限定。
S202:根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像。
具体的,本实施例中,通过将第一合影照片中的各用户的人脸与第一数据库进行匹配,从而获取各第二用户的标识。其中,用户的标识可以是用于表征该用户的任一标识,包括但不限于:姓名、账号、昵称等。
第一数据库中存储了不同用户的标识以及不同用户的头像。例如:第一数据库可 以为社交网络的注册用户数据库,用于存储所有注册用户的注册信息,包括但不限于:姓名、昵称、账号、头像等。
可以理解的,当第一数据库为社交网络的注册用户数据库时,可能存在这样的情况:第一合影照片中的有些用户在该社交网络注册过,有些用户在该社交网络没有注册过,因此,在利用第一数据库进行人脸识别时,在社交网络注册过的用户能够被识别出来,而在社交网络没有注册过的用户则无法被识别出来。
本实施例中,为了描述方便,将根据第一数据库能够识别出来的用户称为第二用户。也就是说,第二用户为第一合影照片中除第一用户之外的其余用户的部分或者全部。
具体实施过程中,根据第一数据库对第一合影照片中的各用户进行人脸识别的过程,可以有多种实施方式,下面仅以一种可选的实施方式为例进行详细描述。
根据所述第一用户的标识和所述第一数据库,确定所述第一用户的头像;对所述第一合影照片进行人脸检测,得到各用户对应的人脸;根据所述第一用户的头像,在各用户对应的人脸中确定除所述第一用户的人脸之外的其余用户的人脸;针对每个所述其余用户的人脸,获取所述其余用户的人脸与所述第一数据库中的各用户的头像之间的相似度,将相似度满足预设条件的头像对应的用户的标识作为所述第二用户的标识。
其中,可以采用各种现有的算法和模型来实现对第一合影照片进行的人脸检测的过程。例如,现有的人脸检测可以使用模板匹配模型、肤色模型、主动外观模型(Active Appearance Model,AAM)、支持向量机(Support Vector Machine,SVM)模型、Adaboost模型等,它们的检测精度和速度各有不同。本实施例中的人脸检测并不限于上述的技术,可根据需要使用其他各种算法和模型来实现。
另外,对人脸进行识别的过程实质上是对人脸提取特征,并对提取的特征进行相似度计算的过程,通过机器学习算法来对人脸特征进行匹配。其中,人脸特征数据的提取包括基于模板的特征提取、基于代数方法的特征提取、基于弹性匹配法的特征提取、基于神经网络的特征提取、基于小波多分辨率的特征提取等。人脸特征数据的描述也有多种,例如:主成分分析方法(principal Component Analysis,PCA)等。本实施例中的人脸特征提取并不限于上述的技术,可以根据实际需要使用各种算法和模型来实现。
S203:根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户。
具体的,获取到第一合影照片中能够识别的各第二用户的标识后,根据第一用户的当前社交关系,可以确定出各第二用户中哪些用户与第一用户已建立社交关系,哪些用户与第一用户未建立社交关系。本实施例中,为了描述方便,将与第一用户未建立社交关系的第二用户称为第三用户。
S204:将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
具体的,服务器获取到第三用户的标识后,将各所述第三用户的标识发送给第一 用户对应的第一终端,由第一终端建立第一用户与各第三用户之间的社交关系。其中,第一终端在建立第一用户与各第三用户之间的社交关系时,可以向第一用户提供包括所有第三用户的列表,由用户根据自己的需求和意愿选择其中的部分或者全部建立社交关系。
需要说明的是,第一终端建立第一用户与第三用户之间的社交关系的方式,可以为第一终端将第三用户添加为第一用户的好友,还可以为第一终端将第三用户添加至第一用户的关注用户列表中,当然,还可以为其他的社交关系的方式,本申请实施例对此不作具体限定。不论何种方式的社交关系,第一用户与第三用户建立社交关系之后,第一用户便可以及时获知第三用户的状态、第三用户分享的资讯等信息。
可选的,在上述步骤的基础之上,本实施例的方法,还可以包括:
将所述第一用户的标识发送给各所述第三用户对应的第二终端,以使所述第二终端建立所述第三用户与所述第一用户之间的社交关系。
具体的,在将第三用户的标识发送给第一终端的同时,还可以将第一用户的标识发送给第三用户对应的第二终端,使得第二终端建立第三用户与第一用户之间的社交关系,因此,本实施例还实现了基于第一用户的第一合影照片,对第三用户的社交关系进行了扩充。
下面结合举例示例本实施例的实施过程,假设第一用户为用户A,用户A通过第一终端向服务器发送了第一合影照片,其中,第一合影照片为用户A、用户B、用户C、用户D的合影,假设上述的所有用户均在社交网络中进行了注册。根据第一数据库对第一合影照片中的各用户进行人脸识别后,可以获取到第二用户(用户B、用户C、用户D)的标识。假设用户A与用户D已建立社交关系,则通过S203确定出的第三用户的标识为用户B和用户C的标识。因此,服务器将用户B和用户C的标识发送给第一终端,由第一终端建立用户A与用户B之间的社交关系,以及用户A与用户C之间的社交关系。另外,服务器还可以将用户A的标识分别发送给用户B对应的终端和用户C对应的终端,使得用户B对应的终端建立用户B与用户A之间的社交关系,用户C对应的终端建立用户C与用户A之间的社交关系。
本申请实施例提供的社交关系的建立方法,服务器获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识,根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系;由于第一用户的第一合影照片中包括了第一用户的强连接和/或弱连接的关系,通过利用第一数据库对第一合影照片中的各用户进行识别,实现了根据第一合影照片进行第一用户的社交关系的挖掘,从而充分扩大第一用户的社交圈。
图2所示实施例中实现的是根据第一数据库对第一合影照片中的各用户进行人脸识别,获取到能够识别出来的第二用户,并在第二用户中确定出与第一用户还未建立社交关系的第三用户,通过建立第一用户与第三用户的社交关系来扩大第一用户的社交圈。在图2所示实施例的基础上,在识别出第二用户之后,还可以再根据第二用户 的社交关系对第一用户的社交关系进行进一步挖掘。
为了便于理解,下面继续结合举例进行说明,假设第一用户为用户A,用户A通过第一终端向服务器发送了第一合影照片,其中,第一合影照片为用户A、用户B、用户C、用户D的合影,假设根据图2所示实施例获取到第二用户(用户B、用户C、用户D)的标识之后,本实施例可以根据用户B、用户C、用户D中的全部或者部分的社交关系,对用户A的社交关系进行进一步挖掘。
下面结合两个具体的实施例进行详细描述。
图3为本申请实施例提供的社交关系的建立方法另一种实施例的流程示例图,如图3所示,本实施例的方法,包括:
S301:在各所述第二用户的标识中,确定第四用户的标识,所述第四用户为所述第二用户中的至少部分。
需要说明的是,本申请实施例的方法,可以在图2所示实施例中的S202之后的任一位置执行,本申请实施例不作具体限定。
可以理解的,一种可选的实施方式中,根据第一合影照片中的所有第二用户的社交关系对第一用户的社交关系进行进一步挖掘;另一种可选的实施方式中,根据第一合影照片中的部分第二用户的社交关系对第一用户的社交关系进行进一步挖掘。为了描述方便,本实施例中,将对第一用户的社会关系进行进一步挖掘所依据的第二用户称为第四用户,也就是说,第四用户为第二用户的全部或者部分。
本实施例对应的一个应用场景可以为,服务器对第一合影照片中的各用户进行人脸识别,获取各第二用户的标识后,服务器根据各第二用户的标识自动确定第四用户的标识。
S302:获取与所述第四用户具有社交关系的第五用户的标识。
一种可选的实施方式中,可以根据第四用户的当前社交关系获取第五用户的标识,例如:获取第四用户的好友列表,或者,关注用户列表,将第四用户的好友或者关注用户作为第五用户。
另一种可选的实施方式中,可以通过对包含第四用户的合影照片进行人脸识别,将与第四用户合影过的用户作为第五用户。图4为本申请实施例提供的获取与第四用户具有社交关系的第五用户的标识的方法流程示意图,如图4所示,包括:
S3021:根据所述第四用户的标识,在第二数据库中获取至少一个第二合影照片,所述第二合影照片为所述第四用户与第五用户的合影。
其中,第二数据库可以为服务器侧的合影照片数据库,其中存储了不同用户上传的所有合影照片。具体的,第二数据库中存储了不同合影照片以及各合影照片中包含的用户的标识。
下面结合图2所示的实施例简单描述第二数据库中的各合影照片的存储过程。在图2所示的实施例中,服务器根据第一数据库对第一合影照片中的各用户进行人脸识别,获取第二用户的标识之后,建立所述第一合影照片与所述第一用户的标识、各第二用户的标识之间的关联关系,然后将所述第一合影照片存储至所述第二数据库中。
本实施例中,根据第四用户的标识,在第二数据库中获取至少一个第二合影照片,其中,第二合影照片为包含了第四用户的合影照片,为了描述方便,将第二合影照片 中除第四用户之外的其他用户成为第五用户。
S3022:针对每个所述第二合影照片,根据所述第四用户的标识和所述第一数据库,对所述第二合影照片中的各用户进行人脸识别,获取所述第五用户的标识。
本实施例的,针对每个第二合影照片进行识别,得到第二合影照片中的第五用户的标识。可以理解的,其具体实施方式与图2所示实施例中的S202类似,此处不作赘述。
S303:将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
具体的,S303的具体实施方式与S204类似,此处不作赘述。
可选的,本实施例中,将第五用户的标识发送给第一终端,使得第一终端建立第一用户与第五用户之间的社交关系之后,还可以包括:
S304:将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
也就是说,还可以将第一用户推荐给第五用户对应的第三终端,使得第三终端建立第五用户与第一用户之间的社交关系,从而实现对第五用户的社交关系进行扩充。
图5为本申请实施例提供的社交关系的建立方法再一种实施例的流程示意图,本实施例与图3所示的实施例类似,均是根据第二用户中的部分或者全部社交关系对第一用户的社交关系进行进一步挖掘。本实施例对应的一个应用场景为:第一用户在通过第一终端向社交网络的客户端上传第一合影照片时,还在第一合影照片中指定了预设区域,其中,预设区域中包括了第二用户中的一个或者多个。预设区域用于指示根据预设区域中的各用户的社交关系对第一用户的社交关系进行挖掘。
如图5所示,本实施例的方法,包括:
S501:根据预设区域中的各所述第二用户的标识,确定第四用户的标识,所述预设区域为所述第一合影照片中标识的区域,所述预设区域中包括第二用户中的一个或者多个。
需要说明的是,本申请实施例的方法,可以在图2所示实施例中的S202之后的任一位置执行,本申请实施例不作具体限定。
S502:获取与所述第四用户具有社交关系的第五用户的标识。
S503:将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
S504:将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
本实施例的具体实施方式与图3所示的实施例类似,此处不再特别赘述。其不同之处在于,在第二用户中确定第四用户时,是根据用户指定的预设区域中包括的第二用户来确定第四用户。
图6为本申请实施例提供的终端上传合影照片的界面示意图,如图6所示,本实施例中用户可以在第一终端中选择预设的合影照片上传至客户端。具体的,用户在上传合影照片时可以对合影照片的预设区域进行标注,如图6中的虚线框所示。需要说明的是,对于预设区域的标注方法不作具体限定,预设区域可以被标注为任意形状, 并且,预设区域可以为一个或者多个。图6所示的仅为一种可选的示例,图6中,预设区域为矩形框,用户可以拖动该矩形框从而移动矩形框的位置,用户还可通过拖动矩形框的边界线来修改矩形框的大小。
用户上传合影照片时,若标注了预设区域,则终端向服务器发送第一合影照片时,还会将该预设区域同时发送给服务器,从而服务器执行如图5所示的方法;若用户未标注预设区域,则服务器执行如图3所示的方法。
图7为本申请实施例提供的社交关系的建立装置一种实施例的结构示意图,如图7所示,本实施例提供的社交关系的建立装置700,包括:第一获取模块701、第二获取模块702和发送模块703。
其中,第一获取模块701,用于获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识;
第二获取模块702,用于根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像;
所述第二获取模块702,还用于根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户;
发送模块703,用于将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
本实施例提供的装置可用于执行如图2所示的方法实施例的技术方案,其实现原理和技术效果类似,此处不作赘述。
图8为本申请实施例提供的社交关系的建立装置另一种实施例的结构示意图,在图7所示实施例的基础上,本实施例提供的社交关系的建立装置700,还可以包括:第三获取模块704。
可选的,所述第二获取模块702具体用于:
根据所述第一用户的标识和所述第一数据库,确定所述第一用户的头像;
对所述第一合影照片进行人脸检测,得到各用户对应的人脸;
根据所述第一用户的头像,在各用户对应的人脸中确定除所述第一用户的人脸之外的其余用户的人脸;
针对每个所述其余用户的人脸,获取所述其余用户的人脸与所述第一数据库中的各用户的头像之间的相似度,将相似度满足预设条件的头像对应的用户的标识作为所述第二用户的标识。
可选的,所述第三获取模块704,用于:
在各所述第二用户的标识中,确定第四用户的标识,所述第四用户为所述第二用户中的至少部分;
获取与所述第四用户具有社交关系的第五用户的标识;
将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
可选的,所述第一合影照片中标识有预设区域,所述预设区域中包括所述第二用 户中的一个或者多个;
所述第三获取模块704具体用于:
根据所述预设区域中的各所述第二用户的标识,确定第四用户的标识。
可选的,所述第三获取模块704具体用于:
根据所述第四用户的标识,在第二数据库中获取至少一个第二合影照片,所述第二合影照片为所述第四用户与第五用户的合影;
针对每个所述第二合影照片,根据所述第四用户的标识和所述第一数据库,对所述第二合影照片中的各用户进行人脸识别,获取所述第五用户的标识。
可选的,所述发送模块703还用于:
将所述第一用户的标识发送给各所述第三用户对应的第二终端,以使所述第二终端建立所述第三用户与所述第一用户之间的社交关系。
可选的,所述发送模块703还用于:
将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
本实施例提供的装置可用于执行上述任一方法实施例的技术方案,其实现原理和技术效果类似,此处不作赘述。
图9为本申请实施例提供的服务器的结构示意图,如图9所示,本实施例提供的服务器900,包括:至少一个处理器901和存储器902。其中,处理器901、存储器902通过总线903连接。
在具体实现过程中,至少一个处理器901执行所述存储器902存储的计算机执行指令,使得至少一个处理器901执行上述任一方法实施例中的社交关系的建立方法。
处理器901的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
在上述的图9所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述任一方法实施例中的社交关系的建立方法。
上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (10)

  1. 一种社交关系的建立方法,其特征在于,应用于服务器,包括:
    获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识;
    根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像;
    根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户;
    将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,包括:
    根据所述第一用户的标识和所述第一数据库,确定所述第一用户的头像;
    对所述第一合影照片进行人脸检测,得到各用户对应的人脸;
    根据所述第一用户的头像,在各用户对应的人脸中确定除所述第一用户的人脸之外的其余用户的人脸;
    针对每个所述其余用户的人脸,获取所述其余用户的人脸与所述第一数据库中的各用户的头像之间的相似度,将相似度满足预设条件的头像对应的用户的标识作为所述第二用户的标识。
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取至少一个第二用户的标识之后,还包括:
    在各所述第二用户的标识中,确定第四用户的标识,所述第四用户为所述第二用户中的至少部分;
    获取与所述第四用户具有社交关系的第五用户的标识;
    将所述第五用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与所述第五用户之间的社交关系。
  4. 根据权利要求3所述的方法,其特征在于,所述第一合影照片中标识有预设区域,所述预设区域中包括所述第二用户中的一个或者多个;
    所述在各所述第二用户的标识中,确定第四用户的标识,包括:
    根据所述预设区域中的各所述第二用户的标识,确定第四用户的标识。
  5. 根据权利要求3或4所述的方法,其特征在于,所述获取与所述第四用户具有社交关系的第五用户的标识,包括:
    根据所述第四用户的标识,在第二数据库中获取至少一个第二合影照片,所述第二合影照片为所述第四用户与第五用户的合影;
    针对每个所述第二合影照片,根据所述第四用户的标识和所述第一数据库,对所述第二合影照片中的各用户进行人脸识别,获取所述第五用户的标识。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述确定至少一个第三用户的标识之后,还包括:
    将所述第一用户的标识发送给各所述第三用户对应的第二终端,以使所述第二终端建立所述第三用户与所述第一用户之间的社交关系。
  7. 根据权利要求3或4所述的方法,其特征在于,所述获取与所述第四用户具有社交关系的第五用户的标识之后,还包括:
    将所述第一用户的标识发送给各所述第五用户对应的第三终端,以使所述第三终端建立所述第五用户与所述第一用户之间的社交关系。
  8. 一种社交关系的建立装置,其特征在于,应用于服务器,包括:
    第一获取模块,用于获取第一用户对应的第一终端发送的第一合影照片和所述第一用户的标识;
    第二获取模块,用于根据所述第一用户的标识和第一数据库,对所述第一合影照片中的各用户进行人脸识别,获取至少一个第二用户的标识,其中,所述第一数据库中存储了不同用户的标识以及不同用户的头像;
    所述第二获取模块,还用于根据各第二用户的标识以及所述第一用户的当前社交关系,确定至少一个第三用户的标识,所述第三用户为所述第二用户中未与所述第一用户建立社交关系的用户;
    发送模块,用于将各所述第三用户的标识发送给所述第一终端,以使所述第一终端建立所述第一用户与各所述第三用户之间的社交关系。
  9. 一种服务器,其特征在于,包括:至少一个处理器和存储器;
    所述存储器存储计算机执行指令;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至7任一项所述的方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的方法。
PCT/CN2019/103961 2019-03-06 2019-09-02 社交关系的建立方法、装置及服务器 WO2020177286A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910166329.8A CN110033388B (zh) 2019-03-06 2019-03-06 社交关系的建立方法、装置及服务器
CN201910166329.8 2019-03-06

Publications (1)

Publication Number Publication Date
WO2020177286A1 true WO2020177286A1 (zh) 2020-09-10

Family

ID=67235800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/103961 WO2020177286A1 (zh) 2019-03-06 2019-09-02 社交关系的建立方法、装置及服务器

Country Status (2)

Country Link
CN (1) CN110033388B (zh)
WO (1) WO2020177286A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784719A (zh) * 2021-01-13 2021-05-11 伙伴愿景(广东)智能科技有限公司 一种基于区块链和人工智能的人脉精准匹配方法、存储介质及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033388B (zh) * 2019-03-06 2022-07-08 百度在线网络技术(北京)有限公司 社交关系的建立方法、装置及服务器
CN112348689A (zh) * 2020-11-24 2021-02-09 深兰科技(上海)有限公司 用于社交服务的人脸识别方法和系统
CN112633244B (zh) * 2020-12-31 2023-03-03 深圳云天励飞技术股份有限公司 一种社交关系的识别方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130251201A1 (en) * 2012-03-22 2013-09-26 Samsung Electronics Co., Ltd. System and method for recommending buddies in social network
CN104102656A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 好友推荐方法、装置、系统及服务器
CN107302492A (zh) * 2017-06-28 2017-10-27 歌尔科技有限公司 社交软件的交友请求方法、服务器、客户端装置和系统
CN108512670A (zh) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 一种群组创建的方法及其终端
CN109101614A (zh) * 2018-08-06 2018-12-28 百度在线网络技术(北京)有限公司 好友推荐方法和装置
CN110033388A (zh) * 2019-03-06 2019-07-19 百度在线网络技术(北京)有限公司 社交关系的建立方法、装置及服务器

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9111255B2 (en) * 2010-08-31 2015-08-18 Nokia Technologies Oy Methods, apparatuses and computer program products for determining shared friends of individuals
CN102637183A (zh) * 2011-02-12 2012-08-15 北京千橡网景科技发展有限公司 用于在社交网络中向用户推荐好友的方法和设备
US20120213404A1 (en) * 2011-02-18 2012-08-23 Google Inc. Automatic event recognition and cross-user photo clustering
CN103164705A (zh) * 2011-12-13 2013-06-19 腾讯数码(天津)有限公司 一种基于社交网络的圈人方法及装置
KR20140077994A (ko) * 2012-12-13 2014-06-25 박정란 사진 기반 소셜 네트워크 구성 방법
CN103514286A (zh) * 2013-09-30 2014-01-15 鸿富锦精密工业(深圳)有限公司 好友推荐系统及方法
CN105429848B (zh) * 2015-10-23 2019-07-12 广东小天才科技有限公司 通过拍照添加好友的方法、系统和社交服务器的社交系统
CN105847111A (zh) * 2016-02-29 2016-08-10 北京小米移动软件有限公司 添加好友的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130251201A1 (en) * 2012-03-22 2013-09-26 Samsung Electronics Co., Ltd. System and method for recommending buddies in social network
CN104102656A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 好友推荐方法、装置、系统及服务器
CN107302492A (zh) * 2017-06-28 2017-10-27 歌尔科技有限公司 社交软件的交友请求方法、服务器、客户端装置和系统
CN108512670A (zh) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 一种群组创建的方法及其终端
CN109101614A (zh) * 2018-08-06 2018-12-28 百度在线网络技术(北京)有限公司 好友推荐方法和装置
CN110033388A (zh) * 2019-03-06 2019-07-19 百度在线网络技术(北京)有限公司 社交关系的建立方法、装置及服务器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784719A (zh) * 2021-01-13 2021-05-11 伙伴愿景(广东)智能科技有限公司 一种基于区块链和人工智能的人脉精准匹配方法、存储介质及系统

Also Published As

Publication number Publication date
CN110033388A (zh) 2019-07-19
CN110033388B (zh) 2022-07-08

Similar Documents

Publication Publication Date Title
WO2020177286A1 (zh) 社交关系的建立方法、装置及服务器
JP7091504B2 (ja) 顔認識アプリケーションにおけるフォールスポジティブの最小化のための方法および装置
CN108733819B (zh) 一种人员档案建立方法和装置
CN106203242B (zh) 一种相似图像识别方法及设备
KR102427412B1 (ko) 검색 질의에 기반하는 소스 이미지로부터의 얼굴과 타겟 이미지와의 조합
JP6594329B2 (ja) 顔表現のためのシステムおよび方法
US9077678B1 (en) Facilitating photo sharing
US9235782B1 (en) Searching images and identifying images with similar facial features
WO2019153504A1 (zh) 一种群组创建的方法及其终端
WO2020007129A1 (zh) 基于语音交互的上下文获取方法及设备
WO2022100337A1 (zh) 人脸图像质量评估方法、装置、计算机设备及存储介质
WO2020037963A1 (zh) 脸部图像识别的方法、装置及存储介质
CN111369428B (zh) 虚拟头像生成方法和装置
CN107154890A (zh) 社交网络中添加联系人的方法、装置及系统
WO2022166532A1 (zh) 人脸识别方法、装置、电子设备及存储介质
CN109428859B (zh) 一种同步通信方法、终端及服务器
CN103970804A (zh) 一种信息查询方法及装置
WO2020029690A1 (zh) 消息发送方法及装置和电子设备
WO2021127916A1 (zh) 脸部情感识别方法、智能装置和计算机可读存储介质
CN109816543B (zh) 一种图像查找方法及装置
US20230410222A1 (en) Information processing apparatus, control method, and program
CN107609487B (zh) 一种用户头像的生成方法和装置
WO2020244076A1 (zh) 人脸识别方法、装置、电子设备及存储介质
CN109587035B (zh) 会话界面的头像展示方法、装置、电子设备及存储介质
US20210304452A1 (en) Method and system for providing avatar service

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: 19917951

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19917951

Country of ref document: EP

Kind code of ref document: A1

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 22/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19917951

Country of ref document: EP

Kind code of ref document: A1